askbot-dragon 1.7.49-beta → 1.7.52-beta
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 +6 -6
- package/dragon.iml +7 -7
- package/package.json +56 -56
- package/public/index.html +73 -75
- 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 +141 -117
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/common.js +252 -252
- package/src/assets/js/hammer.js +100 -89
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +199 -192
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +294 -294
- package/src/components/ActionAlertIframe.vue +177 -154
- package/src/components/AiGuide.vue +438 -471
- package/src/components/AnswerDocknowledge.vue +1100 -1088
- package/src/components/AnswerVoice.vue +285 -285
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +10766 -10873
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/MyEditor.vue +342 -341
- package/src/components/QwFeedback.vue +301 -301
- 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 +211 -213
- 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 +162 -139
- package/src/components/assetDetails.vue +378 -378
- package/src/components/assetMessage.vue +228 -226
- package/src/components/associationIntention.vue +378 -374
- package/src/components/attachmentPreview.vue +90 -90
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/fielListView.vue +351 -351
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3501 -3497
- package/src/components/imgView.vue +31 -31
- package/src/components/intelligentSummary.vue +231 -229
- package/src/components/kkview.vue +1138 -1138
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/markDownText.vue +197 -197
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +928 -924
- package/src/components/message/TicketMessage.vue +201 -201
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +503 -503
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +70 -70
- package/src/components/newPdfPosition.vue +878 -0
- package/src/components/pagination.vue +129 -0
- package/src/components/pdfPosition.vue +1514 -1342
- package/src/components/popup.vue +227 -227
- package/src/components/preview/docView.vue +112 -0
- package/src/components/preview/excelView.vue +179 -0
- package/src/components/preview/newPositionPreview.vue +370 -0
- package/src/components/preview/pdfView.vue +824 -0
- package/src/components/previewDoc.vue +251 -247
- package/src/components/previewPdf.vue +1093 -774
- package/src/components/receiverMessagePlatform.vue +65 -66
- package/src/components/recommend.vue +80 -80
- 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/senderMessagePlatform.vue +50 -55
- 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 +307 -307
- package/src/components/utils/AliyunIssUtil.js +103 -103
- package/src/components/utils/ckeditor.js +185 -185
- package/src/components/utils/format_date.js +25 -25
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +29 -29
- package/src/components/voiceComponent.vue +119 -119
- package/src/components/welcomeKnowledgeFile.vue +344 -340
- package/src/components/welcomeLlmCard.vue +144 -140
- package/src/components/welcomeSuggest.vue +97 -97
- package/src/locales/cn.json +71 -61
- package/src/locales/en.json +73 -62
- package/src/locales/jp.json +73 -0
- package/src/main.js +75 -76
- package/vue.config.js +54 -54
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="loading-process">
|
|
3
|
-
<div class="bg-color"></div>
|
|
4
|
-
<ul class="display-container" >
|
|
5
|
-
<li class="note-display" :data-note="dataNodes">
|
|
6
|
-
<div class="circle">
|
|
7
|
-
<svg width="30" height="30" class="circle__svg" viewBox="0 0 90 90">
|
|
8
|
-
<circle cx="41" cy="41" r="38" class="circle__progress circle__progress--path"></circle>
|
|
9
|
-
<circle cx="41" cy="41" r="38" class="circle__progress circle__progress--fill"></circle>
|
|
10
|
-
</svg>
|
|
11
|
-
</div>
|
|
12
|
-
</li>
|
|
13
|
-
</ul>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
const transitionDuration = 1000
|
|
19
|
-
export default {
|
|
20
|
-
name: "loadingProcess",
|
|
21
|
-
data(){
|
|
22
|
-
return{
|
|
23
|
-
timer:null,
|
|
24
|
-
dataNodes:0
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
props:['dataNote','finished'],
|
|
28
|
-
methods:{
|
|
29
|
-
strokeTransition(display, note) {
|
|
30
|
-
let progress = display.querySelector('.circle__progress--fill');
|
|
31
|
-
let radius = progress.r.baseVal.value;
|
|
32
|
-
let circumference = 2 * Math.PI * radius;
|
|
33
|
-
let offset = circumference * (10 - note) / 10;
|
|
34
|
-
progress.style.setProperty('--initialStroke', circumference);
|
|
35
|
-
progress.style.setProperty('--transitionDuration', `${transitionDuration}ms`);
|
|
36
|
-
|
|
37
|
-
setTimeout(() => progress.style.strokeDashoffset = offset, 100);
|
|
38
|
-
},
|
|
39
|
-
increaseNumber(display, number, className) {
|
|
40
|
-
let element = display.querySelector(`.percent__${className}`),
|
|
41
|
-
decPoint = className === 'int' ? '' : '',
|
|
42
|
-
interval = transitionDuration / number,
|
|
43
|
-
counter = 0;
|
|
44
|
-
console.debug('element',element,counter,decPoint)
|
|
45
|
-
let increaseInterval = setInterval(() => {
|
|
46
|
-
if (counter === number) { window.clearInterval(increaseInterval); }
|
|
47
|
-
/*
|
|
48
|
-
element.textContent = counter + decPoint;*/
|
|
49
|
-
counter++;
|
|
50
|
-
}, interval);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
mounted() {
|
|
54
|
-
this.timer = setInterval(()=>{
|
|
55
|
-
const displays = document.querySelectorAll('.note-display');
|
|
56
|
-
displays.forEach(display => {
|
|
57
|
-
let note = parseFloat(display.dataset.note);
|
|
58
|
-
let [int, dec] = display.dataset.note.split('.');
|
|
59
|
-
[int, dec] = [Number(int), Number(dec)];
|
|
60
|
-
this.strokeTransition(display, note);
|
|
61
|
-
this.increaseNumber(display, this.dataNote, 'int');
|
|
62
|
-
/* this.increaseNumber(display, dec, 'dec');*/
|
|
63
|
-
})
|
|
64
|
-
},1000)
|
|
65
|
-
},
|
|
66
|
-
watch:{
|
|
67
|
-
dataNote:{
|
|
68
|
-
handler(val){
|
|
69
|
-
this.dataNodes = val
|
|
70
|
-
console.debug('this.dataNodes',val,this.dataNodes)
|
|
71
|
-
},
|
|
72
|
-
immediate:true,
|
|
73
|
-
deep:true
|
|
74
|
-
},
|
|
75
|
-
finished:{
|
|
76
|
-
handler(val){
|
|
77
|
-
if (val){
|
|
78
|
-
setTimeout(()=>{
|
|
79
|
-
clearInterval(this.timer)
|
|
80
|
-
},1000)
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
immediate:true
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
</script>
|
|
88
|
-
|
|
89
|
-
<style scoped lang="less">
|
|
90
|
-
/*@import url('https://fonts.googleapis.com/css?family=Nixie+One|Raleway:200');*/
|
|
91
|
-
#loading-process{
|
|
92
|
-
height: 100px;
|
|
93
|
-
width: 100px;
|
|
94
|
-
.bg-color{
|
|
95
|
-
background-color:#000000 ;
|
|
96
|
-
opacity: 0.4;
|
|
97
|
-
width: 100%;
|
|
98
|
-
height: 100%;
|
|
99
|
-
}
|
|
100
|
-
.display-container{
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: calc(50% - 15px);
|
|
103
|
-
left: 10px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
* {
|
|
107
|
-
padding: 0;
|
|
108
|
-
margin: 0;
|
|
109
|
-
box-sizing: border-box;
|
|
110
|
-
}
|
|
111
|
-
/*
|
|
112
|
-
body {
|
|
113
|
-
height: 100vh;
|
|
114
|
-
color: #fff;
|
|
115
|
-
display: flex;
|
|
116
|
-
background: #3E423A;
|
|
117
|
-
font-family: 'Nixie One', cursive;
|
|
118
|
-
}
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
.display-container {
|
|
122
|
-
margin: auto;
|
|
123
|
-
display: flex;
|
|
124
|
-
.note-display {
|
|
125
|
-
display: flex;
|
|
126
|
-
flex-direction: column;
|
|
127
|
-
align-items: center;
|
|
128
|
-
margin: 0 25px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
.circle__progress {
|
|
132
|
-
fill: none;
|
|
133
|
-
stroke-width: 5;
|
|
134
|
-
stroke-opacity: 0.3;
|
|
135
|
-
stroke-linecap: round;
|
|
136
|
-
}
|
|
137
|
-
.note-display:nth-child(1) .circle__progress--fill{
|
|
138
|
-
stroke: #FFFFFF!important;
|
|
139
|
-
stroke-opacity: 1;
|
|
140
|
-
}
|
|
141
|
-
.circle__progress--path{
|
|
142
|
-
stroke: #EFEFEF!important;
|
|
143
|
-
stroke-opacity: 0.5;
|
|
144
|
-
}
|
|
145
|
-
.note-display:nth-child(1) .circle__progress { stroke: #AAFF00; }
|
|
146
|
-
.note-display:nth-child(2) .circle__progress { stroke: #FF00AA; }
|
|
147
|
-
.note-display:nth-child(3) .circle__progress { stroke: #AA00FF; }
|
|
148
|
-
.note-display:nth-child(4) .circle__progress { stroke: #00AAFF; }
|
|
149
|
-
.circle {
|
|
150
|
-
position: relative;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.percent {
|
|
154
|
-
width: 100%;
|
|
155
|
-
top: 50%;
|
|
156
|
-
left: 50%;
|
|
157
|
-
position: absolute;
|
|
158
|
-
font-weight: bold;
|
|
159
|
-
text-align: center;
|
|
160
|
-
/* line-height: 28px;*/
|
|
161
|
-
transform: translate(-50%, -50%);
|
|
162
|
-
font-size: 12px;
|
|
163
|
-
}
|
|
164
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="loading-process">
|
|
3
|
+
<div class="bg-color"></div>
|
|
4
|
+
<ul class="display-container" >
|
|
5
|
+
<li class="note-display" :data-note="dataNodes">
|
|
6
|
+
<div class="circle">
|
|
7
|
+
<svg width="30" height="30" class="circle__svg" viewBox="0 0 90 90">
|
|
8
|
+
<circle cx="41" cy="41" r="38" class="circle__progress circle__progress--path"></circle>
|
|
9
|
+
<circle cx="41" cy="41" r="38" class="circle__progress circle__progress--fill"></circle>
|
|
10
|
+
</svg>
|
|
11
|
+
</div>
|
|
12
|
+
</li>
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
const transitionDuration = 1000
|
|
19
|
+
export default {
|
|
20
|
+
name: "loadingProcess",
|
|
21
|
+
data(){
|
|
22
|
+
return{
|
|
23
|
+
timer:null,
|
|
24
|
+
dataNodes:0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
props:['dataNote','finished'],
|
|
28
|
+
methods:{
|
|
29
|
+
strokeTransition(display, note) {
|
|
30
|
+
let progress = display.querySelector('.circle__progress--fill');
|
|
31
|
+
let radius = progress.r.baseVal.value;
|
|
32
|
+
let circumference = 2 * Math.PI * radius;
|
|
33
|
+
let offset = circumference * (10 - note) / 10;
|
|
34
|
+
progress.style.setProperty('--initialStroke', circumference);
|
|
35
|
+
progress.style.setProperty('--transitionDuration', `${transitionDuration}ms`);
|
|
36
|
+
|
|
37
|
+
setTimeout(() => progress.style.strokeDashoffset = offset, 100);
|
|
38
|
+
},
|
|
39
|
+
increaseNumber(display, number, className) {
|
|
40
|
+
let element = display.querySelector(`.percent__${className}`),
|
|
41
|
+
decPoint = className === 'int' ? '' : '',
|
|
42
|
+
interval = transitionDuration / number,
|
|
43
|
+
counter = 0;
|
|
44
|
+
console.debug('element',element,counter,decPoint)
|
|
45
|
+
let increaseInterval = setInterval(() => {
|
|
46
|
+
if (counter === number) { window.clearInterval(increaseInterval); }
|
|
47
|
+
/*
|
|
48
|
+
element.textContent = counter + decPoint;*/
|
|
49
|
+
counter++;
|
|
50
|
+
}, interval);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
mounted() {
|
|
54
|
+
this.timer = setInterval(()=>{
|
|
55
|
+
const displays = document.querySelectorAll('.note-display');
|
|
56
|
+
displays.forEach(display => {
|
|
57
|
+
let note = parseFloat(display.dataset.note);
|
|
58
|
+
let [int, dec] = display.dataset.note.split('.');
|
|
59
|
+
[int, dec] = [Number(int), Number(dec)];
|
|
60
|
+
this.strokeTransition(display, note);
|
|
61
|
+
this.increaseNumber(display, this.dataNote, 'int');
|
|
62
|
+
/* this.increaseNumber(display, dec, 'dec');*/
|
|
63
|
+
})
|
|
64
|
+
},1000)
|
|
65
|
+
},
|
|
66
|
+
watch:{
|
|
67
|
+
dataNote:{
|
|
68
|
+
handler(val){
|
|
69
|
+
this.dataNodes = val
|
|
70
|
+
console.debug('this.dataNodes',val,this.dataNodes)
|
|
71
|
+
},
|
|
72
|
+
immediate:true,
|
|
73
|
+
deep:true
|
|
74
|
+
},
|
|
75
|
+
finished:{
|
|
76
|
+
handler(val){
|
|
77
|
+
if (val){
|
|
78
|
+
setTimeout(()=>{
|
|
79
|
+
clearInterval(this.timer)
|
|
80
|
+
},1000)
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
immediate:true
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style scoped lang="less">
|
|
90
|
+
/*@import url('https://fonts.googleapis.com/css?family=Nixie+One|Raleway:200');*/
|
|
91
|
+
#loading-process{
|
|
92
|
+
height: 100px;
|
|
93
|
+
width: 100px;
|
|
94
|
+
.bg-color{
|
|
95
|
+
background-color:#000000 ;
|
|
96
|
+
opacity: 0.4;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
}
|
|
100
|
+
.display-container{
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: calc(50% - 15px);
|
|
103
|
+
left: 10px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
* {
|
|
107
|
+
padding: 0;
|
|
108
|
+
margin: 0;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
}
|
|
111
|
+
/*
|
|
112
|
+
body {
|
|
113
|
+
height: 100vh;
|
|
114
|
+
color: #fff;
|
|
115
|
+
display: flex;
|
|
116
|
+
background: #3E423A;
|
|
117
|
+
font-family: 'Nixie One', cursive;
|
|
118
|
+
}
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
.display-container {
|
|
122
|
+
margin: auto;
|
|
123
|
+
display: flex;
|
|
124
|
+
.note-display {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
align-items: center;
|
|
128
|
+
margin: 0 25px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.circle__progress {
|
|
132
|
+
fill: none;
|
|
133
|
+
stroke-width: 5;
|
|
134
|
+
stroke-opacity: 0.3;
|
|
135
|
+
stroke-linecap: round;
|
|
136
|
+
}
|
|
137
|
+
.note-display:nth-child(1) .circle__progress--fill{
|
|
138
|
+
stroke: #FFFFFF!important;
|
|
139
|
+
stroke-opacity: 1;
|
|
140
|
+
}
|
|
141
|
+
.circle__progress--path{
|
|
142
|
+
stroke: #EFEFEF!important;
|
|
143
|
+
stroke-opacity: 0.5;
|
|
144
|
+
}
|
|
145
|
+
.note-display:nth-child(1) .circle__progress { stroke: #AAFF00; }
|
|
146
|
+
.note-display:nth-child(2) .circle__progress { stroke: #FF00AA; }
|
|
147
|
+
.note-display:nth-child(3) .circle__progress { stroke: #AA00FF; }
|
|
148
|
+
.note-display:nth-child(4) .circle__progress { stroke: #00AAFF; }
|
|
149
|
+
.circle {
|
|
150
|
+
position: relative;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.percent {
|
|
154
|
+
width: 100%;
|
|
155
|
+
top: 50%;
|
|
156
|
+
left: 50%;
|
|
157
|
+
position: absolute;
|
|
158
|
+
font-weight: bold;
|
|
159
|
+
text-align: center;
|
|
160
|
+
/* line-height: 28px;*/
|
|
161
|
+
transform: translate(-50%, -50%);
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
165
|
</style>
|