askbot-dragon 1.5.64-beta → 1.5.64
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 -4
- package/public/index.html +0 -2
- package/src/assets/js/common.js +64 -0
- package/src/assets/js/hammer.js +2 -13
- package/src/assets/less/converSationContainer/common.less +0 -7
- package/src/components/ActionAlertIframe.vue +43 -1
- package/src/components/AiGuide.vue +2 -1
- package/src/components/AnswerDocknowledge.vue +455 -286
- package/src/components/ConversationContainer.vue +1005 -1000
- package/src/components/MyEditor.vue +351 -0
- package/src/components/answerRadio.vue +115 -61
- package/src/components/askVideo.vue +2 -25
- package/src/components/assetDetails.vue +13 -5
- package/src/components/associationIntention.vue +6 -6
- package/src/components/chatContent.vue +1 -1
- package/src/components/formTemplate.vue +144 -129
- package/src/components/intelligentSummary.vue +210 -0
- package/src/components/pdfPosition.vue +58 -94
- package/src/components/previewPdf.vue +192 -28
- package/src/components/welcomeKnowledgeFile.vue +330 -0
- package/src/components/welcomeLlmCard.vue +141 -0
- package/src/components/welcomeSuggest.vue +98 -0
- package/src/main.js +0 -3
- package/vue.config.js +0 -1
- package/src/components/newPdfPosition.vue +0 -878
- package/src/components/utils/ckeditorImageUpload/command.js +0 -110
- package/src/components/utils/ckeditorImageUpload/editing.js +0 -12
- package/src/components/utils/ckeditorImageUpload/plugin-image.js +0 -12
- package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +0 -41
- package/src/components/utils/ckeditorfileUpload/common.js +0 -181
- package/src/components/utils/ckeditorfileUpload/editing.js +0 -12
- package/src/components/utils/ckeditorfileUpload/plugin_file.js +0 -12
- package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +0 -34
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.5.64
|
|
3
|
+
"version": "1.5.64",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
7
7
|
"lint": "vue-cli-service lint"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@ckeditor/ckeditor5-ui": "^10.1.0",
|
|
11
|
-
"@ckeditor/ckeditor5-vue2": "^3.0.1",
|
|
12
10
|
"ali-oss": "^6.2.1",
|
|
13
11
|
"audio-loader": "^1.0.3",
|
|
14
|
-
"ckeditor": "^4.12.1",
|
|
15
12
|
"core-js": "^3.6.5",
|
|
16
13
|
"install": "^0.13.0",
|
|
17
14
|
"jquery": "^3.5.1",
|
package/public/index.html
CHANGED
|
@@ -23,13 +23,11 @@
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
</script>
|
|
26
|
-
<script src="https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/ckeditor5-build-classic/0.4.4/ckeditor.js"></script>
|
|
27
26
|
<!-- 项目图标 -->
|
|
28
27
|
<link rel="stylesheet" href="//at.alicdn.com/t/font_1566110_3hu6pyd938i.css"/>
|
|
29
28
|
<!-- guoran图标 -->
|
|
30
29
|
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_2913049_qtm7orae3l.css"/>
|
|
31
30
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
|
|
32
|
-
<!-- <script src="https://static.guoranbot.com/ckeditor5-build-classic/0.3.7/build/ckeditor.js"></script> -->
|
|
33
31
|
|
|
34
32
|
<!-- vue -->
|
|
35
33
|
<!-- <script src="https://static.guoranbot.com/vue/2.6.11/dist/vue.min.js"></script>
|
package/src/assets/js/common.js
CHANGED
|
@@ -9,4 +9,68 @@ export function isMobile() {
|
|
|
9
9
|
bool = false
|
|
10
10
|
}
|
|
11
11
|
return bool
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let imageTypeObj = {
|
|
15
|
+
PDF: 'pdf1',
|
|
16
|
+
pdf: 'pdf1',
|
|
17
|
+
TXT: 'txt1',
|
|
18
|
+
txt: 'txt1',
|
|
19
|
+
selfadd: 'selfadd1',
|
|
20
|
+
md: "md2",
|
|
21
|
+
html: 'selfadd1',
|
|
22
|
+
mode: "mode",
|
|
23
|
+
general: 'general',
|
|
24
|
+
word: "word1",
|
|
25
|
+
Word: "word1",
|
|
26
|
+
docx: "word1",
|
|
27
|
+
doc: "word1",
|
|
28
|
+
docm: "word1",
|
|
29
|
+
dotm: "word1",
|
|
30
|
+
dotx: "word1",
|
|
31
|
+
wpt: "word1",
|
|
32
|
+
wps: "word1",
|
|
33
|
+
WORD: "word1",
|
|
34
|
+
Excel: 'excel1',
|
|
35
|
+
EXCEL: 'excel1',
|
|
36
|
+
excel: 'excel1',
|
|
37
|
+
PPT: 'ppt1',
|
|
38
|
+
ppt: 'ppt1',
|
|
39
|
+
pptx: 'ppt1',
|
|
40
|
+
img: "image1",
|
|
41
|
+
image: "image1",
|
|
42
|
+
video: "video",
|
|
43
|
+
audio: 'audio',
|
|
44
|
+
link: "link",
|
|
45
|
+
wechat: "wechat",
|
|
46
|
+
mp4: "video",
|
|
47
|
+
MP4: "video",
|
|
48
|
+
xlsx: "excel1",
|
|
49
|
+
xls: "excel1",
|
|
50
|
+
csv: "excel1",
|
|
51
|
+
jpg: "image1",
|
|
52
|
+
JPG: "image1",
|
|
53
|
+
jpeg: "image1",
|
|
54
|
+
JPEG: "image1",
|
|
55
|
+
png: "image1",
|
|
56
|
+
PNG: "image1",
|
|
57
|
+
webp: "image1",
|
|
58
|
+
WEBP: "image1",
|
|
59
|
+
gif: "image1",
|
|
60
|
+
GIF: "image1",
|
|
61
|
+
svg: "image1",
|
|
62
|
+
bmp: "image1",
|
|
63
|
+
avi: "video",
|
|
64
|
+
mov: "video",
|
|
65
|
+
rmvb: "video",
|
|
66
|
+
wav: "audio",
|
|
67
|
+
mp3: "audio",
|
|
68
|
+
MOV: "video",
|
|
69
|
+
AIV: "video",
|
|
70
|
+
aiv: "video",
|
|
71
|
+
news:"news"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
imageTypeObj
|
|
12
76
|
}
|
package/src/assets/js/hammer.js
CHANGED
|
@@ -3,15 +3,6 @@ export function zoomElement (el) {
|
|
|
3
3
|
let store = {
|
|
4
4
|
scale: 1
|
|
5
5
|
};
|
|
6
|
-
if (!el){
|
|
7
|
-
return
|
|
8
|
-
}
|
|
9
|
-
let scale = 1;
|
|
10
|
-
if (el.style.transform){
|
|
11
|
-
let transForm = el.style.transform;
|
|
12
|
-
var values = transForm.split('(')[1].split(')')[0].split(',');
|
|
13
|
-
scale = values[0] ? values[0] : 1
|
|
14
|
-
}
|
|
15
6
|
// 缩放事件的处理
|
|
16
7
|
el.addEventListener('touchstart', function (event) {
|
|
17
8
|
let touches = event.touches;
|
|
@@ -76,15 +67,13 @@ export function zoomElement (el) {
|
|
|
76
67
|
newScale = 3;
|
|
77
68
|
}
|
|
78
69
|
// 最小缩放比例限制
|
|
79
|
-
if(newScale <
|
|
80
|
-
newScale =
|
|
70
|
+
if(newScale < 1) {
|
|
71
|
+
newScale = 1;
|
|
81
72
|
}
|
|
82
73
|
// 记住使用的缩放值
|
|
83
74
|
store.scale = newScale;
|
|
84
75
|
// 图像应用缩放效果
|
|
85
76
|
el.style.transform = 'scale(' + newScale + ')';
|
|
86
|
-
el.style.transformOrigin = 'top left'
|
|
87
|
-
|
|
88
77
|
}
|
|
89
78
|
});
|
|
90
79
|
document.addEventListener('touchend', function () {
|
|
@@ -35,13 +35,6 @@
|
|
|
35
35
|
border-radius: 6px;
|
|
36
36
|
background-color: #bfceec !important;
|
|
37
37
|
}
|
|
38
|
-
@media screen and (max-width: 767px){
|
|
39
|
-
::-webkit-scrollbar {
|
|
40
|
-
width: 0;
|
|
41
|
-
height: 0;
|
|
42
|
-
background-color:@system_bordercolor_4;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
38
|
|
|
46
39
|
// 弹窗body
|
|
47
40
|
.el-dialog__body{
|
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="action_alert_iframe">
|
|
3
|
+
<div class="iframe-full-screen">
|
|
4
|
+
<span @click="showAskFullScreen = true" class="el-icon-full-screen"></span>
|
|
5
|
+
</div>
|
|
3
6
|
<iframe
|
|
4
7
|
class="grzh-iframe"
|
|
5
8
|
:id="tampId"
|
|
6
9
|
:data-name="tampId"
|
|
7
10
|
:src="actionAlertIframe.template"
|
|
8
11
|
:width="(actionAlertIframe.version == 1 && !phoneWidth100)?actionAlertIframe.width:'100%'"
|
|
9
|
-
:height="actionAlertIframe.height"
|
|
12
|
+
:height="showAskFullScreen?'90%':actionAlertIframe.height"
|
|
10
13
|
:scrolling="actionAlertIframe.scrolling"
|
|
11
14
|
frameborder="no"
|
|
12
15
|
border="0"
|
|
13
16
|
></iframe>
|
|
17
|
+
|
|
18
|
+
<div v-if="showAskFullScreen" class="ask-full-screen">
|
|
19
|
+
<div class="iframe-full-screen">
|
|
20
|
+
<br>
|
|
21
|
+
<span @click="showAskFullScreen = false" style="cursor: pointer;">
|
|
22
|
+
<svg t="1702295921525" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="39588" width="20" height="20"><path d="M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z" fill="#666666" p-id="39589"></path><path d="M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z" fill="#666666" p-id="39590"></path><path d="M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z" fill="#666666" p-id="39591"></path></svg>
|
|
23
|
+
</span>
|
|
24
|
+
</div>
|
|
25
|
+
<iframe
|
|
26
|
+
class="grzh-iframe"
|
|
27
|
+
:src="actionAlertIframe.template"
|
|
28
|
+
width="100%"
|
|
29
|
+
height="95%"
|
|
30
|
+
:scrolling="actionAlertIframe.scrolling"
|
|
31
|
+
frameborder="no"
|
|
32
|
+
border="0"
|
|
33
|
+
></iframe>
|
|
34
|
+
</div>
|
|
14
35
|
</div>
|
|
36
|
+
<!-- https://blog.csdn.net/qq_16992475/article/details/130633117 -->
|
|
15
37
|
</template>
|
|
16
38
|
<script>
|
|
17
39
|
export default {
|
|
@@ -38,6 +60,7 @@ export default {
|
|
|
38
60
|
displayStyle:
|
|
39
61
|
"iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)",
|
|
40
62
|
},
|
|
63
|
+
showAskFullScreen: false,
|
|
41
64
|
};
|
|
42
65
|
},
|
|
43
66
|
methods: {},
|
|
@@ -63,6 +86,7 @@ export default {
|
|
|
63
86
|
} else {
|
|
64
87
|
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
65
88
|
}
|
|
89
|
+
this.actionAlertIframe.template = this.actionAlertIframe.template.split("&").join("&")
|
|
66
90
|
},
|
|
67
91
|
};
|
|
68
92
|
</script>
|
|
@@ -73,6 +97,24 @@ export default {
|
|
|
73
97
|
width: 100%;
|
|
74
98
|
margin: 0 auto;
|
|
75
99
|
overflow-x: auto;
|
|
100
|
+
|
|
101
|
+
.iframe-full-screen{
|
|
102
|
+
text-align: right;
|
|
103
|
+
padding-right: 12px;
|
|
104
|
+
.el-icon-full-screen{
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ask-full-screen{
|
|
110
|
+
background-color: white;
|
|
111
|
+
position: fixed;
|
|
112
|
+
top: 0;
|
|
113
|
+
left: 0;
|
|
114
|
+
width: 100vw;
|
|
115
|
+
height: 100vh;
|
|
116
|
+
z-index: 9999999999999999999;
|
|
117
|
+
}
|
|
76
118
|
.grzh-iframe {
|
|
77
119
|
scrollbar-face-color: #9aa1c4;
|
|
78
120
|
/* 滚动条滑块按钮的颜色 */
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-show="aiGuide.content.descriptionVisible && aiGuide.content.description !== ''"
|
|
14
14
|
class="ig-types-des"
|
|
15
15
|
>
|
|
16
|
-
|
|
16
|
+
<span v-html="aiGuide.content.description"></span>
|
|
17
17
|
</div>
|
|
18
18
|
<!-- 一级分类 -->
|
|
19
19
|
<div v-show="aiGuide.content.typesVisible" class="ig-types-f">
|
|
@@ -441,6 +441,7 @@ export default {
|
|
|
441
441
|
color: #366aff;
|
|
442
442
|
cursor: pointer;
|
|
443
443
|
align-items: center;
|
|
444
|
+
text-align: left;
|
|
444
445
|
span {
|
|
445
446
|
display: flex;
|
|
446
447
|
align-items: center;
|