You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
|
|
import './themes/app.mat.styl'
|
|
import 'quasar-extras/roboto-font';
|
|
import 'quasar-extras/material-icons'
|
|
import 'quasar-extras/fontawesome'
|
|
import 'quasar-extras/animate'
|
|
|
|
import _ from 'lodash'
|
|
import Vue from 'vue'
|
|
import VueResource from 'vue-resource'
|
|
import Quasar from 'quasar-framework'
|
|
import { store } from './store'
|
|
import { i18n } from './i18n'
|
|
import router from './router'
|
|
import { sync } from 'vuex-router-sync'
|
|
import { RtcEngineCall } from './plugins/call'
|
|
import App from './App.vue'
|
|
import './filters'
|
|
|
|
Vue.config.productionTip = false;
|
|
Vue.use(Quasar);
|
|
Vue.use(VueResource);
|
|
Vue.use(RtcEngineCall);
|
|
|
|
sync(store, router);
|
|
|
|
Vue.http.interceptors.push(function(request, next) {
|
|
var jwt = localStorage.getItem('jwt');
|
|
if(!_.isEmpty(jwt)) {
|
|
request.headers.set('Authorization', 'Bearer ' + jwt);
|
|
}
|
|
if(request.method === 'POST' && _.isEmpty(request.body)) {
|
|
request.body = {};
|
|
}
|
|
next();
|
|
});
|
|
|
|
Quasar.start(() => {
|
|
new Vue({
|
|
el: '#q-app',
|
|
i18n,
|
|
store,
|
|
router,
|
|
render: h => h(App)
|
|
})
|
|
});
|