31 lines
915 B
JavaScript
31 lines
915 B
JavaScript
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import JRPCWS from './plugins/json-rpc-websocket'
|
|
import App from './App.vue'
|
|
import vuetify from './plugins/vuetify'
|
|
import routes from './routes'
|
|
import VueResource from 'vue-resource'
|
|
import './components'
|
|
import store from './store'
|
|
|
|
Vue.use(JRPCWS, 'ws://kossel.local:8080/websocket', {
|
|
store: store
|
|
});
|
|
|
|
Vue.config.productionTip = false;
|
|
Vue.use(VueRouter);
|
|
const router = new VueRouter({mode: 'history', routes});
|
|
|
|
Vue.use(VueResource);
|
|
Vue.http.headers.common['Content-Type'] = 'application/json';
|
|
Vue.http.headers.common['Access-Control-Allow-Origin'] = '*';
|
|
Vue.http.headers.common['Accept'] = 'application/json, text/plain, */*';
|
|
Vue.http.headers.common['Access-Control-Allow-Headers'] = 'Origin, Accept, Content-Type, Authorization, Access-Control-Allow-Origin';
|
|
|
|
new Vue({
|
|
vuetify,
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
}).$mount('#app')
|