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-22 09:57:22 +00:00
|
|
|
inner: require('./components/inner'),
|
|
|
|
landing: require('./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'
|
|
|
|
});
|