sharkey/src/client/app/auth/script.ts

31 lines
421 B
TypeScript
Raw Normal View History

2018-02-28 00:11:28 +09:00
/**
* Authorize Form
*/
2018-04-16 06:31:56 +09:00
import VueRouter from 'vue-router';
2018-02-28 00:11:28 +09:00
// Style
import './style.styl';
import init from '../init';
import Index from './views/index.vue';
/**
* init
*/
2018-04-16 06:31:56 +09:00
init(launch => {
2018-02-28 00:11:28 +09:00
document.title = 'Misskey | アプリの連携';
2018-04-16 06:31:56 +09:00
// Init router
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/:token', component: Index },
]
});
2018-02-28 00:11:28 +09:00
2018-04-16 06:31:56 +09:00
// Launch the app
launch(router);
2018-02-28 00:11:28 +09:00
});