1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-27 03:46:54 +00:00
not-gwent-online/site/client/app/app.js

23 lines
514 B
JavaScript
Raw Normal View History

2015-06-21 11:09:29 +00:00
var Vue = require('vue');
2015-06-22 16:22:34 +00:00
var VueRouter = require('vue-router');
2015-06-22 14:30:11 +00:00
2015-06-22 16:22:34 +00:00
Vue.use(VueRouter)
2015-06-21 11:09:29 +00:00
Vue.use(require('vue-resource'));
Vue.http.headers.common['X-CSRF-TOKEN'] = $('.token').attr('content');
2015-06-22 16:22:34 +00:00
var app = Vue.extend({
2015-06-21 11:09:29 +00:00
components: {
2015-06-23 08:36:29 +00:00
inner: require('./modules/inner/components/inner'),
landing: require('./modules/landing/components/landing')
2015-06-21 11:09:29 +00:00
}
});
2015-06-22 16:22:34 +00:00
var routes = require('./routes');
var router = new VueRouter(routes.options);
router.map(routes.maps);
router.start(app, 'body');
new Vue({
el: 'body'
});