@blueking/ai-ui-sdk 0.3.0-beta.25 → 0.3.0-beta.27
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/common/util.d.ts +6 -0
- package/dist/common/util.ts.js +16 -0
- 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/reference-icon.script.vue.js.js +12 -5
- 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.script.vue.js.js +6 -28
- 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 +18 -0
- package/dist/components/render-card/llm/info.script.vue.js.js +4 -3
- 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-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 +28 -0
- package/dist/css/g-utilities.manifest.json +7 -0
- package/dist/http/helper/model.ts.js +3 -1
- package/dist/types/model.d.ts +4 -0
- package/package.json +2 -2
package/dist/common/util.d.ts
CHANGED
|
@@ -30,6 +30,12 @@ export declare const getFileSizeTxt: (size: number) => string;
|
|
|
30
30
|
* @returns 格式化后的字符串
|
|
31
31
|
*/
|
|
32
32
|
export declare const numberFormatter: (val?: number, fixed?: number, locales?: string) => string;
|
|
33
|
+
/**
|
|
34
|
+
* 数值转换成 k m g 等单位
|
|
35
|
+
* @param val 数值
|
|
36
|
+
* @returns 转换后的数值
|
|
37
|
+
*/
|
|
38
|
+
export declare const numberUnitFormatter: (val?: number, fixed?: number) => string | number;
|
|
33
39
|
/**
|
|
34
40
|
* 节流,每隔一段时间执行
|
|
35
41
|
* @param {*} fn 需要执行的函数
|
package/dist/common/util.ts.js
CHANGED
|
@@ -75,6 +75,22 @@ import dayjs from 'dayjs';
|
|
|
75
75
|
};
|
|
76
76
|
return new Intl.NumberFormat(locales, options).format(val);
|
|
77
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* 数值转换成 k m g 等单位
|
|
80
|
+
* @param val 数值
|
|
81
|
+
* @returns 转换后的数值
|
|
82
|
+
*/ export const numberUnitFormatter = (val = 0, fixed = 1)=>{
|
|
83
|
+
if (val < 1000 || isEmpty(val)) {
|
|
84
|
+
return val;
|
|
85
|
+
}
|
|
86
|
+
if (val < 1000000) {
|
|
87
|
+
return `${numberFormatter(val / 1000, fixed)}K`;
|
|
88
|
+
}
|
|
89
|
+
if (val < 1000000000) {
|
|
90
|
+
return `${numberFormatter(val / 1000000, fixed)}M`;
|
|
91
|
+
}
|
|
92
|
+
return `${numberFormatter(val / 1000000000, fixed)}G`;
|
|
93
|
+
};
|
|
78
94
|
/**
|
|
79
95
|
* 节流,每隔一段时间执行
|
|
80
96
|
* @param {*} fn 需要执行的函数
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.agent-type[data-v-
|
|
2
|
+
.agent-type[data-v-1pqxvayk] {
|
|
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-1pqxvayk] {
|
|
9
9
|
color: #1768EF;
|
|
10
10
|
background-color: #E1ECFF;
|
|
11
11
|
}
|
|
12
|
-
.agent-type.flow[data-v-
|
|
12
|
+
.agent-type.flow[data-v-1pqxvayk] {
|
|
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-gsr2o95a] {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
|
-
.send-container[data-v-
|
|
5
|
+
.send-container[data-v-gsr2o95a]: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-gsr2o95a] {
|
|
9
9
|
display: inline-flex !important;
|
|
10
10
|
}
|
|
11
|
-
.send-input[data-v-
|
|
11
|
+
.send-input[data-v-gsr2o95a] {
|
|
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-gsr2o95a]:has(textarea:focus) {
|
|
17
17
|
height: var(--text-height);
|
|
18
18
|
}
|
|
19
|
-
.send-input[data-v-
|
|
19
|
+
.send-input[data-v-gsr2o95a] 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-gsr2o95a] textarea::-webkit-scrollbar {
|
|
26
26
|
width: 4px;
|
|
27
27
|
height: 4px;
|
|
28
28
|
}
|
|
29
|
-
.send-input[data-v-
|
|
29
|
+
.send-input[data-v-gsr2o95a] 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-gsr2o95a] textarea::placeholder {
|
|
35
35
|
line-height: 16px;
|
|
36
36
|
}
|
|
37
|
-
.send-clear[data-v-
|
|
37
|
+
.send-clear[data-v-gsr2o95a] {
|
|
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-gsr2o95a]:hover {
|
|
47
47
|
color: #313238;
|
|
48
48
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.auto-refresh[data-v-
|
|
2
|
+
.auto-refresh[data-v-glvfox9j] {
|
|
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-glvfox9j]: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-glvfox9j]:hover {
|
|
20
20
|
color: #3A84FF;
|
|
21
21
|
background-color: #E1ECFF;
|
|
22
22
|
}
|
|
23
|
-
.refresh[data-v-
|
|
23
|
+
.refresh[data-v-glvfox9j] {
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
line-height: 26px;
|
|
26
26
|
padding: 0 4px;
|
|
27
27
|
}
|
|
28
|
-
.refresh[data-v-
|
|
28
|
+
.refresh[data-v-glvfox9j]:hover {
|
|
29
29
|
color: #3A84FF;
|
|
30
30
|
background-color: #E1ECFF;
|
|
31
31
|
}
|
|
32
|
-
.textarea-list[data-v-
|
|
32
|
+
.textarea-list[data-v-glvfox9j] {
|
|
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-glvfox9j] {
|
|
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-glvfox9j]:hover {
|
|
44
44
|
background: #E1ECFF;
|
|
45
45
|
color: #3A84FF;
|
|
46
46
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.command-number[data-v-
|
|
2
|
+
.command-number[data-v-tggx68t5] {
|
|
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-tggx68t5] {
|
|
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-tggx68t5] {
|
|
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-tggx68t5] {
|
|
24
24
|
margin: 0 8px 0 68px;
|
|
25
25
|
}
|
|
26
|
-
.command-name-text[data-v-
|
|
26
|
+
.command-name-text[data-v-tggx68t5] {
|
|
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-tggx68t5";
|
|
3
3
|
script.__file = "./src/components/render-card/agent/prefix-info-tool.vue";
|
|
4
4
|
import './prefix-info-tool.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
2
|
+
import { unref as _unref, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
3
3
|
import { ref } from 'vue';
|
|
4
4
|
import RenderReference from '../../render-reference/index.vue.js';
|
|
5
|
-
import { ResourceCardType } from '../../../types/enum.ts.js';
|
|
5
|
+
import { Module, ResourceCardType } from '../../../types/enum.ts.js';
|
|
6
6
|
export default /*@__PURE__*/ _defineComponent({
|
|
7
7
|
props: {
|
|
8
8
|
module: {},
|
|
@@ -21,7 +21,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emits = __emit;
|
|
23
23
|
const isShowReferenceDetail = ref(false);
|
|
24
|
+
const getIsClickable = ()=>{
|
|
25
|
+
return props.module !== Module.LLM;
|
|
26
|
+
};
|
|
24
27
|
const handleClickReference = ()=>{
|
|
28
|
+
if (!getIsClickable()) return;
|
|
25
29
|
isShowReferenceDetail.value = true;
|
|
26
30
|
};
|
|
27
31
|
const handleNavigate = (route)=>{
|
|
@@ -31,9 +35,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
31
35
|
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
32
36
|
var _props_refCount, _props_refCount1;
|
|
33
37
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
34
|
-
props.type === _unref(ResourceCardType).Full ? _withDirectives((_openBlock(), _createElementBlock("span", {
|
|
38
|
+
props.type === _unref(ResourceCardType).Full || props.module === _unref(Module).LLM && props.type === _unref(ResourceCardType).Market ? _withDirectives((_openBlock(), _createElementBlock("span", {
|
|
35
39
|
key: 0,
|
|
36
|
-
class:
|
|
40
|
+
class: _normalizeClass({
|
|
41
|
+
'g-flex-row !g-mr-12 g-text-gray': true,
|
|
42
|
+
'hover:!g-text-blue !g-cursor-pointer': getIsClickable()
|
|
43
|
+
}),
|
|
37
44
|
onClick: _withModifiers(handleClickReference, [
|
|
38
45
|
"stop"
|
|
39
46
|
])
|
|
@@ -42,7 +49,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
42
49
|
class: "ai-ui-sdk-icon ai-ui-sdk-yinyongchuangjian g-text-16 g-mr-4"
|
|
43
50
|
}, null, -1 /* CACHED */ )),
|
|
44
51
|
_createTextVNode(" " + _toDisplayString((_props_refCount = props.refCount) !== null && _props_refCount !== void 0 ? _props_refCount : '--'), 1 /* TEXT */ )
|
|
45
|
-
])), [
|
|
52
|
+
], 2 /* CLASS */ )), [
|
|
46
53
|
[
|
|
47
54
|
_directive_bk_tooltips,
|
|
48
55
|
{
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-card-home[data-v-
|
|
2
|
+
.resource-card-home[data-v-kwj2b2z1] {
|
|
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-kwj2b2z1] {
|
|
6
6
|
margin-right: -4px;
|
|
7
7
|
}
|
|
8
|
-
.resource-card-home.full[data-v-
|
|
8
|
+
.resource-card-home.full[data-v-kwj2b2z1], .resource-card-home.application[data-v-kwj2b2z1], .resource-card-home.market[data-v-kwj2b2z1] {
|
|
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-kwj2b2z1]:hover, .resource-card-home.application[data-v-kwj2b2z1]:hover, .resource-card-home.market[data-v-kwj2b2z1]: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-kwj2b2z1], .resource-card-home.application .resource-card-name[data-v-kwj2b2z1], .resource-card-home.market .resource-card-name[data-v-kwj2b2z1] {
|
|
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-kwj2b2z1], .resource-card-home.application .resource-card-description[data-v-kwj2b2z1], .resource-card-home.market .resource-card-description[data-v-kwj2b2z1] {
|
|
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-kwj2b2z1] {
|
|
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-kwj2b2z1] {
|
|
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-kwj2b2z1] {
|
|
38
38
|
color: #4D4F56;
|
|
39
39
|
height: 20px;
|
|
40
40
|
}
|
|
41
|
-
.resource-card-home.info[data-v-
|
|
41
|
+
.resource-card-home.info[data-v-kwj2b2z1],.resource-card-home.record[data-v-kwj2b2z1] {
|
|
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-kwj2b2z1], .resource-card-home.record .resource-card-name[data-v-kwj2b2z1] {
|
|
47
47
|
font-size: 12px;
|
|
48
48
|
color: #313238;
|
|
49
49
|
}
|
|
50
|
-
.resource-card-actions[data-v-
|
|
50
|
+
.resource-card-actions[data-v-kwj2b2z1] {
|
|
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-w2ilv6pa] {
|
|
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-w2ilv6pa]: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-w2ilv6pa] {
|
|
15
15
|
top: 8px;
|
|
16
16
|
right: 0;
|
|
17
17
|
transform: rotate(45deg);
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withModifiers as _withModifiers, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives,
|
|
3
|
-
const _hoisted_1 = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "g-flex-row !g-mr-12 g-text-gray hover:!g-text-blue !g-cursor-pointer"
|
|
6
|
-
};
|
|
2
|
+
import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withModifiers as _withModifiers, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
7
3
|
import { toRef } from 'vue';
|
|
8
4
|
import { useLlmHttp } from '../../../hooks/use-llm-http.ts.js';
|
|
9
|
-
import { ResourceCardType } from '../../../types/enum.ts.js';
|
|
10
5
|
export default /*@__PURE__*/ _defineComponent({
|
|
11
6
|
props: {
|
|
12
7
|
model: {},
|
|
@@ -47,13 +42,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
47
42
|
return (_ctx, _cache)=>{
|
|
48
43
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
49
44
|
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
50
|
-
var _props_model_refCount, _props_model_refCount1;
|
|
51
45
|
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
52
46
|
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
53
47
|
size: "small",
|
|
54
48
|
text: "",
|
|
55
49
|
class: _normalizeClass({
|
|
56
|
-
'like-button g-mr-
|
|
50
|
+
'like-button g-mr-12': true,
|
|
57
51
|
'active': __props.model.like
|
|
58
52
|
}),
|
|
59
53
|
onClick: _withModifiers(handleClickLike, [
|
|
@@ -80,9 +74,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
80
74
|
[
|
|
81
75
|
_directive_bk_tooltips,
|
|
82
76
|
{
|
|
83
|
-
content: '取消赞',
|
|
84
|
-
placement: 'top'
|
|
85
|
-
disabled: !__props.model.like
|
|
77
|
+
content: __props.model.like ? '取消赞' : '赞',
|
|
78
|
+
placement: 'top'
|
|
86
79
|
}
|
|
87
80
|
]
|
|
88
81
|
]),
|
|
@@ -117,26 +110,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
117
110
|
[
|
|
118
111
|
_directive_bk_tooltips,
|
|
119
112
|
{
|
|
120
|
-
content: '取消踩',
|
|
121
|
-
placement: 'top',
|
|
122
|
-
disabled: !__props.model.dislike
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
]),
|
|
126
|
-
props.type === _unref(ResourceCardType).Market ? _withDirectives((_openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
127
|
-
_cache[0] || (_cache[0] = _createElementVNode("i", {
|
|
128
|
-
class: "ai-ui-sdk-icon ai-ui-sdk-yinyongchuangjian g-text-16 g-mr-4"
|
|
129
|
-
}, null, -1 /* CACHED */ )),
|
|
130
|
-
_createTextVNode(" " + _toDisplayString((_props_model_refCount = props.model.refCount) !== null && _props_model_refCount !== void 0 ? _props_model_refCount : '--'), 1 /* TEXT */ )
|
|
131
|
-
])), [
|
|
132
|
-
[
|
|
133
|
-
_directive_bk_tooltips,
|
|
134
|
-
{
|
|
135
|
-
content: `引用量(智能体):${(_props_model_refCount1 = props.model.refCount) !== null && _props_model_refCount1 !== void 0 ? _props_model_refCount1 : '--'}`,
|
|
113
|
+
content: __props.model.dislike ? '取消踩' : '踩',
|
|
136
114
|
placement: 'top'
|
|
137
115
|
}
|
|
138
116
|
]
|
|
139
|
-
])
|
|
117
|
+
])
|
|
140
118
|
], 64 /* STABLE_FRAGMENT */ );
|
|
141
119
|
};
|
|
142
120
|
}
|
|
@@ -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-xchfq0dh], .like-button:hover span[data-v-xchfq0dh] {
|
|
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-xchfq0dh], .dislike-button:hover span[data-v-xchfq0dh], .dislike-button:active .ai-ui-sdk-icon[data-v-xchfq0dh], .dislike-button:active span[data-v-xchfq0dh] {
|
|
6
6
|
color: #EA3636 !important;
|
|
7
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
2
|
import { unref as _unref, createVNode as _createVNode, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
3
|
import RenderBase from '../base.vue.js';
|
|
4
|
+
import RenderReferenceIcon from '../base/reference-icon.vue.js';
|
|
4
5
|
import RenderActions from './actions.vue.js';
|
|
5
6
|
import RenderCornerBadge from './corner-badge.vue.js';
|
|
6
7
|
import RenderIcons from './icons.vue.js';
|
|
@@ -106,6 +107,23 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
106
107
|
])
|
|
107
108
|
]),
|
|
108
109
|
"footer-icons": _withCtx(()=>[
|
|
110
|
+
_createVNode(RenderReferenceIcon, {
|
|
111
|
+
type: props.type,
|
|
112
|
+
"ref-count": props.model.refCount,
|
|
113
|
+
id: props.model.id,
|
|
114
|
+
name: props.model.llmName,
|
|
115
|
+
module: _unref(Module).LLM,
|
|
116
|
+
"space-id": props.spaceId,
|
|
117
|
+
"api-prefix": props.apiPrefix
|
|
118
|
+
}, null, 8 /* PROPS */ , [
|
|
119
|
+
"type",
|
|
120
|
+
"ref-count",
|
|
121
|
+
"id",
|
|
122
|
+
"name",
|
|
123
|
+
"module",
|
|
124
|
+
"space-id",
|
|
125
|
+
"api-prefix"
|
|
126
|
+
]),
|
|
109
127
|
_createVNode(RenderIcons, {
|
|
110
128
|
model: props.model,
|
|
111
129
|
type: props.type,
|
|
@@ -16,6 +16,7 @@ const _hoisted_4 = {
|
|
|
16
16
|
class: "g-max-truncate",
|
|
17
17
|
"data-ellipsis-tooltip": ""
|
|
18
18
|
};
|
|
19
|
+
import { numberUnitFormatter } from '../../../common/util.ts.js';
|
|
19
20
|
import { ResourceCardType } from '../../../types/enum.ts.js';
|
|
20
21
|
export default /*@__PURE__*/ _defineComponent({
|
|
21
22
|
props: {
|
|
@@ -25,9 +26,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
25
26
|
setup (__props) {
|
|
26
27
|
const props = __props;
|
|
27
28
|
return (_ctx, _cache)=>{
|
|
28
|
-
return props.type === _unref(ResourceCardType).
|
|
29
|
-
_createElementVNode("span", _hoisted_2, "
|
|
30
|
-
_createElementVNode("span", _hoisted_3, "
|
|
29
|
+
return props.type === _unref(ResourceCardType).Market ? (_openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
30
|
+
_createElementVNode("span", _hoisted_2, " 最大上下文长度:" + _toDisplayString(_unref(numberUnitFormatter)(__props.model.property.maxModelLen) || '--'), 1 /* TEXT */ ),
|
|
31
|
+
_createElementVNode("span", _hoisted_3, " 训练参数:" + _toDisplayString(__props.model.trainingParams || '--'), 1 /* TEXT */ ),
|
|
31
32
|
_createElementVNode("span", _hoisted_4, " 激活参数:" + _toDisplayString(__props.model.activatedParams || '--'), 1 /* TEXT */ )
|
|
32
33
|
])) : _createCommentVNode("v-if", true);
|
|
33
34
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-item[data-v-
|
|
2
|
+
.tag-item[data-v-czl0w0oq] {
|
|
3
3
|
padding: 0 4px;
|
|
4
4
|
}
|
|
5
|
-
.tag-external[data-v-
|
|
5
|
+
.tag-external[data-v-czl0w0oq] {
|
|
6
6
|
color: #636a2f;
|
|
7
7
|
background: #EAEFC6;
|
|
8
8
|
}
|
|
9
|
-
.tag-public[data-v-
|
|
9
|
+
.tag-public[data-v-czl0w0oq], .tag-private[data-v-czl0w0oq] {
|
|
10
10
|
color: #3a84ff;
|
|
11
11
|
background: #e1ecff;
|
|
12
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.tool-number[data-v-
|
|
2
|
+
.tool-number[data-v-tlq2ejuf] {
|
|
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-tlq2ejuf]:hover {
|
|
9
9
|
background: #3A84FF;
|
|
10
10
|
color: #fff;
|
|
11
11
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-pass[data-v-
|
|
2
|
+
.tag-pass[data-v-2xxjsqar] {
|
|
3
3
|
color: #299E56;
|
|
4
4
|
background: #DAF6E5;
|
|
5
5
|
}
|
|
6
|
-
.tag-fail[data-v-
|
|
6
|
+
.tag-fail[data-v-2xxjsqar] {
|
|
7
7
|
color: #E71818;
|
|
8
8
|
background: #FFDDDD;
|
|
9
9
|
}
|
|
10
|
-
.tag-error[data-v-
|
|
10
|
+
.tag-error[data-v-2xxjsqar] {
|
|
11
11
|
color: #E38B02;
|
|
12
12
|
background: #FCE5C0;
|
|
13
13
|
}
|