mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
23 lines
514 B
JavaScript
23 lines
514 B
JavaScript
var Vue = require('vue');
|
|
var VueRouter = require('vue-router');
|
|
|
|
Vue.use(VueRouter)
|
|
Vue.use(require('vue-resource'));
|
|
Vue.http.headers.common['X-CSRF-TOKEN'] = $('.token').attr('content');
|
|
|
|
var app = Vue.extend({
|
|
components: {
|
|
inner: require('./modules/inner/components/inner'),
|
|
landing: require('./modules/landing/components/landing')
|
|
}
|
|
});
|
|
|
|
var routes = require('./routes');
|
|
var router = new VueRouter(routes.options);
|
|
|
|
router.map(routes.maps);
|
|
router.start(app, 'body');
|
|
|
|
new Vue({
|
|
el: 'body'
|
|
}); |