@blueking/ai-ui-sdk 0.4.1-beta.13 → 0.4.1-beta.15
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-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.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-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/actions.script.vue.js.js +4 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base/application-base-actions.script.vue.js.js +36 -2
- package/dist/components/render-card/base/application-base-actions.vue.d.ts +12 -0
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +13 -5
- package/dist/components/render-card/knowledgebase/actions.vue.d.ts +3 -0
- package/dist/components/render-card/knowledgebase/index.script.vue.js.js +2 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/actions.script.vue.js.js +4 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/tool/actions.script.vue.js.js +4 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/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-collection/actions/index.script.vue.js.js +4 -1
- package/dist/components/render-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/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 +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.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 +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/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-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.script.vue.js.js +4 -0
- package/dist/components/render-dropdown/index.vue.d.ts +2 -0
- 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 +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-prompt/actions/index.script.vue.js.js +4 -1
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js +4 -2
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/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/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-skill/actions/index.script.vue.js.js +4 -1
- package/dist/components/render-t-table/index.vue.css +27 -27
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.agent-type[data-v-
|
|
2
|
+
.agent-type[data-v-8zyx3wrj] {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
border-radius: 2px;
|
|
5
5
|
text-align: left;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
}
|
|
8
|
-
.agent-type.single[data-v-
|
|
8
|
+
.agent-type.single[data-v-8zyx3wrj] {
|
|
9
9
|
color: #1768EF;
|
|
10
10
|
background-color: #E1ECFF;
|
|
11
11
|
}
|
|
12
|
-
.agent-type.flow[data-v-
|
|
12
|
+
.agent-type.flow[data-v-8zyx3wrj] {
|
|
13
13
|
color: #E38B02;
|
|
14
14
|
background: #FDEED8;
|
|
15
15
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
|
|
2
|
-
.send-container[data-v-
|
|
2
|
+
.send-container[data-v-g30ehfe6] {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
|
-
.send-container[data-v-
|
|
5
|
+
.send-container[data-v-g30ehfe6]: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-g30ehfe6] {
|
|
9
9
|
display: inline-flex !important;
|
|
10
10
|
}
|
|
11
|
-
.send-input[data-v-
|
|
11
|
+
.send-input[data-v-g30ehfe6] {
|
|
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-g30ehfe6]:has(textarea:focus) {
|
|
17
17
|
height: var(--text-height);
|
|
18
18
|
}
|
|
19
|
-
.send-input[data-v-
|
|
19
|
+
.send-input[data-v-g30ehfe6] 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-g30ehfe6] textarea::-webkit-scrollbar {
|
|
26
26
|
width: 4px;
|
|
27
27
|
height: 4px;
|
|
28
28
|
}
|
|
29
|
-
.send-input[data-v-
|
|
29
|
+
.send-input[data-v-g30ehfe6] 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-g30ehfe6] textarea::placeholder {
|
|
35
35
|
line-height: 16px;
|
|
36
36
|
}
|
|
37
|
-
.send-clear[data-v-
|
|
37
|
+
.send-clear[data-v-g30ehfe6] {
|
|
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-g30ehfe6]:hover {
|
|
47
47
|
color: #313238;
|
|
48
48
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.auto-refresh[data-v-
|
|
2
|
+
.auto-refresh[data-v-ov318e51] {
|
|
3
3
|
position: relative;
|
|
4
4
|
cursor: pointer;
|
|
5
5
|
line-height: 26px;
|
|
6
6
|
padding: 0 4px;
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
}
|
|
9
|
-
.auto-refresh[data-v-
|
|
9
|
+
.auto-refresh[data-v-ov318e51]:after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 5px;
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
background-color: #dcdee5;
|
|
17
17
|
z-index: 1;
|
|
18
18
|
}
|
|
19
|
-
.auto-refresh[data-v-
|
|
19
|
+
.auto-refresh[data-v-ov318e51]:hover {
|
|
20
20
|
color: #3A84FF;
|
|
21
21
|
background-color: #E1ECFF;
|
|
22
22
|
}
|
|
23
|
-
.refresh[data-v-
|
|
23
|
+
.refresh[data-v-ov318e51] {
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
line-height: 26px;
|
|
26
26
|
padding: 0 4px;
|
|
27
27
|
}
|
|
28
|
-
.refresh[data-v-
|
|
28
|
+
.refresh[data-v-ov318e51]:hover {
|
|
29
29
|
color: #3A84FF;
|
|
30
30
|
background-color: #E1ECFF;
|
|
31
31
|
}
|
|
32
|
-
.textarea-list[data-v-
|
|
32
|
+
.textarea-list[data-v-ov318e51] {
|
|
33
33
|
padding: 4px 0;
|
|
34
34
|
line-height: 32px;
|
|
35
35
|
max-height: 300px;
|
|
36
36
|
position: relative;
|
|
37
37
|
z-index: 2;
|
|
38
38
|
}
|
|
39
|
-
.textarea-list .textarea-item[data-v-
|
|
39
|
+
.textarea-list .textarea-item[data-v-ov318e51] {
|
|
40
40
|
padding: 0 12px;
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
|
-
.textarea-list .textarea-item[data-v-
|
|
43
|
+
.textarea-list .textarea-item[data-v-ov318e51]:hover {
|
|
44
44
|
background: #E1ECFF;
|
|
45
45
|
color: #3A84FF;
|
|
46
46
|
}
|
|
@@ -192,14 +192,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
192
192
|
]
|
|
193
193
|
]) : _createCommentVNode("v-if", true),
|
|
194
194
|
_createVNode(ApplicationBaseActions, {
|
|
195
|
+
resource: props.agent,
|
|
195
196
|
"resource-id": props.agent.resourceId,
|
|
196
197
|
module: _unref(Module).Agent,
|
|
197
198
|
"ticket-url": __props.agent.ticketUrl,
|
|
198
199
|
status: __props.agent.status,
|
|
199
200
|
"space-id": props.spaceId,
|
|
200
201
|
"api-prefix": props.apiPrefix,
|
|
201
|
-
onSuccessDelete: handleDeleteAgent
|
|
202
|
+
onSuccessDelete: handleDeleteAgent,
|
|
203
|
+
onNavigate: handleNavigate
|
|
202
204
|
}, null, 8 /* PROPS */ , [
|
|
205
|
+
"resource",
|
|
203
206
|
"resource-id",
|
|
204
207
|
"module",
|
|
205
208
|
"ticket-url",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.command-number[data-v-
|
|
2
|
+
.command-number[data-v-c4u9f6lx] {
|
|
3
3
|
width: 24px;
|
|
4
4
|
border-radius: 2px;
|
|
5
5
|
background: #A3C5FD;
|
|
6
6
|
}
|
|
7
|
-
.delete-icon[data-v-
|
|
7
|
+
.delete-icon[data-v-c4u9f6lx] {
|
|
8
8
|
width: 18px;
|
|
9
9
|
height: 17px;
|
|
10
10
|
background: #C4C6CC;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
top: 0;
|
|
13
13
|
right: 0;
|
|
14
14
|
}
|
|
15
|
-
.li-content[data-v-
|
|
15
|
+
.li-content[data-v-c4u9f6lx] {
|
|
16
16
|
width: 220px;
|
|
17
17
|
border: 1px solid #DCDEE5;
|
|
18
18
|
border-radius: 12px;
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
margin-left: 15px;
|
|
21
21
|
padding: 0 10px;
|
|
22
22
|
}
|
|
23
|
-
.confirm-button[data-v-
|
|
23
|
+
.confirm-button[data-v-c4u9f6lx] {
|
|
24
24
|
margin: 0 8px 0 68px;
|
|
25
25
|
}
|
|
26
|
-
.command-name-text[data-v-
|
|
26
|
+
.command-name-text[data-v-c4u9f6lx] {
|
|
27
27
|
max-width: 165px;
|
|
28
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './prefix-info-tool.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-c4u9f6lx";
|
|
3
3
|
script.__file = "./src/components/render-card/agent/prefix-info-tool.vue";
|
|
4
4
|
import './prefix-info-tool.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
2
|
import { unref as _unref, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
3
3
|
import { toRef } from 'vue';
|
|
4
|
+
import RenderRelateAgent from '../../render-relate-agent/index.vue.js';
|
|
4
5
|
import { useSpaceHttp } from '../../../hooks/use-space-http.ts.js';
|
|
5
|
-
import { ResourceStatus } from '../../../types/enum.ts.js';
|
|
6
|
+
import { AgentType, KnowledgebaseType, Module, ResourceStatus } from '../../../types/enum.ts.js';
|
|
6
7
|
export default /*@__PURE__*/ _defineComponent({
|
|
7
8
|
props: {
|
|
8
9
|
module: {},
|
|
10
|
+
resource: {},
|
|
9
11
|
resourceId: {},
|
|
10
12
|
status: {},
|
|
11
13
|
ticketUrl: {},
|
|
@@ -13,12 +15,22 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
13
15
|
apiPrefix: {}
|
|
14
16
|
},
|
|
15
17
|
emits: [
|
|
16
|
-
"success-delete"
|
|
18
|
+
"success-delete",
|
|
19
|
+
"navigate"
|
|
17
20
|
],
|
|
18
21
|
setup (__props, { emit: __emit }) {
|
|
19
22
|
const props = __props;
|
|
20
23
|
const emits = __emit;
|
|
21
24
|
const { removeApplyResources } = useSpaceHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
25
|
+
const getIsShowRelateAgent = ()=>{
|
|
26
|
+
return props.status === ResourceStatus.Ready && props.resource.agentType !== AgentType.Flow && props.resource.type !== KnowledgebaseType.IntentRecog;
|
|
27
|
+
};
|
|
28
|
+
const getIsRelateAgentDisabled = ()=>{
|
|
29
|
+
return props.module === Module.Agent && !props.resource.latestVersion;
|
|
30
|
+
};
|
|
31
|
+
const getDisabledText = ()=>{
|
|
32
|
+
return props.module === Module.Agent ? '未发布,无法关联至智能体' : '';
|
|
33
|
+
};
|
|
22
34
|
const handleGoToPermissionProgress = ()=>{
|
|
23
35
|
window.open(props.ticketUrl, '_blank', 'noopener,noreferrer');
|
|
24
36
|
};
|
|
@@ -30,6 +42,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
30
42
|
emits('success-delete');
|
|
31
43
|
});
|
|
32
44
|
};
|
|
45
|
+
const handleNavigate = (route)=>{
|
|
46
|
+
emits('navigate', route);
|
|
47
|
+
};
|
|
33
48
|
return (_ctx, _cache)=>{
|
|
34
49
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
35
50
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
@@ -48,6 +63,25 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
48
63
|
]),
|
|
49
64
|
_: 1 /* STABLE */
|
|
50
65
|
})) : _createCommentVNode("v-if", true),
|
|
66
|
+
getIsShowRelateAgent() ? (_openBlock(), _createBlock(RenderRelateAgent, {
|
|
67
|
+
key: 1,
|
|
68
|
+
"resource-type": props.module,
|
|
69
|
+
resource: props.resource,
|
|
70
|
+
disabled: getIsRelateAgentDisabled(),
|
|
71
|
+
text: false,
|
|
72
|
+
"space-id": props.spaceId,
|
|
73
|
+
"api-prefix": props.apiPrefix,
|
|
74
|
+
"disabled-text": getDisabledText(),
|
|
75
|
+
placement: "top",
|
|
76
|
+
onNavigate: handleNavigate
|
|
77
|
+
}, null, 8 /* PROPS */ , [
|
|
78
|
+
"resource-type",
|
|
79
|
+
"resource",
|
|
80
|
+
"disabled",
|
|
81
|
+
"space-id",
|
|
82
|
+
"api-prefix",
|
|
83
|
+
"disabled-text"
|
|
84
|
+
])) : _createCommentVNode("v-if", true),
|
|
51
85
|
_createVNode(_component_bk_pop_confirm, {
|
|
52
86
|
trigger: "click",
|
|
53
87
|
title: "确定移除该权限?",
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
import type { IAgent } from '@/types/agent';
|
|
2
|
+
import type { ICollection } from '@/types/collection';
|
|
1
3
|
import { Module, ResourceStatus, SkillStatus } from '@/types/enum';
|
|
4
|
+
import type { IKnowledgebase } from '@/types/knowledge';
|
|
5
|
+
import type { IMcp } from '@/types/mcp';
|
|
6
|
+
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
7
|
+
import type { IPrompt } from '@/types/prompt';
|
|
8
|
+
import type { ISkill } from '@/types/skill';
|
|
9
|
+
import type { ITool } from '@/types/tool';
|
|
10
|
+
type IRelateAgentResource = IAgent | ICollection | IKnowledgebase | IMcp | IPrompt | ISkill | ITool;
|
|
2
11
|
interface IProps {
|
|
3
12
|
module: Module;
|
|
13
|
+
resource: IRelateAgentResource;
|
|
4
14
|
resourceId?: number;
|
|
5
15
|
status?: ResourceStatus | SkillStatus;
|
|
6
16
|
ticketUrl?: string;
|
|
@@ -8,8 +18,10 @@ interface IProps {
|
|
|
8
18
|
apiPrefix: string;
|
|
9
19
|
}
|
|
10
20
|
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
+
navigate: (value: ISdkNavigateAction) => any;
|
|
11
22
|
"success-delete": () => any;
|
|
12
23
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
24
|
+
onNavigate?: (value: ISdkNavigateAction) => any;
|
|
13
25
|
"onSuccess-delete"?: () => any;
|
|
14
26
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-card-home[data-v-
|
|
2
|
+
.resource-card-home[data-v-mhttmk18] {
|
|
3
3
|
background: #FFFFFF;
|
|
4
4
|
}
|
|
5
|
-
.resource-card-home .resource-card-sub-name[data-v-
|
|
5
|
+
.resource-card-home .resource-card-sub-name[data-v-mhttmk18] {
|
|
6
6
|
margin-right: -4px;
|
|
7
7
|
}
|
|
8
|
-
.resource-card-home.full[data-v-
|
|
8
|
+
.resource-card-home.full[data-v-mhttmk18], .resource-card-home.application[data-v-mhttmk18], .resource-card-home.market[data-v-mhttmk18] {
|
|
9
9
|
padding: 16px 16px 0;
|
|
10
10
|
box-shadow: 0 2px 4px 0 #0000000d;
|
|
11
11
|
border-radius: 8px;
|
|
12
12
|
}
|
|
13
|
-
.resource-card-home.full[data-v-
|
|
13
|
+
.resource-card-home.full[data-v-mhttmk18]:hover, .resource-card-home.application[data-v-mhttmk18]:hover, .resource-card-home.market[data-v-mhttmk18]:hover {
|
|
14
14
|
box-shadow: 0 2px 10px 0 #0000001f;
|
|
15
15
|
}
|
|
16
|
-
.resource-card-home.full .resource-card-name[data-v-
|
|
16
|
+
.resource-card-home.full .resource-card-name[data-v-mhttmk18], .resource-card-home.application .resource-card-name[data-v-mhttmk18], .resource-card-home.market .resource-card-name[data-v-mhttmk18] {
|
|
17
17
|
font-size: 14px;
|
|
18
18
|
color: #313238;
|
|
19
19
|
font-weight: bold;
|
|
20
20
|
}
|
|
21
|
-
.resource-card-home.full .resource-card-description[data-v-
|
|
21
|
+
.resource-card-home.full .resource-card-description[data-v-mhttmk18], .resource-card-home.application .resource-card-description[data-v-mhttmk18], .resource-card-home.market .resource-card-description[data-v-mhttmk18] {
|
|
22
22
|
color: #4D4F56;
|
|
23
23
|
height: 60px;
|
|
24
24
|
white-space: pre-wrap;
|
|
25
25
|
word-break: break-all;
|
|
26
26
|
}
|
|
27
|
-
.resource-card-home.choose[data-v-
|
|
27
|
+
.resource-card-home.choose[data-v-mhttmk18] {
|
|
28
28
|
padding: 10px 12px 0;
|
|
29
29
|
border: 1px solid #DCDEE5;
|
|
30
30
|
border-radius: 4px;
|
|
31
31
|
}
|
|
32
|
-
.resource-card-home.choose .resource-card-name[data-v-
|
|
32
|
+
.resource-card-home.choose .resource-card-name[data-v-mhttmk18] {
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
color: #000000;
|
|
35
35
|
font-weight: bold;
|
|
36
36
|
}
|
|
37
|
-
.resource-card-home.choose .resource-card-description[data-v-
|
|
37
|
+
.resource-card-home.choose .resource-card-description[data-v-mhttmk18] {
|
|
38
38
|
color: #4D4F56;
|
|
39
39
|
height: 20px;
|
|
40
40
|
}
|
|
41
|
-
.resource-card-home.info[data-v-
|
|
41
|
+
.resource-card-home.info[data-v-mhttmk18],.resource-card-home.record[data-v-mhttmk18] {
|
|
42
42
|
padding: 10px 12px;
|
|
43
43
|
border: 1px solid #DCDEE5;
|
|
44
44
|
border-radius: 4px;
|
|
45
45
|
}
|
|
46
|
-
.resource-card-home.info .resource-card-name[data-v-
|
|
46
|
+
.resource-card-home.info .resource-card-name[data-v-mhttmk18], .resource-card-home.record .resource-card-name[data-v-mhttmk18] {
|
|
47
47
|
font-size: 12px;
|
|
48
48
|
color: #313238;
|
|
49
49
|
}
|
|
50
|
-
.resource-card-actions[data-v-
|
|
50
|
+
.resource-card-actions[data-v-mhttmk18] {
|
|
51
51
|
border-top: 1px solid #F5F7FA;
|
|
52
52
|
height: 58px;
|
|
53
53
|
gap: 0 8px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { unref as _unref, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode,
|
|
2
|
+
import { unref as _unref, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
3
3
|
import ApplicationBaseActions from '../base/application-base-actions.vue.js';
|
|
4
4
|
import { Module, ResourceCardType, ResourceStatus } from '../../../types/enum.ts.js';
|
|
5
5
|
export default /*@__PURE__*/ _defineComponent({
|
|
@@ -11,7 +11,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
11
11
|
},
|
|
12
12
|
emits: [
|
|
13
13
|
"success-delete",
|
|
14
|
-
"view"
|
|
14
|
+
"view",
|
|
15
|
+
"navigate"
|
|
15
16
|
],
|
|
16
17
|
setup (__props, { emit: __emit }) {
|
|
17
18
|
const props = __props;
|
|
@@ -22,6 +23,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
22
23
|
const handleView = ()=>{
|
|
23
24
|
emits('view', props.knowledgebase);
|
|
24
25
|
};
|
|
26
|
+
const handleNavigate = (route)=>{
|
|
27
|
+
emits('navigate', route);
|
|
28
|
+
};
|
|
25
29
|
return (_ctx, _cache)=>{
|
|
26
30
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
27
31
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
@@ -39,22 +43,26 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
39
43
|
]),
|
|
40
44
|
_: 1 /* STABLE */
|
|
41
45
|
})) : _createCommentVNode("v-if", true),
|
|
42
|
-
|
|
46
|
+
props.type === _unref(ResourceCardType).Application ? (_openBlock(), _createBlock(ApplicationBaseActions, {
|
|
47
|
+
key: 1,
|
|
43
48
|
"ticket-url": props.knowledgebase.ticketUrl,
|
|
49
|
+
resource: props.knowledgebase,
|
|
44
50
|
"resource-id": props.knowledgebase.resourceId,
|
|
45
51
|
module: _unref(Module).Knowledgebase,
|
|
46
52
|
status: props.knowledgebase.status,
|
|
47
53
|
"space-id": props.spaceId,
|
|
48
54
|
"api-prefix": props.apiPrefix,
|
|
49
|
-
onSuccessDelete: handleSuccessDelete
|
|
55
|
+
onSuccessDelete: handleSuccessDelete,
|
|
56
|
+
onNavigate: handleNavigate
|
|
50
57
|
}, null, 8 /* PROPS */ , [
|
|
51
58
|
"ticket-url",
|
|
59
|
+
"resource",
|
|
52
60
|
"resource-id",
|
|
53
61
|
"module",
|
|
54
62
|
"status",
|
|
55
63
|
"space-id",
|
|
56
64
|
"api-prefix"
|
|
57
|
-
])
|
|
65
|
+
])) : _createCommentVNode("v-if", true)
|
|
58
66
|
], 64 /* STABLE_FRAGMENT */ );
|
|
59
67
|
};
|
|
60
68
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ResourceCardType } from '@/types/enum';
|
|
2
2
|
import type { IKnowledgebase } from '@/types/knowledge';
|
|
3
|
+
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
3
4
|
interface IProps {
|
|
4
5
|
knowledgebase: IKnowledgebase;
|
|
5
6
|
type: ResourceCardType;
|
|
@@ -8,9 +9,11 @@ interface IProps {
|
|
|
8
9
|
}
|
|
9
10
|
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
11
|
view: (value: IKnowledgebase) => any;
|
|
12
|
+
navigate: (value: ISdkNavigateAction) => any;
|
|
11
13
|
"success-delete": () => any;
|
|
12
14
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
13
15
|
onView?: (value: IKnowledgebase) => any;
|
|
16
|
+
onNavigate?: (value: ISdkNavigateAction) => any;
|
|
14
17
|
"onSuccess-delete"?: () => any;
|
|
15
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -127,7 +127,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
127
127
|
"space-id": props.spaceId,
|
|
128
128
|
"api-prefix": props.apiPrefix,
|
|
129
129
|
onSuccessDelete: handleSuccessDelete,
|
|
130
|
-
onView: handleView
|
|
130
|
+
onView: handleView,
|
|
131
|
+
onNavigate: handleNavigate
|
|
131
132
|
}, null, 8 /* PROPS */ , [
|
|
132
133
|
"type",
|
|
133
134
|
"knowledgebase",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.llm-corner-badge[data-v-
|
|
2
|
+
.llm-corner-badge[data-v-j40en5nf] {
|
|
3
3
|
top: 0;
|
|
4
4
|
right: 0;
|
|
5
5
|
width: 48px;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
clip-path: polygon(100% 0, 0 0, 100% 100%);
|
|
9
9
|
border-radius: 0 8px;
|
|
10
10
|
}
|
|
11
|
-
.llm-corner-badge[data-v-
|
|
11
|
+
.llm-corner-badge[data-v-j40en5nf]:hover {
|
|
12
12
|
background: linear-gradient(142.7deg, #fdf4e8 0%, #e5a239 100%);
|
|
13
13
|
}
|
|
14
|
-
.llm-corner-badge-text[data-v-
|
|
14
|
+
.llm-corner-badge-text[data-v-j40en5nf] {
|
|
15
15
|
top: 8px;
|
|
16
16
|
right: 0;
|
|
17
17
|
transform: rotate(45deg);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.like-button:hover .ai-ui-sdk-icon[data-v-
|
|
2
|
+
.like-button:hover .ai-ui-sdk-icon[data-v-u1gffuj0], .like-button:hover span[data-v-u1gffuj0] {
|
|
3
3
|
color: #3A84FF !important;
|
|
4
4
|
}
|
|
5
|
-
.dislike-button:hover .ai-ui-sdk-icon[data-v-
|
|
5
|
+
.dislike-button:hover .ai-ui-sdk-icon[data-v-u1gffuj0], .dislike-button:hover span[data-v-u1gffuj0], .dislike-button:active .ai-ui-sdk-icon[data-v-u1gffuj0], .dislike-button:active span[data-v-u1gffuj0] {
|
|
6
6
|
color: #EA3636 !important;
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-item[data-v-
|
|
2
|
+
.tag-item[data-v-n9q3uy4h] {
|
|
3
3
|
padding: 0 4px;
|
|
4
4
|
}
|
|
5
|
-
.tag-external[data-v-
|
|
5
|
+
.tag-external[data-v-n9q3uy4h] {
|
|
6
6
|
color: #636a2f;
|
|
7
7
|
background: #EAEFC6;
|
|
8
8
|
}
|
|
9
|
-
.tag-public[data-v-
|
|
9
|
+
.tag-public[data-v-n9q3uy4h], .tag-private[data-v-n9q3uy4h] {
|
|
10
10
|
color: #3a84ff;
|
|
11
11
|
background: #e1ecff;
|
|
12
12
|
}
|
|
@@ -175,14 +175,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
175
175
|
]) : _createCommentVNode("v-if", true),
|
|
176
176
|
props.type === _unref(ResourceCardType).Application ? (_openBlock(), _createBlock(ApplicationBaseActions, {
|
|
177
177
|
key: 1,
|
|
178
|
+
resource: __props.mcp,
|
|
178
179
|
"resource-id": __props.mcp.resourceId,
|
|
179
180
|
module: _unref(Module).Mcp,
|
|
180
181
|
"ticket-url": __props.mcp.ticketUrl,
|
|
181
182
|
status: __props.mcp.status,
|
|
182
183
|
"api-prefix": props.apiPrefix,
|
|
183
184
|
"space-id": props.spaceId,
|
|
184
|
-
onSuccessDelete: handleDeleteMcp
|
|
185
|
+
onSuccessDelete: handleDeleteMcp,
|
|
186
|
+
onNavigate: handleNavigate
|
|
185
187
|
}, null, 8 /* PROPS */ , [
|
|
188
|
+
"resource",
|
|
186
189
|
"resource-id",
|
|
187
190
|
"module",
|
|
188
191
|
"ticket-url",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.tool-number[data-v-
|
|
2
|
+
.tool-number[data-v-kobnayvq] {
|
|
3
3
|
background: #E1ECFF;
|
|
4
4
|
border-radius: 2px;
|
|
5
5
|
padding: 0 4px;
|
|
6
6
|
font-size: 10px;
|
|
7
7
|
}
|
|
8
|
-
.tool-number[data-v-
|
|
8
|
+
.tool-number[data-v-kobnayvq]:hover {
|
|
9
9
|
background: #3A84FF;
|
|
10
10
|
color: #fff;
|
|
11
11
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-pass[data-v-
|
|
2
|
+
.tag-pass[data-v-368x6277] {
|
|
3
3
|
color: #299E56;
|
|
4
4
|
background: #DAF6E5;
|
|
5
5
|
}
|
|
6
|
-
.tag-fail[data-v-
|
|
6
|
+
.tag-fail[data-v-368x6277] {
|
|
7
7
|
color: #E71818;
|
|
8
8
|
background: #FFDDDD;
|
|
9
9
|
}
|
|
10
|
-
.tag-error[data-v-
|
|
10
|
+
.tag-error[data-v-368x6277] {
|
|
11
11
|
color: #E38B02;
|
|
12
12
|
background: #FCE5C0;
|
|
13
13
|
}
|