askbot-dragon 0.7.89 → 0.7.93
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/README.md +27 -27
- package/babel.config.js +5 -5
- package/dragon.iml +7 -7
- package/package.json +55 -55
- package/public/index.html +30 -30
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +191 -191
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +211 -211
- package/src/components/ActionAlertIframe.vue +112 -112
- package/src/components/AiGuide.vue +467 -467
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +2110 -1318
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +76 -76
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +138 -138
- package/src/components/assetDetails.vue +370 -370
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +229 -229
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +2524 -1969
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +177 -177
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +502 -502
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +71 -0
- package/src/components/popup.vue +184 -0
- package/src/components/recommend.vue +89 -89
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +159 -0
- package/src/components/utils/AliyunIssUtil.js +72 -72
- package/src/components/utils/ckeditor.js +123 -123
- package/src/components/utils/command.js +68 -68
- package/src/components/utils/editing.js +11 -11
- package/src/components/utils/format_date.js +25 -18
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +15 -15
- package/src/components/utils/plugin-image.js +11 -11
- package/src/components/utils/toolbar-ui.js +41 -41
- package/src/components/voiceComponent.vue +119 -119
- package/src/main.js +45 -45
- package/vue.config.js +43 -34
package/src/main.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import VueResource from 'vue-resource'
|
|
4
|
-
import ElementUI from 'element-ui';
|
|
5
|
-
import { requestUrl } from './api/index';
|
|
6
|
-
import { utils } from '../src/components/utils/index';
|
|
7
|
-
/*import 'element-ui/lib/theme-chalk/index.css';*/
|
|
8
|
-
import './assets/theme/index.css'
|
|
9
|
-
import 'video.js/dist/video-js.css'
|
|
10
|
-
import Vant from 'vant';
|
|
11
|
-
import 'vant/lib/index.css';
|
|
12
|
-
|
|
13
|
-
import CKEditor from '@ckeditor/ckeditor5-vue';
|
|
14
|
-
|
|
15
|
-
Vue.use(CKEditor);
|
|
16
|
-
/*import VConsole from 'vconsole'
|
|
17
|
-
const vConsole = new VConsole();
|
|
18
|
-
Vue.use(vConsole);*/
|
|
19
|
-
import $ from 'jquery'
|
|
20
|
-
Vue.prototype._$ = $;
|
|
21
|
-
Vue.use(Vant);
|
|
22
|
-
Date.prototype.Format = function (fmt) { //author: meizz
|
|
23
|
-
var o = {
|
|
24
|
-
"M+": this.getMonth() + 1, //月份
|
|
25
|
-
"d+": this.getDate(), //日
|
|
26
|
-
"h+": this.getHours(), //小时
|
|
27
|
-
"m+": this.getMinutes(), //分
|
|
28
|
-
"s+": this.getSeconds(), //秒
|
|
29
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
30
|
-
"S": this.getMilliseconds() //毫秒
|
|
31
|
-
};
|
|
32
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
33
|
-
for (var k in o)
|
|
34
|
-
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
35
|
-
return fmt;
|
|
36
|
-
}
|
|
37
|
-
Vue.config.productionTip = false
|
|
38
|
-
Vue.use(VueResource)
|
|
39
|
-
Vue.use(ElementUI)
|
|
40
|
-
Vue.prototype.requestUrl = requestUrl;
|
|
41
|
-
Vue.prototype.utils = utils;
|
|
42
|
-
|
|
43
|
-
new Vue({
|
|
44
|
-
render: h => h(App),
|
|
45
|
-
}).$mount('#app')
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App.vue'
|
|
3
|
+
import VueResource from 'vue-resource'
|
|
4
|
+
import ElementUI from 'element-ui';
|
|
5
|
+
import { requestUrl } from './api/index';
|
|
6
|
+
import { utils } from '../src/components/utils/index';
|
|
7
|
+
/*import 'element-ui/lib/theme-chalk/index.css';*/
|
|
8
|
+
import './assets/theme/index.css'
|
|
9
|
+
import 'video.js/dist/video-js.css'
|
|
10
|
+
import Vant from 'vant';
|
|
11
|
+
import 'vant/lib/index.css';
|
|
12
|
+
|
|
13
|
+
import CKEditor from '@ckeditor/ckeditor5-vue';
|
|
14
|
+
|
|
15
|
+
Vue.use(CKEditor);
|
|
16
|
+
/*import VConsole from 'vconsole'
|
|
17
|
+
const vConsole = new VConsole();
|
|
18
|
+
Vue.use(vConsole);*/
|
|
19
|
+
import $ from 'jquery'
|
|
20
|
+
Vue.prototype._$ = $;
|
|
21
|
+
Vue.use(Vant);
|
|
22
|
+
Date.prototype.Format = function (fmt) { //author: meizz
|
|
23
|
+
var o = {
|
|
24
|
+
"M+": this.getMonth() + 1, //月份
|
|
25
|
+
"d+": this.getDate(), //日
|
|
26
|
+
"h+": this.getHours(), //小时
|
|
27
|
+
"m+": this.getMinutes(), //分
|
|
28
|
+
"s+": this.getSeconds(), //秒
|
|
29
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
30
|
+
"S": this.getMilliseconds() //毫秒
|
|
31
|
+
};
|
|
32
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
33
|
+
for (var k in o)
|
|
34
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
35
|
+
return fmt;
|
|
36
|
+
}
|
|
37
|
+
Vue.config.productionTip = false
|
|
38
|
+
Vue.use(VueResource)
|
|
39
|
+
Vue.use(ElementUI)
|
|
40
|
+
Vue.prototype.requestUrl = requestUrl;
|
|
41
|
+
Vue.prototype.utils = utils;
|
|
42
|
+
|
|
43
|
+
new Vue({
|
|
44
|
+
render: h => h(App),
|
|
45
|
+
}).$mount('#app')
|
package/vue.config.js
CHANGED
|
@@ -1,35 +1,44 @@
|
|
|
1
|
-
const webpack = require('webpack')
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
// 修改的配置
|
|
6
|
-
// 将baseUrl: '/api',改为baseUrl: '/',
|
|
7
|
-
devServer: {
|
|
8
|
-
port: '8081', // 指定打开浏览器的端口号
|
|
9
|
-
proxy: {
|
|
10
|
-
'/api/': {
|
|
11
|
-
// target: 'http://test.open.abitai.com:9001',
|
|
12
|
-
target: 'http://test.open.askbot.cn:32001',
|
|
13
|
-
changeOrigin: true,
|
|
14
|
-
ws: true,
|
|
15
|
-
pathRewrite: {
|
|
16
|
-
'^/api': '/'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
'/open/': {
|
|
20
|
-
target: 'http://new-test.guoranbot.com:32001',
|
|
21
|
-
changeOrigin: true,
|
|
22
|
-
pathRewrite: {
|
|
23
|
-
'^/open': '/'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
const webpack = require('webpack')
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
// 修改的配置
|
|
6
|
+
// 将baseUrl: '/api',改为baseUrl: '/',
|
|
7
|
+
devServer: {
|
|
8
|
+
port: '8081', // 指定打开浏览器的端口号
|
|
9
|
+
proxy: {
|
|
10
|
+
'/api/': {
|
|
11
|
+
// target: 'http://test.open.abitai.com:9001',
|
|
12
|
+
target: 'http://test.open.askbot.cn:32001',
|
|
13
|
+
changeOrigin: true,
|
|
14
|
+
ws: true,
|
|
15
|
+
pathRewrite: {
|
|
16
|
+
'^/api': '/'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
'/open/': {
|
|
20
|
+
target: 'http://new-test.guoranbot.com:32001',
|
|
21
|
+
changeOrigin: true,
|
|
22
|
+
pathRewrite: {
|
|
23
|
+
'^/open': '/'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
'/order-api': {
|
|
27
|
+
target: 'http://master.test.askbot.cn:32022',
|
|
28
|
+
/*target:'http://new-test.guoranbot.com:30672',*/
|
|
29
|
+
changeOrigin: true,
|
|
30
|
+
ws: true,
|
|
31
|
+
pathRewrite: {
|
|
32
|
+
'^/order-api': '/'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
configureWebpack: {
|
|
38
|
+
externals: {
|
|
39
|
+
// 'vant': 'vant',
|
|
40
|
+
'ckeditor': 'CKEDITOR',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
|
|
35
44
|
};
|