askbot-dragon 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.js +4 -4
- package/package.json +3 -1
- package/public/index.html +6 -6
- package/src/main.js +6 -6
- package/vue.config.js +3 -3
package/babel.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"install": "^0.13.0",
|
|
16
16
|
"jquery": "^3.5.1",
|
|
17
17
|
"uuid": "^8.3.2",
|
|
18
|
+
"vant": "^2.12.51",
|
|
18
19
|
"vconsole": "^3.9.1",
|
|
19
20
|
"vue": "^2.6.11",
|
|
20
21
|
"vue-resource": "^1.5.1",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
27
28
|
"@vue/cli-service": "~4.5.0",
|
|
28
29
|
"babel-eslint": "^10.1.0",
|
|
30
|
+
"element-ui": "^2.15.10",
|
|
29
31
|
"eslint": "^6.7.2",
|
|
30
32
|
"eslint-plugin-vue": "^6.2.2",
|
|
31
33
|
"less": "^3.12.2",
|
package/public/index.html
CHANGED
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
<script src="https://static.guoranbot.com/ckeditor5-build-classic/0.3.7/build/ckeditor.js"></script>
|
|
16
16
|
|
|
17
17
|
<!-- vue -->
|
|
18
|
-
<script src="https://static.guoranbot.com/vue/2.6.11/dist/vue.min.js"></script>
|
|
19
|
-
<script src="https://static.guoranbot.com/vue-router/3.3.2/dist/vue-router.min.js"></script>
|
|
18
|
+
<!-- <script src="https://static.guoranbot.com/vue/2.6.11/dist/vue.min.js"></script>
|
|
19
|
+
<script src="https://static.guoranbot.com/vue-router/3.3.2/dist/vue-router.min.js"></script> -->
|
|
20
20
|
|
|
21
21
|
<!-- element -->
|
|
22
|
-
<script src="https://static.guoranbot.com/element-ui/2.13.2/lib/index.js"></script>
|
|
23
|
-
<link rel="stylesheet" href="https://static.guoranbot.com/element-ui/2.13.2/lib/theme-chalk/index.css">
|
|
22
|
+
<!-- <script src="https://static.guoranbot.com/element-ui/2.13.2/lib/index.js"></script>
|
|
23
|
+
<link rel="stylesheet" href="https://static.guoranbot.com/element-ui/2.13.2/lib/theme-chalk/index.css"> -->
|
|
24
24
|
|
|
25
25
|
<!-- vant -->
|
|
26
|
-
<script src="https://static.guoranbot.com/vant/2.12/lib/vant.min.js"></script>
|
|
27
|
-
<link rel="stylesheet" href="https://static.guoranbot.com/vant/2.12/lib/index.css" />
|
|
26
|
+
<!-- <script src="https://static.guoranbot.com/vant/2.12/lib/vant.min.js"></script>
|
|
27
|
+
<link rel="stylesheet" href="https://static.guoranbot.com/vant/2.12/lib/index.css" /> -->
|
|
28
28
|
|
|
29
29
|
<style>
|
|
30
30
|
*{
|
package/src/main.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
import App from './App.vue'
|
|
3
3
|
import VueResource from 'vue-resource'
|
|
4
|
-
|
|
4
|
+
import ElementUI from 'element-ui';
|
|
5
5
|
import { requestUrl } from './api/index';
|
|
6
6
|
import { utils } from '../src/components/utils/index';
|
|
7
|
-
/*import 'element-ui/lib/theme-chalk/index.css';*/
|
|
7
|
+
// /*import 'element-ui/lib/theme-chalk/index.css';*/
|
|
8
8
|
import './assets/theme/index.css'
|
|
9
9
|
import 'video.js/dist/video-js.css'
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
import Vant from 'vant';
|
|
11
|
+
import 'vant/lib/index.css';
|
|
12
12
|
|
|
13
13
|
import CKEditor from '@ckeditor/ckeditor5-vue';
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@ const vConsole = new VConsole();
|
|
|
18
18
|
Vue.use(vConsole);*/
|
|
19
19
|
import $ from 'jquery'
|
|
20
20
|
Vue.prototype._$ = $;
|
|
21
|
-
|
|
21
|
+
Vue.use(Vant);
|
|
22
22
|
Date.prototype.Format = function (fmt) { //author: meizz
|
|
23
23
|
var o = {
|
|
24
24
|
"M+": this.getMonth() + 1, //月份
|
|
@@ -36,7 +36,7 @@ Date.prototype.Format = function (fmt) { //author: meizz
|
|
|
36
36
|
}
|
|
37
37
|
Vue.config.productionTip = false
|
|
38
38
|
Vue.use(VueResource)
|
|
39
|
-
|
|
39
|
+
Vue.use(ElementUI)
|
|
40
40
|
Vue.prototype.requestUrl = requestUrl;
|
|
41
41
|
Vue.prototype.utils = utils;
|
|
42
42
|
|
package/vue.config.js
CHANGED
|
@@ -36,11 +36,11 @@ module.exports = {
|
|
|
36
36
|
},
|
|
37
37
|
configureWebpack: {
|
|
38
38
|
externals: {
|
|
39
|
-
'vue': 'Vue',
|
|
39
|
+
// 'vue': 'Vue',
|
|
40
40
|
// 属性名称 element-ui, 表示遇到 import xxx from 'element-ui' 这类引入 'element-ui'的,
|
|
41
41
|
// 不去 node_modules 中找,而是去找 全局变量 ELEMENT
|
|
42
|
-
'element-ui': 'ELEMENT',
|
|
43
|
-
'vant': 'Vant',
|
|
42
|
+
// 'element-ui': 'ELEMENT',
|
|
43
|
+
// 'vant': 'Vant',
|
|
44
44
|
'ckeditor': 'CKEDITOR',
|
|
45
45
|
},
|
|
46
46
|
},
|