summaryrefslogtreecommitdiff
path: root/src/client/init.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-03 17:00:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-03 17:00:47 +0900
commitd7085b17fec7c55339efacb9e072f2228e1fc97a (patch)
treec4e263455e4e1aa88071c5b58acb3da45874b5e6 /src/client/init.ts
parentTweak page window initial size (diff)
downloadsharkey-d7085b17fec7c55339efacb9e072f2228e1fc97a.tar.gz
sharkey-d7085b17fec7c55339efacb9e072f2228e1fc97a.tar.bz2
sharkey-d7085b17fec7c55339efacb9e072f2228e1fc97a.zip
wip: Desktop UI
Diffstat (limited to 'src/client/init.ts')
-rw-r--r--src/client/init.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/init.ts b/src/client/init.ts
index f93252e793..cc97947c0a 100644
--- a/src/client/init.ts
+++ b/src/client/init.ts
@@ -4,13 +4,13 @@
import '@/style.scss';
-import { createApp, defineAsyncComponent } from 'vue';
+import { createApp } from 'vue';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import widgets from './widgets';
import directives from './directives';
import components from '@/components';
-import { version, apiUrl, deckmode } from '@/config';
+import { version, apiUrl, ui } from '@/config';
import { store } from './store';
import { router } from './router';
import { applyTheme } from '@/scripts/theme';
@@ -154,7 +154,8 @@ stream.init(store.state.i);
const app = createApp(await (
window.location.search === '?zen' ? import('@/ui/zen.vue') :
!store.getters.isSignedIn ? import('@/ui/visitor.vue') :
- deckmode ? import('@/ui/deck.vue') :
+ ui === 'deck' ? import('@/ui/deck.vue') :
+ ui === 'desktop' ? import('@/ui/desktop.vue') :
import('@/ui/default.vue')
).then(x => x.default));