2022-02-28 19:09:39 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import ElementUI from 'element-ui'
|
2023-07-29 19:59:34 +08:00
|
|
|
import { createPinia, PiniaVuePlugin } from 'pinia'
|
|
|
|
|
2022-02-28 19:09:39 +08:00
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
2023-07-29 19:59:34 +08:00
|
|
|
|
2022-02-28 19:09:39 +08:00
|
|
|
import 'codemirror/lib/codemirror.css'
|
|
|
|
import 'codemirror/theme/xq-light.css'
|
2023-07-29 19:59:34 +08:00
|
|
|
|
2023-08-26 19:20:03 +08:00
|
|
|
/* 每个页面公共css */
|
|
|
|
import './assets/less/theme.less'
|
|
|
|
import './assets/less/style-mirror.less'
|
|
|
|
|
2022-02-28 19:09:39 +08:00
|
|
|
import 'codemirror/mode/css/css'
|
|
|
|
import 'codemirror/mode/markdown/markdown'
|
|
|
|
import 'codemirror/addon/edit/closebrackets'
|
|
|
|
import 'codemirror/addon/edit/matchbrackets'
|
|
|
|
import 'codemirror/addon/selection/active-line'
|
2023-07-29 19:59:34 +08:00
|
|
|
import 'codemirror/addon/hint/show-hint'
|
|
|
|
import 'codemirror/addon/hint/css-hint'
|
|
|
|
|
|
|
|
import './plugins/element'
|
|
|
|
import App from './App'
|
2020-12-03 00:51:39 +08:00
|
|
|
|
2023-07-29 19:59:34 +08:00
|
|
|
Vue.use(ElementUI).use(PiniaVuePlugin)
|
2020-01-13 22:16:04 +08:00
|
|
|
|
2022-02-28 19:09:39 +08:00
|
|
|
Vue.config.productionTip = false
|
2020-01-13 22:16:04 +08:00
|
|
|
|
2022-02-28 19:09:39 +08:00
|
|
|
App.mpType = `app`
|
2021-02-28 14:50:52 +08:00
|
|
|
|
2023-07-29 19:59:34 +08:00
|
|
|
new Vue({
|
2021-02-28 14:50:52 +08:00
|
|
|
...App,
|
2023-07-29 19:59:34 +08:00
|
|
|
pinia: createPinia(),
|
|
|
|
}).$mount(`#app`)
|