summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/script.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-10 14:56:33 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-10 14:56:33 +0900
commit08ee9e4eaffa4b6809440ec2cbe4daad084c00df (patch)
treee07b083068569ff26c8df29cbb949d29f5cbd648 /src/web/app/desktop/script.ts
parentwip (diff)
downloadsharkey-08ee9e4eaffa4b6809440ec2cbe4daad084c00df.tar.gz
sharkey-08ee9e4eaffa4b6809440ec2cbe4daad084c00df.tar.bz2
sharkey-08ee9e4eaffa4b6809440ec2cbe4daad084c00df.zip
wip
Diffstat (limited to 'src/web/app/desktop/script.ts')
-rw-r--r--src/web/app/desktop/script.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/web/app/desktop/script.ts b/src/web/app/desktop/script.ts
index 4aef69b077..e4e5f19140 100644
--- a/src/web/app/desktop/script.ts
+++ b/src/web/app/desktop/script.ts
@@ -5,19 +5,17 @@
// Style
import './style.styl';
-import Vue from 'vue';
import init from '../init';
import fuckAdBlock from './scripts/fuck-ad-block';
-import MiOS from '../common/mios';
import HomeStreamManager from '../common/scripts/streaming/home-stream-manager';
import composeNotification from '../common/scripts/compose-notification';
-import MkIndex from './tags/pages/index.vue';
+import MkIndex from './views/pages/index.vue';
/**
* init
*/
-init(async (mios: MiOS, app: Vue) => {
+init(async (os, launch) => {
/**
* Fuck AD Block
*/
@@ -33,12 +31,17 @@ init(async (mios: MiOS, app: Vue) => {
}
if ((Notification as any).permission == 'granted') {
- registerNotifications(mios.stream);
+ registerNotifications(os.stream);
}
}
+ // Register components
+ require('./views/components');
+
+ const app = launch();
+
app.$router.addRoutes([{
- path: '/', component: MkIndex, props: { os: mios }
+ path: '/', component: MkIndex, props: { os }
}]);
}, true);