@blueking/ai-ui-sdk 0.4.3-beta.14 → 0.4.3-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/corner-badge.script.vue.js.js +50 -0
- package/dist/components/render-card/agent/corner-badge.vue.css +9 -0
- package/dist/components/render-card/agent/corner-badge.vue.d.ts +14 -0
- package/dist/components/render-card/agent/corner-badge.vue.js +5 -0
- package/dist/components/render-card/agent/index.script.vue.js.js +12 -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/collection-icon.script.vue.js.js +3 -16
- package/dist/components/render-card/base/collection-icon.vue.d.ts +0 -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/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 +2 -2
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/index.script.vue.js.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/prompt/index.script.vue.js.js +1 -1
- package/dist/components/render-card/role/index.script.vue.js.js +1 -1
- package/dist/components/render-card/skill/index.script.vue.js.js +1 -1
- package/dist/components/render-card/skill/scanner.vue.css +3 -3
- package/dist/components/render-card/skill/scanner.vue.js +1 -1
- package/dist/components/render-card/tool/index.script.vue.js.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/dataset-data-tool-icons/index.script.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-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -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-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-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-agent-http.d.ts +1 -0
- package/dist/hooks/use-agent-http.ts.js +9 -2
- package/dist/http/helper/agent.d.ts +7 -1
- package/dist/http/helper/agent.ts.js +16 -0
- package/dist/types/agent.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.agent-type[data-v-
|
|
2
|
+
.agent-type[data-v-tonlvpox] {
|
|
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-tonlvpox] {
|
|
9
9
|
color: #1768EF;
|
|
10
10
|
background-color: #E1ECFF;
|
|
11
11
|
}
|
|
12
|
-
.agent-type.flow[data-v-
|
|
12
|
+
.agent-type.flow[data-v-tonlvpox] {
|
|
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-qt62tcyn] {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
|
-
.send-container[data-v-
|
|
5
|
+
.send-container[data-v-qt62tcyn]: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-qt62tcyn] {
|
|
9
9
|
display: inline-flex !important;
|
|
10
10
|
}
|
|
11
|
-
.send-input[data-v-
|
|
11
|
+
.send-input[data-v-qt62tcyn] {
|
|
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-qt62tcyn]:has(textarea:focus) {
|
|
17
17
|
height: var(--text-height);
|
|
18
18
|
}
|
|
19
|
-
.send-input[data-v-
|
|
19
|
+
.send-input[data-v-qt62tcyn] 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-qt62tcyn] textarea::-webkit-scrollbar {
|
|
26
26
|
width: 4px;
|
|
27
27
|
height: 4px;
|
|
28
28
|
}
|
|
29
|
-
.send-input[data-v-
|
|
29
|
+
.send-input[data-v-qt62tcyn] 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-qt62tcyn] textarea::placeholder {
|
|
35
35
|
line-height: 16px;
|
|
36
36
|
}
|
|
37
|
-
.send-clear[data-v-
|
|
37
|
+
.send-clear[data-v-qt62tcyn] {
|
|
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-qt62tcyn]:hover {
|
|
47
47
|
color: #313238;
|
|
48
48
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.auto-refresh[data-v-
|
|
2
|
+
.auto-refresh[data-v-s996cijx] {
|
|
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-s996cijx]: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-s996cijx]:hover {
|
|
20
20
|
color: #3A84FF;
|
|
21
21
|
background-color: #E1ECFF;
|
|
22
22
|
}
|
|
23
|
-
.refresh[data-v-
|
|
23
|
+
.refresh[data-v-s996cijx] {
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
line-height: 26px;
|
|
26
26
|
padding: 0 4px;
|
|
27
27
|
}
|
|
28
|
-
.refresh[data-v-
|
|
28
|
+
.refresh[data-v-s996cijx]:hover {
|
|
29
29
|
color: #3A84FF;
|
|
30
30
|
background-color: #E1ECFF;
|
|
31
31
|
}
|
|
32
|
-
.textarea-list[data-v-
|
|
32
|
+
.textarea-list[data-v-s996cijx] {
|
|
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-s996cijx] {
|
|
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-s996cijx]:hover {
|
|
44
44
|
background: #E1ECFF;
|
|
45
45
|
color: #3A84FF;
|
|
46
46
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
3
|
+
import { SdkNavigateActionType } from '../../../types/enum.ts.js';
|
|
4
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
5
|
+
props: {
|
|
6
|
+
agent: {},
|
|
7
|
+
groupType: {}
|
|
8
|
+
},
|
|
9
|
+
emits: [
|
|
10
|
+
"navigate"
|
|
11
|
+
],
|
|
12
|
+
setup (__props, { emit: __emit }) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const emits = __emit;
|
|
15
|
+
const handleGoToRelease = ()=>{
|
|
16
|
+
emits('navigate', {
|
|
17
|
+
type: SdkNavigateActionType.AgentDetailRelease,
|
|
18
|
+
id: props.agent.id,
|
|
19
|
+
groupType: props.groupType
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return (_ctx, _cache)=>{
|
|
23
|
+
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
24
|
+
return props.agent.latestVersion && props.agent.needUpgrade ? (_openBlock(), _createBlock(_component_bk_popover, {
|
|
25
|
+
key: 0,
|
|
26
|
+
placement: "top"
|
|
27
|
+
}, {
|
|
28
|
+
content: _withCtx(()=>[
|
|
29
|
+
_createElementVNode("span", null, "当前智能体框架版本 " + _toDisplayString(__props.agent.agentSdkVersion) + ",可升级至 " + _toDisplayString(__props.agent.latestSdkVersion), 1 /* TEXT */ ),
|
|
30
|
+
_createElementVNode("span", {
|
|
31
|
+
class: "g-cursor-pointer g-text-blue",
|
|
32
|
+
onClick: _withModifiers(handleGoToRelease, [
|
|
33
|
+
"stop"
|
|
34
|
+
])
|
|
35
|
+
}, " 去升级 ")
|
|
36
|
+
]),
|
|
37
|
+
default: _withCtx(()=>[
|
|
38
|
+
_cache[0] || (_cache[0] = _createElementVNode("section", {
|
|
39
|
+
class: "agent-corner-badge g-absolute g-top-0 g-right-0 g-w-48 g-h-48 !g-cursor-pointer"
|
|
40
|
+
}, [
|
|
41
|
+
_createElementVNode("span", {
|
|
42
|
+
class: "g-absolute g-top-8 g-right-0 g-rotate-45 g-text-10 !g-text-white"
|
|
43
|
+
}, "可升级")
|
|
44
|
+
], -1 /* CACHED */ ))
|
|
45
|
+
]),
|
|
46
|
+
_: 1 /* STABLE */
|
|
47
|
+
})) : _createCommentVNode("v-if", true);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
.agent-corner-badge[data-v-lqtwjz1t] {
|
|
3
|
+
background: linear-gradient(142.7deg, #fdf4e8 0%, #f8b64f 100%);
|
|
4
|
+
clip-path: polygon(100% 0, 0 0, 100% 100%);
|
|
5
|
+
border-radius: 0 8px;
|
|
6
|
+
}
|
|
7
|
+
.agent-corner-badge[data-v-lqtwjz1t]:hover {
|
|
8
|
+
background: linear-gradient(142.7deg, #fdf4e8 0%, #e5a239 100%);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IAgent } from '@/types/agent';
|
|
2
|
+
import { GroupType } from '@/types/enum';
|
|
3
|
+
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
4
|
+
interface IProps {
|
|
5
|
+
agent: IAgent;
|
|
6
|
+
groupType?: GroupType;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
navigate: (route: ISdkNavigateAction) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
11
|
+
onNavigate?: (route: ISdkNavigateAction) => any;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -2,6 +2,7 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
2
2
|
import { unref as _unref, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, withCtx as _withCtx, createBlock as _createBlock } from "vue";
|
|
3
3
|
import RenderBase from '../base.vue.js';
|
|
4
4
|
import RenderReferenceIcon from '../base/reference-icon.vue.js';
|
|
5
|
+
import RenderCornerBadge from './corner-badge.vue.js';
|
|
5
6
|
import RenderPrefixInfoTool from './prefix-info-tool.vue.js';
|
|
6
7
|
import RenderTagPrefix from './tag-prefix.vue.js';
|
|
7
8
|
import RenderActions from '../../render-agent/action/index.vue.js';
|
|
@@ -122,6 +123,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
122
123
|
onDelete: handleDelete,
|
|
123
124
|
onChoose: handleChoose
|
|
124
125
|
}, {
|
|
126
|
+
"corner-badge": _withCtx(()=>[
|
|
127
|
+
_createVNode(RenderCornerBadge, {
|
|
128
|
+
agent: props.agent,
|
|
129
|
+
"group-type": props.groupType,
|
|
130
|
+
onNavigate: handleNavigate
|
|
131
|
+
}, null, 8 /* PROPS */ , [
|
|
132
|
+
"agent",
|
|
133
|
+
"group-type"
|
|
134
|
+
])
|
|
135
|
+
]),
|
|
125
136
|
"tag-prefix": _withCtx(()=>[
|
|
126
137
|
_createVNode(RenderTagPrefix, {
|
|
127
138
|
type: props.type,
|
|
@@ -158,11 +169,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
158
169
|
type: props.type,
|
|
159
170
|
favorite: props.agent.favorite,
|
|
160
171
|
"favorite-count": props.agent.favoriteCount,
|
|
161
|
-
"show-count": true,
|
|
162
172
|
module: _unref(Module).Agent,
|
|
163
173
|
"api-prefix": props.apiPrefix,
|
|
164
174
|
"space-id": props.spaceId,
|
|
165
175
|
id: props.agent.id,
|
|
176
|
+
class: "!g-mr-12",
|
|
166
177
|
onSuccessFavorite: handleSuccessFavorite,
|
|
167
178
|
onSuccessCancelFavorite: handleSuccessCancelFavorite
|
|
168
179
|
}, null, 8 /* PROPS */ , [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.command-number[data-v-
|
|
2
|
+
.command-number[data-v-eo2enq7c] {
|
|
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-eo2enq7c] {
|
|
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-eo2enq7c] {
|
|
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-eo2enq7c] {
|
|
24
24
|
margin: 0 8px 0 68px;
|
|
25
25
|
}
|
|
26
|
-
.command-name-text[data-v-
|
|
26
|
+
.command-name-text[data-v-eo2enq7c] {
|
|
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-eo2enq7c";
|
|
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;
|
|
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
|
31
|
-
import { unref as _unref, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode,
|
|
31
|
+
import { unref as _unref, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode } from "vue";
|
|
32
32
|
import { ref, toRef } from 'vue';
|
|
33
33
|
import { useAgentHttp } from '../../../hooks/use-agent-http.ts.js';
|
|
34
34
|
import { useMarketHttp } from '../../../hooks/use-market-http.ts.js';
|
|
@@ -44,9 +44,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
44
44
|
},
|
|
45
45
|
favoriteCount: {},
|
|
46
46
|
type: {},
|
|
47
|
-
showCount: {
|
|
48
|
-
type: Boolean
|
|
49
|
-
},
|
|
50
47
|
id: {},
|
|
51
48
|
module: {},
|
|
52
49
|
apiPrefix: {},
|
|
@@ -99,9 +96,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
99
96
|
key: 0,
|
|
100
97
|
class: _normalizeClass([
|
|
101
98
|
'g-flex-row !g-cursor-pointer',
|
|
102
|
-
{
|
|
103
|
-
'!g-mr-12': props.showCount
|
|
104
|
-
},
|
|
105
99
|
props.favorite ? 'g-text-fc943b hover:g-text-e38b02' : 'g-text-gray hover:g-text-normal'
|
|
106
100
|
]),
|
|
107
101
|
loading: loading.value,
|
|
@@ -114,21 +108,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
114
108
|
return [
|
|
115
109
|
_createElementVNode("i", {
|
|
116
110
|
class: _normalizeClass([
|
|
117
|
-
'ai-ui-sdk-icon g-text-16',
|
|
118
|
-
{
|
|
119
|
-
'g-mr-4': props.showCount
|
|
120
|
-
},
|
|
111
|
+
'ai-ui-sdk-icon g-text-16 g-mr-4',
|
|
121
112
|
props.favorite ? 'ai-ui-sdk-favorite g-text-fc943b hover:g-text-e38b02' : 'ai-ui-sdk-weishoucang g-text-gray hover:g-text-f59500'
|
|
122
113
|
]),
|
|
123
114
|
onClick: _withModifiers(handleClick, [
|
|
124
115
|
"stop"
|
|
125
116
|
])
|
|
126
117
|
}, null, 2 /* CLASS */ ),
|
|
127
|
-
props.
|
|
128
|
-
key: 0
|
|
129
|
-
}, [
|
|
130
|
-
_createTextVNode(_toDisplayString((_props_favoriteCount = props.favoriteCount) !== null && _props_favoriteCount !== void 0 ? _props_favoriteCount : 0), 1 /* TEXT */ )
|
|
131
|
-
], 64 /* STABLE_FRAGMENT */ )) : _createCommentVNode("v-if", true)
|
|
118
|
+
_createTextVNode(" " + _toDisplayString((_props_favoriteCount = props.favoriteCount) !== null && _props_favoriteCount !== void 0 ? _props_favoriteCount : 0), 1 /* TEXT */ )
|
|
132
119
|
];
|
|
133
120
|
}),
|
|
134
121
|
_: 1 /* STABLE */
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-card-home[data-v-
|
|
2
|
+
.resource-card-home[data-v-rfqbdoct] {
|
|
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-rfqbdoct] {
|
|
6
6
|
margin-right: -4px;
|
|
7
7
|
}
|
|
8
|
-
.resource-card-home.full[data-v-
|
|
8
|
+
.resource-card-home.full[data-v-rfqbdoct], .resource-card-home.application[data-v-rfqbdoct], .resource-card-home.market[data-v-rfqbdoct] {
|
|
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-rfqbdoct]:hover, .resource-card-home.application[data-v-rfqbdoct]:hover, .resource-card-home.market[data-v-rfqbdoct]: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-rfqbdoct], .resource-card-home.application .resource-card-name[data-v-rfqbdoct], .resource-card-home.market .resource-card-name[data-v-rfqbdoct] {
|
|
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-rfqbdoct], .resource-card-home.application .resource-card-description[data-v-rfqbdoct], .resource-card-home.market .resource-card-description[data-v-rfqbdoct] {
|
|
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-rfqbdoct] {
|
|
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-rfqbdoct] {
|
|
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-rfqbdoct] {
|
|
38
38
|
color: #4D4F56;
|
|
39
39
|
height: 20px;
|
|
40
40
|
}
|
|
41
|
-
.resource-card-home.info[data-v-
|
|
41
|
+
.resource-card-home.info[data-v-rfqbdoct],.resource-card-home.record[data-v-rfqbdoct] {
|
|
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-rfqbdoct], .resource-card-home.record .resource-card-name[data-v-rfqbdoct] {
|
|
47
47
|
font-size: 12px;
|
|
48
48
|
color: #313238;
|
|
49
49
|
}
|
|
50
|
-
.resource-card-actions[data-v-
|
|
50
|
+
.resource-card-actions[data-v-rfqbdoct] {
|
|
51
51
|
border-top: 1px solid #F5F7FA;
|
|
52
52
|
height: 58px;
|
|
53
53
|
gap: 0 8px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.llm-corner-badge[data-v-
|
|
2
|
+
.llm-corner-badge[data-v-8k5c2dt9] {
|
|
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-8k5c2dt9]: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-8k5c2dt9] {
|
|
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-ebgzup73], .like-button:hover span[data-v-ebgzup73] {
|
|
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-ebgzup73], .dislike-button:hover span[data-v-ebgzup73], .dislike-button:active .ai-ui-sdk-icon[data-v-ebgzup73], .dislike-button:active span[data-v-ebgzup73] {
|
|
6
6
|
color: #EA3636 !important;
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-external[data-v-
|
|
2
|
+
.tag-external[data-v-gnyobfiz] {
|
|
3
3
|
color: #636a2f;
|
|
4
4
|
background: #EAEFC6;
|
|
5
5
|
}
|
|
6
|
-
.tag-public[data-v-
|
|
6
|
+
.tag-public[data-v-gnyobfiz], .tag-private[data-v-gnyobfiz] {
|
|
7
7
|
color: #3a84ff;
|
|
8
8
|
background: #e1ecff;
|
|
9
9
|
}
|
|
@@ -194,11 +194,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
194
194
|
type: props.type,
|
|
195
195
|
favorite: props.mcp.favorite,
|
|
196
196
|
"favorite-count": props.mcp.favoriteCount,
|
|
197
|
-
"show-count": true,
|
|
198
197
|
module: _unref(Module).Mcp,
|
|
199
198
|
"api-prefix": props.apiPrefix,
|
|
200
199
|
"space-id": props.spaceId,
|
|
201
200
|
id: props.mcp.id,
|
|
201
|
+
class: "!g-mr-12",
|
|
202
202
|
onSuccessFavorite: handleSuccessFavorite,
|
|
203
203
|
onSuccessCancelFavorite: handleSuccessCancelFavorite
|
|
204
204
|
}, null, 8 /* PROPS */ , [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.tool-number[data-v-
|
|
2
|
+
.tool-number[data-v-twk95j7h] {
|
|
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-twk95j7h]:hover {
|
|
9
9
|
background: #3A84FF;
|
|
10
10
|
color: #fff;
|
|
11
11
|
}
|
|
@@ -160,11 +160,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
160
160
|
type: props.type,
|
|
161
161
|
favorite: props.prompt.favorite,
|
|
162
162
|
"favorite-count": props.prompt.favoriteCount,
|
|
163
|
-
"show-count": true,
|
|
164
163
|
module: _unref(Module).Prompt,
|
|
165
164
|
"api-prefix": props.apiPrefix,
|
|
166
165
|
"space-id": props.spaceId,
|
|
167
166
|
id: props.prompt.id,
|
|
167
|
+
class: "!g-mr-12",
|
|
168
168
|
onSuccessFavorite: handleSuccessFavorite,
|
|
169
169
|
onSuccessCancelFavorite: handleSuccessCancelFavorite
|
|
170
170
|
}, null, 8 /* PROPS */ , [
|
|
@@ -141,11 +141,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
141
141
|
type: props.type,
|
|
142
142
|
favorite: props.role.favorite,
|
|
143
143
|
"favorite-count": props.role.favoriteCount,
|
|
144
|
-
"show-count": true,
|
|
145
144
|
module: _unref(Module).Collection,
|
|
146
145
|
"api-prefix": props.apiPrefix,
|
|
147
146
|
"space-id": props.spaceId,
|
|
148
147
|
id: props.role.id,
|
|
148
|
+
class: "!g-mr-12",
|
|
149
149
|
onSuccessFavorite: handleSuccessFavorite,
|
|
150
150
|
onSuccessCancelFavorite: handleSuccessCancelFavorite
|
|
151
151
|
}, null, 8 /* PROPS */ , [
|
|
@@ -168,11 +168,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
168
168
|
type: props.type,
|
|
169
169
|
favorite: props.skill.favorite,
|
|
170
170
|
"favorite-count": props.skill.favoriteCount,
|
|
171
|
-
"show-count": true,
|
|
172
171
|
module: _unref(Module).Skill,
|
|
173
172
|
"api-prefix": props.apiPrefix,
|
|
174
173
|
"space-id": props.spaceId,
|
|
175
174
|
id: props.skill.id,
|
|
175
|
+
class: "!g-mr-12",
|
|
176
176
|
onSuccessFavorite: handleSuccessFavorite,
|
|
177
177
|
onSuccessCancelFavorite: handleSuccessCancelFavorite
|
|
178
178
|
}, null, 8 /* PROPS */ , [
|