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