@blueking/ai-ui-sdk 0.3.0-beta.26 → 0.3.0-beta.28
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/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.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -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/index.script.vue.js.js +7 -2
- package/dist/components/render-card/llm/index.vue.d.ts +3 -0
- 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/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-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/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-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-header/index.vue.css +3 -3
- package/dist/components/render-header/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-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-markdown/view.postcss.css +5 -5
- package/dist/components/render-mcp/install/index.script.vue.js.js +5 -0
- 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.js +30 -14
- package/dist/components/render-relate-agent/index.vue.d.ts +1 -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/install/index.script.vue.js.js +9 -3
- package/dist/components/render-t-table/index.script.vue.js +1 -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/dist/css/g-utilities.css +24 -0
- package/dist/css/g-utilities.manifest.json +6 -0
- package/dist/hooks/use-space-http.d.ts +2 -0
- package/dist/hooks/use-space-http.ts.js +10 -1
- package/dist/http/helper/agent.ts.js +1 -0
- package/dist/http/helper/space.d.ts +7 -1
- package/dist/http/helper/space.ts.js +15 -0
- package/dist/types/agent.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-zgeo4uec] {
|
|
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-zgeo4uec], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-zgeo4uec], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-zgeo4uec] {
|
|
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-zgeo4uec] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-archive-line[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-archive-line[data-v-zgeo4uec] {
|
|
12
12
|
color: #979BA5;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-zgeo4uec] {
|
|
15
15
|
color: #2DCB56;
|
|
16
16
|
}
|
|
17
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
17
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-zgeo4uec] {
|
|
18
18
|
color: #14A568;
|
|
19
19
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
.generate-type-tag[data-v-
|
|
2
|
+
.generate-type-tag[data-v-ohpahphg] {
|
|
3
3
|
border-radius: 2px;
|
|
4
4
|
text-align: left;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
}
|
|
7
|
-
.generate-type-tag.public[data-v-
|
|
7
|
+
.generate-type-tag.public[data-v-ohpahphg] {
|
|
8
8
|
color: #2CAF5E;
|
|
9
9
|
background-color: #DAF6E5;
|
|
10
10
|
}
|
|
11
|
-
.generate-type-tag.public[data-v-
|
|
11
|
+
.generate-type-tag.public[data-v-ohpahphg]:hover {
|
|
12
12
|
color: #299E56;
|
|
13
13
|
background-color: #CBF0DA;
|
|
14
14
|
}
|
|
15
|
-
.generate-type-tag.space[data-v-
|
|
15
|
+
.generate-type-tag.space[data-v-ohpahphg] {
|
|
16
16
|
color: #45A0A5;
|
|
17
17
|
background-color: #D8F4F5;
|
|
18
18
|
}
|
|
19
|
-
.generate-type-tag.space[data-v-
|
|
19
|
+
.generate-type-tag.space[data-v-ohpahphg]:hover {
|
|
20
20
|
color: #388A8E;
|
|
21
21
|
background-color: #B6E7E9;
|
|
22
22
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-v08a8k62] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
box-shadow: 0 3px 4px 0 #0000000a;
|
|
6
6
|
}
|
|
7
|
-
.render-tab[data-v-
|
|
7
|
+
.render-tab[data-v-v08a8k62] {
|
|
8
8
|
border-bottom: 2px solid transparent;
|
|
9
9
|
}
|
|
10
|
-
.render-tab.active[data-v-
|
|
10
|
+
.render-tab.active[data-v-v08a8k62] {
|
|
11
11
|
color: #3A84FF;
|
|
12
12
|
border-bottom: 2px solid #3A84FF;
|
|
13
13
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
.dislike-icon[data-v-
|
|
2
|
+
.dislike-icon[data-v-dncikswk] {
|
|
3
3
|
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
5
|
+
.option-items[data-v-dncikswk] {
|
|
6
6
|
padding: 1px 8px;
|
|
7
7
|
background-color: #F0F1F5;
|
|
8
8
|
line-height: 22px;
|
|
9
9
|
border-radius: 2px;
|
|
10
10
|
}
|
|
11
|
-
.option-items[data-v-
|
|
11
|
+
.option-items[data-v-dncikswk]:hover {
|
|
12
12
|
background-color: #E1ECFF;
|
|
13
13
|
color: #3A84FF;
|
|
14
14
|
}
|
|
15
|
-
.option-items-selected[data-v-
|
|
15
|
+
.option-items-selected[data-v-dncikswk]{
|
|
16
16
|
background-color: #E1ECFF;
|
|
17
17
|
}
|
|
18
|
-
[data-v-
|
|
18
|
+
[data-v-dncikswk] .bk-form-item {
|
|
19
19
|
margin-bottom: 17px;
|
|
20
20
|
}
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.aidev-markdown-preview .toastui-editor-contents h1, .toastui-editor .toastui-editor-contents h1, .toastui-editor-md-preview .toastui-editor-contents h1 {
|
|
38
|
-
margin:
|
|
38
|
+
margin: 36px 0 20px;
|
|
39
39
|
border-bottom: 2px solid #eaecef;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.aidev-markdown-preview .toastui-editor-contents h2, .toastui-editor .toastui-editor-contents h2, .toastui-editor-md-preview .toastui-editor-contents h2 {
|
|
43
|
-
margin:
|
|
43
|
+
margin: 32px 0 16px;
|
|
44
44
|
border-bottom: 1px solid #eaecef;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.aidev-markdown-preview .toastui-editor-contents h3, .toastui-editor .toastui-editor-contents h3, .toastui-editor-md-preview .toastui-editor-contents h3 {
|
|
48
|
-
margin:
|
|
48
|
+
margin: 24px 0 12px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.aidev-markdown-preview .toastui-editor-contents h4, .toastui-editor .toastui-editor-contents h4, .toastui-editor-md-preview .toastui-editor-contents h4 {
|
|
52
|
-
margin:
|
|
52
|
+
margin: 18px 0 8px;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.aidev-markdown-preview .toastui-editor-contents h5,
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
.toastui-editor .toastui-editor-contents h6,
|
|
59
59
|
.toastui-editor-md-preview .toastui-editor-contents h5,
|
|
60
60
|
.toastui-editor-md-preview .toastui-editor-contents h6 {
|
|
61
|
-
margin:
|
|
61
|
+
margin: 14px 0 4px;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.aidev-markdown-preview .toastui-editor-contents i, .toastui-editor .toastui-editor-contents i, .toastui-editor-md-preview .toastui-editor-contents i {
|
|
@@ -58,9 +58,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
58
58
|
isLoadingInstallTargets.value = false;
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
+
const handleClearChoosen = ()=>{
|
|
62
|
+
selectedInstallTargetType.value = undefined;
|
|
63
|
+
};
|
|
61
64
|
watch(()=>props.isShow, (val)=>{
|
|
62
65
|
if (val) {
|
|
63
66
|
handleGetInstallTargets();
|
|
67
|
+
} else {
|
|
68
|
+
handleClearChoosen();
|
|
64
69
|
}
|
|
65
70
|
});
|
|
66
71
|
return (_ctx, _cache)=>{
|
|
@@ -89,7 +89,8 @@ import { MAX_PAGE_SIZE, MODULE_NAME } from '../../common/constants.ts.js';
|
|
|
89
89
|
import RenderSelectPlusExtension from '../render-select-plus-extension/index.vue.js';
|
|
90
90
|
import { useAgentHttp } from '../../hooks/use-agent-http.ts.js';
|
|
91
91
|
import { useClickoutside } from '../../hooks/use-clickoutside.ts.js';
|
|
92
|
-
import {
|
|
92
|
+
import { useSpaceHttp } from '../../hooks/use-space-http.ts.js';
|
|
93
|
+
import { AgentType, GroupType, Module, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
|
|
93
94
|
export default /*@__PURE__*/ _defineComponent({
|
|
94
95
|
props: {
|
|
95
96
|
resourceType: {},
|
|
@@ -105,7 +106,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
105
106
|
default: 'right'
|
|
106
107
|
},
|
|
107
108
|
spaceId: {},
|
|
108
|
-
spaces: {},
|
|
109
109
|
apiPrefix: {}
|
|
110
110
|
},
|
|
111
111
|
emits: [
|
|
@@ -115,25 +115,33 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
115
115
|
const props = __props;
|
|
116
116
|
const emits = __emit;
|
|
117
117
|
const { getAgent, getAgentList, updateAgent, getAgentMcpPermission, resourceApply } = useAgentHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
118
|
+
const { getResourceAuthorizedSpaces } = useSpaceHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
118
119
|
const { handleInitClickoutside } = useClickoutside();
|
|
119
120
|
const formRef = ref();
|
|
120
121
|
const agents = ref([]);
|
|
122
|
+
const spaces = ref([]);
|
|
121
123
|
const isLoadingAgents = ref(false);
|
|
124
|
+
const isLoadingSpaces = ref(false);
|
|
122
125
|
const isLoadingConfirm = ref(false);
|
|
123
126
|
const isShowPopover = ref(false);
|
|
124
127
|
const isShowApplyConfirm = ref(false);
|
|
125
128
|
const hasMcpPermission = ref(undefined);
|
|
126
129
|
const formData = ref({
|
|
127
130
|
selectedAgentId: undefined,
|
|
128
|
-
selectedSpaceId:
|
|
131
|
+
selectedSpaceId: undefined
|
|
129
132
|
});
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
const handleGetSpacesAndSetDefaultSpace = ()=>{
|
|
134
|
+
isLoadingSpaces.value = true;
|
|
135
|
+
return getResourceAuthorizedSpaces(props.resourceType, props.resource.id).then((data)=>{
|
|
136
|
+
var _data_;
|
|
137
|
+
spaces.value = data;
|
|
138
|
+
formData.value.selectedSpaceId = (_data_ = data[0]) === null || _data_ === void 0 ? void 0 : _data_.spaceId;
|
|
139
|
+
}).finally(()=>{
|
|
140
|
+
isLoadingSpaces.value = false;
|
|
134
141
|
});
|
|
135
142
|
};
|
|
136
143
|
const handleGetAgentsAndSetDefaultAgent = ()=>{
|
|
144
|
+
if (!formData.value.selectedSpaceId) return;
|
|
137
145
|
isLoadingAgents.value = true;
|
|
138
146
|
const params = {
|
|
139
147
|
page: 1,
|
|
@@ -166,20 +174,25 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
166
174
|
});
|
|
167
175
|
};
|
|
168
176
|
const handleClose = ()=>{
|
|
177
|
+
var // 清空表单验证
|
|
178
|
+
_formRef_value;
|
|
179
|
+
// 关闭弹窗
|
|
169
180
|
isShowPopover.value = false;
|
|
170
181
|
isShowApplyConfirm.value = false;
|
|
182
|
+
// 清空表单数据
|
|
183
|
+
formData.value.selectedAgentId = undefined;
|
|
184
|
+
formData.value.selectedSpaceId = undefined;
|
|
185
|
+
// 清空权限检查结果
|
|
186
|
+
hasMcpPermission.value = undefined;
|
|
187
|
+
(_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.clearValidate();
|
|
171
188
|
};
|
|
172
189
|
const handleClickOutside = ()=>{
|
|
173
190
|
handleClose();
|
|
174
191
|
};
|
|
175
192
|
const handleShow = ()=>{
|
|
176
|
-
var _formRef_value;
|
|
177
193
|
if (isShowPopover.value) return;
|
|
178
194
|
isShowPopover.value = true;
|
|
179
|
-
|
|
180
|
-
formData.value.selectedSpaceId = props.spaceId;
|
|
181
|
-
hasMcpPermission.value = undefined;
|
|
182
|
-
(_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.clearValidate();
|
|
195
|
+
handleGetSpacesAndSetDefaultSpace();
|
|
183
196
|
handleGetAgentsAndSetDefaultAgent();
|
|
184
197
|
};
|
|
185
198
|
const handleRelateAgentToAgent = function() {
|
|
@@ -376,7 +389,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
376
389
|
isLoadingConfirm.value = true;
|
|
377
390
|
const mcp = props.resource;
|
|
378
391
|
getAgentMcpPermission(formData.value.selectedAgentId, mcp.mcpCode, mcp.mcpType).then((res)=>{
|
|
379
|
-
hasMcpPermission.value = res.
|
|
392
|
+
hasMcpPermission.value = res.status !== ResourceStatus.NoPermission;
|
|
380
393
|
}).catch(()=>{
|
|
381
394
|
hasMcpPermission.value = undefined;
|
|
382
395
|
}).finally(()=>{
|
|
@@ -430,13 +443,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
430
443
|
"id-key": "spaceId",
|
|
431
444
|
"display-key": "spaceName",
|
|
432
445
|
clearable: false,
|
|
433
|
-
|
|
446
|
+
loading: isLoadingSpaces.value,
|
|
447
|
+
list: spaces.value,
|
|
434
448
|
"popover-options": {
|
|
435
449
|
boundary: 'parent'
|
|
436
450
|
},
|
|
437
451
|
onChange: handleGetAgentsAndSetDefaultAgent
|
|
438
452
|
}, null, 8 /* PROPS */ , [
|
|
439
453
|
"modelValue",
|
|
454
|
+
"loading",
|
|
440
455
|
"list"
|
|
441
456
|
])
|
|
442
457
|
]),
|
|
@@ -490,6 +505,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
490
505
|
width: "280",
|
|
491
506
|
title: "确认提交申请?",
|
|
492
507
|
content: "当前选择的 MCP 暂无使用权限且未经申请,提交后将自动创建申请单",
|
|
508
|
+
boundary: "parent",
|
|
493
509
|
"is-show": isShowApplyConfirm.value,
|
|
494
510
|
"confirm-config": {
|
|
495
511
|
loading: isLoadingConfirm.value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IKnowledgebase,
|
|
1
|
+
import type { IKnowledgebase, ITool } from '@/types';
|
|
2
2
|
import type { IAgent } from '@/types/agent';
|
|
3
3
|
import { Module } from '@/types/enum';
|
|
4
4
|
import type { IMcp } from '@/types/mcp';
|
|
@@ -13,7 +13,6 @@ interface IProps {
|
|
|
13
13
|
boundary?: string;
|
|
14
14
|
placement?: string;
|
|
15
15
|
spaceId?: string;
|
|
16
|
-
spaces?: ISpace[];
|
|
17
16
|
apiPrefix: string;
|
|
18
17
|
}
|
|
19
18
|
declare var __VLS_8: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-version[data-v-
|
|
2
|
+
.resource-version[data-v-mcnhorp5] {
|
|
3
3
|
border-radius: 2px;
|
|
4
4
|
text-align: left;
|
|
5
5
|
color: #4D4F56;
|
|
6
6
|
background-color: #F0F1F5;
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
}
|
|
9
|
-
.resource-version .bkaidev-rizhifenxi[data-v-
|
|
9
|
+
.resource-version .bkaidev-rizhifenxi[data-v-mcnhorp5] {
|
|
10
10
|
color: #3A84FF;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-9jl7xp3c] {
|
|
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 24px;
|
|
8
8
|
}
|
|
9
|
-
.router-tab a[data-v-
|
|
9
|
+
.router-tab a[data-v-9jl7xp3c] {
|
|
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-9jl7xp3c] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.select-plus-extension[data-v-
|
|
2
|
+
.select-plus-extension[data-v-l3yziqcy] {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
width: 100%;
|
|
5
5
|
display: flex;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
font-size: 12px;
|
|
9
9
|
line-height: 20px;
|
|
10
10
|
}
|
|
11
|
-
.select-plus-extension .ai-ui-sdk-icon[data-v-
|
|
11
|
+
.select-plus-extension .ai-ui-sdk-icon[data-v-l3yziqcy] {
|
|
12
12
|
font-size: 14px;
|
|
13
13
|
margin-right: 6px;
|
|
14
14
|
}
|
|
15
|
-
.select-plus-extension[data-v-
|
|
15
|
+
.select-plus-extension[data-v-l3yziqcy]:hover {
|
|
16
16
|
color: #3A84FF;
|
|
17
17
|
}
|
|
@@ -185,11 +185,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
185
185
|
}
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
|
-
const message = `${successHosts.length > 0 ?
|
|
188
|
+
const message = `${successHosts.length > 0 ? `安装成功的主机:${successHosts.join('、')}。` : ''}${failedHosts.length > 0 ? `安装失败的主机:${failedHosts.join('、')}` : ''}`;
|
|
189
189
|
const theme = successHosts.length > 0 ? 'success' : 'error';
|
|
190
190
|
Message({
|
|
191
191
|
theme,
|
|
192
|
-
message
|
|
192
|
+
message,
|
|
193
|
+
delay: 0
|
|
193
194
|
});
|
|
194
195
|
handleClose();
|
|
195
196
|
});
|
|
@@ -225,10 +226,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
225
226
|
const handleChangeInstallTargetType = ()=>{
|
|
226
227
|
selectedOpenclawWindowsInstances.value = [];
|
|
227
228
|
};
|
|
229
|
+
const handleClearChoosen = ()=>{
|
|
230
|
+
selectedInstallTargetType.value = undefined;
|
|
231
|
+
selectedOpenclawWindowsInstances.value = [];
|
|
232
|
+
};
|
|
228
233
|
watch(()=>props.isShow, (val)=>{
|
|
229
234
|
if (val) {
|
|
230
|
-
selectedOpenclawWindowsInstances.value = [];
|
|
231
235
|
handleGetInstallTargets();
|
|
236
|
+
} else {
|
|
237
|
+
handleClearChoosen();
|
|
232
238
|
}
|
|
233
239
|
});
|
|
234
240
|
onBeforeUnmount(handleClearTimer);
|
|
@@ -103,7 +103,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
103
103
|
}
|
|
104
104
|
return column;
|
|
105
105
|
});
|
|
106
|
-
if (
|
|
106
|
+
if (isEmpty(columns.find((column)=>column.defaultShow))) {
|
|
107
107
|
return columns;
|
|
108
108
|
}
|
|
109
109
|
const lastColKey = displayColumns.value[displayColumns.value.length - 1];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-cgnzt80s] {
|
|
3
3
|
position: relative;
|
|
4
4
|
padding: 16px 16px 0 16px;
|
|
5
5
|
}
|
|
6
|
-
.t-t-pagination[data-v-
|
|
6
|
+
.t-t-pagination[data-v-cgnzt80s] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-cgnzt80s]::after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
@@ -16,93 +16,93 @@
|
|
|
16
16
|
background-color: rgba(255, 255, 255, 0.6);
|
|
17
17
|
z-index: 72;
|
|
18
18
|
}
|
|
19
|
-
.pagination-border[data-v-
|
|
19
|
+
.pagination-border[data-v-cgnzt80s] {
|
|
20
20
|
border-right: 1px solid #dcdee5;
|
|
21
21
|
border-left: 1px solid #dcdee5;
|
|
22
22
|
border-bottom: 1px solid #dcdee5;
|
|
23
23
|
padding-bottom: 16px;
|
|
24
24
|
}
|
|
25
|
-
.t-t-table[data-v-
|
|
25
|
+
.t-t-table[data-v-cgnzt80s] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-cgnzt80s] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-cgnzt80s] th {
|
|
33
33
|
padding: 0 16px;
|
|
34
34
|
height: 42px;
|
|
35
35
|
background-color: #FAFBFD !important;
|
|
36
36
|
}
|
|
37
|
-
.t-t-table[data-v-
|
|
37
|
+
.t-t-table[data-v-cgnzt80s] .t-table__body tr {
|
|
38
38
|
color: #63656e;
|
|
39
39
|
font-size: 12px;
|
|
40
40
|
}
|
|
41
|
-
.t-t-table[data-v-
|
|
41
|
+
.t-t-table[data-v-cgnzt80s] .t-table__body tr td {
|
|
42
42
|
padding: 0 16px;
|
|
43
43
|
height: 40px;
|
|
44
44
|
background-color: #fff;
|
|
45
45
|
}
|
|
46
|
-
.t-t-table[data-v-
|
|
46
|
+
.t-t-table[data-v-cgnzt80s] .t-table__body tr:hover td {
|
|
47
47
|
background-color: #f5f7fa !important;
|
|
48
48
|
color: #63656E;
|
|
49
49
|
}
|
|
50
|
-
.t-t-table[data-v-
|
|
50
|
+
.t-t-table[data-v-cgnzt80s] .t-table__content .t-table__body .t-table__empty-row {
|
|
51
51
|
background-color: #fff !important;
|
|
52
52
|
}
|
|
53
|
-
.t-t-table[data-v-
|
|
53
|
+
.t-t-table[data-v-cgnzt80s] .t-table__content .t-table__body .t-table__empty-row >td {
|
|
54
54
|
border: none;
|
|
55
55
|
}
|
|
56
|
-
.t-t-table[data-v-
|
|
56
|
+
.t-t-table[data-v-cgnzt80s] th .t-table__ellipsis {
|
|
57
57
|
width: auto !important;
|
|
58
58
|
}
|
|
59
|
-
.t-t-table[data-v-
|
|
59
|
+
.t-t-table[data-v-cgnzt80s] .t-loading__gradient.t-icon-loading {
|
|
60
60
|
display: none;
|
|
61
61
|
}
|
|
62
|
-
.t-t-table[data-v-
|
|
62
|
+
.t-t-table[data-v-cgnzt80s]:first-of-type .t-table__affixed-header-elm-wrap{
|
|
63
63
|
width: calc(100% - 6px) !important;
|
|
64
64
|
}
|
|
65
|
-
.t-t-table[data-v-
|
|
65
|
+
.t-t-table[data-v-cgnzt80s] .t-table__affixed-header-elm-wrap>div {
|
|
66
66
|
width: 100% !important;
|
|
67
67
|
scrollbar-width: none;
|
|
68
68
|
}
|
|
69
|
-
.t-t-table[data-v-
|
|
69
|
+
.t-t-table[data-v-cgnzt80s] .t-table--layout-fixed{
|
|
70
70
|
width: 100% !important;
|
|
71
71
|
}
|
|
72
|
-
.t-t-table[data-v-
|
|
72
|
+
.t-t-table[data-v-cgnzt80s] .bk-exception-description{
|
|
73
73
|
margin-bottom: 0;
|
|
74
74
|
}
|
|
75
|
-
.t-t-table[data-v-
|
|
75
|
+
.t-t-table[data-v-cgnzt80s] .t-table__content{
|
|
76
76
|
z-index: 2;
|
|
77
77
|
max-height: 100%;
|
|
78
78
|
overflow: auto;
|
|
79
79
|
}
|
|
80
|
-
.t-t-table[data-v-
|
|
80
|
+
.t-t-table[data-v-cgnzt80s] .t-table__content::-webkit-scrollbar {
|
|
81
81
|
width: 6px;
|
|
82
82
|
height: 6px;
|
|
83
83
|
}
|
|
84
|
-
.t-t-table[data-v-
|
|
84
|
+
.t-t-table[data-v-cgnzt80s] .t-table__content::-webkit-scrollbar-thumb {
|
|
85
85
|
width: 6px;
|
|
86
86
|
height: 6px;
|
|
87
87
|
border-radius: 3px;
|
|
88
88
|
background-color: #dcdee5;
|
|
89
89
|
}
|
|
90
|
-
.t-t-table[data-v-
|
|
90
|
+
.t-t-table[data-v-cgnzt80s] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
91
91
|
background-color: #979ba5;
|
|
92
92
|
}
|
|
93
|
-
.t-t-table[data-v-
|
|
93
|
+
.t-t-table[data-v-cgnzt80s] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
94
94
|
line-height: 100%;
|
|
95
95
|
}
|
|
96
|
-
.t-t-table[data-v-
|
|
96
|
+
.t-t-table[data-v-cgnzt80s] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
97
97
|
gap: 5px;
|
|
98
98
|
}
|
|
99
|
-
.t-t-table[data-v-
|
|
99
|
+
.t-t-table[data-v-cgnzt80s] .t-table__sort-icon--active>i{
|
|
100
100
|
color: #3a84ff !important;
|
|
101
101
|
}
|
|
102
|
-
.t-t-table[data-v-
|
|
102
|
+
.t-t-table[data-v-cgnzt80s] .t-table__cell--fixed-left:has(.checkbox){
|
|
103
103
|
line-height: 100%;
|
|
104
104
|
}
|
|
105
|
-
.t-t-table[data-v-
|
|
105
|
+
.t-t-table[data-v-cgnzt80s] .t-table__filter-icon.t-is-focus>span{
|
|
106
106
|
color: #3a84ff !important;
|
|
107
107
|
}
|
|
108
108
|
|