askbot-dragon 0.6.25 → 0.6.26
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/package.json +1 -1
- package/src/components/ConversationContainer.vue +1 -0
- package/src/components/actionSatisfaction.vue +1 -1
- package/src/components/actionSendToBot.vue +3 -10
- package/src/components/answerDissatisfaction.vue +1 -1
- package/src/components/answerRadio.vue +3 -6
- package/src/components/associationIntention.vue +3 -4
- package/src/components/botActionSatisfactor.vue +1 -4
- package/src/components/recommend.vue +5 -6
package/package.json
CHANGED
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="action-send-to-bot"
|
|
4
4
|
>
|
|
5
|
-
<p class="
|
|
5
|
+
<p class="bot-des" v-html="msg.content.description"></p>
|
|
6
6
|
<div class="options-list">
|
|
7
7
|
<p
|
|
8
8
|
v-for="(option, index) in msg.content.options"
|
|
9
|
-
|
|
10
|
-
index == msg.content.options.length - 1 ? 'end' : '',
|
|
11
|
-
'options-item',
|
|
12
|
-
]"
|
|
9
|
+
class="options-item"
|
|
13
10
|
:key="msg.nodeId + '_' + index"
|
|
14
11
|
@click="$emit('onRadioClick2', option.content, option.name, msg.apiKey)"
|
|
15
12
|
>
|
|
@@ -29,7 +26,7 @@
|
|
|
29
26
|
|
|
30
27
|
<style scoped lang="less">
|
|
31
28
|
.action-send-to-bot{
|
|
32
|
-
.
|
|
29
|
+
.bot-des {
|
|
33
30
|
word-wrap: break-word;
|
|
34
31
|
word-break: break-all;
|
|
35
32
|
overflow: hidden;
|
|
@@ -51,10 +48,6 @@
|
|
|
51
48
|
align-items: center;
|
|
52
49
|
justify-content: space-between;
|
|
53
50
|
}
|
|
54
|
-
.end{
|
|
55
|
-
border-bottom-left-radius: 25px !important;
|
|
56
|
-
border-bottom-right-radius: 25px !important;
|
|
57
|
-
}
|
|
58
51
|
}
|
|
59
52
|
}
|
|
60
53
|
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p class="satisfaction-reply-text" v-html="msg.content.replyText"></p>
|
|
4
4
|
<p
|
|
5
5
|
v-for="(option, index) in msg.content.replyOptions"
|
|
6
|
-
|
|
6
|
+
class="statisfaction-item"
|
|
7
7
|
:key="index"
|
|
8
8
|
@click="sendDissatisfaction(option,msg.apiKey)">
|
|
9
9
|
{{ option.name }}<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="answer-radio">
|
|
3
|
-
<p class="
|
|
3
|
+
<p class="radio-description" v-html="msg.content.description"></p>
|
|
4
4
|
<div class="options-list">
|
|
5
5
|
<div
|
|
6
6
|
v-for="(option, index) in msg.content.options"
|
|
7
|
-
|
|
8
|
-
index == msg.content.options.length - 1 ? 'end' : '',
|
|
9
|
-
'options-item',
|
|
10
|
-
]"
|
|
7
|
+
class="options-item"
|
|
11
8
|
:key="msg.nodeId + '_' + index"
|
|
12
9
|
@click="
|
|
13
10
|
$emit(
|
|
@@ -33,7 +30,7 @@ export default {
|
|
|
33
30
|
|
|
34
31
|
<style scoped lang="less">
|
|
35
32
|
#answer-radio{
|
|
36
|
-
.
|
|
33
|
+
.radio-description {
|
|
37
34
|
word-wrap: break-word;
|
|
38
35
|
word-break: break-all;
|
|
39
36
|
overflow: hidden;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>
|
|
5
5
|
</div>
|
|
6
6
|
<div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
|
|
7
|
-
<p
|
|
7
|
+
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>
|
|
8
8
|
<recommend :msg="msg"></recommend>
|
|
9
9
|
</div>
|
|
10
10
|
<div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend != undefined && msg.content.recommend.status)">
|
|
11
11
|
<p v-html="$options.filters.imageStyle(msg.content.html)"></p>
|
|
12
12
|
</div>
|
|
13
13
|
<div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend != undefined && msg.content.recommend.status)">
|
|
14
|
-
<p
|
|
14
|
+
<p v-html="$options.filters.imageStyle(msg.content.html)"></p>
|
|
15
15
|
<recommend :msg="msg.content"></recommend>
|
|
16
16
|
</div>
|
|
17
17
|
<div v-else-if="msgType === 'answer_image'" >
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
</div>
|
|
29
29
|
<recommend :msg="msg"></recommend>
|
|
30
30
|
</div>
|
|
31
|
-
<div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'"
|
|
32
|
-
class="media-body-ps1">
|
|
31
|
+
<div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
|
|
33
32
|
<div class="association-img">
|
|
34
33
|
<ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
|
|
35
34
|
:progress="msg.content.progress"></ask-video>
|
|
@@ -9,10 +9,7 @@
|
|
|
9
9
|
<p
|
|
10
10
|
|
|
11
11
|
v-for="(option, index) in msg.content.reply_options"
|
|
12
|
-
|
|
13
|
-
index == msg.content.reply_options.length - 1 ? 'end' : '',
|
|
14
|
-
'statisfaction-item',
|
|
15
|
-
]"
|
|
12
|
+
class="statisfaction-item"
|
|
16
13
|
:key="index"
|
|
17
14
|
@click="
|
|
18
15
|
onSatisfactionClick(
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="text-recommed-intent">
|
|
3
|
-
<p class="
|
|
3
|
+
<p class="intent-des" v-if="msg.recommend&&msg.recommend.description" v-html="msg.recommend.description"></p>
|
|
4
4
|
<div v-if="msg.recommend.list" class="options-list">
|
|
5
5
|
<p
|
|
6
6
|
v-for="(option, index) in msg.recommend.list"
|
|
7
|
-
|
|
8
|
-
index == msg.recommend.list.length - 1 ? 'end' : '',
|
|
9
|
-
'options-item',
|
|
10
|
-
]"
|
|
7
|
+
class="options-item"
|
|
11
8
|
:key="msg.nodeId + '_' + index"
|
|
12
9
|
@click="
|
|
13
10
|
$emit(
|
|
@@ -43,7 +40,8 @@ export default {
|
|
|
43
40
|
<style scoped lang="less">
|
|
44
41
|
.text-recommed-intent{
|
|
45
42
|
/* max-width: 300px;*/
|
|
46
|
-
|
|
43
|
+
background-color: white;
|
|
44
|
+
.intent-des{
|
|
47
45
|
word-wrap: break-word;
|
|
48
46
|
word-break: break-all;
|
|
49
47
|
overflow: hidden;
|
|
@@ -52,6 +50,7 @@ export default {
|
|
|
52
50
|
border-bottom: 1px solid #EEEEEE;
|
|
53
51
|
color: #A9B3C6;
|
|
54
52
|
font-size: 13px;
|
|
53
|
+
background-color: white;
|
|
55
54
|
}
|
|
56
55
|
.options-list{
|
|
57
56
|
padding-top: 8px;
|