Update index.vue
This commit is contained in:
		
							parent
							
								
									1301f94166
								
							
						
					
					
						commit
						879cc3b613
					
				
					 1 changed files with 47 additions and 50 deletions
				
			
		|  | @ -1,50 +1,48 @@ | |||
| <template> | ||||
| <div class="vvcocwet" :class="{ wide: !narrow }" ref="el"> | ||||
| 	<div class="nav" v-if="!narrow || page == null"> | ||||
| 		<FormBase> | ||||
| 			<FormGroup> | ||||
| 				<div class="_formItem"> | ||||
| 					<div class="_formPanel lwjxoukj"> | ||||
| 						<MkAvatar :user="$i" class="avatar"/> | ||||
| 					</div> | ||||
| 		<FormGroup> | ||||
| 			<div class="_debobigegoItem"> | ||||
| 				<div class="_debobigegoPanel lwjxoukj"> | ||||
| 					<MkAvatar :user="$i" class="avatar"/> | ||||
| 				</div> | ||||
| 				<FormLink :active="page === 'accounts'" replace to="/settings/accounts"><template #icon><i class="fas fa-users"></i></template>{{ $ts.accounts }}</FormLink> | ||||
| 			</FormGroup> | ||||
| 			<FormInfo v-if="emailNotConfigured" warn>{{ $ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ $ts.configure }}</MkA></FormInfo> | ||||
| 			<FormGroup> | ||||
| 				<template #label>{{ $ts.basicSettings }}</template> | ||||
| 				<FormLink :active="page === 'profile'" replace to="/settings/profile"><template #icon><i class="fas fa-user"></i></template>{{ $ts.profile }}</FormLink> | ||||
| 				<FormLink :active="page === 'privacy'" replace to="/settings/privacy"><template #icon><i class="fas fa-lock-open"></i></template>{{ $ts.privacy }}</FormLink> | ||||
| 				<FormLink :active="page === 'reaction'" replace to="/settings/reaction"><template #icon><i class="fas fa-laugh"></i></template>{{ $ts.reaction }}</FormLink> | ||||
| 				<FormLink :active="page === 'drive'" replace to="/settings/drive"><template #icon><i class="fas fa-cloud"></i></template>{{ $ts.drive }}</FormLink> | ||||
| 				<FormLink :active="page === 'notifications'" replace to="/settings/notifications"><template #icon><i class="fas fa-bell"></i></template>{{ $ts.notifications }}</FormLink> | ||||
| 				<FormLink :active="page === 'email'" replace to="/settings/email"><template #icon><i class="fas fa-envelope"></i></template>{{ $ts.email }}</FormLink> | ||||
| 				<FormLink :active="page === 'integration'" replace to="/settings/integration"><template #icon><i class="fas fa-share-alt"></i></template>{{ $ts.integration }}</FormLink> | ||||
| 				<FormLink :active="page === 'security'" replace to="/settings/security"><template #icon><i class="fas fa-lock"></i></template>{{ $ts.security }}</FormLink> | ||||
| 			</FormGroup> | ||||
| 			<FormGroup> | ||||
| 				<template #label>{{ $ts.clientSettings }}</template> | ||||
| 				<FormLink :active="page === 'general'" replace to="/settings/general"><template #icon><i class="fas fa-cogs"></i></template>{{ $ts.general }}</FormLink> | ||||
| 				<FormLink :active="page === 'theme'" replace to="/settings/theme"><template #icon><i class="fas fa-palette"></i></template>{{ $ts.theme }}</FormLink> | ||||
| 				<FormLink :active="page === 'menu'" replace to="/settings/menu"><template #icon><i class="fas fa-list-ul"></i></template>{{ $ts.menu }}</FormLink> | ||||
| 				<FormLink :active="page === 'sounds'" replace to="/settings/sounds"><template #icon><i class="fas fa-music"></i></template>{{ $ts.sounds }}</FormLink> | ||||
| 				<FormLink :active="page === 'plugin'" replace to="/settings/plugin"><template #icon><i class="fas fa-plug"></i></template>{{ $ts.plugins }}</FormLink> | ||||
| 			</FormGroup> | ||||
| 			<FormGroup> | ||||
| 				<template #label>{{ $ts.otherSettings }}</template> | ||||
| 				<FormLink :active="page === 'import-export'" replace to="/settings/import-export"><template #icon><i class="fas fa-boxes"></i></template>{{ $ts.importAndExport }}</FormLink> | ||||
| 				<FormLink :active="page === 'mute-block'" replace to="/settings/mute-block"><template #icon><i class="fas fa-ban"></i></template>{{ $ts.muteAndBlock }}</FormLink> | ||||
| 				<FormLink :active="page === 'word-mute'" replace to="/settings/word-mute"><template #icon><i class="fas fa-comment-slash"></i></template>{{ $ts.wordMute }}</FormLink> | ||||
| 				<FormLink :active="page === 'api'" replace to="/settings/api"><template #icon><i class="fas fa-key"></i></template>API</FormLink> | ||||
| 				<FormLink :active="page === 'other'" replace to="/settings/other"><template #icon><i class="fas fa-ellipsis-h"></i></template>{{ $ts.other }}</FormLink> | ||||
| 			</FormGroup> | ||||
| 			<FormGroup> | ||||
| 				<FormButton @click="clear">{{ $ts.clearCache }}</FormButton> | ||||
| 			</FormGroup> | ||||
| 			<FormGroup> | ||||
| 				<FormButton @click="logout" danger>{{ $ts.logout }}</FormButton> | ||||
| 			</FormGroup> | ||||
| 		</FormBase> | ||||
| 			</div> | ||||
| 			<FormLink :active="page === 'accounts'" replace to="/settings/accounts"><template #icon><i class="fas fa-users"></i></template>{{ $ts.accounts }}</FormLink> | ||||
| 		</FormGroup> | ||||
| 		<FormInfo v-if="emailNotConfigured" warn>{{ $ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ $ts.configure }}</MkA></FormInfo> | ||||
| 		<FormGroup> | ||||
| 			<template #label>{{ $ts.basicSettings }}</template> | ||||
| 			<FormLink :active="page === 'profile'" replace to="/settings/profile"><template #icon><i class="fas fa-user"></i></template>{{ $ts.profile }}</FormLink> | ||||
| 			<FormLink :active="page === 'privacy'" replace to="/settings/privacy"><template #icon><i class="fas fa-lock-open"></i></template>{{ $ts.privacy }}</FormLink> | ||||
| 			<FormLink :active="page === 'reaction'" replace to="/settings/reaction"><template #icon><i class="fas fa-laugh"></i></template>{{ $ts.reaction }}</FormLink> | ||||
| 			<FormLink :active="page === 'drive'" replace to="/settings/drive"><template #icon><i class="fas fa-cloud"></i></template>{{ $ts.drive }}</FormLink> | ||||
| 			<FormLink :active="page === 'notifications'" replace to="/settings/notifications"><template #icon><i class="fas fa-bell"></i></template>{{ $ts.notifications }}</FormLink> | ||||
| 			<FormLink :active="page === 'email'" replace to="/settings/email"><template #icon><i class="fas fa-envelope"></i></template>{{ $ts.email }}</FormLink> | ||||
| 			<FormLink :active="page === 'integration'" replace to="/settings/integration"><template #icon><i class="fas fa-share-alt"></i></template>{{ $ts.integration }}</FormLink> | ||||
| 			<FormLink :active="page === 'security'" replace to="/settings/security"><template #icon><i class="fas fa-lock"></i></template>{{ $ts.security }}</FormLink> | ||||
| 		</FormGroup> | ||||
| 		<FormGroup> | ||||
| 			<template #label>{{ $ts.clientSettings }}</template> | ||||
| 			<FormLink :active="page === 'general'" replace to="/settings/general"><template #icon><i class="fas fa-cogs"></i></template>{{ $ts.general }}</FormLink> | ||||
| 			<FormLink :active="page === 'theme'" replace to="/settings/theme"><template #icon><i class="fas fa-palette"></i></template>{{ $ts.theme }}</FormLink> | ||||
| 			<FormLink :active="page === 'menu'" replace to="/settings/menu"><template #icon><i class="fas fa-list-ul"></i></template>{{ $ts.menu }}</FormLink> | ||||
| 			<FormLink :active="page === 'sounds'" replace to="/settings/sounds"><template #icon><i class="fas fa-music"></i></template>{{ $ts.sounds }}</FormLink> | ||||
| 			<FormLink :active="page === 'plugin'" replace to="/settings/plugin"><template #icon><i class="fas fa-plug"></i></template>{{ $ts.plugins }}</FormLink> | ||||
| 		</FormGroup> | ||||
| 		<FormGroup> | ||||
| 			<template #label>{{ $ts.otherSettings }}</template> | ||||
| 			<FormLink :active="page === 'import-export'" replace to="/settings/import-export"><template #icon><i class="fas fa-boxes"></i></template>{{ $ts.importAndExport }}</FormLink> | ||||
| 			<FormLink :active="page === 'mute-block'" replace to="/settings/mute-block"><template #icon><i class="fas fa-ban"></i></template>{{ $ts.muteAndBlock }}</FormLink> | ||||
| 			<FormLink :active="page === 'word-mute'" replace to="/settings/word-mute"><template #icon><i class="fas fa-comment-slash"></i></template>{{ $ts.wordMute }}</FormLink> | ||||
| 			<FormLink :active="page === 'api'" replace to="/settings/api"><template #icon><i class="fas fa-key"></i></template>API</FormLink> | ||||
| 			<FormLink :active="page === 'other'" replace to="/settings/other"><template #icon><i class="fas fa-ellipsis-h"></i></template>{{ $ts.other }}</FormLink> | ||||
| 		</FormGroup> | ||||
| 		<FormGroup> | ||||
| 			<FormButton @click="clear">{{ $ts.clearCache }}</FormButton> | ||||
| 		</FormGroup> | ||||
| 		<FormGroup> | ||||
| 			<FormButton @click="logout" danger>{{ $ts.logout }}</FormButton> | ||||
| 		</FormGroup> | ||||
| 	</div> | ||||
| 	<div class="main"> | ||||
| 		<component :is="component" :key="page" @info="onInfo" v-bind="pageProps"/> | ||||
|  | @ -55,11 +53,11 @@ | |||
| <script lang="ts"> | ||||
| import { computed, defineAsyncComponent, defineComponent, nextTick, onMounted, reactive, ref, watch } from 'vue'; | ||||
| import { i18n } from '@client/i18n'; | ||||
| import FormLink from '@client/components/form/link.vue'; | ||||
| import FormGroup from '@client/components/form/group.vue'; | ||||
| import FormBase from '@client/components/form/base.vue'; | ||||
| import FormButton from '@client/components/form/button.vue'; | ||||
| import FormInfo from '@client/components/form/info.vue'; | ||||
| import FormLink from './index.link.vue'; | ||||
| import FormGroup from '@client/components/debobigego/group.vue'; | ||||
| import FormBase from '@client/components/debobigego/base.vue'; | ||||
| import FormButton from '@client/components/debobigego/button.vue'; | ||||
| import FormInfo from '@client/components/debobigego/info.vue'; | ||||
| import { scroll } from '@client/scripts/scroll'; | ||||
| import { signout } from '@client/account'; | ||||
| import { unisonReload } from '@client/scripts/unison-reload'; | ||||
|  | @ -210,14 +208,13 @@ export default defineComponent({ | |||
| .vvcocwet { | ||||
| 	&.wide { | ||||
| 		display: flex; | ||||
| 		max-width: 1100px; | ||||
| 		max-width: 1000px; | ||||
| 		margin: 0 auto; | ||||
| 		height: 100%; | ||||
| 
 | ||||
| 		> .nav { | ||||
| 			width: 32%; | ||||
| 			box-sizing: border-box; | ||||
| 			border-right: solid 0.5px var(--divider); | ||||
| 			overflow: auto; | ||||
| 		} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue