2017-11-27 19:21:12 -05:00
|
|
|
import Vue from 'vue'
|
2019-12-19 06:17:21 -05:00
|
|
|
import App from './renderer/App.vue'
|
|
|
|
import router from './renderer/router'
|
|
|
|
import db from '#/datastore/index'
|
2017-11-27 19:21:12 -05:00
|
|
|
import ElementUI from 'element-ui'
|
2018-01-09 22:31:07 -05:00
|
|
|
import { webFrame } from 'electron'
|
2019-12-19 06:17:21 -05:00
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
2018-06-26 09:11:04 -04:00
|
|
|
import VueLazyLoad from 'vue-lazyload'
|
2019-12-26 07:15:41 -05:00
|
|
|
import axios from 'axios'
|
|
|
|
import mainMixin from './renderer/utils/mainMixin'
|
2020-02-21 09:25:48 -05:00
|
|
|
import bus from '@/utils/bus'
|
2018-06-26 09:11:04 -04:00
|
|
|
|
2018-01-09 22:31:07 -05:00
|
|
|
webFrame.setVisualZoomLevelLimits(1, 1)
|
|
|
|
webFrame.setLayoutZoomLevelLimits(0, 0)
|
|
|
|
|
2019-12-19 06:17:21 -05:00
|
|
|
Vue.config.productionTip = false
|
2018-12-23 10:15:00 -05:00
|
|
|
Vue.prototype.$builtInPicBed = [
|
|
|
|
'smms',
|
|
|
|
'weibo',
|
|
|
|
'imgur',
|
|
|
|
'qiniu',
|
|
|
|
'tcyun',
|
|
|
|
'upyun',
|
|
|
|
'aliyun',
|
|
|
|
'github'
|
|
|
|
]
|
2019-12-19 06:17:21 -05:00
|
|
|
Vue.prototype.$db = db
|
2019-12-26 07:15:41 -05:00
|
|
|
Vue.prototype.$http = axios
|
2020-02-21 09:25:48 -05:00
|
|
|
Vue.prototype.$bus = bus
|
2019-12-19 06:17:21 -05:00
|
|
|
|
|
|
|
Vue.use(ElementUI)
|
|
|
|
Vue.use(VueLazyLoad)
|
2019-12-26 07:15:41 -05:00
|
|
|
Vue.mixin(mainMixin)
|
2017-11-27 19:21:12 -05:00
|
|
|
|
|
|
|
new Vue({
|
|
|
|
router,
|
2019-12-19 06:17:21 -05:00
|
|
|
render: h => h(App)
|
2017-11-27 19:21:12 -05:00
|
|
|
}).$mount('#app')
|