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'
|
2018-01-09 22:31:07 -05:00
|
|
|
import { webFrame } from 'electron'
|
2017-12-07 01:33:14 -05:00
|
|
|
import './assets/fonts/iconfont.css'
|
2018-06-26 09:11:04 -04:00
|
|
|
import VueLazyLoad from 'vue-lazyload'
|
|
|
|
|
2017-11-27 19:21:12 -05:00
|
|
|
Vue.use(ElementUI)
|
2018-06-26 09:11:04 -04:00
|
|
|
Vue.use(VueLazyLoad)
|
2017-11-27 19:21:12 -05:00
|
|
|
|
2018-01-09 22:31:07 -05:00
|
|
|
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-12-23 10:15:00 -05:00
|
|
|
Vue.prototype.$builtInPicBed = [
|
|
|
|
'smms',
|
|
|
|
'weibo',
|
|
|
|
'imgur',
|
|
|
|
'qiniu',
|
|
|
|
'tcyun',
|
|
|
|
'upyun',
|
|
|
|
'aliyun',
|
|
|
|
'github'
|
|
|
|
]
|
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')
|