askbot-dragon 1.7.24-beta → 1.7.26-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.
Files changed (35) hide show
  1. package/package.json +12 -14
  2. package/public/index.html +10 -8
  3. package/src/assets/js/AliyunlssUtil.js +26 -50
  4. package/src/assets/js/hammer.js +2 -13
  5. package/src/assets/less/converSationContainer/common.less +0 -7
  6. package/src/components/ActionAlertIframe.vue +1 -24
  7. package/src/components/AiGuide.vue +154 -121
  8. package/src/components/AnswerDocknowledge.vue +100 -108
  9. package/src/components/ConversationContainer.vue +220 -13
  10. package/src/components/MyEditor.vue +1 -2
  11. package/src/components/QwFeedback.vue +301 -0
  12. package/src/components/actionSatisfaction.vue +3 -3
  13. package/src/components/answerRadio.vue +3 -3
  14. package/src/components/askVideo.vue +0 -23
  15. package/src/components/associationIntention.vue +7 -11
  16. package/src/components/formTemplate.vue +50 -54
  17. package/src/components/intelligentSummary.vue +4 -8
  18. package/src/components/message/TextMessage.vue +11 -15
  19. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  20. package/src/components/pdfPosition.vue +37 -217
  21. package/src/components/popup.vue +2 -2
  22. package/src/components/previewDoc.vue +2 -6
  23. package/src/components/previewPdf.vue +134 -159
  24. package/src/components/senderMessagePlatform.vue +4 -4
  25. package/src/components/utils/ckeditor.js +1 -1
  26. package/src/components/welcomeKnowledgeFile.vue +2 -6
  27. package/src/components/welcomeLlmCard.vue +1 -5
  28. package/src/components/welcomeSuggest.vue +1 -1
  29. package/src/main.js +0 -18
  30. package/src/components/imgView.vue +0 -32
  31. package/src/components/markDownText.vue +0 -128
  32. package/src/components/newPdfPosition.vue +0 -878
  33. package/src/locales/cn.json +0 -72
  34. package/src/locales/en.json +0 -73
  35. package/src/locales/jp.json +0 -73
@@ -1,128 +0,0 @@
1
- <template>
2
- <div @click="lookImage">
3
- <vue-markdown
4
- class="mark_down"
5
- :source="typedContent"
6
- :ref="'markdown' + msgId"
7
- >
8
- </vue-markdown>
9
- <div v-if="showPreview">
10
- <img-view :url-list="imgList" @closeViewer="closeViewer"></img-view>
11
- </div>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- import VueMarkdown from "vue-markdown";
17
- import ImgView from "./imgView.vue";
18
-
19
- export default {
20
- name: "markDownText",
21
- data() {
22
- return {
23
- typedContent: "",
24
- typingSpeed: 15,
25
- showPreview: false,
26
- imgList: [],
27
- };
28
- },
29
- props: {
30
- chainValues: {
31
- type: String,
32
- default: "",
33
- },
34
- msgId: {
35
- type: String,
36
- default: "",
37
- },
38
- isHistory: {
39
- type: Boolean,
40
- default: false,
41
- },
42
- },
43
- components: {
44
- ImgView,
45
- VueMarkdown,
46
- },
47
- mounted() {
48
- this.$nextTick(() => {
49
- // let ref = 'markdown' + this.msgId
50
- // const el = this.$refs[ref].$el;
51
- // if (this.isHistory){
52
- // el.innerHTML = this.chainValues;
53
- // } else {
54
- // new Typed(el, {
55
- // strings: [this.chainValues],
56
- // typeSpeed: 30,
57
- // showCursor: false
58
- // })
59
- // }
60
- if (this.isHistory) {
61
- this.typedContent = this.chainValues;
62
- } else {
63
- this.startTypingEffect();
64
- }
65
- });
66
- },
67
- methods: {
68
- startTypingEffect() {
69
- let i = 0;
70
- const interval = setInterval(() => {
71
- if (i < this.chainValues.length) {
72
- this.typedContent += this.chainValues.charAt(i);
73
- i++;
74
- } else {
75
- clearInterval(interval);
76
- }
77
- }, this.typingSpeed);
78
- },
79
- lookImage(e) {
80
- let previewImageUrl = "";
81
- console.log("e.target", e.target);
82
- if (e.target.localName == "img") {
83
- previewImageUrl = e.target.currentSrc;
84
- this.showPreview = true;
85
- }
86
- let richtext = JSON.parse(JSON.stringify(this.typedContent));
87
- this.imgList = [];
88
- richtext.replace(
89
- /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
90
- (match, capture) => {
91
- this.imgList.push(capture);
92
- }
93
- );
94
- /*当前点击的图片作为第一个图片*/
95
- let index = this.imgList.indexOf(previewImageUrl);
96
- this.imgList.splice(index, 1);
97
- this.imgList.unshift(previewImageUrl);
98
- },
99
- closeViewer() {
100
- this.showPreview = false;
101
- },
102
- },
103
- };
104
- </script>
105
-
106
- <style scoped lang="less">
107
- .mark_down {
108
- line-height: 25px;
109
- /deep/p {
110
- margin-bottom: 14px;
111
- }
112
- /deep/p:only-child {
113
- margin: 0 !important;
114
- }
115
- /deep/p:last-child {
116
- margin-bottom: 0 !important;
117
- }
118
- /deep/ol,
119
- ul {
120
- li {
121
- margin: 14px 0 !important;
122
- }
123
- }
124
- /deep/img {
125
- max-width: 400px;
126
- }
127
- }
128
- </style>