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

32 lines
471 B
TypeScript
Raw Normal View History

2018-02-27 16:11:28 +01:00
/**
* Authorize Form
*/
2018-04-15 23:31:56 +02:00
import VueRouter from 'vue-router';
2018-02-27 16:11:28 +01:00
// Style
import './style.styl';
import init from '../init';
import Index from './views/index.vue';
/**
* init
*/
2018-04-15 23:31:56 +02:00
init(launch => {
2018-08-02 12:03:31 +02:00
document.title = '%i18n:common.name% | %i18n:common.application-authorization%';
2018-02-27 16:11:28 +01:00
2018-04-15 23:31:56 +02:00
// Init router
const router = new VueRouter({
mode: 'history',
2018-05-29 16:56:44 +02:00
base: '/auth/',
2018-04-15 23:31:56 +02:00
routes: [
{ path: '/:token', component: Index },
]
});
2018-02-27 16:11:28 +01:00
2018-04-15 23:31:56 +02:00
// Launch the app
launch(router);
2018-02-27 16:11:28 +01:00
});