2018-03-07 14:28:48 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
import axios from 'axios'
|
2018-03-08 09:41:39 +01:00
|
|
|
import ElementUI from 'element-ui'
|
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
2018-09-22 15:29:14 +02:00
|
|
|
import locale from 'element-ui/lib/locale/lang/en'
|
2018-03-09 07:21:25 +01:00
|
|
|
import 'vue-awesome/icons'
|
|
|
|
import Icon from 'vue-awesome/components/Icon'
|
2018-04-15 10:45:14 +02:00
|
|
|
import Popper from 'vue-popperjs'
|
|
|
|
import 'vue-popperjs/dist/css/vue-popper.css'
|
2018-04-22 15:07:58 +02:00
|
|
|
import { sync } from 'vuex-router-sync'
|
|
|
|
import shortkey from 'vue-shortkey'
|
2018-08-10 14:49:12 +02:00
|
|
|
import VueI18Next from '@panter/vue-i18next'
|
2018-03-07 14:28:48 +01:00
|
|
|
|
2018-03-26 03:51:30 +02:00
|
|
|
import './assets/fonts/fonts.css'
|
2018-03-07 14:28:48 +01:00
|
|
|
import App from './App'
|
|
|
|
import router from './router'
|
|
|
|
import store from './store'
|
2018-08-12 16:17:57 +02:00
|
|
|
import i18next from '~/src/config/i18n'
|
2018-03-07 14:28:48 +01:00
|
|
|
|
2018-09-22 15:29:14 +02:00
|
|
|
Vue.use(ElementUI, { locale })
|
2018-04-22 15:07:58 +02:00
|
|
|
Vue.use(shortkey)
|
2018-08-10 14:49:12 +02:00
|
|
|
Vue.use(VueI18Next)
|
2018-03-09 07:21:25 +01:00
|
|
|
Vue.component('icon', Icon)
|
2018-04-15 10:45:14 +02:00
|
|
|
Vue.component('popper', Popper)
|
2018-03-08 09:41:39 +01:00
|
|
|
|
2018-04-22 15:07:58 +02:00
|
|
|
sync(store, router)
|
|
|
|
|
2018-03-07 14:28:48 +01:00
|
|
|
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
|
|
|
|
Vue.http = Vue.prototype.$http = axios
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
2018-08-10 14:49:12 +02:00
|
|
|
const i18n = new VueI18Next(i18next)
|
|
|
|
|
2018-03-07 14:28:48 +01:00
|
|
|
/* eslint-disable no-new */
|
|
|
|
new Vue({
|
|
|
|
components: { App },
|
2018-08-10 14:49:12 +02:00
|
|
|
i18n: i18n,
|
2018-03-07 14:28:48 +01:00
|
|
|
router,
|
|
|
|
store,
|
|
|
|
template: '<App/>'
|
|
|
|
}).$mount('#app')
|