1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-16 23:58:59 +09:00
cherrypick/src/client/app/auth/script.ts

32 lines
503 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';
2018-08-07 13:25:50 +09:00
import * as config from '../config';
2018-02-28 00:11:28 +09:00
/**
* init
*/
2018-04-16 06:31:56 +09:00
init(launch => {
2018-08-07 13:25:50 +09:00
document.title = `${config.name} | %i18n:common.application-authorization%`;
2018-02-28 00:11:28 +09:00
2018-04-16 06:31:56 +09:00
// Init router
const router = new VueRouter({
mode: 'history',
2018-05-29 23:56:44 +09:00
base: '/auth/',
2018-04-16 06:31:56 +09:00
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
});