@blueking/ai-ui-sdk 0.3.0-beta.11 → 0.3.0-beta.13
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/application-base-actions.vue.d.ts +2 -2
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.d.ts +2 -2
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/knowledge/info-tool.script.vue.js.js +1 -1
- package/dist/components/render-card/knowledgebase/info-tool.script.vue.js.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/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/index.script.vue.js.js +2 -2
- package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +2 -2
- 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 +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/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 +2 -2
- 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.script.vue.js +0 -2
- 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.script.vue.js.js +2 -2
- package/dist/components/render-dialog/choose-space.vue.css +8 -8
- 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 +5 -5
- 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-knowledge/search/index.vue.d.ts +1 -1
- package/dist/components/render-knowledgebase/search/index.vue.d.ts +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/filter-css.d.ts +1 -0
- package/dist/components/render-markdown/filter-css.ts.js +86 -0
- package/dist/components/render-markdown/view.ts.js +2 -91
- 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-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 +71 -34
- 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 +16 -4
- package/dist/css/g-utilities.manifest.json +4 -1
- package/dist/hooks/use-skill-http.d.ts +5 -4
- package/dist/hooks/use-skill-http.ts.js +11 -2
- package/dist/http/helper/common.d.ts +3 -2
- package/dist/http/helper/skill.d.ts +7 -1
- package/dist/http/helper/skill.ts.js +15 -0
- package/dist/types/common.d.ts +4 -4
- package/dist/types/enum.d.ts +7 -0
- package/dist/types/enum.ts.js +8 -0
- package/dist/types/skill.d.ts +23 -5
- package/dist/util.d.ts +1 -0
- package/dist/util.ts.js +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode,
|
|
2
|
+
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, withCtx as _withCtx, withDirectives as _withDirectives, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "g-mr-4 g-w-16 g-h-16 g-min-w-16 g-fill-3a84ff g-rotate-infinite"
|
|
6
|
+
};
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "ai-ui-sdk-icon ai-ui-sdk-warning-circle-fill g-mr-4 !g-text-16 g-text-ea3636"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = {
|
|
4
12
|
key: 0
|
|
5
13
|
};
|
|
6
14
|
import { ref, toRef } from 'vue';
|
|
@@ -10,7 +18,7 @@ import RenderRelateAgent from '../../render-relate-agent/index.vue.js';
|
|
|
10
18
|
import { useMarketHttp } from '../../../hooks/use-market-http.ts.js';
|
|
11
19
|
import { usePermission } from '../../../hooks/use-permission.ts.js';
|
|
12
20
|
import { useSkillHttp } from '../../../hooks/use-skill-http.ts.js';
|
|
13
|
-
import { EnumCharacter, Module, ResourceCardType, ResourcePermissionAction,
|
|
21
|
+
import { EnumCharacter, Module, ResourceCardType, ResourcePermissionAction, SdkNavigateActionType, SkillStatus } from '../../../types/enum.ts.js';
|
|
14
22
|
export default /*@__PURE__*/ _defineComponent({
|
|
15
23
|
props: {
|
|
16
24
|
skill: {},
|
|
@@ -49,7 +57,22 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
49
57
|
return props.type === ResourceCardType.Full;
|
|
50
58
|
};
|
|
51
59
|
const getIsNotDeleted = ()=>{
|
|
52
|
-
return props.skill.status !==
|
|
60
|
+
return props.skill.status !== SkillStatus.Deleted;
|
|
61
|
+
};
|
|
62
|
+
const getIsPublishing = ()=>{
|
|
63
|
+
return props.skill.latestStatus === SkillStatus.Publishing;
|
|
64
|
+
};
|
|
65
|
+
const getIsPublishError = ()=>{
|
|
66
|
+
return props.skill.latestStatus === SkillStatus.Failed;
|
|
67
|
+
};
|
|
68
|
+
const getEditTooltipContent = ()=>{
|
|
69
|
+
if (getIsPublishing()) {
|
|
70
|
+
return `${props.skill.latestVersion} 版本正在发布中`;
|
|
71
|
+
}
|
|
72
|
+
if (getIsPublishError()) {
|
|
73
|
+
return `${props.skill.latestVersion} 版本发布失败`;
|
|
74
|
+
}
|
|
75
|
+
return '';
|
|
53
76
|
};
|
|
54
77
|
const handleManagePermissionMouseEnter = ()=>{
|
|
55
78
|
handleMouseEnter(props.skill.permission.manageSkill);
|
|
@@ -156,31 +179,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
156
179
|
])) : getIsNotDeleted() ? (_openBlock(), _createElementBlock(_Fragment, {
|
|
157
180
|
key: 1
|
|
158
181
|
}, [
|
|
159
|
-
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
160
|
-
disabled: props.skill.generateType !== _unref(EnumCharacter).Public,
|
|
161
|
-
size: "small",
|
|
162
|
-
onClick: _withModifiers(handleShare, [
|
|
163
|
-
"stop"
|
|
164
|
-
])
|
|
165
|
-
}, {
|
|
166
|
-
default: _withCtx(()=>[
|
|
167
|
-
..._cache[5] || (_cache[5] = [
|
|
168
|
-
_createTextVNode(" 分享 ", -1 /* CACHED */ )
|
|
169
|
-
])
|
|
170
|
-
]),
|
|
171
|
-
_: 1 /* STABLE */
|
|
172
|
-
}, 8 /* PROPS */ , [
|
|
173
|
-
"disabled"
|
|
174
|
-
])), [
|
|
175
|
-
[
|
|
176
|
-
_directive_bk_tooltips,
|
|
177
|
-
{
|
|
178
|
-
content: '该 Skill 并未对所有空间开放,暂不能分享',
|
|
179
|
-
disabled: props.skill.generateType === _unref(EnumCharacter).Public
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
]),
|
|
183
|
-
getIsCurrentSpace() && getIsFullType() ? (_openBlock(), _createBlock(_component_bk_button, {
|
|
182
|
+
getIsCurrentSpace() && getIsFullType() ? _withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
184
183
|
key: 0,
|
|
185
184
|
size: "small",
|
|
186
185
|
class: _normalizeClass({
|
|
@@ -194,15 +193,29 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
194
193
|
]))
|
|
195
194
|
}, {
|
|
196
195
|
default: _withCtx(()=>[
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
getIsPublishing() ? (_openBlock(), _createElementBlock("svg", _hoisted_1, [
|
|
197
|
+
..._cache[5] || (_cache[5] = [
|
|
198
|
+
_createElementVNode("use", {
|
|
199
|
+
href: "#ai-ui-sdk-sync-pending"
|
|
200
|
+
}, null, -1 /* CACHED */ )
|
|
201
|
+
])
|
|
202
|
+
])) : _createCommentVNode("v-if", true),
|
|
203
|
+
getIsPublishError() ? (_openBlock(), _createElementBlock("i", _hoisted_2)) : _createCommentVNode("v-if", true),
|
|
204
|
+
_createTextVNode(" " + _toDisplayString(getIsPublishing() ? '发布中' : '编辑'), 1 /* TEXT */ )
|
|
200
205
|
]),
|
|
201
206
|
_: 1 /* STABLE */
|
|
202
207
|
}, 8 /* PROPS */ , [
|
|
203
208
|
"class",
|
|
204
209
|
"onMouseleave"
|
|
205
|
-
]))
|
|
210
|
+
])), [
|
|
211
|
+
[
|
|
212
|
+
_directive_bk_tooltips,
|
|
213
|
+
{
|
|
214
|
+
content: getEditTooltipContent(),
|
|
215
|
+
disabled: !getEditTooltipContent()
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
]) : _createCommentVNode("v-if", true),
|
|
206
219
|
_createVNode(_component_bk_button, {
|
|
207
220
|
size: "small",
|
|
208
221
|
onClick: _withModifiers(handleInstall, [
|
|
@@ -210,12 +223,36 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
210
223
|
])
|
|
211
224
|
}, {
|
|
212
225
|
default: _withCtx(()=>[
|
|
213
|
-
..._cache[
|
|
226
|
+
..._cache[6] || (_cache[6] = [
|
|
214
227
|
_createTextVNode(" 安装 ", -1 /* CACHED */ )
|
|
215
228
|
])
|
|
216
229
|
]),
|
|
217
230
|
_: 1 /* STABLE */
|
|
218
231
|
}),
|
|
232
|
+
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
233
|
+
disabled: props.skill.generateType !== _unref(EnumCharacter).Public,
|
|
234
|
+
size: "small",
|
|
235
|
+
onClick: _withModifiers(handleShare, [
|
|
236
|
+
"stop"
|
|
237
|
+
])
|
|
238
|
+
}, {
|
|
239
|
+
default: _withCtx(()=>[
|
|
240
|
+
..._cache[7] || (_cache[7] = [
|
|
241
|
+
_createTextVNode(" 分享 ", -1 /* CACHED */ )
|
|
242
|
+
])
|
|
243
|
+
]),
|
|
244
|
+
_: 1 /* STABLE */
|
|
245
|
+
}, 8 /* PROPS */ , [
|
|
246
|
+
"disabled"
|
|
247
|
+
])), [
|
|
248
|
+
[
|
|
249
|
+
_directive_bk_tooltips,
|
|
250
|
+
{
|
|
251
|
+
content: '该 Skill 并未对所有空间开放,暂不能分享',
|
|
252
|
+
disabled: props.skill.generateType === _unref(EnumCharacter).Public
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
]),
|
|
219
256
|
_createVNode(RenderDropdown, {
|
|
220
257
|
placement: "bottom-start",
|
|
221
258
|
theme: "light",
|
|
@@ -269,7 +306,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
269
306
|
"api-prefix"
|
|
270
307
|
])
|
|
271
308
|
]),
|
|
272
|
-
getIsFullType() ? (_openBlock(), _createElementBlock("li",
|
|
309
|
+
getIsFullType() ? (_openBlock(), _createElementBlock("li", _hoisted_3, [
|
|
273
310
|
_createVNode(_component_bk_button, {
|
|
274
311
|
size: "small",
|
|
275
312
|
text: "",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-sl6jnu0a] {
|
|
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-sl6jnu0a] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-sl6jnu0a]::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-sl6jnu0a] {
|
|
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-sl6jnu0a] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-sl6jnu0a] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-sl6jnu0a] 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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] th .t-table__ellipsis {
|
|
57
57
|
width: auto !important;
|
|
58
58
|
}
|
|
59
|
-
.t-t-table[data-v-
|
|
59
|
+
.t-t-table[data-v-sl6jnu0a] .t-loading__gradient.t-icon-loading {
|
|
60
60
|
display: none;
|
|
61
61
|
}
|
|
62
|
-
.t-t-table[data-v-
|
|
62
|
+
.t-t-table[data-v-sl6jnu0a]: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-sl6jnu0a] .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-sl6jnu0a] .t-table--layout-fixed{
|
|
70
70
|
width: 100% !important;
|
|
71
71
|
}
|
|
72
|
-
.t-t-table[data-v-
|
|
72
|
+
.t-t-table[data-v-sl6jnu0a] .bk-exception-description{
|
|
73
73
|
margin-bottom: 0;
|
|
74
74
|
}
|
|
75
|
-
.t-t-table[data-v-
|
|
75
|
+
.t-t-table[data-v-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .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-sl6jnu0a] .t-table__filter-icon.t-is-focus>span{
|
|
106
106
|
color: #3a84ff !important;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-tree[data-v-
|
|
2
|
+
.tag-tree[data-v-xhzahb4a] {
|
|
3
3
|
font-size: 12px;
|
|
4
4
|
height: auto;
|
|
5
5
|
max-height: calc(100% - 44px);
|
|
6
6
|
}
|
|
7
|
-
.tag-tree .manage-tree-item[data-v-
|
|
7
|
+
.tag-tree .manage-tree-item[data-v-xhzahb4a] {
|
|
8
8
|
height: 32px;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
.tag-tree .quick-icon[data-v-
|
|
11
|
+
.tag-tree .quick-icon[data-v-xhzahb4a] {
|
|
12
12
|
margin-left: -24px;
|
|
13
13
|
padding-left: 8px;
|
|
14
14
|
}
|
|
15
|
-
.tag-tree[data-v-
|
|
15
|
+
.tag-tree[data-v-xhzahb4a] .tree-item:has(.bottom-line) {
|
|
16
16
|
border-bottom: 1px solid #F0F1F5;
|
|
17
17
|
}
|
|
18
|
-
.tag-tree[data-v-
|
|
18
|
+
.tag-tree[data-v-xhzahb4a] .tree-item.active .quick-icon {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
}
|
|
21
|
-
.tag-tree[data-v-
|
|
21
|
+
.tag-tree[data-v-xhzahb4a] .tree-item.active .tag-number {
|
|
22
22
|
background: #A3C5FD;
|
|
23
23
|
color: #fff;
|
|
24
24
|
}
|
|
25
|
-
.tag-number[data-v-
|
|
25
|
+
.tag-number[data-v-xhzahb4a] {
|
|
26
26
|
line-height: 16px;
|
|
27
27
|
padding: 0 4px;
|
|
28
28
|
background-color: #F0F1F5;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-container[data-v-
|
|
2
|
+
.tag-container[data-v-ahun70hr] {
|
|
3
3
|
visibility: hidden;
|
|
4
4
|
white-space: nowrap;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
width: calc(100% - 20px);
|
|
7
7
|
}
|
|
8
|
-
.tag-home[data-v-
|
|
8
|
+
.tag-home[data-v-ahun70hr] {
|
|
9
9
|
vertical-align: sub;
|
|
10
10
|
flex-shrink: 0;
|
|
11
11
|
}
|
|
12
|
-
[is-show="true"][data-v-
|
|
12
|
+
[is-show="true"][data-v-ahun70hr] {
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
|
-
[is-show="false"][data-v-
|
|
15
|
+
[is-show="false"][data-v-ahun70hr] {
|
|
16
16
|
display: none !important;
|
|
17
17
|
}
|
|
18
|
-
.popover-main[data-v-
|
|
18
|
+
.popover-main[data-v-ahun70hr] {
|
|
19
19
|
padding: 8px 8px 10px;
|
|
20
20
|
}
|
|
21
|
-
.tag-list[data-v-
|
|
21
|
+
.tag-list[data-v-ahun70hr] {
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
background: #F0F1F5;
|
|
24
24
|
}
|
package/dist/css/g-utilities.css
CHANGED
|
@@ -117,6 +117,10 @@
|
|
|
117
117
|
font-size: 12px !important;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
.\!g-text-16 {
|
|
121
|
+
font-size: 16px !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
120
124
|
.\!g-text-18 {
|
|
121
125
|
font-size: 18px !important;
|
|
122
126
|
}
|
|
@@ -223,6 +227,10 @@
|
|
|
223
227
|
}
|
|
224
228
|
}
|
|
225
229
|
|
|
230
|
+
.g-fill-3a84ff {
|
|
231
|
+
fill: #3a84ff;
|
|
232
|
+
}
|
|
233
|
+
|
|
226
234
|
.g-flex {
|
|
227
235
|
display: flex;
|
|
228
236
|
}
|
|
@@ -290,6 +298,10 @@
|
|
|
290
298
|
}
|
|
291
299
|
}
|
|
292
300
|
|
|
301
|
+
.g-group:hover .g-group-hover\:g-inline {
|
|
302
|
+
display: inline;
|
|
303
|
+
}
|
|
304
|
+
|
|
293
305
|
.g-h-16 {
|
|
294
306
|
height: 16px;
|
|
295
307
|
}
|
|
@@ -835,6 +847,10 @@
|
|
|
835
847
|
text-align: center;
|
|
836
848
|
}
|
|
837
849
|
|
|
850
|
+
.g-text-ea3636 {
|
|
851
|
+
color: #ea3636;
|
|
852
|
+
}
|
|
853
|
+
|
|
838
854
|
.g-text-gray {
|
|
839
855
|
color: #979ba5;
|
|
840
856
|
}
|
|
@@ -895,10 +911,6 @@
|
|
|
895
911
|
white-space: pre-line;
|
|
896
912
|
}
|
|
897
913
|
|
|
898
|
-
.g-group:hover .group-hover\:g-inline {
|
|
899
|
-
display: inline;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
914
|
.hover\:\!g-border-blue:hover {
|
|
903
915
|
border: 1px solid #3a84ff !important;
|
|
904
916
|
}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"!g-self-center",
|
|
24
24
|
"!g-self-start",
|
|
25
25
|
"!g-text-12",
|
|
26
|
+
"!g-text-16",
|
|
26
27
|
"!g-text-18",
|
|
27
28
|
"!g-text-white",
|
|
28
29
|
"!g-w-220",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"g-deleted-resource",
|
|
36
37
|
"g-ellipsis",
|
|
37
38
|
"g-exception",
|
|
39
|
+
"g-fill-3a84ff",
|
|
38
40
|
"g-flex",
|
|
39
41
|
"g-flex-1",
|
|
40
42
|
"g-flex-col",
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
"g-gap",
|
|
49
51
|
"g-gap-4",
|
|
50
52
|
"g-gray-header-table",
|
|
53
|
+
"g-group-hover:g-inline",
|
|
51
54
|
"g-h-16",
|
|
52
55
|
"g-h-56",
|
|
53
56
|
"g-h-70",
|
|
@@ -140,6 +143,7 @@
|
|
|
140
143
|
"g-text-black",
|
|
141
144
|
"g-text-blue",
|
|
142
145
|
"g-text-center",
|
|
146
|
+
"g-text-ea3636",
|
|
143
147
|
"g-text-gray",
|
|
144
148
|
"g-text-green",
|
|
145
149
|
"g-text-left",
|
|
@@ -154,7 +158,6 @@
|
|
|
154
158
|
"g-w-88",
|
|
155
159
|
"g-white-footer-table",
|
|
156
160
|
"g-whitespace-pre-line",
|
|
157
|
-
"group-hover:g-inline",
|
|
158
161
|
"hover:!g-border-blue",
|
|
159
162
|
"hover:!g-text-blue",
|
|
160
163
|
"hover:g-text-danger-red",
|
|
@@ -3,15 +3,16 @@ import { IFetchConfig } from '@/http/fetch';
|
|
|
3
3
|
import type { ISkillApi, ISkillCountParam, ISkillListParam } from '@/types/skill';
|
|
4
4
|
export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
5
|
getSkillList: {
|
|
6
|
-
(param: ISkillListParam, config?: IFetchConfig): Promise<import("@/types").IPaginationResponse<import("@/types").ISkill>>;
|
|
6
|
+
(param: ISkillListParam, config?: IFetchConfig): Promise<import("@/types/common").IPaginationResponse<import("@/types/skill").ISkill>>;
|
|
7
7
|
abort(): void;
|
|
8
8
|
};
|
|
9
|
-
getSkillCount: (param: ISkillCountParam) => Promise<import("@/types").IResourceCount[]>;
|
|
10
|
-
getSkillReferringAgents: (skillId: number) => Promise<import("@/types").IReferringAgent[]>;
|
|
9
|
+
getSkillCount: (param: ISkillCountParam) => Promise<import("@/types/common").IResourceCount[]>;
|
|
10
|
+
getSkillReferringAgents: (skillId: number) => Promise<import("@/types/common").IReferringAgent[]>;
|
|
11
11
|
deleteSkill: (id: number) => Promise<ISkillApi>;
|
|
12
|
-
downloadSkill: (id: number) => Promise<import("@/types").ISkill>;
|
|
12
|
+
downloadSkill: (id: number) => Promise<import("@/types/skill").ISkill>;
|
|
13
13
|
restoreSkill: (id: number) => Promise<unknown>;
|
|
14
14
|
getSkillInstallGuide: (id: number) => Promise<{
|
|
15
15
|
markdown: string;
|
|
16
16
|
}>;
|
|
17
|
+
getSkillBuildLog: (id: number, version: string) => Promise<import("@/types/skill").ISkillBuildLog>;
|
|
17
18
|
};
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import fetch, { withAbort } from '../http/fetch/index.ts.js';
|
|
54
|
-
import { transferSkillApi2Skill, transferSkillCount2SkillCountApi } from '../http/helper/skill.ts.js';
|
|
54
|
+
import { transferSkillApi2Skill, transferSkillBuildLogApi2SkillBuildLog, transferSkillCount2SkillCountApi } from '../http/helper/skill.ts.js';
|
|
55
55
|
import { transferPaginationResponseApi2PaginationResponse, transferReferringAgentApi2ReferringAgent, transferResourceCountApi2ResourceCount, transferSkillParam2SkillParamApi } from '../transforms.ts.js';
|
|
56
56
|
export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
57
57
|
// 获取 Skill 列表
|
|
@@ -98,6 +98,14 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
98
98
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
+
// 获取 Skill 构建日志
|
|
102
|
+
const getSkillBuildLog = (id, version)=>fetch.get(`${apiPrefix}/skill/v1/skill/${id}/build_log/`, {
|
|
103
|
+
version
|
|
104
|
+
}, {
|
|
105
|
+
headers: {
|
|
106
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
107
|
+
}
|
|
108
|
+
}).then(transferSkillBuildLogApi2SkillBuildLog);
|
|
101
109
|
return {
|
|
102
110
|
getSkillList,
|
|
103
111
|
getSkillCount,
|
|
@@ -105,6 +113,7 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
105
113
|
deleteSkill,
|
|
106
114
|
downloadSkill,
|
|
107
115
|
restoreSkill,
|
|
108
|
-
getSkillInstallGuide
|
|
116
|
+
getSkillInstallGuide,
|
|
117
|
+
getSkillBuildLog
|
|
109
118
|
};
|
|
110
119
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ResourceStatus } from '@/enums';
|
|
1
2
|
import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi } from '@/types/common';
|
|
2
3
|
/**
|
|
3
4
|
* 接口转换为ui使用
|
|
@@ -40,13 +41,13 @@ export declare const transferResourceFormCommon2ResourceFormCommonApi: (data: IR
|
|
|
40
41
|
* @param data IResourceCommonApi
|
|
41
42
|
* @returns IResourceCommon
|
|
42
43
|
*/
|
|
43
|
-
export declare const transferResourceCommonApi2ResourceCommon: (data: IResourceCommonApi) => IResourceCommon
|
|
44
|
+
export declare const transferResourceCommonApi2ResourceCommon: <T = ResourceStatus>(data: IResourceCommonApi<T>) => IResourceCommon<T>;
|
|
44
45
|
/**
|
|
45
46
|
* ui转换为接口使用(完整资源)
|
|
46
47
|
* @param data IResourceCommon
|
|
47
48
|
* @returns IResourceCommonApi
|
|
48
49
|
*/
|
|
49
|
-
export declare const transferResourceCommon2ResourceCommonApi: (data: IResourceCommon) => IResourceCommonApi
|
|
50
|
+
export declare const transferResourceCommon2ResourceCommonApi: <T = ResourceStatus>(data: IResourceCommon<T>) => IResourceCommonApi<T>;
|
|
50
51
|
/**
|
|
51
52
|
* 分页接口响应转换为ui使用,通过传入的转换函数逐项转换列表数据
|
|
52
53
|
* @param transferItem 单项转换函数,将接口类型 A 转换为ui类型 U
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISkill, ISkillApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillListParam, ISkillListParamApi } from '@/types/skill';
|
|
1
|
+
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillListParam, ISkillListParamApi } from '@/types/skill';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用(表单字段)
|
|
4
4
|
* @param data ISkillForm
|
|
@@ -24,6 +24,12 @@ export declare const transferSkillApi2Skill: (data: ISkillApi) => ISkill;
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const transferSkill2SkillApi: (data: ISkill) => ISkillApi;
|
|
26
26
|
export declare const transferSkillCount2SkillCountApi: (data: ISkillCountParam) => ISkillCountParamApi;
|
|
27
|
+
/**
|
|
28
|
+
* 接口转换为ui使用(构建日志)
|
|
29
|
+
* @param data ISkillBuildLogApi
|
|
30
|
+
* @returns ISkillBuildLog
|
|
31
|
+
*/
|
|
32
|
+
export declare const transferSkillBuildLogApi2SkillBuildLog: (data: ISkillBuildLogApi) => ISkillBuildLog;
|
|
27
33
|
/**
|
|
28
34
|
* ui转换为接口使用
|
|
29
35
|
* @param data ISkillListParam
|
|
@@ -84,6 +84,8 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
84
84
|
* @param data ISkillApi
|
|
85
85
|
* @returns ISkill
|
|
86
86
|
*/ export const transferSkillApi2Skill = (data)=>_object_spread_props(_object_spread({}, transferSkillFormApi2SkillForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
87
|
+
latestStatus: data.latest_status,
|
|
88
|
+
latestVersion: data.latest_version,
|
|
87
89
|
skillMarkdown: data.skill_markdown,
|
|
88
90
|
downloadCount: data.download_count,
|
|
89
91
|
installCount: data.install_count,
|
|
@@ -100,6 +102,8 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
100
102
|
* @param data ISkill
|
|
101
103
|
* @returns ISkillApi
|
|
102
104
|
*/ export const transferSkill2SkillApi = (data)=>_object_spread_props(_object_spread({}, transferSkillForm2SkillFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
105
|
+
latest_status: data.latestStatus,
|
|
106
|
+
latest_version: data.latestVersion,
|
|
103
107
|
skill_markdown: data.skillMarkdown,
|
|
104
108
|
download_count: data.downloadCount,
|
|
105
109
|
install_count: data.installCount,
|
|
@@ -119,6 +123,17 @@ export const transferSkillCount2SkillCountApi = (data)=>{
|
|
|
119
123
|
created_by: data.createdBy
|
|
120
124
|
};
|
|
121
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* 接口转换为ui使用(构建日志)
|
|
128
|
+
* @param data ISkillBuildLogApi
|
|
129
|
+
* @returns ISkillBuildLog
|
|
130
|
+
*/ export const transferSkillBuildLogApi2SkillBuildLog = (data)=>({
|
|
131
|
+
publishStatus: data.publish_status,
|
|
132
|
+
buildLogs: data.build_logs,
|
|
133
|
+
errorMessage: data.error_message,
|
|
134
|
+
startedAt: data.started_at,
|
|
135
|
+
completedAt: data.completed_at
|
|
136
|
+
});
|
|
122
137
|
/**
|
|
123
138
|
* ui转换为接口使用
|
|
124
139
|
* @param data ISkillListParam
|
package/dist/types/common.d.ts
CHANGED
|
@@ -99,25 +99,25 @@ export interface IResourceFormCommonApi {
|
|
|
99
99
|
is_public: boolean;
|
|
100
100
|
description: string;
|
|
101
101
|
}
|
|
102
|
-
export interface IResourceCommon {
|
|
102
|
+
export interface IResourceCommon<T = ResourceStatus> {
|
|
103
103
|
id: number;
|
|
104
104
|
createdBy: string;
|
|
105
105
|
createdAt: string;
|
|
106
106
|
updatedBy: string;
|
|
107
107
|
updatedAt: string;
|
|
108
|
-
status?:
|
|
108
|
+
status?: T;
|
|
109
109
|
spaceId?: string;
|
|
110
110
|
approvers?: string[];
|
|
111
111
|
ticketUrl?: string;
|
|
112
112
|
permission: IResourcePermission;
|
|
113
113
|
}
|
|
114
|
-
export interface IResourceCommonApi {
|
|
114
|
+
export interface IResourceCommonApi<T = ResourceStatus> {
|
|
115
115
|
id: number;
|
|
116
116
|
created_by: string;
|
|
117
117
|
created_at?: string;
|
|
118
118
|
updated_by: string;
|
|
119
119
|
updated_at: string;
|
|
120
|
-
status?:
|
|
120
|
+
status?: T;
|
|
121
121
|
space_id: string;
|
|
122
122
|
approvers?: string[];
|
|
123
123
|
ticket_url?: string;
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -84,6 +84,13 @@ export declare enum ResourceStatus {
|
|
|
84
84
|
NoPermission = "no_permission",
|
|
85
85
|
PermissionPending = "permission-pending"
|
|
86
86
|
}
|
|
87
|
+
export declare enum SkillStatus {
|
|
88
|
+
Publishing = "publishing",
|
|
89
|
+
Published = "published",
|
|
90
|
+
Online = "online",
|
|
91
|
+
Failed = "failed",
|
|
92
|
+
Deleted = "deleted"
|
|
93
|
+
}
|
|
87
94
|
export declare enum KnowledgePathType {
|
|
88
95
|
File = "file",
|
|
89
96
|
Folder = "folder"
|