Former-commit-id: 8bcf1b96e00fbb92330295f10e43422700755fdf [formerly 8bcf1b96e00fbb92330295f10e43422700755fdf [formerly 8bcf1b96e00fbb92330295f10e43422700755fdf [formerly 8bcf1b96e00fbb92330295f10e43422700755fdf [formerly 891f2243f4b3411c9ac5c45d8bfd05ca111e5ccf [formerly 4c0df3b606ce6539ec2e522db5a48822bb9ea5ec]]]]] Former-commit-id: b7f72e4ceef4bca10dcef08705bc85cdc8164763 Former-commit-id: 9b43bf6034000fca8fe57da259093c96775c31bc Former-commit-id: 3a0028ec0da10e8e9956ef21cc3c1f10a496245e [formerly a12422e41516f7c4278af232fc16ad40ba345d7b] Former-commit-id: 6145ec11e2615bbc3415d72728ea8dba87701b4e Former-commit-id: a6069fba783bf4a5153ddd9f96e879950483a626 Former-commit-id: c2e5ac5588bdc9e9aaf146410b59bfc4e355c6a6 Former-commit-id: 7a2a77e9c25c886b990dcf850a1f08f358bade1d Former-commit-id: f6dc949a4e3eb765925e22653a5e42d2a460c9ca
79 lines
1.7 KiB
JavaScript
Executable File
79 lines
1.7 KiB
JavaScript
Executable File
import 'babel-polyfill'
|
|
|
|
import Vue from 'vue'
|
|
import App from './App'
|
|
import router from './router'
|
|
import i18n from './i18n'
|
|
|
|
import ElementUI from 'element-ui'
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
|
// font-awesome
|
|
import '@/assets/library/font-awesome-4.7.0/css/font-awesome.min.css'
|
|
|
|
// simplemde css
|
|
import 'simplemde/dist/simplemde.min.css'
|
|
|
|
// svg图标
|
|
import '@/assets/icons/index.js'
|
|
|
|
// markdown主题
|
|
import 'github-markdown-css'
|
|
|
|
// 代码高亮主题
|
|
import '@/assets/library/highlight/styles/atom-one-light.css'
|
|
|
|
// 全局注册的组件
|
|
import '@/components'
|
|
|
|
// 异步请求库
|
|
import '@/plugin/axios'
|
|
|
|
// mock接口设置
|
|
import '@/mock/register'
|
|
|
|
// vuex
|
|
import store from '@/store/index.js'
|
|
|
|
// 右键菜单
|
|
import contentmenu from 'v-contextmenu'
|
|
import 'v-contextmenu/dist/index.css'
|
|
|
|
// 插件 导出文件
|
|
import pluginImport from '@/plugin/import'
|
|
// 插件 导出文件
|
|
import pluginExport from '@/plugin/export'
|
|
// 插件 log简化
|
|
import pluginLog from '@/plugin/log'
|
|
// 插件 打开页面
|
|
import pluginOpen from '@/plugin/open'
|
|
// 插件 支持百万级数据的表格
|
|
import bigdataTable from '@/plugin/vue-bigdata-table'
|
|
|
|
import buildConfig from '../config/index'
|
|
|
|
Vue.use(ElementUI)
|
|
Vue.use(contentmenu)
|
|
|
|
Vue.use(pluginImport)
|
|
Vue.use(pluginExport)
|
|
Vue.use(pluginLog)
|
|
Vue.use(pluginOpen)
|
|
Vue.use(bigdataTable)
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.prototype.$env = process.env.NODE_ENV === 'development'
|
|
|
|
Vue.prototype.$assetsPublicPath = process.env.NODE_ENV === 'development' ? buildConfig.dev.assetsPublicPath : buildConfig.build.assetsPublicPath
|
|
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
el: '#app',
|
|
store,
|
|
i18n,
|
|
router,
|
|
template: '<App/>',
|
|
components: { App }
|
|
})
|