china-mobile-international-custom-components 0.0.53 → 0.0.55
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/es/AddOrEditSupplierDialog.mjs +920 -22
- package/es/AuthSection.mjs +192 -0
- package/es/CommonTagsList.mjs +31 -30
- package/es/CreateMcpForm.mjs +321 -0
- package/es/FilePreview.mjs +229 -0
- package/es/McpFormDialog.mjs +188 -0
- package/es/RadioGroup.mjs +120 -0
- package/es/SourcePublish.mjs +119 -119
- package/es/assets/AddOrEditSupplierDialog.css +1 -1
- package/es/assets/AuthSection.css +1 -0
- package/es/assets/CreateMcpForm.css +1 -0
- package/es/assets/FilePreview.css +1 -0
- package/es/assets/McpFormDialog.css +1 -0
- package/es/assets/RadioGroup.css +1 -0
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/usePreview.css +1 -0
- package/es/chunks/config.CgrPt4Zx.js +435 -0
- package/es/chunks/usePreview.BMkgYO7E.js +124 -0
- package/es/index.mjs +162 -147
- package/lib/AddOrEditSupplierDialog.js +1 -1
- package/lib/AuthSection.js +1 -0
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -0
- package/lib/FilePreview.js +1 -0
- package/lib/McpFormDialog.js +1 -0
- package/lib/RadioGroup.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -1
- package/lib/assets/AuthSection.css +1 -0
- package/lib/assets/CreateMcpForm.css +1 -0
- package/lib/assets/FilePreview.css +1 -0
- package/lib/assets/McpFormDialog.css +1 -0
- package/lib/assets/RadioGroup.css +1 -0
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/usePreview.css +1 -0
- package/lib/chunks/config.BvBtwI1A.js +1 -0
- package/lib/chunks/usePreview.BzTCNJfE.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.style-title[data-v-58195e4c]{font-weight:500;font-size:18px;margin:24px 0 16px}.card-container[data-v-d8a76b28]{padding:16px;background:#fff;border-radius:10px;border:1px solid #f0f0f0}.channel-icon[data-v-197d4379]{width:34px;height:34px}.gap-6[data-v-b28f305d]{gap:6px}.gap-12[data-v-b28f305d]{gap:12px}.publish-settings[data-v-8c3f6f7c]{width:100%}.publish-settings .channel-name[data-v-8c3f6f7c]{display:flex;align-items:center}.publish-settings .channel-name .channel-title[data-v-8c3f6f7c]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-8c3f6f7c]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-8c3f6f7c]{font-size:13px;color:var(--color-text-light1)}.publish-settings .action-container[data-v-8c3f6f7c]{text-align:right;width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.publish-settings .select-label[data-v-8c3f6f7c]{color:#262626}.publish-settings .divider[data-v-8c3f6f7c]{margin:0 2px;height:12px;border-right:1px solid #f0f0f0}.publish-settings .expand-content[data-v-8c3f6f7c]{padding:20px 16px;display:flex;flex-direction:column;gap:20px;background:#fff}.publish-settings[data-v-8c3f6f7c] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-
|
|
1
|
+
@charset "UTF-8";.style-title[data-v-58195e4c]{font-weight:500;font-size:18px;margin:24px 0 16px}.card-container[data-v-d8a76b28]{padding:16px;background:#fff;border-radius:10px;border:1px solid #f0f0f0}.channel-icon[data-v-197d4379]{width:34px;height:34px}.gap-6[data-v-b28f305d]{gap:6px}.gap-12[data-v-b28f305d]{gap:12px}.publish-settings[data-v-8c3f6f7c]{width:100%}.publish-settings .channel-name[data-v-8c3f6f7c]{display:flex;align-items:center}.publish-settings .channel-name .channel-title[data-v-8c3f6f7c]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-8c3f6f7c]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-8c3f6f7c]{font-size:13px;color:var(--color-text-light1)}.publish-settings .action-container[data-v-8c3f6f7c]{text-align:right;width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.publish-settings .select-label[data-v-8c3f6f7c]{color:#262626}.publish-settings .divider[data-v-8c3f6f7c]{margin:0 2px;height:12px;border-right:1px solid #f0f0f0}.publish-settings .expand-content[data-v-8c3f6f7c]{padding:20px 16px;display:flex;flex-direction:column;gap:20px;background:#fff}.publish-settings[data-v-8c3f6f7c] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-3ec939b8]{background-color:#f7f8fa;height:100%}.publish-container__back[data-v-3ec939b8]{width:100%;display:flex;align-items:center;justify-content:space-between}.publish-container__form[data-v-3ec939b8]{width:800px;margin:0 auto;height:calc(100vh - 70px);overflow:auto}.publish-container__form .channel-name[data-v-3ec939b8]{display:flex;align-items:center}.publish-container__form .channel-name .channel-icon[data-v-3ec939b8]{display:flex;justify-content:center;align-items:center;border-radius:8px;width:34px;height:34px}.publish-container__form .channel-name .channel-title[data-v-3ec939b8]{margin-left:10px;line-height:18px}.publish-container__form .channel-name .channel-title__name[data-v-3ec939b8]{font-size:14px}.publish-container__form .channel-name .channel-title__desc[data-v-3ec939b8]{font-size:13px;color:var(--color-text-light1)}.publish-container__config[data-v-3ec939b8]{width:100%;padding:7px 20px;display:flex;align-items:center;justify-content:space-between;background:#fafafa;border-radius:4px}.publish-container__config p[data-v-3ec939b8]{display:flex;align-items:center}.publish-container__config p img[data-v-3ec939b8]{margin-right:10px}.publish-container__required[data-v-3ec939b8]{color:var(--el-color-danger);font-size:14px}.publish-container[data-v-3ec939b8] .el-form .el-form-item:last-child{margin-bottom:0}.publish-container[data-v-3ec939b8] .card-container:last-child{padding:0 16px 16px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media(max-width:767px){.viewer-hide-xs-down{display:none}}@media(max-width:991px){.viewer-hide-sm-down{display:none}}@media(max-width:1199px){.viewer-hide-md-down{display:none}}
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { S as n } from "./config.DE5PZU2F.js";
|
|
2
|
+
import { P as e } from "./index.5lH4UH_M.js";
|
|
3
|
+
import { g as T } from "./i18n.Bd7hh14j.js";
|
|
4
|
+
import { markRaw as r } from "vue";
|
|
5
|
+
import { IconClose as N, Right as L, IconTimmer as i, Feishu as R, IconStore as a, Bot as P, IconApikey as l, IconH5 as c } from "color-message-aibox-vue";
|
|
6
|
+
const b = {
|
|
7
|
+
UNPUBLISHED: 0,
|
|
8
|
+
// 未发布
|
|
9
|
+
PUBLISHED: 1
|
|
10
|
+
// 已发布
|
|
11
|
+
}, E = {
|
|
12
|
+
// 智能体
|
|
13
|
+
H5: "1",
|
|
14
|
+
API: "2",
|
|
15
|
+
AIBox: "3",
|
|
16
|
+
AGENT_STORE: "5",
|
|
17
|
+
// 智能体广场
|
|
18
|
+
FEISHU_WEB: "11",
|
|
19
|
+
// 飞书网页应用
|
|
20
|
+
// 工作流
|
|
21
|
+
WORKFLOW_API: "4",
|
|
22
|
+
WORKFLOW_STORE: "7",
|
|
23
|
+
// 组件广场
|
|
24
|
+
// 插件
|
|
25
|
+
PLUGIN_API: "8",
|
|
26
|
+
PLUGIN_STORE: "9",
|
|
27
|
+
// 组件广场
|
|
28
|
+
// MCP
|
|
29
|
+
MCP_STORE: "10"
|
|
30
|
+
// 组件广场
|
|
31
|
+
}, U = {
|
|
32
|
+
// 智能体渠道
|
|
33
|
+
[E.H5]: {
|
|
34
|
+
id: E.H5,
|
|
35
|
+
name: () => "H5",
|
|
36
|
+
get description() {
|
|
37
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_H5") || "可通过PC或移动设备立即开始对话";
|
|
38
|
+
},
|
|
39
|
+
visible: !0
|
|
40
|
+
// 默认显示
|
|
41
|
+
},
|
|
42
|
+
[E.API]: {
|
|
43
|
+
id: E.API,
|
|
44
|
+
name: () => "API",
|
|
45
|
+
get description() {
|
|
46
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
47
|
+
},
|
|
48
|
+
visible: !0
|
|
49
|
+
},
|
|
50
|
+
[E.AIBox]: {
|
|
51
|
+
id: E.AIBox,
|
|
52
|
+
name: (t) => t === n.AGENT ? T("COMMON_DICT.ENUMS.NAME_MY_AI") : T("COMMON_DICT.ENUMS.NAME_MY_ZJ"),
|
|
53
|
+
get description() {
|
|
54
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_AI");
|
|
55
|
+
},
|
|
56
|
+
visible: !0
|
|
57
|
+
},
|
|
58
|
+
[E.AGENT_STORE]: {
|
|
59
|
+
id: E.AGENT_STORE,
|
|
60
|
+
get name() {
|
|
61
|
+
return () => T("COMMON_DICT.ENUMS.NAME_ZNTGC");
|
|
62
|
+
},
|
|
63
|
+
get description() {
|
|
64
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_ZNTGC") || "分享到智能体广场,获得更多曝光";
|
|
65
|
+
},
|
|
66
|
+
visible: !0
|
|
67
|
+
// 根据配置决定是否显示
|
|
68
|
+
},
|
|
69
|
+
[E.FEISHU_WEB]: {
|
|
70
|
+
id: E.FEISHU_WEB,
|
|
71
|
+
get name() {
|
|
72
|
+
return () => T("COMMON_DICT.ENUMS.NAME_WEB") || "飞书网页应用";
|
|
73
|
+
},
|
|
74
|
+
get description() {
|
|
75
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_WEB") || "在飞书客户端内访问智能体对话页面";
|
|
76
|
+
},
|
|
77
|
+
visible: !0
|
|
78
|
+
},
|
|
79
|
+
// 工作流渠道
|
|
80
|
+
[E.WORKFLOW_API]: {
|
|
81
|
+
id: E.WORKFLOW_API,
|
|
82
|
+
name: () => "API",
|
|
83
|
+
get description() {
|
|
84
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
85
|
+
},
|
|
86
|
+
visible: !0
|
|
87
|
+
},
|
|
88
|
+
[E.WORKFLOW_STORE]: {
|
|
89
|
+
id: E.WORKFLOW_STORE,
|
|
90
|
+
get name() {
|
|
91
|
+
return () => T("COMMON_DICT.ENUMS.NAME_ZJGC") || "组件广场";
|
|
92
|
+
},
|
|
93
|
+
get description() {
|
|
94
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC") || "分享到组件广场,获得更多曝光";
|
|
95
|
+
},
|
|
96
|
+
visible: !0
|
|
97
|
+
},
|
|
98
|
+
// 插件渠道
|
|
99
|
+
[E.PLUGIN_API]: {
|
|
100
|
+
id: E.PLUGIN_API,
|
|
101
|
+
name: () => "API",
|
|
102
|
+
get description() {
|
|
103
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
104
|
+
},
|
|
105
|
+
visible: !1
|
|
106
|
+
// 暂时不上
|
|
107
|
+
},
|
|
108
|
+
[E.PLUGIN_STORE]: {
|
|
109
|
+
id: E.PLUGIN_STORE,
|
|
110
|
+
name: () => "AIBox Store",
|
|
111
|
+
get description() {
|
|
112
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_PLUGIN") || "分享到广场,获得更多曝光";
|
|
113
|
+
},
|
|
114
|
+
visible: !1
|
|
115
|
+
// 暂时不上
|
|
116
|
+
},
|
|
117
|
+
// MCP渠道
|
|
118
|
+
[E.MCP_STORE]: {
|
|
119
|
+
id: E.MCP_STORE,
|
|
120
|
+
get name() {
|
|
121
|
+
return () => T("COMMON_DICT.ENUMS.NAME_ZJGC") || "组件广场";
|
|
122
|
+
},
|
|
123
|
+
get description() {
|
|
124
|
+
return T("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC") || "分享到组件广场,获得更多曝光";
|
|
125
|
+
},
|
|
126
|
+
visible: !0
|
|
127
|
+
}
|
|
128
|
+
}, Y = [
|
|
129
|
+
E.API,
|
|
130
|
+
E.WORKFLOW_API,
|
|
131
|
+
E.PLUGIN_API
|
|
132
|
+
], W = [
|
|
133
|
+
E.AGENT_STORE,
|
|
134
|
+
E.WORKFLOW_STORE,
|
|
135
|
+
E.MCP_STORE,
|
|
136
|
+
E.PLUGIN_STORE
|
|
137
|
+
], H = [
|
|
138
|
+
E.H5,
|
|
139
|
+
E.AIBox,
|
|
140
|
+
E.AGENT_STORE,
|
|
141
|
+
E.WORKFLOW_STORE,
|
|
142
|
+
E.MCP_STORE
|
|
143
|
+
], G = {
|
|
144
|
+
h5: {
|
|
145
|
+
icon: c,
|
|
146
|
+
iconColor: "var(--el-color-primary)",
|
|
147
|
+
backgroundColor: "#EAF0FE"
|
|
148
|
+
},
|
|
149
|
+
apikey: {
|
|
150
|
+
icon: l,
|
|
151
|
+
iconColor: "#822FFF",
|
|
152
|
+
backgroundColor: "#F3EBFF"
|
|
153
|
+
},
|
|
154
|
+
aibox: {
|
|
155
|
+
icon: P,
|
|
156
|
+
backgroundColor: "#EBEFFF"
|
|
157
|
+
},
|
|
158
|
+
store: {
|
|
159
|
+
icon: a,
|
|
160
|
+
iconColor: "#27C637",
|
|
161
|
+
backgroundColor: "#EBFCDE"
|
|
162
|
+
},
|
|
163
|
+
feishu: {
|
|
164
|
+
icon: R,
|
|
165
|
+
iconColor: "#EBF5FF",
|
|
166
|
+
backgroundColor: "#EBF5FF"
|
|
167
|
+
}
|
|
168
|
+
}, v = {
|
|
169
|
+
[E.H5]: "h5",
|
|
170
|
+
[E.API]: "apikey",
|
|
171
|
+
[E.AIBox]: "aibox",
|
|
172
|
+
[E.WORKFLOW_API]: "apikey",
|
|
173
|
+
[E.AGENT_STORE]: "store",
|
|
174
|
+
[E.WORKFLOW_STORE]: "store",
|
|
175
|
+
[E.PLUGIN_API]: "apikey",
|
|
176
|
+
[E.PLUGIN_STORE]: "store",
|
|
177
|
+
[E.MCP_STORE]: "store",
|
|
178
|
+
[E.FEISHU_WEB]: "feishu"
|
|
179
|
+
}, p = (t, A) => ({
|
|
180
|
+
// 智能体
|
|
181
|
+
[n.AGENT]: [
|
|
182
|
+
E.AIBox,
|
|
183
|
+
E.H5,
|
|
184
|
+
E.API,
|
|
185
|
+
E.FEISHU_WEB,
|
|
186
|
+
E.AGENT_STORE
|
|
187
|
+
],
|
|
188
|
+
// 工作流
|
|
189
|
+
[n.WORKFLOW]: [
|
|
190
|
+
E.AIBox,
|
|
191
|
+
E.WORKFLOW_API,
|
|
192
|
+
E.WORKFLOW_STORE
|
|
193
|
+
],
|
|
194
|
+
// 插件
|
|
195
|
+
[n.PLUGIN]: [
|
|
196
|
+
E.AIBox
|
|
197
|
+
// 暂时不上API和Store
|
|
198
|
+
// RELEASE_CHANNEL_TYPE.PLUGIN_API,
|
|
199
|
+
// RELEASE_CHANNEL_TYPE.PLUGIN_STORE
|
|
200
|
+
],
|
|
201
|
+
// MCP
|
|
202
|
+
[n.MCP]: [
|
|
203
|
+
E.AIBox,
|
|
204
|
+
E.MCP_STORE
|
|
205
|
+
]
|
|
206
|
+
}[t] || []).map((O) => {
|
|
207
|
+
const S = U[O], C = A.find((o) => o.channelType == O);
|
|
208
|
+
return C ? {
|
|
209
|
+
...S,
|
|
210
|
+
...C,
|
|
211
|
+
channelType: String(O)
|
|
212
|
+
} : {
|
|
213
|
+
...S,
|
|
214
|
+
channelType: String(O),
|
|
215
|
+
channelStatus: e.UNPUBLISHED
|
|
216
|
+
};
|
|
217
|
+
}).filter((O) => (typeof O.visible == "function", O.visible)), d = {
|
|
218
|
+
TRUE: 1,
|
|
219
|
+
FALSE: 0
|
|
220
|
+
}, _ = {
|
|
221
|
+
// CURRENCY: 'CURRENCY',
|
|
222
|
+
PRIVATE: "PRIVATE",
|
|
223
|
+
DEVELOPER: "DEVELOPER"
|
|
224
|
+
}, f = [
|
|
225
|
+
// {
|
|
226
|
+
// label: '平台代币',
|
|
227
|
+
// value: serviceTypeMap.CURRENCY
|
|
228
|
+
// },
|
|
229
|
+
{
|
|
230
|
+
get label() {
|
|
231
|
+
return T("COMMON_DICT.SERVICE_TYPE.PRIVATE");
|
|
232
|
+
},
|
|
233
|
+
value: _.PRIVATE
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
get label() {
|
|
237
|
+
return T("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
|
|
238
|
+
},
|
|
239
|
+
value: _.DEVELOPER
|
|
240
|
+
}
|
|
241
|
+
], m = [
|
|
242
|
+
// {
|
|
243
|
+
// label: '抵扣中', //(服务类型为货币结算且当前色元额度充足)
|
|
244
|
+
// value: 'CURRENCY_USING'
|
|
245
|
+
// },
|
|
246
|
+
// {
|
|
247
|
+
// label: '额度不足', // (服务类型为货币结算且当前色元额度不足)
|
|
248
|
+
// value: 'CURRENCY_NO_ENOUGH'
|
|
249
|
+
// },
|
|
250
|
+
{
|
|
251
|
+
get label() {
|
|
252
|
+
return T("COMMON_DICT.SERVICE_STATUS.IN_CALL");
|
|
253
|
+
},
|
|
254
|
+
value: "IN_CALL"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
get label() {
|
|
258
|
+
return T("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
|
|
259
|
+
},
|
|
260
|
+
value: "NO_CONFIG"
|
|
261
|
+
}
|
|
262
|
+
// {
|
|
263
|
+
// label: '开发者结算',
|
|
264
|
+
// value: 'DEVELOPER'
|
|
265
|
+
// }
|
|
266
|
+
], I = {
|
|
267
|
+
UP_BUTTOM: {
|
|
268
|
+
get label() {
|
|
269
|
+
return T("UP_DATA.UP_TEXT");
|
|
270
|
+
},
|
|
271
|
+
get sceneWorkFlow() {
|
|
272
|
+
return T("SCENEBUTTOM.SCENE_WORKFLOW");
|
|
273
|
+
},
|
|
274
|
+
get scenePlugin() {
|
|
275
|
+
return T("SCENEBUTTOM.SCENE_PLUGIN");
|
|
276
|
+
},
|
|
277
|
+
get sceneModmcp() {
|
|
278
|
+
return T("SCENEBUTTOM.SCENE_MODMCP");
|
|
279
|
+
},
|
|
280
|
+
get sceneArbitrarily() {
|
|
281
|
+
return T("SCENEBUTTOM.ARBITRARILY");
|
|
282
|
+
},
|
|
283
|
+
get searchText() {
|
|
284
|
+
return T("SCENEBUTTOM.SEARCHTEXT");
|
|
285
|
+
},
|
|
286
|
+
get intellectuAlagent() {
|
|
287
|
+
return T("SCENEBUTTOM.INTELLECTUALAGENT");
|
|
288
|
+
},
|
|
289
|
+
get searchWorkflow() {
|
|
290
|
+
return T("SCENEBUTTOM.WORKFLOW");
|
|
291
|
+
},
|
|
292
|
+
get searchPlugin() {
|
|
293
|
+
return T("SCENEBUTTOM.PLUGIN");
|
|
294
|
+
},
|
|
295
|
+
get searchModmcp() {
|
|
296
|
+
return T("SCENEBUTTOM.MODMCP");
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
STOREDETAILTYPE_STORECONTENTLAYOUT: {
|
|
300
|
+
get labelAll() {
|
|
301
|
+
return T("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL");
|
|
302
|
+
},
|
|
303
|
+
get labelTextCreation() {
|
|
304
|
+
return T(
|
|
305
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TEXT_CREATION"
|
|
306
|
+
);
|
|
307
|
+
},
|
|
308
|
+
get labelEfficiencyTools() {
|
|
309
|
+
return T(
|
|
310
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_EFFICIENCY_TOOLS"
|
|
311
|
+
);
|
|
312
|
+
},
|
|
313
|
+
get labelMediaEntertainment() {
|
|
314
|
+
return T(
|
|
315
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_MEDIA_ENTERTAINMENT"
|
|
316
|
+
);
|
|
317
|
+
},
|
|
318
|
+
get labelOfficeHr() {
|
|
319
|
+
return T("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_OFFICE_HR");
|
|
320
|
+
},
|
|
321
|
+
get labelGovernmentServices() {
|
|
322
|
+
return T(
|
|
323
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_GOVERNMENT_SERVICES"
|
|
324
|
+
);
|
|
325
|
+
},
|
|
326
|
+
get labelTravelSightseeing() {
|
|
327
|
+
return T(
|
|
328
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TRAVEL_SIGHTSEEING"
|
|
329
|
+
);
|
|
330
|
+
},
|
|
331
|
+
get labelFinancialServices() {
|
|
332
|
+
return T(
|
|
333
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_FINANCIAL_SERVICES"
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}, V = () => [
|
|
338
|
+
// { label: '所有标签', value: '0', icon: 'IconType22' },
|
|
339
|
+
{
|
|
340
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelAll,
|
|
341
|
+
value: "0",
|
|
342
|
+
icon: "IconType22"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTextCreation,
|
|
346
|
+
value: "1",
|
|
347
|
+
icon: "IconWrite"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelEfficiencyTools,
|
|
351
|
+
value: "3",
|
|
352
|
+
icon: "IconEfficiency2"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelMediaEntertainment,
|
|
356
|
+
value: "4",
|
|
357
|
+
icon: "IconVideo"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelOfficeHr,
|
|
361
|
+
value: "5",
|
|
362
|
+
icon: "IconOffice"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelGovernmentServices,
|
|
366
|
+
value: "6",
|
|
367
|
+
icon: "IconGovernment"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTravelSightseeing,
|
|
371
|
+
value: "7",
|
|
372
|
+
icon: "IconTravel"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
label: I.STOREDETAILTYPE_STORECONTENTLAYOUT.labelFinancialServices,
|
|
376
|
+
value: "8",
|
|
377
|
+
icon: "IconFinance"
|
|
378
|
+
}
|
|
379
|
+
], h = {
|
|
380
|
+
[e.UNPUBLISHED]: "info",
|
|
381
|
+
[e.PUBLISHED]: "success",
|
|
382
|
+
[e.UNDER_REVIEW]: "warning",
|
|
383
|
+
[e.REJECTED]: "danger",
|
|
384
|
+
[e.FAILED]: "danger"
|
|
385
|
+
}, y = {
|
|
386
|
+
get [e.UNPUBLISHED]() {
|
|
387
|
+
return T("COMPONENTS.UNPUBLISHED");
|
|
388
|
+
},
|
|
389
|
+
get [e.UNDER_REVIEW]() {
|
|
390
|
+
return T("COMPONENTS.UNDER_REVIEW");
|
|
391
|
+
},
|
|
392
|
+
get [e.PUBLISHED]() {
|
|
393
|
+
return T("COMPONENTS.PUBLISHED");
|
|
394
|
+
},
|
|
395
|
+
get [e.REJECTED]() {
|
|
396
|
+
return T("COMPONENTS.REJECTED");
|
|
397
|
+
},
|
|
398
|
+
get [e.FAILED]() {
|
|
399
|
+
return T("COMPONENTS.PUBLISHED_FAILED");
|
|
400
|
+
}
|
|
401
|
+
}, x = {
|
|
402
|
+
[e.UNPUBLISHED]: r(N),
|
|
403
|
+
[e.UNDER_REVIEW]: r(i),
|
|
404
|
+
[e.PUBLISHED]: r(L),
|
|
405
|
+
[e.REJECTED]: r(N),
|
|
406
|
+
[e.FAILED]: r(N)
|
|
407
|
+
}, K = {
|
|
408
|
+
[e.UNPUBLISHED]: "#8f959e",
|
|
409
|
+
[e.UNDER_REVIEW]: "#E6A23C",
|
|
410
|
+
[e.PUBLISHED]: "#67C23A",
|
|
411
|
+
[e.REJECTED]: "#F56C6C",
|
|
412
|
+
[e.FAILED]: "#F56C6C"
|
|
413
|
+
}, k = "CMI官方";
|
|
414
|
+
export {
|
|
415
|
+
Y as A,
|
|
416
|
+
G as C,
|
|
417
|
+
b as I,
|
|
418
|
+
I as L,
|
|
419
|
+
k as O,
|
|
420
|
+
K as P,
|
|
421
|
+
U as R,
|
|
422
|
+
W as S,
|
|
423
|
+
H as a,
|
|
424
|
+
d as b,
|
|
425
|
+
x as c,
|
|
426
|
+
y as d,
|
|
427
|
+
h as e,
|
|
428
|
+
v as f,
|
|
429
|
+
E as g,
|
|
430
|
+
p as h,
|
|
431
|
+
V as i,
|
|
432
|
+
f as j,
|
|
433
|
+
_ as k,
|
|
434
|
+
m as s
|
|
435
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { api as a } from "v-viewer";
|
|
2
|
+
import { g as u } from "./request.24c3shPx.js";
|
|
3
|
+
import '../assets/usePreview.css';const m = (e) => /(txt|yaml)/i.test(e), x = (e) => /ppt|pptx/i.test(e), g = (e) => /pdf/i.test(e);
|
|
4
|
+
function w(e) {
|
|
5
|
+
return /(docx|doc|msword)/i.test(e);
|
|
6
|
+
}
|
|
7
|
+
function p(e) {
|
|
8
|
+
return /(xlsx|xls|sheet|csv)/i.test(e);
|
|
9
|
+
}
|
|
10
|
+
function b(e) {
|
|
11
|
+
return /(zip|rar|7z)$/i.test(e);
|
|
12
|
+
}
|
|
13
|
+
const c = (e) => /(jpe?g|png|bmp|gif|webp|svg|ico)(\?.*)?$/i.test(e), F = (e) => /(mp4|avi|rmvb|rm|wmv|flv|3gp|mkv|mov)(\?.*)?$/i.test(e), v = (e) => /(mp3|wav|wma|aac|flac)(\?.*)?$/i.test(e), P = (e) => /(md|markdown)/i.test(e), I = (e) => /(html|htm|xhtml|xml)/i.test(e), h = (e) => /(json)/i.test(e), y = (e) => {
|
|
14
|
+
if (g(e.suffix))
|
|
15
|
+
return "Pdf1";
|
|
16
|
+
if (w(e.suffix))
|
|
17
|
+
return "Doc";
|
|
18
|
+
if (p(e.suffix))
|
|
19
|
+
return "Excel1";
|
|
20
|
+
if (F(e.suffix))
|
|
21
|
+
return "Video";
|
|
22
|
+
if (v(e.suffix))
|
|
23
|
+
return "Music";
|
|
24
|
+
if (x(e.suffix))
|
|
25
|
+
return "Ppt1";
|
|
26
|
+
if (P(e.suffix))
|
|
27
|
+
return "Md";
|
|
28
|
+
if (I(e.suffix))
|
|
29
|
+
return "Html";
|
|
30
|
+
if (m(e.suffix))
|
|
31
|
+
return "Txt1";
|
|
32
|
+
if (h(e.suffix))
|
|
33
|
+
return "Other";
|
|
34
|
+
if (b(e.suffix))
|
|
35
|
+
return "Other";
|
|
36
|
+
}, _ = () => {
|
|
37
|
+
const { $request: e, $env: o } = u();
|
|
38
|
+
return {
|
|
39
|
+
commonDownloadInterior: (s) => e({
|
|
40
|
+
method: "get",
|
|
41
|
+
url: `${o.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file/download/streams`,
|
|
42
|
+
params: s,
|
|
43
|
+
responseType: "arraybuffer"
|
|
44
|
+
}),
|
|
45
|
+
commonDownloadForeign: (s) => e({
|
|
46
|
+
method: "get",
|
|
47
|
+
url: `${o.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file/download/urls`,
|
|
48
|
+
params: s
|
|
49
|
+
}),
|
|
50
|
+
commonFileDelete: (s) => e({
|
|
51
|
+
method: "delete",
|
|
52
|
+
url: `${o.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file`,
|
|
53
|
+
params: s
|
|
54
|
+
})
|
|
55
|
+
};
|
|
56
|
+
}, d = (e, o = "", i = "file") => {
|
|
57
|
+
const l = new Blob([e]);
|
|
58
|
+
if (i == "image")
|
|
59
|
+
return URL.createObjectURL(l);
|
|
60
|
+
{
|
|
61
|
+
const r = document.createElement("a");
|
|
62
|
+
r.style.display = "none";
|
|
63
|
+
const s = window.URL.createObjectURL(l);
|
|
64
|
+
r.href = s, r.setAttribute("download", o), document.body.appendChild(r), r.click(), document.body.removeChild(r), setTimeout(() => {
|
|
65
|
+
window.URL.revokeObjectURL(s);
|
|
66
|
+
}, 5e3);
|
|
67
|
+
}
|
|
68
|
+
}, L = () => {
|
|
69
|
+
const { commonDownloadForeign: e, commonDownloadInterior: o, commonFileDelete: i } = _();
|
|
70
|
+
return {
|
|
71
|
+
downloadPrew: async (t) => {
|
|
72
|
+
const { data: n } = await e({ "file-ids": [t.bnid] });
|
|
73
|
+
n && (c(t.suffix) || c(n[0].suffix) ? (n && n.length, a({
|
|
74
|
+
images: [n[0].url],
|
|
75
|
+
options: {
|
|
76
|
+
zIndex: 3e3
|
|
77
|
+
}
|
|
78
|
+
})) : window.open(n[0].url, "_blank"));
|
|
79
|
+
},
|
|
80
|
+
downloadStreamPrew: async (t) => {
|
|
81
|
+
const n = await o({ "file-ids": [t.bnid] });
|
|
82
|
+
if (n)
|
|
83
|
+
if (c(t.suffix)) {
|
|
84
|
+
const f = d(n, t.name, "image");
|
|
85
|
+
n && a({
|
|
86
|
+
images: [f],
|
|
87
|
+
options: {
|
|
88
|
+
zIndex: 3e3
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
} else
|
|
92
|
+
d(n, t.name);
|
|
93
|
+
},
|
|
94
|
+
previewImage: (t) => {
|
|
95
|
+
a({
|
|
96
|
+
images: [t],
|
|
97
|
+
options: {
|
|
98
|
+
zIndex: 3e3
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
deleteFile: async (t) => {
|
|
103
|
+
await i({ "file-ids": [t.bnid] });
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
p as a,
|
|
109
|
+
I as b,
|
|
110
|
+
c,
|
|
111
|
+
d,
|
|
112
|
+
h as e,
|
|
113
|
+
P as f,
|
|
114
|
+
_ as g,
|
|
115
|
+
g as h,
|
|
116
|
+
v as i,
|
|
117
|
+
x as j,
|
|
118
|
+
m as k,
|
|
119
|
+
F as l,
|
|
120
|
+
w as m,
|
|
121
|
+
b as n,
|
|
122
|
+
L as o,
|
|
123
|
+
y as u
|
|
124
|
+
};
|