PicList/src/renderer/main.js

30 lines
767 B
JavaScript
Raw Normal View History

2017-11-27 19:21:12 -05:00
import Vue from 'vue'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import store from './store'
import db from '../datastore/index'
import { webFrame } from 'electron'
2017-12-07 01:33:14 -05:00
import './assets/fonts/iconfont.css'
2018-05-02 07:06:10 -04:00
import picBed from '../datastore/pic-bed'
2017-11-27 19:21:12 -05:00
Vue.use(ElementUI)
webFrame.setVisualZoomLevelLimits(1, 1)
webFrame.setLayoutZoomLevelLimits(0, 0)
2017-11-27 19:21:12 -05:00
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.prototype.$db = db
2018-04-28 04:22:35 -04:00
Vue.prototype.$picBed = picBed
2017-11-27 19:21:12 -05:00
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
components: { App },
router,
store,
template: '<App/>'
}).$mount('#app')