mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-03 17:28:33 +09:00
wip
This commit is contained in:
parent
f339d028d2
commit
29b1541a8e
3
src/web/app/app.vue
Normal file
3
src/web/app/app.vue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<router-view></router-view>
|
||||||
|
</template>
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user