askbot-dragon 1.7.26-beta → 1.7.29-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/package.json +4 -2
- package/src/assets/js/AliyunlssUtil.js +32 -9
- package/src/components/AiGuide.vue +1 -1
- package/src/components/AnswerDocknowledge.vue +245 -257
- package/src/components/ConversationContainer.vue +6 -17
- package/src/components/MyEditor.vue +2 -11
- package/src/components/actionSatisfaction.vue +2 -2
- package/src/components/answerRadio.vue +2 -2
- package/src/components/askVideo.vue +2 -2
- package/src/components/assetDetails.vue +1 -1
- package/src/components/assetMessage.vue +10 -12
- package/src/components/fielListView.vue +1 -1
- package/src/components/formTemplate.vue +4 -14
- package/src/components/imgView.vue +32 -0
- package/src/components/intelligentSummary.vue +14 -12
- package/src/components/markDownText.vue +164 -0
- package/src/components/myPopup.vue +10 -10
- package/src/components/pdfPosition.vue +66 -58
- package/src/components/popup.vue +7 -7
- package/src/components/previewPdf.vue +16 -21
- package/src/components/receiverMessagePlatform.vue +20 -19
- package/src/components/senderMessagePlatform.vue +15 -10
- package/src/components/tree.vue +2 -2
- package/src/components/utils/AliyunIssUtil.js +33 -12
- package/src/components/utils/ckeditor.js +59 -48
- package/src/components/welcomeKnowledgeFile.vue +1 -1
- package/src/components/welcomeSuggest.vue +1 -1
- package/src/locales/cn.json +60 -0
- package/src/locales/en.json +60 -0
- package/src/main.js +16 -0
- package/src/components/QwFeedback.vue +0 -301
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.29-beta",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -28,10 +28,12 @@
|
|
|
28
28
|
"babel-eslint": "^10.1.0",
|
|
29
29
|
"element-ui": "^2.15.10",
|
|
30
30
|
"eslint": "^6.7.2",
|
|
31
|
+
"vue-markdown": "^2.2.4",
|
|
31
32
|
"eslint-plugin-vue": "^6.2.2",
|
|
32
33
|
"less": "^3.12.2",
|
|
33
34
|
"less-loader": "^7.0.2",
|
|
34
|
-
"vue-template-compiler": "^2.6.11"
|
|
35
|
+
"vue-template-compiler": "^2.6.11",
|
|
36
|
+
"vue-i18n": "^8.26.4"
|
|
35
37
|
},
|
|
36
38
|
"eslintConfig": {
|
|
37
39
|
"root": true,
|
|
@@ -4,7 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
const OSS = window.OSS
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const getPrivateOssConfig = () =>{
|
|
8
|
+
let mainSource = sessionStorage.getItem('_mainSource') ? sessionStorage.getItem('_mainSource') : "askbot";
|
|
9
|
+
switch (mainSource) {
|
|
10
|
+
case "askbot":
|
|
11
|
+
return {
|
|
12
|
+
region: "oss-cn-zhangjiakou",
|
|
13
|
+
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
14
|
+
accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
|
|
15
|
+
bucket: "guoranopen-zjk",
|
|
16
|
+
}
|
|
17
|
+
case "lishi":
|
|
18
|
+
return {
|
|
19
|
+
region: "oss-ap-southeast-1",
|
|
20
|
+
accessKeyId: "LTAI5tAusPLDNJJwkvUbqi2T",
|
|
21
|
+
accessKeySecret: "xqPVaunOIbvTe3g9qsXal2IZO6RftK",
|
|
22
|
+
bucket: "askbotopen-ls",
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const ossConfig = {
|
|
8
28
|
region: "oss-cn-zhangjiakou",
|
|
9
29
|
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
|
|
10
30
|
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
@@ -13,6 +33,8 @@ const ossConfig={
|
|
|
13
33
|
bucket: "guoranopen-zjk",
|
|
14
34
|
};
|
|
15
35
|
|
|
36
|
+
|
|
37
|
+
|
|
16
38
|
let IDX = 256, HEX = [], SIZE = 256, BUFFER;
|
|
17
39
|
while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
|
|
18
40
|
let mainId = sessionStorage.getItem('_mainId') ? sessionStorage.getItem('_mainId') : "";
|
|
@@ -48,8 +70,8 @@ function pathGenerate(filename) {
|
|
|
48
70
|
}
|
|
49
71
|
|
|
50
72
|
|
|
51
|
-
async function upload(
|
|
52
|
-
let ossClient = new OSS(
|
|
73
|
+
async function upload(data) {
|
|
74
|
+
let ossClient = new OSS(getPrivateOssConfig());
|
|
53
75
|
// object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定目录。
|
|
54
76
|
let objectKey = pathGenerate(data.name);
|
|
55
77
|
let result = await ossClient.put(objectKey, data);
|
|
@@ -57,8 +79,8 @@ async function upload(ossConfig, data) {
|
|
|
57
79
|
return result;
|
|
58
80
|
}
|
|
59
81
|
|
|
60
|
-
async function multipartUpload(
|
|
61
|
-
let ossClient = new OSS(
|
|
82
|
+
async function multipartUpload(data, callback,extCallback) {
|
|
83
|
+
let ossClient = new OSS(getPrivateOssConfig());
|
|
62
84
|
// object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定目录。
|
|
63
85
|
let objectKey = pathGenerate(data.name);
|
|
64
86
|
let res = await ossClient.multipartUpload(objectKey, data, {
|
|
@@ -73,7 +95,8 @@ async function multipartUpload(ossConfig, data, callback,extCallback) {
|
|
|
73
95
|
return res;
|
|
74
96
|
}
|
|
75
97
|
|
|
76
|
-
function ossFileUrl(
|
|
98
|
+
function ossFileUrl(path, cname) {
|
|
99
|
+
let ossConfig = getPrivateOssConfig()
|
|
77
100
|
if (cname == null) {
|
|
78
101
|
return '//' + ossConfig.bucket + '.' + ossConfig.region + '.aliyuncs.com/' + path;
|
|
79
102
|
} else {
|
|
@@ -81,8 +104,8 @@ function ossFileUrl(ossConfig, path, cname) {
|
|
|
81
104
|
}
|
|
82
105
|
}
|
|
83
106
|
|
|
84
|
-
function uploadImageByBase64(
|
|
85
|
-
let ossClient = new OSS(
|
|
107
|
+
function uploadImageByBase64(blob) {
|
|
108
|
+
let ossClient = new OSS(getPrivateOssConfig());
|
|
86
109
|
|
|
87
110
|
// object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形 式,实现将文件上传至当前Bucket或Bucket下的指定目录。
|
|
88
111
|
let objectKey = pathGenerate(new Date().getTime());
|
|
@@ -91,4 +114,4 @@ function uploadImageByBase64(ossConfig,blob) {
|
|
|
91
114
|
return result;
|
|
92
115
|
}
|
|
93
116
|
|
|
94
|
-
export {upload, multipartUpload, ossFileUrl,uploadImageByBase64,ossConfig}
|
|
117
|
+
export {upload, multipartUpload, ossFileUrl,uploadImageByBase64,ossConfig, getPrivateOssConfig}
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
>
|
|
192
192
|
<span @click="changeIntellectGuide" class="ig-change-list-btn">
|
|
193
193
|
<svg t="1720148246364" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="136175" width="16" height="16"><path d="M225.6 540.8C240 686.4 363.2 800 512 800c76.8 0 150.4-30.4 203.2-84.8 12.8-12.8 32-12.8 44.8 0s12.8 32 0 44.8c-64 65.6-153.6 104-248 104-184 0-336-142.4-350.4-323.2l-43.2 41.6c-12.8 12.8-33.6 11.2-44.8 0s-11.2-33.6 0-44.8l99.2-96c12.8-12.8 33.6-11.2 44.8 0l92.8 96c12.8 12.8 11.2 33.6-1.6 44.8-12.8 12.8-33.6 11.2-44.8-1.6l-38.4-40zM800 497.6C792 345.6 665.6 224 512 224c-76.8 0-148.8 30.4-203.2 83.2-12.8 12.8-33.6 12.8-44.8 0-12.8-12.8-12.8-33.6 0-44.8 65.6-64 153.6-102.4 248-102.4 192 0 347.2 153.6 352 342.4l41.6-40c12.8-12.8 33.6-11.2 44.8 1.6 12.8 12.8 11.2 33.6-1.6 44.8l-94.4 89.6c-12.8 11.2-32 11.2-44.8 0l-97.6-96c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l43.2 40z" p-id="136176" fill="#366aff"></path></svg>
|
|
194
|
-
|
|
194
|
+
{{$t('dragonCommon.refresh')}}</span
|
|
195
195
|
>
|
|
196
196
|
</div>
|
|
197
197
|
</div>
|