1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-11 21:29:13 +09:00
This commit is contained in:
syuilo 2018-02-10 10:52:26 +09:00
parent f339d028d2
commit 29b1541a8e
3 changed files with 15 additions and 2 deletions

3
src/web/app/app.vue Normal file
View File

@ -0,0 +1,3 @@
<template>
<router-view></router-view>
</template>

View File

@ -62,6 +62,11 @@ export default class MiOS extends EventEmitter {
serverStream: ServerStreamManager; serverStream: ServerStreamManager;
requestsStream: RequestsStreamManager; requestsStream: RequestsStreamManager;
messagingIndexStream: MessagingIndexStreamManager; messagingIndexStream: MessagingIndexStreamManager;
} = {
driveStream: null,
serverStream: null,
requestsStream: null,
messagingIndexStream: null
}; };
/** /**

View File

@ -12,6 +12,8 @@ import VueRouter from 'vue-router';
Vue.use(VueRouter); Vue.use(VueRouter);
import App from './app.vue';
import checkForUpdate from './common/scripts/check-for-update'; import checkForUpdate from './common/scripts/check-for-update';
import MiOS from './common/mios'; import MiOS from './common/mios';
@ -64,10 +66,13 @@ export default (callback, sw = false) => {
mios.init(() => { mios.init(() => {
// アプリ基底要素マウント // アプリ基底要素マウント
document.body.innerHTML = '<div id="app"><router-view></router-view></div>'; document.body.innerHTML = '<div id="app"></div>';
const app = new Vue({ const app = new Vue({
router: new VueRouter() router: new VueRouter({
mode: 'history'
}),
render: createEl => createEl(App)
}).$mount('#app'); }).$mount('#app');
try { try {