24 lines
368 B
TypeScript
24 lines
368 B
TypeScript
|
import VueRouter from 'vue-router';
|
||
|
|
||
|
// Style
|
||
|
import './style.styl';
|
||
|
|
||
|
import init from '../init';
|
||
|
import Index from './views/index.vue';
|
||
|
|
||
|
init(launch => {
|
||
|
document.title = 'Misskey';
|
||
|
|
||
|
// Init router
|
||
|
const router = new VueRouter({
|
||
|
mode: 'history',
|
||
|
base: '/test/',
|
||
|
routes: [
|
||
|
{ path: '/', component: Index },
|
||
|
]
|
||
|
});
|
||
|
|
||
|
// Launch the app
|
||
|
launch(router);
|
||
|
});
|