35 lines
695 B
JavaScript
35 lines
695 B
JavaScript
/* (1) Imports
|
|
---------------------------------------------------------*/
|
|
/* (1) NPM libs */
|
|
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import routes from '../routes/settings'
|
|
|
|
/* (2) Vues */
|
|
import wrapper_vue from '../vue/wrapper.vue'
|
|
|
|
/* (3) Data */
|
|
require('../data/common');
|
|
require('../data/settings');
|
|
|
|
|
|
|
|
|
|
/* (2) Initialisation
|
|
---------------------------------------------------------*/
|
|
/* (1) Init Router */
|
|
const router = new VueRouter({
|
|
mode: 'history',
|
|
routes: routes[0]
|
|
});
|
|
|
|
/* (2) Store router in gstore */
|
|
gstore.add('router', router);
|
|
|
|
/* (3) Render view */
|
|
Vue.use(VueRouter);
|
|
new Vue({
|
|
el: '#main-vue',
|
|
router,
|
|
render: h => h(wrapper_vue)
|
|
}); |