mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
24 lines
393 B
JavaScript
24 lines
393 B
JavaScript
var Vue = require('vue');
|
|
var router = require('./routes');
|
|
|
|
Vue.use(require('vue-resource'));
|
|
Vue.http.headers.common['X-CSRF-TOKEN'] = $('.token').attr('content');
|
|
|
|
var app = new Vue({
|
|
|
|
el: 'body',
|
|
|
|
data: {
|
|
name: '',
|
|
view: '',
|
|
section: ''
|
|
},
|
|
|
|
components: {
|
|
landing: require('./components/landing'),
|
|
lobby: require('./components/lobby')
|
|
}
|
|
|
|
});
|
|
|
|
router.init(app); |