Whalebird-desktop-client-ma.../src/renderer/main.js

42 lines
1.0 KiB
JavaScript
Raw Normal View History

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'
import locale from 'element-ui/lib/locale/lang/en'
import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'
import Popper from 'vue-popperjs'
import 'vue-popperjs/dist/css/vue-popper.css'
import { sync } from 'vuex-router-sync'
import shortkey from 'vue-shortkey'
import VueI18Next from '@panter/vue-i18next'
2018-03-07 14:28:48 +01: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'
import i18next from '~/src/config/i18n'
2018-03-07 14:28:48 +01:00
Vue.use(ElementUI, { locale })
Vue.use(shortkey)
Vue.use(VueI18Next)
Vue.component('icon', Icon)
Vue.component('popper', Popper)
2018-03-08 09:41:39 +01: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
const i18n = new VueI18Next(i18next)
2018-03-07 14:28:48 +01:00
/* eslint-disable no-new */
new Vue({
components: { App },
i18n: i18n,
2018-03-07 14:28:48 +01:00
router,
store,
template: '<App/>'
}).$mount('#app')