@blueking/ai-ui-sdk 0.1.2-beta.2 → 0.1.2-beta.3
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/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
- package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-chat.ts.js +2 -2
- package/dist/hooks/use-dataset-http.d.ts +1 -1
- package/dist/hooks/use-dataset-http.ts.js +60 -19
- package/dist/hooks/use-session-http.d.ts +1 -1
- package/dist/hooks/use-session-http.ts.js +37 -11
- package/package.json +1 -1
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.aside-home[data-v-
|
2
|
+
.aside-home[data-v-9sq6cc0b] {
|
3
3
|
width: 300px;
|
4
4
|
height: 100%;
|
5
5
|
background: #FFFFFF;
|
6
6
|
padding: 16px;
|
7
7
|
border-right: 1px solid #eaebf0;
|
8
8
|
}
|
9
|
-
[data-v-
|
9
|
+
[data-v-9sq6cc0b] .aside-item {
|
10
10
|
width: 268px;
|
11
11
|
line-height: 36px;
|
12
12
|
border-radius: 2px;
|
@@ -16,30 +16,30 @@
|
|
16
16
|
justify-content: space-between;
|
17
17
|
color: #979BA5;
|
18
18
|
}
|
19
|
-
[data-v-
|
19
|
+
[data-v-9sq6cc0b] .aside-item.is-tab {
|
20
20
|
background: #F5F7FA;
|
21
21
|
cursor: pointer;
|
22
22
|
color: #4D4F56;
|
23
23
|
}
|
24
|
-
[data-v-
|
24
|
+
[data-v-9sq6cc0b] .aside-item.is-tab:hover {
|
25
25
|
background: #F0F5FF;
|
26
26
|
}
|
27
|
-
[data-v-
|
27
|
+
[data-v-9sq6cc0b] .aside-item.active {
|
28
28
|
background: #F0F5FF;
|
29
29
|
color: #3A84FF;
|
30
30
|
font-weight: 700;
|
31
31
|
}
|
32
|
-
[data-v-
|
32
|
+
[data-v-9sq6cc0b] .aside-item.active .tab-num {
|
33
33
|
background: #3A84FF;
|
34
34
|
color: #fff;
|
35
35
|
}
|
36
|
-
[data-v-
|
36
|
+
[data-v-9sq6cc0b] .aside-item.active .active-text {
|
37
37
|
color: #3A84FF;
|
38
38
|
}
|
39
|
-
[data-v-
|
39
|
+
[data-v-9sq6cc0b] .aside-item .tab-name {
|
40
40
|
flex: 1;
|
41
41
|
}
|
42
|
-
[data-v-
|
42
|
+
[data-v-9sq6cc0b] .aside-item .tab-num {
|
43
43
|
background: #EAEBF0;
|
44
44
|
border-radius: 2px;
|
45
45
|
margin-left: 5px;
|
@@ -1,40 +1,40 @@
|
|
1
1
|
|
2
|
-
.send-container[data-v-
|
2
|
+
.send-container[data-v-n8cx97q5] {
|
3
3
|
position: relative;
|
4
4
|
}
|
5
|
-
.send-container[data-v-
|
5
|
+
.send-container[data-v-n8cx97q5]:has(textarea:focus) {
|
6
6
|
z-index: 2;
|
7
7
|
}
|
8
|
-
.send-container:hover .send-clear[data-v-
|
8
|
+
.send-container:hover .send-clear[data-v-n8cx97q5] {
|
9
9
|
display: inline-flex !important;
|
10
10
|
}
|
11
|
-
.send-input[data-v-
|
11
|
+
.send-input[data-v-n8cx97q5] {
|
12
12
|
width: 100%;
|
13
13
|
flex-direction: row;
|
14
14
|
height: var(--origin-height);
|
15
15
|
}
|
16
|
-
.send-input[data-v-
|
16
|
+
.send-input[data-v-n8cx97q5]:has(textarea:focus) {
|
17
17
|
height: var(--text-height);
|
18
18
|
}
|
19
|
-
.send-input[data-v-
|
19
|
+
.send-input[data-v-n8cx97q5] textarea {
|
20
20
|
font-size: 12px;
|
21
21
|
line-height: 16px;
|
22
22
|
padding: 7px;
|
23
23
|
resize: none !important;
|
24
24
|
}
|
25
|
-
.send-input[data-v-
|
25
|
+
.send-input[data-v-n8cx97q5] textarea::-webkit-scrollbar {
|
26
26
|
width: 4px;
|
27
27
|
height: 4px;
|
28
28
|
}
|
29
|
-
.send-input[data-v-
|
29
|
+
.send-input[data-v-n8cx97q5] textarea::-webkit-scrollbar-thumb {
|
30
30
|
height: 5px;
|
31
31
|
border-radius: 3px;
|
32
32
|
background-color: #dcdee5;
|
33
33
|
}
|
34
|
-
.send-input[data-v-
|
34
|
+
.send-input[data-v-n8cx97q5] textarea::placeholder {
|
35
35
|
line-height: 16px;
|
36
36
|
}
|
37
|
-
.send-clear[data-v-
|
37
|
+
.send-clear[data-v-n8cx97q5] {
|
38
38
|
display: none !important;
|
39
39
|
position: absolute;
|
40
40
|
right: 10px;
|
@@ -43,6 +43,6 @@
|
|
43
43
|
font-size: 14px;
|
44
44
|
cursor: pointer;
|
45
45
|
}
|
46
|
-
.send-clear[data-v-
|
46
|
+
.send-clear[data-v-n8cx97q5]:hover {
|
47
47
|
color: #313238;
|
48
48
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.collapse-title[data-v-
|
2
|
+
.collapse-title[data-v-gr7mu4xl] {
|
3
3
|
height: 28px;
|
4
4
|
background: #F0F1F5;
|
5
5
|
border-radius: 2px;
|
6
6
|
padding: 0 12px;
|
7
7
|
}
|
8
|
-
.collapse-title .is-hidden[data-v-
|
8
|
+
.collapse-title .is-hidden[data-v-gr7mu4xl] {
|
9
9
|
transform: rotate(-90deg);
|
10
10
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-9nbj9jt5] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.data-set-edit-slider .value-content[data-v-
|
7
|
+
.data-set-edit-slider .value-content[data-v-9nbj9jt5] {
|
8
8
|
padding: 16px;
|
9
9
|
border: 1px solid #DCDEE5;
|
10
10
|
line-height: 22px;
|
11
11
|
}
|
12
|
-
.data-set-edit-slider[data-v-
|
12
|
+
.data-set-edit-slider[data-v-9nbj9jt5] .bk-sideslider-title {
|
13
13
|
justify-content: space-between;
|
14
14
|
width: 100%;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-9nbj9jt5";
|
3
3
|
script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-fdmp7s1n] {
|
3
3
|
padding: 0 24px 0px 32px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.content .toolbar[data-v-
|
6
|
+
.content .toolbar[data-v-fdmp7s1n] {
|
7
7
|
margin: 16px 0;
|
8
8
|
display: flex;
|
9
9
|
align-items: center;
|
10
10
|
justify-content: right;
|
11
11
|
gap: 8px;
|
12
12
|
}
|
13
|
-
.content .toolbar .record-search[data-v-
|
13
|
+
.content .toolbar .record-search[data-v-fdmp7s1n] {
|
14
14
|
width: 360px;
|
15
15
|
}
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
16
|
+
.content .toolbar .record-data-picker[data-v-fdmp7s1n] {
|
17
17
|
width: 260px;
|
18
18
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-fdmp7s1n";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-w64itxqs";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.content[data-v-
|
2
|
+
.content[data-v-flixadiq] {
|
3
3
|
padding: 18px 24px 0;
|
4
4
|
height: 100%;
|
5
5
|
overflow: auto;
|
6
6
|
}
|
7
|
-
.content .value-content[data-v-
|
7
|
+
.content .value-content[data-v-flixadiq] {
|
8
8
|
margin-top: 8px;
|
9
9
|
padding: 16px;
|
10
10
|
border: 1px solid #DCDEE5;
|
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-flixadiq";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
.dataset-data-content[data-v-
|
2
|
+
.dataset-data-content[data-v-w7g99egn] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.dataset-data-slider[data-v-
|
6
|
+
.dataset-data-slider[data-v-w7g99egn] .bk-modal-content {
|
7
7
|
scrollbar-gutter: inherit !important;
|
8
8
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-f9utqsvu";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
|
4
4
|
import './footer.vue.css';
|
5
5
|
export default script;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
.plus-dataset-data[data-v-
|
2
|
+
.plus-dataset-data[data-v-vpwulkyo] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
}
|
5
|
-
.plus-dataset-sideslider[data-v-
|
5
|
+
.plus-dataset-sideslider[data-v-vpwulkyo] .bk-modal-content {
|
6
6
|
scrollbar-gutter: inherit !important;
|
7
7
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-vpwulkyo";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.bkaidev-markdown[data-v-
|
2
|
+
.bkaidev-markdown[data-v-1wyfre07] {
|
3
3
|
color: #3a84ff;
|
4
4
|
}
|
5
|
-
.bkaidev-wangye[data-v-
|
5
|
+
.bkaidev-wangye[data-v-1wyfre07] {
|
6
6
|
color: #14A568;
|
7
7
|
}
|
8
|
-
.bkaidev-wenben[data-v-
|
8
|
+
.bkaidev-wenben[data-v-1wyfre07] {
|
9
9
|
color: #979ba5;
|
10
10
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-1wyfre07";
|
3
3
|
script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-pb0z69fx";
|
3
3
|
script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.origin-data-content[data-v-
|
2
|
+
.origin-data-content[data-v-ac0ejb0q] {
|
3
3
|
padding: 24px;
|
4
4
|
height: calc(100% - 52px - 44px);
|
5
5
|
}
|
6
|
-
.origin-data-panel[data-v-
|
6
|
+
.origin-data-panel[data-v-ac0ejb0q] {
|
7
7
|
height: 100%;
|
8
8
|
padding: 20px;
|
9
9
|
background: #ffffff;
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
11
11
|
border-radius: 2px;
|
12
12
|
}
|
13
|
-
.origin-data-panel .toolbar-search[data-v-
|
13
|
+
.origin-data-panel .toolbar-search[data-v-ac0ejb0q] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
|
-
.main-content[data-v-
|
2
|
+
.main-content[data-v-i8k6f460] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: calc(100% - 52px);
|
5
5
|
}
|
6
|
-
.main-panel[data-v-
|
6
|
+
.main-panel[data-v-i8k6f460] {
|
7
7
|
height: 100%;
|
8
8
|
padding: 20px 24px 0;
|
9
9
|
background: #ffffff;
|
10
10
|
box-shadow: 0 2px 4px 0 #1919290d;
|
11
11
|
border-radius: 2px;
|
12
12
|
}
|
13
|
-
.main-search[data-v-
|
13
|
+
.main-search[data-v-i8k6f460] {
|
14
14
|
width: 6.17rem;
|
15
15
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.expend-collapse-home[data-v-
|
2
|
+
.expend-collapse-home[data-v-gwfiljxo] {
|
3
3
|
width: 16px;
|
4
4
|
height: 64px;
|
5
5
|
background: #DCDEE5;
|
@@ -15,9 +15,9 @@
|
|
15
15
|
cursor: pointer;
|
16
16
|
z-index: 1550;
|
17
17
|
}
|
18
|
-
.expend-collapse-home[data-v-
|
18
|
+
.expend-collapse-home[data-v-gwfiljxo]:hover {
|
19
19
|
background: #979BA5;
|
20
20
|
}
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
21
|
+
.expend-collapse-home.is-close[data-v-gwfiljxo] {
|
22
22
|
left: 0;
|
23
23
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
|
-
.upload-file-home[data-v-
|
2
|
+
.upload-file-home[data-v-x75x7nq3] {
|
3
3
|
position: relative;
|
4
4
|
background: #FFFFFF;
|
5
5
|
border: 1px solid #DCDEE5;
|
6
6
|
border-radius: 4px;
|
7
7
|
padding: 12px 12px 10px 12px;
|
8
8
|
}
|
9
|
-
.upload-file-home[data-v-
|
9
|
+
.upload-file-home[data-v-x75x7nq3]:hover {
|
10
10
|
border: 1px solid #3A84FF;
|
11
11
|
}
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
12
|
+
.upload-file-home:hover .file-icons[data-v-x75x7nq3] {
|
13
13
|
display: flex;
|
14
14
|
}
|
15
|
-
.upload-file-home .file-icon[data-v-
|
15
|
+
.upload-file-home .file-icon[data-v-x75x7nq3] {
|
16
16
|
font-size: 32px;
|
17
17
|
}
|
18
|
-
.upload-file-home .file-content[data-v-
|
18
|
+
.upload-file-home .file-content[data-v-x75x7nq3] {
|
19
19
|
font-size: 12px;
|
20
20
|
flex: 1;
|
21
21
|
align-items: flex-start;
|
@@ -23,28 +23,28 @@
|
|
23
23
|
font-weight: normal;
|
24
24
|
width: 0;
|
25
25
|
}
|
26
|
-
.upload-file-home .file-content .file-name[data-v-
|
26
|
+
.upload-file-home .file-content .file-name[data-v-x75x7nq3] {
|
27
27
|
width: 100%;
|
28
28
|
font-size: 14px;
|
29
29
|
line-height: 20px;
|
30
30
|
}
|
31
|
-
.upload-file-home .file-content .file-size[data-v-
|
31
|
+
.upload-file-home .file-content .file-size[data-v-x75x7nq3] {
|
32
32
|
font-size: 12px;
|
33
33
|
color: #979BA5;
|
34
34
|
line-height: 20px;
|
35
35
|
}
|
36
|
-
.upload-file-home .file-icons[data-v-
|
36
|
+
.upload-file-home .file-icons[data-v-x75x7nq3] {
|
37
37
|
display: none;
|
38
38
|
color: #979BA5;
|
39
39
|
}
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-x75x7nq3] {
|
41
41
|
cursor: pointer;
|
42
42
|
margin-right: 15px;
|
43
43
|
font-size: 16px;
|
44
44
|
}
|
45
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-x75x7nq3]:hover {
|
46
46
|
color: #3A84FF;
|
47
47
|
}
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-x75x7nq3] {
|
49
49
|
margin: 0;
|
50
50
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-9b6moxml] {
|
3
3
|
color: #EA3636;
|
4
4
|
}
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-9b6moxml], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-9b6moxml], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-9b6moxml] {
|
6
6
|
color: #3A84FF;
|
7
7
|
}
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-9b6moxml] {
|
9
9
|
color: #C4C6CC;
|
10
10
|
}
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-9b6moxml] {
|
12
12
|
color: #2DCB56;
|
13
13
|
}
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-9b6moxml] {
|
15
15
|
color: #14A568;
|
16
16
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.header-home[data-v-
|
2
|
+
.header-home[data-v-o8cym72y] {
|
3
3
|
width: 100%;
|
4
4
|
height: 52px;
|
5
5
|
background: #FFFFFF;
|
@@ -7,14 +7,14 @@
|
|
7
7
|
position: relative;
|
8
8
|
z-index: 2;
|
9
9
|
}
|
10
|
-
.header-title[data-v-
|
10
|
+
.header-title[data-v-o8cym72y] {
|
11
11
|
position: absolute;
|
12
12
|
left: 24px;
|
13
13
|
top: 14px;
|
14
14
|
font-size: 16px;
|
15
15
|
color: #313238;
|
16
16
|
}
|
17
|
-
.header-main[data-v-
|
17
|
+
.header-main[data-v-o8cym72y] {
|
18
18
|
display: flex;
|
19
19
|
align-items: center;
|
20
20
|
justify-content: flex-end;
|
@@ -22,13 +22,13 @@
|
|
22
22
|
height: 100%;
|
23
23
|
margin: 0 auto;
|
24
24
|
}
|
25
|
-
.header-select[data-v-
|
25
|
+
.header-select[data-v-o8cym72y] {
|
26
26
|
width: 300px;
|
27
27
|
margin-right: 8px;
|
28
28
|
z-index: 9;
|
29
29
|
font-size: 12px;
|
30
30
|
}
|
31
|
-
.header-input[data-v-
|
31
|
+
.header-input[data-v-o8cym72y] {
|
32
32
|
width: 300px;
|
33
33
|
font-size: 12px;
|
34
34
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
.router-tab[data-v-
|
2
|
+
.router-tab[data-v-zqfysrnk] {
|
3
3
|
margin-top: 2px;
|
4
4
|
height: 42px;
|
5
5
|
background: #FFFFFF;
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
7
7
|
padding: 0 45px;
|
8
8
|
}
|
9
|
-
.router-tab a[data-v-
|
9
|
+
.router-tab a[data-v-zqfysrnk] {
|
10
10
|
padding: 0 8px;
|
11
11
|
margin-right: 24px;
|
12
12
|
font-size: 14px;
|
@@ -15,7 +15,7 @@
|
|
15
15
|
color: #4D4F56;
|
16
16
|
box-sizing: border-box;
|
17
17
|
}
|
18
|
-
.router-tab a.router-link-exact-active[data-v-
|
18
|
+
.router-tab a.router-link-exact-active[data-v-zqfysrnk] {
|
19
19
|
color: #3A84FF;
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
21
21
|
}
|
@@ -92,14 +92,14 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
|
|
92
92
|
// 用 ref 存储 requestOptions,使其可更新
|
93
93
|
const currentRequestOptions = ref(requestOptions);
|
94
94
|
// 创建一个变量保存当前的API实现
|
95
|
-
let apiImpl = useSessionHttp(currentRequestOptions.value.url);
|
95
|
+
let apiImpl = useSessionHttp(currentRequestOptions.value.url, currentRequestOptions.value.headers);
|
96
96
|
// 更新 requestOptions 的方法
|
97
97
|
function updateRequestOptions(newOptions) {
|
98
98
|
// 合并新旧配置
|
99
99
|
currentRequestOptions.value = _object_spread({}, currentRequestOptions.value, newOptions);
|
100
100
|
// 如果 URL 变更,重新获取 API
|
101
101
|
if (newOptions.url) {
|
102
|
-
apiImpl = useSessionHttp(currentRequestOptions.value.url);
|
102
|
+
apiImpl = useSessionHttp(currentRequestOptions.value.url, currentRequestOptions.value.headers);
|
103
103
|
}
|
104
104
|
}
|
105
105
|
const startMessage = '内容正在生成中...';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { IComponent, IDatasetApi, IDatasetDataApi, IDatasetDataForm, IDatasetDataParam, IDatasetForm, IDatasetInfo, IDatasetListParam, IOperatRecordParam, ISchema, IUserInfoForm } from '@/types/dataset';
|
2
|
-
export declare const useDatasetHttp: (apiPrefix?: string) => {
|
2
|
+
export declare const useDatasetHttp: (apiPrefix?: string, headers?: Record<string, string>) => {
|
3
3
|
getCompanyList: () => Promise<import("@/types/dataset").ICompany[]>;
|
4
4
|
getDatasetMineInfo: () => Promise<IDatasetInfo>;
|
5
5
|
getComponentList: () => Promise<IComponent[]>;
|
@@ -3,62 +3,100 @@ import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyPartic
|
|
3
3
|
const datasetPerfix = 'dataset/v1';
|
4
4
|
const metaPerfix = 'meta/v1';
|
5
5
|
// 数据集相关接口
|
6
|
-
export const useDatasetHttp = (apiPrefix)=>{
|
6
|
+
export const useDatasetHttp = (apiPrefix, headers)=>{
|
7
7
|
// meta相关接口
|
8
8
|
// 获取公司列表
|
9
|
-
const getCompanyList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/company
|
9
|
+
const getCompanyList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/company/`, null, {
|
10
|
+
headers
|
11
|
+
}).then((data)=>data.map(transferCompanyApi2Company));
|
10
12
|
// 获取组件列表
|
11
|
-
const getComponentList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/component
|
13
|
+
const getComponentList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/component/`, null, {
|
14
|
+
headers
|
15
|
+
});
|
12
16
|
// 查询操作记录列表
|
13
|
-
const getOperateRecordList = (param)=>fetch.post(`${apiPrefix}/${metaPerfix}/operate_record/list/`, transferOperatRecordParam2OperatRecordParamApi(param)
|
17
|
+
const getOperateRecordList = (param)=>fetch.post(`${apiPrefix}/${metaPerfix}/operate_record/list/`, transferOperatRecordParam2OperatRecordParamApi(param), {
|
18
|
+
headers
|
19
|
+
}).then(({ count, results })=>({
|
14
20
|
count,
|
15
21
|
results: results.map(transferOperatRecordApi2OperatRecord)
|
16
22
|
}));
|
17
23
|
// 获取来源团队-组件和参与方列表
|
18
24
|
const getCompanyParticipantList = (fuzzy)=>fetch.get(`${apiPrefix}/${metaPerfix}/company/participant_list/`, {
|
19
25
|
fuzzy
|
26
|
+
}, {
|
27
|
+
headers
|
20
28
|
}).then(({ list, company_names })=>({
|
21
29
|
companyNames: company_names,
|
22
30
|
list: transferCompanyParticipantApi2CompanyParticipantList(list)
|
23
31
|
}));
|
24
32
|
// 平台用户-更新用户信息
|
25
|
-
const registerUser = (data)=>fetch.post(`${apiPrefix}/${metaPerfix}/user/register/`, transferUserInfoForm2UserInfoFormApi(data)
|
33
|
+
const registerUser = (data)=>fetch.post(`${apiPrefix}/${metaPerfix}/user/register/`, transferUserInfoForm2UserInfoFormApi(data), {
|
34
|
+
headers
|
35
|
+
});
|
26
36
|
// 平台用户-获取用户信息
|
27
|
-
const getUserInfo = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/user
|
37
|
+
const getUserInfo = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/user/`, null, {
|
38
|
+
headers
|
39
|
+
}).then(transferUserInfoApi2UserInfo);
|
28
40
|
// 平台用户-退出登录
|
29
|
-
const logout = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/user/logout
|
41
|
+
const logout = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/user/logout/`, null, {
|
42
|
+
headers
|
43
|
+
});
|
30
44
|
// dateset相关接口
|
31
45
|
// 获取数据集数据信息
|
32
|
-
const getDatasetMineInfo = ()=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/mine_info
|
46
|
+
const getDatasetMineInfo = ()=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/mine_info/`, null, {
|
47
|
+
headers
|
48
|
+
});
|
33
49
|
// 获取数据集列表
|
34
|
-
const getDatasetList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/list/`, transferDatasetListParam2DatasetListParamApi(query)
|
50
|
+
const getDatasetList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/list/`, transferDatasetListParam2DatasetListParamApi(query), {
|
51
|
+
headers
|
52
|
+
}).then(({ count, results })=>({
|
35
53
|
count,
|
36
54
|
results: results.map(transferDatasetApi2Dataset)
|
37
55
|
}));
|
38
56
|
// 获取数据集
|
39
|
-
const getDataset = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/${id}
|
57
|
+
const getDataset = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/${id}/`, null, {
|
58
|
+
headers
|
59
|
+
}).then(transferDatasetApi2Dataset);
|
40
60
|
// 创建数据集
|
41
|
-
const createDataset = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetForm2DatasetFormApi(data)
|
61
|
+
const createDataset = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetForm2DatasetFormApi(data), {
|
62
|
+
headers
|
63
|
+
}).then(transferDatasetApi2Dataset);
|
42
64
|
// 更新数据集
|
43
|
-
const updateDataset = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset/${id}/`, transferDatasetForm2DatasetFormApi(data)
|
65
|
+
const updateDataset = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset/${id}/`, transferDatasetForm2DatasetFormApi(data), {
|
66
|
+
headers
|
67
|
+
}).then(transferDatasetApi2Dataset);
|
44
68
|
// 删除数据集
|
45
|
-
const deleteDataset = (id)=>fetch.delete(`${apiPrefix}/${datasetPerfix}/dataset/${id}
|
69
|
+
const deleteDataset = (id)=>fetch.delete(`${apiPrefix}/${datasetPerfix}/dataset/${id}/`, null, {
|
70
|
+
headers
|
71
|
+
});
|
46
72
|
// 获取数据集数据列表
|
47
|
-
const getDatasetDataList = (query)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataParam2DatasetDataParamApi(query)
|
73
|
+
const getDatasetDataList = (query)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataParam2DatasetDataParamApi(query), {
|
74
|
+
headers
|
75
|
+
}).then(({ count, results })=>({
|
48
76
|
count,
|
49
77
|
results: results.map(transferDatasetDataApi2DatasetData)
|
50
78
|
}));
|
51
79
|
// 创建数据集数据
|
52
|
-
const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)
|
80
|
+
const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data), {
|
81
|
+
headers
|
82
|
+
}).then(transferCreateDatasetDataResultApi2CreateDatasetDataResult);
|
53
83
|
// 更新数据集数据
|
54
|
-
const updateDatasetData = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, transferDatasetDataForm2DatasetDataFormApi(data)
|
84
|
+
const updateDatasetData = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, transferDatasetDataForm2DatasetDataFormApi(data), {
|
85
|
+
headers
|
86
|
+
}).then(transferDatasetDataApi2DatasetData);
|
55
87
|
// 删除数据集数据
|
56
|
-
const deleteDatasetData = (id)=>fetch.delete(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}
|
88
|
+
const deleteDatasetData = (id)=>fetch.delete(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, null, {
|
89
|
+
headers
|
90
|
+
});
|
57
91
|
// 获取数据集数据详情
|
58
|
-
const getDatasetData = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}
|
92
|
+
const getDatasetData = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, null, {
|
93
|
+
headers
|
94
|
+
}).then(transferDatasetDataApi2DatasetData);
|
59
95
|
// 批量删除数据集数据
|
60
96
|
const batchDeleteDatasetData = (ids)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/batch_delete/`, {
|
61
97
|
ids
|
98
|
+
}, {
|
99
|
+
headers
|
62
100
|
});
|
63
101
|
// 数据集数据文件上传
|
64
102
|
const uploadDatasetDataFiles = (files)=>{
|
@@ -67,7 +105,8 @@ export const useDatasetHttp = (apiPrefix)=>{
|
|
67
105
|
form.append('files', file);
|
68
106
|
});
|
69
107
|
return fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/upload/`, form, {
|
70
|
-
requestType: 'formData'
|
108
|
+
requestType: 'formData',
|
109
|
+
headers
|
71
110
|
}).then((data)=>data.map(transferDatasetDataFileApi2DatasetDataFile));
|
72
111
|
};
|
73
112
|
// 下载数据集数据模板文件
|
@@ -78,6 +117,8 @@ export const useDatasetHttp = (apiPrefix)=>{
|
|
78
117
|
// 获取schema列表
|
79
118
|
const getSchemaList = (datasetId)=>fetch.get(`${apiPrefix}/${datasetPerfix}/schema/schema_list/`, {
|
80
119
|
dataset_id: datasetId
|
120
|
+
}, {
|
121
|
+
headers
|
81
122
|
});
|
82
123
|
return {
|
83
124
|
getCompanyList,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ISession, ISessionContent } from '@/types/session';
|
2
|
-
export declare const useSessionHttp: (apiPrefix: string) => {
|
2
|
+
export declare const useSessionHttp: (apiPrefix: string, headers?: Record<string, string>) => {
|
3
3
|
getAgentInfo: () => Promise<import("@/types/agent").IAgentInfo>;
|
4
4
|
clearSession: (sessionCode: string) => Promise<unknown>;
|
5
5
|
getSessions: () => Promise<ISession[]>;
|
@@ -2,38 +2,64 @@ import fetch from '../http/fetch/index.ts.js';
|
|
2
2
|
import { transferAgentInfoApi2AgentInfo } from '../http/helper/agent.ts.js';
|
3
3
|
import { transferSession2SessionApi, transferSessionApi2Session, transferSessionContent2SessionContentApi, transferSessionContentApi2SessionContent } from '../http/helper/session.ts.js';
|
4
4
|
// session 相关接口
|
5
|
-
export const useSessionHttp = (apiPrefix)=>{
|
5
|
+
export const useSessionHttp = (apiPrefix, headers)=>{
|
6
6
|
// 获取 agent 信息
|
7
|
-
const getAgentInfo = ()=>fetch.get(`${apiPrefix}/agent/info
|
7
|
+
const getAgentInfo = ()=>fetch.get(`${apiPrefix}/agent/info/`, null, {
|
8
|
+
headers
|
9
|
+
}).then((res)=>transferAgentInfoApi2AgentInfo(res));
|
8
10
|
// 清除聊天上下文
|
9
|
-
const clearSession = (sessionCode)=>fetch.post(`${apiPrefix}/chat_completion/${sessionCode}/clear
|
11
|
+
const clearSession = (sessionCode)=>fetch.post(`${apiPrefix}/chat_completion/${sessionCode}/clear/`, null, {
|
12
|
+
headers
|
13
|
+
});
|
10
14
|
// 获取会话列表
|
11
|
-
const getSessions = ()=>fetch.get(`${apiPrefix}/session
|
15
|
+
const getSessions = ()=>fetch.get(`${apiPrefix}/session/`, null, {
|
16
|
+
headers
|
17
|
+
}).then((res)=>res.map(transferSessionApi2Session));
|
12
18
|
// 新增会话
|
13
|
-
const plusSession = (data)=>fetch.post(`${apiPrefix}/session/`, transferSession2SessionApi(data)
|
19
|
+
const plusSession = (data)=>fetch.post(`${apiPrefix}/session/`, transferSession2SessionApi(data), {
|
20
|
+
headers
|
21
|
+
}).then((res)=>transferSessionApi2Session(res));
|
14
22
|
// 修改会话
|
15
|
-
const modifySession = (data)=>fetch.put(`${apiPrefix}/session/${data.sessionCode}/`, transferSession2SessionApi(data)
|
23
|
+
const modifySession = (data)=>fetch.put(`${apiPrefix}/session/${data.sessionCode}/`, transferSession2SessionApi(data), {
|
24
|
+
headers
|
25
|
+
}).then((res)=>transferSessionApi2Session(res));
|
16
26
|
// 删除会话
|
17
|
-
const deleteSession = (sessionCode)=>fetch.delete(`${apiPrefix}/session/${sessionCode}
|
27
|
+
const deleteSession = (sessionCode)=>fetch.delete(`${apiPrefix}/session/${sessionCode}/`, null, {
|
28
|
+
headers
|
29
|
+
});
|
18
30
|
// 批量删除会话
|
19
31
|
const batchDeleteSessions = (sessionCodes)=>fetch.post(`${apiPrefix}/session/batch_delete/`, {
|
20
32
|
session_codes: sessionCodes
|
33
|
+
}, {
|
34
|
+
headers
|
21
35
|
});
|
22
36
|
// 获取会话资源
|
23
|
-
const getSession = (sessionCode)=>fetch.get(`${apiPrefix}/session/${sessionCode}
|
37
|
+
const getSession = (sessionCode)=>fetch.get(`${apiPrefix}/session/${sessionCode}/`, null, {
|
38
|
+
headers
|
39
|
+
}).then((res)=>transferSessionApi2Session(res));
|
24
40
|
// 获取会话内容列表
|
25
41
|
const getSessionContents = (sessionCode)=>fetch.get(`${apiPrefix}/session_content/content/`, {
|
26
42
|
session_code: sessionCode
|
43
|
+
}, {
|
44
|
+
headers
|
27
45
|
}).then((res)=>res.map(transferSessionContentApi2SessionContent));
|
28
46
|
// 新增会话内容
|
29
|
-
const plusSessionContent = (data)=>fetch.post(`${apiPrefix}/session_content/`, transferSessionContent2SessionContentApi(data)
|
47
|
+
const plusSessionContent = (data)=>fetch.post(`${apiPrefix}/session_content/`, transferSessionContent2SessionContentApi(data), {
|
48
|
+
headers
|
49
|
+
});
|
30
50
|
// 修改会话内容
|
31
|
-
const modifySessionContent = (data)=>fetch.put(`${apiPrefix}/session_content/${data.id}/`, transferSessionContent2SessionContentApi(data)
|
51
|
+
const modifySessionContent = (data)=>fetch.put(`${apiPrefix}/session_content/${data.id}/`, transferSessionContent2SessionContentApi(data), {
|
52
|
+
headers
|
53
|
+
});
|
32
54
|
// 删除会话内容
|
33
|
-
const deleteSessionContent = (id)=>fetch.delete(`${apiPrefix}/session_content/${id}
|
55
|
+
const deleteSessionContent = (id)=>fetch.delete(`${apiPrefix}/session_content/${id}/`, null, {
|
56
|
+
headers
|
57
|
+
});
|
34
58
|
// 批量删除聊天内容
|
35
59
|
const batchDeleteSessionContents = (ids)=>fetch.post(`${apiPrefix}/session_content/batch_delete/`, {
|
36
60
|
ids
|
61
|
+
}, {
|
62
|
+
headers
|
37
63
|
});
|
38
64
|
return {
|
39
65
|
getAgentInfo,
|