diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-06-20 17:38:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 17:38:49 +0900 |
| commit | 699f24f3dcdb156838eb70602885c0b2cdd02cbc (patch) | |
| tree | 45b28eeadbb7d9e7f3847bd04f75ed010153619a /packages/client/src/init.ts | |
| parent | refactor: チャットルームをComposition API化 (#8850) (diff) | |
| download | misskey-699f24f3dcdb156838eb70602885c0b2cdd02cbc.tar.gz misskey-699f24f3dcdb156838eb70602885c0b2cdd02cbc.tar.bz2 misskey-699f24f3dcdb156838eb70602885c0b2cdd02cbc.zip | |
refactor(client): Refine routing (#8846)
Diffstat (limited to 'packages/client/src/init.ts')
| -rw-r--r-- | packages/client/src/init.ts | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index bb6176e409..a11dd2d050 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -21,7 +21,6 @@ import widgets from '@/widgets'; import directives from '@/directives'; import components from '@/components'; import { version, ui, lang, host } from '@/config'; -import { router } from '@/router'; import { applyTheme } from '@/scripts/theme'; import { isDeviceDarkmode } from '@/scripts/is-device-darkmode'; import { i18n } from '@/i18n'; @@ -170,11 +169,10 @@ fetchInstanceMetaPromise.then(() => { const app = createApp( window.location.search === '?zen' ? defineAsyncComponent(() => import('@/ui/zen.vue')) : - !$i ? defineAsyncComponent(() => import('@/ui/visitor.vue')) : - ui === 'deck' ? defineAsyncComponent(() => import('@/ui/deck.vue')) : - ui === 'desktop' ? defineAsyncComponent(() => import('@/ui/desktop.vue')) : - ui === 'classic' ? defineAsyncComponent(() => import('@/ui/classic.vue')) : - defineAsyncComponent(() => import('@/ui/universal.vue')) + !$i ? defineAsyncComponent(() => import('@/ui/visitor.vue')) : + ui === 'deck' ? defineAsyncComponent(() => import('@/ui/deck.vue')) : + ui === 'classic' ? defineAsyncComponent(() => import('@/ui/classic.vue')) : + defineAsyncComponent(() => import('@/ui/universal.vue')), ); if (_DEV_) { @@ -189,14 +187,10 @@ app.config.globalProperties = { $ts: i18n.ts, }; -app.use(router); - widgets(app); directives(app); components(app); -await router.isReady(); - const splash = document.getElementById('splash'); // 念のためnullチェック(HTMLが古い場合があるため(そのうち消す)) if (splash) splash.addEventListener('transitionend', () => { |