2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
<template>
|
2022-06-20 17:38:49 +09:00
|
|
|
<MkStickyContainer>
|
|
|
|
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
2023-05-19 20:52:15 +09:00
|
|
|
<MkSpacer :contentMax="900" :marginMin="20" :marginMax="32">
|
2022-06-20 17:38:49 +09:00
|
|
|
<div ref="el" class="vvcocwet" :class="{ wide: !narrow }">
|
|
|
|
<div class="body">
|
2022-07-20 19:59:27 +09:00
|
|
|
<div v-if="!narrow || currentPage?.route.name == null" class="nav">
|
2022-06-20 17:38:49 +09:00
|
|
|
<div class="baaadecd">
|
2022-07-20 22:24:26 +09:00
|
|
|
<MkInfo v-if="emailNotConfigured" warn class="info">{{ i18n.ts.emailNotConfiguredWarning }} <MkA to="/settings/email" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
|
2023-03-19 20:28:19 +09:00
|
|
|
<MkSuperMenu :def="menuDef" :grid="narrow"></MkSuperMenu>
|
2022-06-20 17:38:49 +09:00
|
|
|
</div>
|
2021-12-10 11:56:23 +09:00
|
|
|
</div>
|
2022-07-20 19:59:27 +09:00
|
|
|
<div v-if="!(narrow && currentPage?.route.name == null)" class="main">
|
2022-12-28 18:02:11 +09:00
|
|
|
<div class="bkzroven" style="container-type: inline-size;">
|
2022-07-20 19:59:27 +09:00
|
|
|
<RouterView/>
|
2022-06-20 17:38:49 +09:00
|
|
|
</div>
|
2021-12-10 11:56:23 +09:00
|
|
|
</div>
|
2021-11-28 20:07:37 +09:00
|
|
|
</div>
|
2021-12-10 11:56:23 +09:00
|
|
|
</div>
|
2022-06-20 17:38:49 +09:00
|
|
|
</MkSpacer>
|
2023-11-02 08:46:46 +09:00
|
|
|
</MkStickyContainer>
|
2020-10-17 20:12:00 +09:00
|
|
|
</template>
|
|
|
|
|
2022-03-06 19:17:43 +09:00
|
|
|
<script setup lang="ts">
|
2023-02-16 23:09:41 +09:00
|
|
|
import { computed, onActivated, onMounted, onUnmounted, ref, shallowRef, watch } from 'vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { i18n } from '@/i18n.js';
|
2022-09-06 18:21:49 +09:00
|
|
|
import MkInfo from '@/components/MkInfo.vue';
|
|
|
|
import MkSuperMenu from '@/components/MkSuperMenu.vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { signout, $i } from '@/account.js';
|
|
|
|
import { unisonReload } from '@/scripts/unison-reload.js';
|
|
|
|
import { instance } from '@/instance.js';
|
|
|
|
import { useRouter } from '@/router.js';
|
|
|
|
import { definePageMetadata, provideMetadataReceiver } from '@/scripts/page-metadata.js';
|
|
|
|
import * as os from '@/os.js';
|
|
|
|
import { miLocalStorage } from '@/local-storage.js';
|
|
|
|
import { fetchCustomEmojis } from '@/custom-emojis.js';
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2022-03-06 19:17:43 +09:00
|
|
|
const indexInfo = {
|
|
|
|
title: i18n.ts.settings,
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-gear ph-bold pg-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
hideHeader: true,
|
|
|
|
};
|
|
|
|
const INFO = ref(indexInfo);
|
2023-01-03 10:12:37 +09:00
|
|
|
const el = shallowRef<HTMLElement | null>(null);
|
2022-03-06 19:17:43 +09:00
|
|
|
const childInfo = ref(null);
|
2022-04-23 19:17:15 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const router = useRouter();
|
2022-04-23 19:17:15 +09:00
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
let narrow = $ref(false);
|
2022-04-23 19:17:15 +09:00
|
|
|
const NARROW_THRESHOLD = 600;
|
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
let currentPage = $computed(() => router.currentRef.value.child);
|
|
|
|
|
2022-04-23 19:17:15 +09:00
|
|
|
const ro = new ResizeObserver((entries, observer) => {
|
|
|
|
if (entries.length === 0) return;
|
2022-07-20 19:59:27 +09:00
|
|
|
narrow = entries[0].borderBoxSize[0].inlineSize < NARROW_THRESHOLD;
|
2022-04-23 19:17:15 +09:00
|
|
|
});
|
|
|
|
|
2022-03-06 19:17:43 +09:00
|
|
|
const menuDef = computed(() => [{
|
|
|
|
title: i18n.ts.basicSettings,
|
|
|
|
items: [{
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-user ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.profile,
|
|
|
|
to: '/settings/profile',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'profile',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-lock ph-bold ph-lg-open',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.privacy,
|
|
|
|
to: '/settings/privacy',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'privacy',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-smiley ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.reaction,
|
|
|
|
to: '/settings/reaction',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'reaction',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-cloud ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.drive,
|
|
|
|
to: '/settings/drive',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'drive',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-bell ph-bold pg-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.notifications,
|
|
|
|
to: '/settings/notifications',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'notifications',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-envelope ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.email,
|
|
|
|
to: '/settings/email',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'email',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-lock ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.security,
|
|
|
|
to: '/settings/security',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'security',
|
2022-03-06 19:17:43 +09:00
|
|
|
}],
|
|
|
|
}, {
|
|
|
|
title: i18n.ts.clientSettings,
|
|
|
|
items: [{
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-faders ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.general,
|
|
|
|
to: '/settings/general',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'general',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-palette ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.theme,
|
|
|
|
to: '/settings/theme',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'theme',
|
2022-07-03 14:40:02 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-list ph-bold ph-lg-2',
|
2022-07-14 17:42:12 +09:00
|
|
|
text: i18n.ts.navbar,
|
|
|
|
to: '/settings/navbar',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'navbar',
|
2022-07-14 17:42:12 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-equals ph-bold ph-lg',
|
2022-07-03 14:40:02 +09:00
|
|
|
text: i18n.ts.statusbar,
|
2022-07-20 19:59:27 +09:00
|
|
|
to: '/settings/statusbar',
|
|
|
|
active: currentPage?.route.name === 'statusbar',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-music-notes ph-bold pg-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.sounds,
|
|
|
|
to: '/settings/sounds',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'sounds',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-plug ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.plugins,
|
|
|
|
to: '/settings/plugin',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'plugin',
|
2022-03-06 19:17:43 +09:00
|
|
|
}],
|
|
|
|
}, {
|
|
|
|
title: i18n.ts.otherSettings,
|
|
|
|
items: [{
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-seal-check ph-bold pg-lg',
|
2023-03-12 16:39:16 +09:00
|
|
|
text: i18n.ts.roles,
|
|
|
|
to: '/settings/roles',
|
|
|
|
active: currentPage?.route.name === 'roles',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-prohibit ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.muteAndBlock,
|
|
|
|
to: '/settings/mute-block',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'mute-block',
|
2022-03-06 19:17:43 +09:00
|
|
|
}, {
|
2023-10-01 23:07:50 +09:00
|
|
|
icon: 'ph-key ph-bold pg-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: 'API',
|
|
|
|
to: '/settings/api',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'api',
|
2022-04-02 15:28:49 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-webhooks-logo ph-bold ph-lg',
|
2022-04-02 15:28:49 +09:00
|
|
|
text: 'Webhook',
|
|
|
|
to: '/settings/webhook',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'webhook',
|
2023-04-08 14:31:09 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-package ph-bold ph-lg',
|
2023-04-08 14:31:09 +09:00
|
|
|
text: i18n.ts.importAndExport,
|
|
|
|
to: '/settings/import-export',
|
|
|
|
active: currentPage?.route.name === 'import-export',
|
enhance: account migration (#10592)
* copy block and mute then create follow and unfollow jobs
* copy block and mute and update lists when detecting an account has moved
* no need to care promise orders
* refactor updating actor and target
* automatically accept if a locked account had accepted an old account
* fix exception format
* prevent the old account from calling some endpoints
* do not unfollow when moving
* adjust following and follower counts
* check movedToUri when receiving a follow request
* skip if no need to adjust
* Revert "disable account migration"
This reverts commit 2321214c98591bcfe1385c1ab5bf0ff7b471ae1d.
* fix translation specifier
* fix checking alsoKnownAs and uri
* fix updating account
* fix refollowing locked account
* decrease followersCount if followed by the old account
* adjust following and followers counts when unfollowing
* fix copying mutings
* prohibit moved account from moving again
* fix move service
* allow app creation after moving
* fix lint
* remove unnecessary field
* fix cache update
* add e2e test
* add e2e test of accepting the new account automatically
* force follow if any error happens
* remove unnecessary joins
* use Array.map instead of for const of
* ユーザーリストの移行は追加のみを行う
* nanka iroiro
* fix misskey-js?
* :v:
* 移行を行ったアカウントからのフォローリクエストの自動許可を調整
* newUriを外に出す
* newUriを外に出す2
* clean up
* fix newUri
* prevent moving if the destination account has already moved
* set alsoKnownAs via /i/update
* fix database initialization
* add return type
* prohibit updating alsoKnownAs after moving
* skip to add to alsoKnownAs if toUrl is known
* skip adding to the list if it already has
* use Acct.parse instead
* rename error code
* :art:
* 制限を5から10に緩和
* movedTo(Uri), alsoKnownAsはユーザーidを返すように
* test api res
* fix
* 元アカウントはミュートし続ける
* :art:
* unfollow
* fix
* getUserUriをUserEntityServiceに
* ?
* job!
* :art:
* instance => server
* accountMovedShort, forbiddenBecauseYouAreMigrated
* accountMovedShort
* fix test
* import, pin禁止
* 実績を凍結する
* clean up
* :v:
* change message
* ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに
* Revert "ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに"
This reverts commit 3bd7be35d8aa455cb01ae58f8172a71a50485db1.
* validateAlsoKnownAs
* 移行後2時間以内はインポート可能なファイルサイズを拡大
* clean up
* どうせactorをupdatePersonで更新するならupdatePersonしか移行処理を発行しないことにする
* handle error?
* リモートからの移行処理の条件を是正
* log, port
* fix
* fix
* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように
* refactor (use checkHttps)
* MISSKEY_WEBFINGER_USE_HTTP
* Environment Variable readme
* NEVER USE IN PRODUCTION
* fix punyHost
* fix indent
* fix
* experimental
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-30 00:09:29 +09:00
|
|
|
}, {
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-airplane ph-bold ph-lg',
|
2023-07-11 14:56:56 +09:00
|
|
|
text: `${i18n.ts.accountMigration}`,
|
2023-04-08 14:31:09 +09:00
|
|
|
to: '/settings/migration',
|
|
|
|
active: currentPage?.route.name === 'migration',
|
enhance: account migration (#10592)
* copy block and mute then create follow and unfollow jobs
* copy block and mute and update lists when detecting an account has moved
* no need to care promise orders
* refactor updating actor and target
* automatically accept if a locked account had accepted an old account
* fix exception format
* prevent the old account from calling some endpoints
* do not unfollow when moving
* adjust following and follower counts
* check movedToUri when receiving a follow request
* skip if no need to adjust
* Revert "disable account migration"
This reverts commit 2321214c98591bcfe1385c1ab5bf0ff7b471ae1d.
* fix translation specifier
* fix checking alsoKnownAs and uri
* fix updating account
* fix refollowing locked account
* decrease followersCount if followed by the old account
* adjust following and followers counts when unfollowing
* fix copying mutings
* prohibit moved account from moving again
* fix move service
* allow app creation after moving
* fix lint
* remove unnecessary field
* fix cache update
* add e2e test
* add e2e test of accepting the new account automatically
* force follow if any error happens
* remove unnecessary joins
* use Array.map instead of for const of
* ユーザーリストの移行は追加のみを行う
* nanka iroiro
* fix misskey-js?
* :v:
* 移行を行ったアカウントからのフォローリクエストの自動許可を調整
* newUriを外に出す
* newUriを外に出す2
* clean up
* fix newUri
* prevent moving if the destination account has already moved
* set alsoKnownAs via /i/update
* fix database initialization
* add return type
* prohibit updating alsoKnownAs after moving
* skip to add to alsoKnownAs if toUrl is known
* skip adding to the list if it already has
* use Acct.parse instead
* rename error code
* :art:
* 制限を5から10に緩和
* movedTo(Uri), alsoKnownAsはユーザーidを返すように
* test api res
* fix
* 元アカウントはミュートし続ける
* :art:
* unfollow
* fix
* getUserUriをUserEntityServiceに
* ?
* job!
* :art:
* instance => server
* accountMovedShort, forbiddenBecauseYouAreMigrated
* accountMovedShort
* fix test
* import, pin禁止
* 実績を凍結する
* clean up
* :v:
* change message
* ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに
* Revert "ブロック, フォロー, ミュート, リストのインポートファイルの制限を32MiBに"
This reverts commit 3bd7be35d8aa455cb01ae58f8172a71a50485db1.
* validateAlsoKnownAs
* 移行後2時間以内はインポート可能なファイルサイズを拡大
* clean up
* どうせactorをupdatePersonで更新するならupdatePersonしか移行処理を発行しないことにする
* handle error?
* リモートからの移行処理の条件を是正
* log, port
* fix
* fix
* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように
* refactor (use checkHttps)
* MISSKEY_WEBFINGER_USE_HTTP
* Environment Variable readme
* NEVER USE IN PRODUCTION
* fix punyHost
* fix indent
* fix
* experimental
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-04-30 00:09:29 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-dots-three ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.other,
|
|
|
|
to: '/settings/other',
|
2022-07-20 19:59:27 +09:00
|
|
|
active: currentPage?.route.name === 'other',
|
2022-03-06 19:17:43 +09:00
|
|
|
}],
|
|
|
|
}, {
|
|
|
|
items: [{
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-floppy-disk ph-bold pg-lg',
|
2022-07-31 21:55:20 +09:00
|
|
|
text: i18n.ts.preferencesBackups,
|
|
|
|
to: '/settings/preferences-backups',
|
|
|
|
active: currentPage?.route.name === 'preferences-backups',
|
|
|
|
}, {
|
2022-03-06 19:17:43 +09:00
|
|
|
type: 'button',
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-trash ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.clearCache,
|
2023-01-27 11:28:51 +09:00
|
|
|
action: async () => {
|
|
|
|
os.waiting();
|
2023-01-07 10:13:02 +09:00
|
|
|
miLocalStorage.removeItem('locale');
|
|
|
|
miLocalStorage.removeItem('theme');
|
2023-01-09 15:50:25 +09:00
|
|
|
miLocalStorage.removeItem('emojis');
|
|
|
|
miLocalStorage.removeItem('lastEmojisFetchedAt');
|
2023-02-23 19:29:20 +09:00
|
|
|
await fetchCustomEmojis(true);
|
2022-03-06 19:17:43 +09:00
|
|
|
unisonReload();
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
type: 'button',
|
2023-10-01 07:46:42 +09:00
|
|
|
icon: 'ph-power ph-bold ph-lg',
|
2022-03-06 19:17:43 +09:00
|
|
|
text: i18n.ts.logout,
|
2022-06-30 15:09:10 +09:00
|
|
|
action: async () => {
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'warning',
|
|
|
|
text: i18n.ts.logoutConfirm,
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
2022-03-06 19:17:43 +09:00
|
|
|
signout();
|
|
|
|
},
|
|
|
|
danger: true,
|
2022-06-20 17:38:49 +09:00
|
|
|
}],
|
2022-03-06 19:17:43 +09:00
|
|
|
}]);
|
2021-10-09 12:33:08 +09:00
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
watch($$(narrow), () => {
|
2022-03-06 19:17:43 +09:00
|
|
|
});
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
onMounted(() => {
|
|
|
|
ro.observe(el.value);
|
2021-01-11 20:38:34 +09:00
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
narrow = el.value.offsetWidth < NARROW_THRESHOLD;
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
if (!narrow && currentPage?.route.name == null) {
|
|
|
|
router.replace('/settings/profile');
|
2022-04-23 19:17:15 +09:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
onActivated(() => {
|
|
|
|
narrow = el.value.offsetWidth < NARROW_THRESHOLD;
|
2022-04-23 19:17:15 +09:00
|
|
|
|
2022-07-20 19:59:27 +09:00
|
|
|
if (!narrow && currentPage?.route.name == null) {
|
|
|
|
router.replace('/settings/profile');
|
2022-03-06 19:17:43 +09:00
|
|
|
}
|
|
|
|
});
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2022-04-23 19:17:15 +09:00
|
|
|
onUnmounted(() => {
|
|
|
|
ro.disconnect();
|
|
|
|
});
|
|
|
|
|
2023-03-19 20:28:19 +09:00
|
|
|
watch(router.currentRef, (to) => {
|
2023-04-08 14:31:09 +09:00
|
|
|
if (to.route.name === 'settings' && to.child?.route.name == null && !narrow) {
|
2023-03-19 20:28:19 +09:00
|
|
|
router.replace('/settings/profile');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2022-03-06 19:17:43 +09:00
|
|
|
const emailNotConfigured = computed(() => instance.enableEmail && ($i.email == null || !$i.emailVerified));
|
2021-05-04 17:09:57 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
provideMetadataReceiver((info) => {
|
|
|
|
if (info == null) {
|
2022-04-23 19:17:15 +09:00
|
|
|
childInfo.value = null;
|
|
|
|
} else {
|
2022-06-20 17:38:49 +09:00
|
|
|
childInfo.value = info;
|
2022-04-23 19:17:15 +09:00
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
});
|
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerActions = $computed(() => []);
|
2021-10-02 23:11:21 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerTabs = $computed(() => []);
|
2021-10-02 00:51:37 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
definePageMetadata(INFO);
|
2022-07-14 17:42:12 +09:00
|
|
|
// w 890
|
|
|
|
// h 700
|
2022-06-20 17:38:49 +09:00
|
|
|
</script>
|
2021-11-28 20:07:37 +09:00
|
|
|
|
2022-12-27 18:29:39 +09:00
|
|
|
<style lang="scss" scoped>
|
2022-06-20 17:38:49 +09:00
|
|
|
.vvcocwet {
|
2021-12-10 11:56:23 +09:00
|
|
|
> .body {
|
2020-10-17 20:12:00 +09:00
|
|
|
> .nav {
|
2021-10-24 20:16:55 +09:00
|
|
|
.baaadecd {
|
2021-12-10 11:56:23 +09:00
|
|
|
> .info {
|
|
|
|
margin: 16px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .accounts {
|
|
|
|
> .avatar {
|
|
|
|
display: block;
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
margin: 8px auto 16px auto;
|
|
|
|
}
|
2021-10-24 20:16:55 +09:00
|
|
|
}
|
2021-10-16 15:00:55 +09:00
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
2021-11-28 20:07:37 +09:00
|
|
|
.bkzroven {
|
2021-12-10 11:56:23 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.wide {
|
|
|
|
> .body {
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
> .nav {
|
|
|
|
width: 34%;
|
|
|
|
padding-right: 32px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
2021-11-28 20:07:37 +09:00
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|