@yuku123/z-team-component 0.2.114 → 0.2.116
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/{ChangeLogView-1-S4MEB1.js → ChangeLogView-Cv96n8Vn.js} +1 -1
- package/dist/{ComponentDoc-Sa3tPY-g.js → ComponentDoc-C4t3POeE.js} +76 -76
- package/dist/{InvitationManagementPage-HZs4bdak.js → InvitationManagementPage-DUn17QCS.js} +1 -1
- package/dist/{OnboardingPage-B5OgZASN.js → OnboardingPage-BEIz3UzA.js} +2 -2
- package/dist/{ScheduledTasks-CToyeRUq.js → ScheduledTasks-LfhdhCAY.js} +6 -6
- package/dist/{SystemShell-BhHPNWpZ.js → SystemShell-Bj5dg5T9.js} +188 -182
- package/dist/{admin-logs-D11ATzyh.js → admin-logs-mEZ5eIy_.js} +1 -1
- package/dist/{api-Bh2pIpgt.js → api-C6250RDm.js} +1 -1
- package/dist/{api-CeeVdjN0.js → api-wdtxPcUU.js} +1 -1
- package/dist/{createWorkspaceWsHandler-u1JoCPmD.js → createWorkspaceWsHandler-KhhUQlnq.js} +3 -3
- package/dist/{index-S4KVdYhB.js → index-Anzy5fRy.js} +3 -3
- package/dist/{index--Drbx2jZ.js → index-BEc9pRby.js} +2 -2
- package/dist/{index-58Ncrbai.js → index-BLmpGn4u.js} +141 -132
- package/dist/{index-CflRaLqk.js → index-BO3QXJr-.js} +3 -3
- package/dist/{index-C3WQJJ0C.js → index-BQZmRqi3.js} +1 -1
- package/dist/{index-BFhr0Fay.js → index-BUX0VaUT.js} +2 -2
- package/dist/{index-BfHaPjcW.js → index-BlxvmuP_.js} +2 -2
- package/dist/{index-B37k7sBw.js → index-CCOnQNiK.js} +3 -3
- package/dist/{index-BvZEUp32.js → index-COoMPVeT.js} +2 -2
- package/dist/index-CX43f-gO.js +66 -0
- package/dist/{index-DuUUslV_.js → index-Cg8V_zHA.js} +2 -2
- package/dist/{index-CMgNvlmo.js → index-CgZ5ETm8.js} +5 -5
- package/dist/{index-dmJO62ji.js → index-Cq_nDl8e.js} +6 -6
- package/dist/{index-BCvF-oLV.js → index-CtuN4U8T.js} +2 -2
- package/dist/{index-CsjvSiEq.js → index-CvzYak_c.js} +3 -3
- package/dist/{index-C9CF7Nsd.js → index-D5yLemBC.js} +1 -1
- package/dist/{index-CoyGbqjP.js → index-DG7nF8i4.js} +2 -2
- package/dist/{index-eOBmPcNH.js → index-DNiC85xO.js} +6 -6
- package/dist/{index-DTWfL9EF.js → index-DWBcTstU.js} +3 -3
- package/dist/{index-CpQ71Ipv.js → index-DaqMJot5.js} +1 -1
- package/dist/{index-BhmgPrmH.js → index-DelTEsve.js} +1 -1
- package/dist/{index-Iy3bCyGV.js → index-ilrh7uNR.js} +2 -2
- package/dist/{index-kG57tOUk.js → index-p9ZtmTpt.js} +1 -1
- package/dist/{index-Dbgu1GMZ.js → index-pGzj-Q0_.js} +4 -4
- package/dist/{index-Bjc1DKF1.js → index-x_sOxJhz.js} +3 -3
- package/dist/{index-C2dLZ4oU.js → index-ymNh74M6.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-HaVeSP6w.js → instance-DnByJfWG.js} +1 -1
- package/dist/{menuPermission-DbAZEF9A.js → menuPermission-BclbbPRQ.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-D6QVPUN-.js → send-default-agent-team-message-D_9J3Ldb.js} +1 -1
- package/dist/{sso-user-hSducls9.js → sso-user-Bs5AHCMR.js} +1 -1
- package/dist/{training-CDkhiMNH.js → training-Det34FfS.js} +1 -1
- package/dist/{webide-TsIJlh_u.js → webide-aLU3PcOG.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useNavigate as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { DownOutlined as
|
|
5
|
-
import { f as he, M as be } from "./menuPermission-
|
|
6
|
-
import { u as
|
|
2
|
+
import { useNavigate as Z, useLocation as O, Navigate as c } from "react-router-dom";
|
|
3
|
+
import { useMemo as y, useState as z, Suspense as oe, lazy as g } from "react";
|
|
4
|
+
import { DownOutlined as T, RightOutlined as x, AppstoreOutlined as V, UserOutlined as ce, SafetyCertificateOutlined as E, CloudOutlined as G, DeploymentUnitOutlined as R, AuditOutlined as q, CodeOutlined as C, FolderOpenOutlined as se, DesktopOutlined as J, ThunderboltOutlined as le, BookOutlined as H, DashboardOutlined as D, ProfileOutlined as j, ApartmentOutlined as re, FileImageOutlined as pe, FileTextOutlined as N, CalendarOutlined as A, ApiOutlined as ie, ProjectOutlined as X, ClusterOutlined as me, DatabaseOutlined as ue, TeamOutlined as de, BarChartOutlined as W } from "@ant-design/icons";
|
|
5
|
+
import { f as he, M as be } from "./menuPermission-BclbbPRQ.js";
|
|
6
|
+
import { u as U, y as ge } from "./ComponentDoc-C4t3POeE.js";
|
|
7
7
|
import { ProductApp as _e } from "@yuku123/z-product-component";
|
|
8
|
-
import { P as ke, R as ye } from "./index-
|
|
9
|
-
const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9_37", Ae = "_menuGroup_wbul9_44", Pe = "_menuGroupHeader_wbul9_48", ve = "_menuGroupIcon_wbul9_66", De = "_menuGroupLabel_wbul9_75", Ne = "_menuGroupArrow_wbul9_80", Ce = "_menuSubList_wbul9_87", Me = "_menuSubItem_wbul9_93", Ge = "_menuSubItemActive_wbul9_110", Ie = "_menuSubItemIcon_wbul9_117", Oe = "_menuSubGroup_wbul9_132",
|
|
8
|
+
import { P as ke, R as ye } from "./index-COoMPVeT.js";
|
|
9
|
+
const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9_37", Ae = "_menuGroup_wbul9_44", Pe = "_menuGroupHeader_wbul9_48", ve = "_menuGroupIcon_wbul9_66", De = "_menuGroupLabel_wbul9_75", Ne = "_menuGroupArrow_wbul9_80", Ce = "_menuSubList_wbul9_87", Me = "_menuSubItem_wbul9_93", Ge = "_menuSubItemActive_wbul9_110", Ie = "_menuSubItemIcon_wbul9_117", Oe = "_menuSubGroup_wbul9_132", Le = "_menuSubGroupHeader_wbul9_136", Be = "_menuSubGroupHeaderActive_wbul9_154", ze = "_menuSubGroupLabel_wbul9_158", Te = "_main_wbul9_169", xe = "_detailPanel_wbul9_179", Ee = "_detailHeader_wbul9_189", Re = "_detailIcon_wbul9_196", qe = "_detailTitle_wbul9_209", He = "_detailDesc_wbul9_216", je = "_detailAction_wbul9_223", We = "_goBtn_wbul9_228", Ue = "_emptyState_wbul9_248", n = {
|
|
10
10
|
container: Se,
|
|
11
11
|
sidebar: we,
|
|
12
12
|
menuList: fe,
|
|
@@ -20,8 +20,8 @@ const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9
|
|
|
20
20
|
menuSubItemActive: Ge,
|
|
21
21
|
menuSubItemIcon: Ie,
|
|
22
22
|
menuSubGroup: Oe,
|
|
23
|
-
menuSubGroupHeader:
|
|
24
|
-
menuSubGroupHeaderActive:
|
|
23
|
+
menuSubGroupHeader: Le,
|
|
24
|
+
menuSubGroupHeaderActive: Be,
|
|
25
25
|
menuSubGroupLabel: ze,
|
|
26
26
|
main: Te,
|
|
27
27
|
detailPanel: xe,
|
|
@@ -31,14 +31,14 @@ const Se = "_container_wbul9_7", we = "_sidebar_wbul9_17", fe = "_menuList_wbul9
|
|
|
31
31
|
detailDesc: He,
|
|
32
32
|
detailAction: je,
|
|
33
33
|
goBtn: We,
|
|
34
|
-
emptyState:
|
|
34
|
+
emptyState: Ue
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
return
|
|
36
|
+
function I(s) {
|
|
37
|
+
return s.flatMap((l) => [l, ...I(l.children ?? [])]);
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const $e = {
|
|
40
40
|
title: "测试中心",
|
|
41
|
-
icon: /* @__PURE__ */ e(
|
|
41
|
+
icon: /* @__PURE__ */ e(D, {}),
|
|
42
42
|
// 测试 Tab 的入口权限点 (顶栏 test mode 同码)。4A 普通用户角色 USER 持有 TEST_ENTRY
|
|
43
43
|
// ⇒ 全员可见; 未绑测试角色的账号看不到这一组。
|
|
44
44
|
permission: "TEST_ENTRY",
|
|
@@ -46,19 +46,19 @@ const Ue = {
|
|
|
46
46
|
{
|
|
47
47
|
key: "test-dashboard",
|
|
48
48
|
label: "测试总览",
|
|
49
|
-
icon: /* @__PURE__ */ e(
|
|
49
|
+
icon: /* @__PURE__ */ e(D, {}),
|
|
50
50
|
path: "/test/qa/dashboard",
|
|
51
51
|
desc: "测试统计、趋势与套件健康度"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: "test-design",
|
|
55
55
|
label: "用例与编排",
|
|
56
|
-
icon: /* @__PURE__ */ e(
|
|
56
|
+
icon: /* @__PURE__ */ e(N, {}),
|
|
57
57
|
children: [
|
|
58
58
|
{
|
|
59
59
|
key: "test-case",
|
|
60
60
|
label: "测试用例",
|
|
61
|
-
icon: /* @__PURE__ */ e(
|
|
61
|
+
icon: /* @__PURE__ */ e(N, {}),
|
|
62
62
|
path: "/test/qa/cases",
|
|
63
63
|
desc: "接口用例与断言模板"
|
|
64
64
|
},
|
|
@@ -72,7 +72,7 @@ const Ue = {
|
|
|
72
72
|
{
|
|
73
73
|
key: "test-plan",
|
|
74
74
|
label: "测试计划",
|
|
75
|
-
icon: /* @__PURE__ */ e(
|
|
75
|
+
icon: /* @__PURE__ */ e(X, {}),
|
|
76
76
|
path: "/test/qa/plans",
|
|
77
77
|
desc: "套件组合与环境绑定"
|
|
78
78
|
}
|
|
@@ -81,26 +81,26 @@ const Ue = {
|
|
|
81
81
|
{
|
|
82
82
|
key: "test-exec",
|
|
83
83
|
label: "执行与调度",
|
|
84
|
-
icon: /* @__PURE__ */ e(
|
|
84
|
+
icon: /* @__PURE__ */ e(A, {}),
|
|
85
85
|
children: [
|
|
86
86
|
{
|
|
87
87
|
key: "test-run",
|
|
88
88
|
label: "执行记录",
|
|
89
|
-
icon: /* @__PURE__ */ e(
|
|
89
|
+
icon: /* @__PURE__ */ e(A, {}),
|
|
90
90
|
path: "/test/qa/runs",
|
|
91
91
|
desc: "执行触发、状态与报告"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
key: "test-schedule",
|
|
95
95
|
label: "定时调度",
|
|
96
|
-
icon: /* @__PURE__ */ e(
|
|
96
|
+
icon: /* @__PURE__ */ e(A, {}),
|
|
97
97
|
path: "/test/qa/schedules",
|
|
98
98
|
desc: "cron 定时执行"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
key: "test-e2e",
|
|
102
102
|
label: "E2E 测试",
|
|
103
|
-
icon: /* @__PURE__ */ e(
|
|
103
|
+
icon: /* @__PURE__ */ e(J, {}),
|
|
104
104
|
path: "/test/qa/e2e",
|
|
105
105
|
desc: "浏览器自动化测试"
|
|
106
106
|
}
|
|
@@ -109,12 +109,12 @@ const Ue = {
|
|
|
109
109
|
{
|
|
110
110
|
key: "test-support",
|
|
111
111
|
label: "环境与工具",
|
|
112
|
-
icon: /* @__PURE__ */ e(
|
|
112
|
+
icon: /* @__PURE__ */ e(G, {}),
|
|
113
113
|
children: [
|
|
114
114
|
{
|
|
115
115
|
key: "test-env",
|
|
116
116
|
label: "环境管理",
|
|
117
|
-
icon: /* @__PURE__ */ e(
|
|
117
|
+
icon: /* @__PURE__ */ e(G, {}),
|
|
118
118
|
path: "/test/qa/envs",
|
|
119
119
|
desc: "多环境变量管理"
|
|
120
120
|
},
|
|
@@ -130,19 +130,19 @@ const Ue = {
|
|
|
130
130
|
{
|
|
131
131
|
key: "test-eval",
|
|
132
132
|
label: "智能测评",
|
|
133
|
-
icon: /* @__PURE__ */ e(
|
|
133
|
+
icon: /* @__PURE__ */ e(W, {}),
|
|
134
134
|
children: [
|
|
135
135
|
{
|
|
136
136
|
key: "test-eval-start",
|
|
137
137
|
label: "发起测评",
|
|
138
|
-
icon: /* @__PURE__ */ e(
|
|
138
|
+
icon: /* @__PURE__ */ e(D, {}),
|
|
139
139
|
path: "/test/evaluation/start",
|
|
140
140
|
desc: "Agent 质量测评"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
key: "test-eval-schedule",
|
|
144
144
|
label: "自动测评",
|
|
145
|
-
icon: /* @__PURE__ */ e(
|
|
145
|
+
icon: /* @__PURE__ */ e(A, {}),
|
|
146
146
|
path: "/test/evaluation/schedule",
|
|
147
147
|
desc: "定时批量测评"
|
|
148
148
|
},
|
|
@@ -156,17 +156,17 @@ const Ue = {
|
|
|
156
156
|
{
|
|
157
157
|
key: "test-eval-report",
|
|
158
158
|
label: "分析报告",
|
|
159
|
-
icon: /* @__PURE__ */ e(
|
|
159
|
+
icon: /* @__PURE__ */ e(W, {}),
|
|
160
160
|
path: "/test/evaluation/report",
|
|
161
161
|
desc: "测评结果分析"
|
|
162
162
|
}
|
|
163
163
|
]
|
|
164
164
|
}
|
|
165
165
|
]
|
|
166
|
-
},
|
|
166
|
+
}, ee = [
|
|
167
167
|
{
|
|
168
168
|
title: "认证与权限",
|
|
169
|
-
icon: /* @__PURE__ */ e(
|
|
169
|
+
icon: /* @__PURE__ */ e(E, {}),
|
|
170
170
|
// 4A 授权中心自身的资源管理动作 (账号/角色/应用/租户/组织/权限分配)
|
|
171
171
|
// ⇒ 4A 权限管理域 PERMISSION_MANAGE。普通用户角色 USER 不含该码,
|
|
172
172
|
// 之前照样能点进这些页面 (进去就是 403 / 空白) —— 现在入口先收敛。
|
|
@@ -182,35 +182,35 @@ const Ue = {
|
|
|
182
182
|
{
|
|
183
183
|
key: "4a-role",
|
|
184
184
|
label: "角色管理",
|
|
185
|
-
icon: /* @__PURE__ */ e(
|
|
185
|
+
icon: /* @__PURE__ */ e(E, {}),
|
|
186
186
|
path: "/ctc/4a/role",
|
|
187
187
|
desc: "角色定义与权限分配"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
key: "4a-app",
|
|
191
191
|
label: "应用管理",
|
|
192
|
-
icon: /* @__PURE__ */ e(
|
|
192
|
+
icon: /* @__PURE__ */ e(V, {}),
|
|
193
193
|
path: "/ctc/4a/application",
|
|
194
194
|
desc: "应用注册、资源与权限配置"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: "4a-tenant",
|
|
198
198
|
label: "租户管理",
|
|
199
|
-
icon: /* @__PURE__ */ e(
|
|
199
|
+
icon: /* @__PURE__ */ e(G, {}),
|
|
200
200
|
path: "/ctc/4a/tenant",
|
|
201
201
|
desc: "多租户管理与配置"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
key: "4a-org",
|
|
205
205
|
label: "组织管理",
|
|
206
|
-
icon: /* @__PURE__ */ e(
|
|
206
|
+
icon: /* @__PURE__ */ e(R, {}),
|
|
207
207
|
path: "/ctc/4a/org",
|
|
208
208
|
desc: "组织架构与部门管理"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
key: "4a-permission",
|
|
212
212
|
label: "权限管理",
|
|
213
|
-
icon: /* @__PURE__ */ e(
|
|
213
|
+
icon: /* @__PURE__ */ e(q, {}),
|
|
214
214
|
path: "/ctc/4a/permission",
|
|
215
215
|
desc: "细粒度权限控制与审批"
|
|
216
216
|
}
|
|
@@ -218,27 +218,27 @@ const Ue = {
|
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
title: "开发与工具",
|
|
221
|
-
icon: /* @__PURE__ */ e(
|
|
221
|
+
icon: /* @__PURE__ */ e(C, {}),
|
|
222
222
|
items: [
|
|
223
223
|
{
|
|
224
224
|
key: "script",
|
|
225
225
|
label: "脚本中心",
|
|
226
|
-
icon: /* @__PURE__ */ e(
|
|
226
|
+
icon: /* @__PURE__ */ e(C, {}),
|
|
227
227
|
path: "/script/manage",
|
|
228
228
|
desc: "DSL 脚本注册与执行"
|
|
229
229
|
},
|
|
230
|
-
{ key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(
|
|
230
|
+
{ key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(C, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
|
|
231
231
|
{
|
|
232
232
|
key: "tool-curl",
|
|
233
233
|
label: "短链管理",
|
|
234
|
-
icon: /* @__PURE__ */ e(
|
|
234
|
+
icon: /* @__PURE__ */ e(se, {}),
|
|
235
235
|
path: "/z-tool/curl",
|
|
236
236
|
desc: "短链接创建与管理"
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
key: "tool-webide",
|
|
240
240
|
label: "WebIDE 容器",
|
|
241
|
-
icon: /* @__PURE__ */ e(
|
|
241
|
+
icon: /* @__PURE__ */ e(J, {}),
|
|
242
242
|
path: "/z-tool/webide",
|
|
243
243
|
desc: "在线 IDE 代码编辑器"
|
|
244
244
|
}
|
|
@@ -246,7 +246,7 @@ const Ue = {
|
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
title: "产品认知",
|
|
249
|
-
icon: /* @__PURE__ */ e(
|
|
249
|
+
icon: /* @__PURE__ */ e(j, {}),
|
|
250
250
|
items: [
|
|
251
251
|
{
|
|
252
252
|
// 工坊是「一个面板干完产品业务开发」的主入口:对话 + 小册子 + 产物 + 台账。
|
|
@@ -254,35 +254,35 @@ const Ue = {
|
|
|
254
254
|
// 而主壳导航用的是这份写死的清单 ⇒ 面板做好了却在界面上进不去。
|
|
255
255
|
key: "product-atelier",
|
|
256
256
|
label: "产品工坊",
|
|
257
|
-
icon: /* @__PURE__ */ e(
|
|
257
|
+
icon: /* @__PURE__ */ e(le, {}),
|
|
258
258
|
path: "/z-product/atelier",
|
|
259
259
|
desc: "在一个面板里对话、沉淀产品稿与设计稿、渲染演示稿、建工程落地"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
key: "product-booklets",
|
|
263
263
|
label: "小册子库",
|
|
264
|
-
icon: /* @__PURE__ */ e(
|
|
264
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
265
265
|
path: "/z-product/booklets",
|
|
266
266
|
desc: "可被对话引用的方法、清单与规范"
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
269
|
key: "product-board",
|
|
270
270
|
label: "产品全景",
|
|
271
|
-
icon: /* @__PURE__ */ e(
|
|
271
|
+
icon: /* @__PURE__ */ e(D, {}),
|
|
272
272
|
path: "/z-product/board",
|
|
273
273
|
desc: "业务/产品/研发三线可见的全量认知(术语·模型·链路·设计稿·缺口)"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
key: "product-blueprint",
|
|
277
277
|
label: "产品蓝图",
|
|
278
|
-
icon: /* @__PURE__ */ e(
|
|
278
|
+
icon: /* @__PURE__ */ e(j, {}),
|
|
279
279
|
path: "/z-product/blueprint",
|
|
280
280
|
desc: "AI 的唯一入口:后端实时投影的全量认知快照"
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
key: "product-glossary",
|
|
284
284
|
label: "统一语言",
|
|
285
|
-
icon: /* @__PURE__ */ e(
|
|
285
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
286
286
|
path: "/z-product/glossary",
|
|
287
287
|
desc: "术语仲裁表:标准词/别名/适用范围/反例"
|
|
288
288
|
},
|
|
@@ -296,7 +296,7 @@ const Ue = {
|
|
|
296
296
|
{
|
|
297
297
|
key: "product-scenarios",
|
|
298
298
|
label: "用户链路",
|
|
299
|
-
icon: /* @__PURE__ */ e(
|
|
299
|
+
icon: /* @__PURE__ */ e(R, {}),
|
|
300
300
|
path: "/z-product/scenarios",
|
|
301
301
|
desc: "端到端场景:步骤引用领域概念"
|
|
302
302
|
},
|
|
@@ -311,26 +311,26 @@ const Ue = {
|
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
title: "业务流程",
|
|
314
|
-
icon: /* @__PURE__ */ e(
|
|
314
|
+
icon: /* @__PURE__ */ e(N, {}),
|
|
315
315
|
items: [
|
|
316
316
|
{
|
|
317
317
|
key: "workflow",
|
|
318
318
|
label: "流程中心",
|
|
319
|
-
icon: /* @__PURE__ */ e(
|
|
319
|
+
icon: /* @__PURE__ */ e(q, {}),
|
|
320
320
|
path: "/workflow/dashboard",
|
|
321
321
|
desc: "工作流定义与审批管理"
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
key: "task",
|
|
325
325
|
label: "任务中心",
|
|
326
|
-
icon: /* @__PURE__ */ e(
|
|
326
|
+
icon: /* @__PURE__ */ e(N, {}),
|
|
327
327
|
path: "/task/dashboard",
|
|
328
328
|
desc: "任务创建、分配与跟踪"
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
key: "schedule",
|
|
332
332
|
label: "调度中心",
|
|
333
|
-
icon: /* @__PURE__ */ e(
|
|
333
|
+
icon: /* @__PURE__ */ e(A, {}),
|
|
334
334
|
// z-schedule-component 的路由只有 jobs / group / log,**没有 dashboard**:
|
|
335
335
|
// 原来写 /schedule/dashboard,点进去命中 /schedule/* 通配后组件内部匹配不到
|
|
336
336
|
// 任何路由 ⇒ 右侧一片空白。默认页取 jobs。
|
|
@@ -347,146 +347,146 @@ const Ue = {
|
|
|
347
347
|
{
|
|
348
348
|
key: "project",
|
|
349
349
|
label: "项目中心",
|
|
350
|
-
icon: /* @__PURE__ */ e(
|
|
350
|
+
icon: /* @__PURE__ */ e(X, {}),
|
|
351
351
|
path: "/project/list",
|
|
352
352
|
desc: "项目创建与进度管理"
|
|
353
353
|
}
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
|
-
],
|
|
356
|
+
], M = [...ee, $e];
|
|
357
357
|
function Ke({
|
|
358
|
-
activePathOverride:
|
|
359
|
-
menuOnly:
|
|
360
|
-
visibleGroups:
|
|
358
|
+
activePathOverride: s,
|
|
359
|
+
menuOnly: l = !1,
|
|
360
|
+
visibleGroups: p
|
|
361
361
|
} = {}) {
|
|
362
|
-
const
|
|
363
|
-
() =>
|
|
364
|
-
[
|
|
365
|
-
),
|
|
366
|
-
() =>
|
|
367
|
-
[
|
|
368
|
-
), [
|
|
369
|
-
new Set(
|
|
370
|
-
), [
|
|
362
|
+
const S = Z(), { pathname: i } = O(), w = y(
|
|
363
|
+
() => p ? M.filter((a) => p.includes(a.title)) : ee,
|
|
364
|
+
[p]
|
|
365
|
+
), h = U((a) => a.permissionState), P = U((a) => a.currentUser), _ = y(
|
|
366
|
+
() => h === "failed" ? w : he(w, P),
|
|
367
|
+
[w, P, h]
|
|
368
|
+
), [d, f] = z(
|
|
369
|
+
new Set(M.map((a) => a.title))
|
|
370
|
+
), [L, te] = z(
|
|
371
371
|
() => new Set(
|
|
372
|
-
|
|
372
|
+
M.flatMap((a) => a.items).filter((a) => a.children).map((a) => a.key)
|
|
373
373
|
)
|
|
374
|
-
),
|
|
375
|
-
var
|
|
376
|
-
const
|
|
377
|
-
return ((
|
|
378
|
-
(o) => o.path ===
|
|
379
|
-
)) == null ? void 0 :
|
|
380
|
-
}, [
|
|
381
|
-
|
|
382
|
-
const o = new Set(
|
|
383
|
-
return o.has(
|
|
374
|
+
), v = y(() => {
|
|
375
|
+
var u;
|
|
376
|
+
const a = s ?? i;
|
|
377
|
+
return ((u = _.flatMap((o) => I(o.items)).find(
|
|
378
|
+
(o) => o.path === a
|
|
379
|
+
)) == null ? void 0 : u.key) ?? null;
|
|
380
|
+
}, [s, i, _]), ae = (a) => {
|
|
381
|
+
f((u) => {
|
|
382
|
+
const o = new Set(u);
|
|
383
|
+
return o.has(a) ? o.delete(a) : o.add(a), o;
|
|
384
384
|
});
|
|
385
|
-
},
|
|
386
|
-
te((
|
|
387
|
-
const o = new Set(
|
|
388
|
-
return o.has(
|
|
385
|
+
}, ne = (a) => {
|
|
386
|
+
te((u) => {
|
|
387
|
+
const o = new Set(u);
|
|
388
|
+
return o.has(a) ? o.delete(a) : o.add(a), o;
|
|
389
389
|
});
|
|
390
|
-
}, B = (
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
(
|
|
390
|
+
}, B = (a) => {
|
|
391
|
+
a.path && S(a.path);
|
|
392
|
+
}, k = _.flatMap((a) => I(a.items)).find(
|
|
393
|
+
(a) => a.key === v
|
|
394
394
|
);
|
|
395
|
-
return /* @__PURE__ */ r("div", { className:
|
|
396
|
-
/* @__PURE__ */ r("aside", { className:
|
|
395
|
+
return /* @__PURE__ */ r("div", { className: n.container, children: [
|
|
396
|
+
/* @__PURE__ */ r("aside", { className: n.sidebar, children: [
|
|
397
397
|
/* @__PURE__ */ e(be, {}),
|
|
398
|
-
/* @__PURE__ */ e("nav", { className:
|
|
399
|
-
const
|
|
400
|
-
return /* @__PURE__ */ r("div", { className:
|
|
398
|
+
/* @__PURE__ */ e("nav", { className: n.menuList, children: _.map((a) => {
|
|
399
|
+
const u = d.has(a.title);
|
|
400
|
+
return /* @__PURE__ */ r("div", { className: n.menuGroup, children: [
|
|
401
401
|
/* @__PURE__ */ r(
|
|
402
402
|
"div",
|
|
403
403
|
{
|
|
404
|
-
className:
|
|
405
|
-
onClick: () =>
|
|
404
|
+
className: n.menuGroupHeader,
|
|
405
|
+
onClick: () => ae(a.title),
|
|
406
406
|
children: [
|
|
407
|
-
/* @__PURE__ */ e("span", { className:
|
|
408
|
-
/* @__PURE__ */ e("span", { className:
|
|
409
|
-
/* @__PURE__ */ e("span", { className:
|
|
407
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: a.icon }),
|
|
408
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupLabel, children: a.title }),
|
|
409
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: u ? /* @__PURE__ */ e(T, {}) : /* @__PURE__ */ e(x, {}) })
|
|
410
410
|
]
|
|
411
411
|
}
|
|
412
412
|
),
|
|
413
|
-
|
|
413
|
+
u && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: a.items.map(
|
|
414
414
|
(o) => o.children ? (
|
|
415
415
|
/* 子菜单分组头 — 可折叠; active 项落在其中时高亮 */
|
|
416
|
-
/* @__PURE__ */ r("li", { className:
|
|
416
|
+
/* @__PURE__ */ r("li", { className: n.menuSubGroup, children: [
|
|
417
417
|
/* @__PURE__ */ r(
|
|
418
418
|
"div",
|
|
419
419
|
{
|
|
420
|
-
className: `${
|
|
421
|
-
onClick: () =>
|
|
420
|
+
className: `${n.menuSubGroupHeader} ${o.children.some((b) => b.key === v) ? n.menuSubGroupHeaderActive : ""}`,
|
|
421
|
+
onClick: () => ne(o.key),
|
|
422
422
|
children: [
|
|
423
|
-
/* @__PURE__ */ e("span", { className:
|
|
424
|
-
/* @__PURE__ */ e("span", { className:
|
|
425
|
-
/* @__PURE__ */ e("span", { className:
|
|
423
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: o.icon }),
|
|
424
|
+
/* @__PURE__ */ e("span", { className: n.menuSubGroupLabel, children: o.label }),
|
|
425
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: L.has(o.key) ? /* @__PURE__ */ e(T, {}) : /* @__PURE__ */ e(x, {}) })
|
|
426
426
|
]
|
|
427
427
|
}
|
|
428
428
|
),
|
|
429
|
-
|
|
429
|
+
L.has(o.key) && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: o.children.map((b) => /* @__PURE__ */ r(
|
|
430
430
|
"li",
|
|
431
431
|
{
|
|
432
|
-
className: `${
|
|
433
|
-
onClick: () => B(
|
|
432
|
+
className: `${n.menuSubItem} ${v === b.key ? n.menuSubItemActive : ""}`,
|
|
433
|
+
onClick: () => B(b),
|
|
434
434
|
children: [
|
|
435
435
|
/* @__PURE__ */ e(
|
|
436
436
|
"span",
|
|
437
437
|
{
|
|
438
|
-
className:
|
|
439
|
-
children:
|
|
438
|
+
className: n.menuSubItemIcon,
|
|
439
|
+
children: b.icon
|
|
440
440
|
}
|
|
441
441
|
),
|
|
442
|
-
/* @__PURE__ */ e("span", { children:
|
|
442
|
+
/* @__PURE__ */ e("span", { children: b.label })
|
|
443
443
|
]
|
|
444
444
|
},
|
|
445
|
-
|
|
445
|
+
b.key
|
|
446
446
|
)) })
|
|
447
447
|
] }, o.key)
|
|
448
448
|
) : /* @__PURE__ */ r(
|
|
449
449
|
"li",
|
|
450
450
|
{
|
|
451
|
-
className: `${
|
|
451
|
+
className: `${n.menuSubItem} ${v === o.key ? n.menuSubItemActive : ""}`,
|
|
452
452
|
onClick: () => B(o),
|
|
453
453
|
children: [
|
|
454
|
-
/* @__PURE__ */ e("span", { className:
|
|
454
|
+
/* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: o.icon }),
|
|
455
455
|
/* @__PURE__ */ e("span", { children: o.label })
|
|
456
456
|
]
|
|
457
457
|
},
|
|
458
458
|
o.key
|
|
459
459
|
)
|
|
460
460
|
) })
|
|
461
|
-
] },
|
|
461
|
+
] }, a.title);
|
|
462
462
|
}) })
|
|
463
463
|
] }),
|
|
464
|
-
|
|
465
|
-
/* @__PURE__ */ r("div", { className:
|
|
466
|
-
/* @__PURE__ */ e("div", { className:
|
|
464
|
+
l ? null : /* @__PURE__ */ e("main", { className: n.main, children: k ? /* @__PURE__ */ r("div", { className: n.detailPanel, children: [
|
|
465
|
+
/* @__PURE__ */ r("div", { className: n.detailHeader, children: [
|
|
466
|
+
/* @__PURE__ */ e("div", { className: n.detailIcon, children: k.icon }),
|
|
467
467
|
/* @__PURE__ */ r("div", { children: [
|
|
468
|
-
/* @__PURE__ */ e("h2", { className:
|
|
469
|
-
/* @__PURE__ */ e("p", { className:
|
|
468
|
+
/* @__PURE__ */ e("h2", { className: n.detailTitle, children: k.label }),
|
|
469
|
+
/* @__PURE__ */ e("p", { className: n.detailDesc, children: k.desc })
|
|
470
470
|
] })
|
|
471
471
|
] }),
|
|
472
|
-
/* @__PURE__ */ e("div", { className:
|
|
472
|
+
/* @__PURE__ */ e("div", { className: n.detailAction, children: /* @__PURE__ */ r(
|
|
473
473
|
"button",
|
|
474
474
|
{
|
|
475
|
-
className:
|
|
476
|
-
onClick: () =>
|
|
475
|
+
className: n.goBtn,
|
|
476
|
+
onClick: () => S(k.path),
|
|
477
477
|
children: [
|
|
478
478
|
"进入 ",
|
|
479
|
-
|
|
479
|
+
k.label
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
482
|
) })
|
|
483
|
-
] }) : /* @__PURE__ */ r("div", { className:
|
|
484
|
-
/* @__PURE__ */ e(
|
|
483
|
+
] }) : /* @__PURE__ */ r("div", { className: n.emptyState, children: [
|
|
484
|
+
/* @__PURE__ */ e(V, { style: { fontSize: 48, color: "#ccc" } }),
|
|
485
485
|
/* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
|
|
486
486
|
] }) })
|
|
487
487
|
] });
|
|
488
488
|
}
|
|
489
|
-
const Fe = "_shellWrap_16wfm_6", Qe = "_shell_16wfm_6", Ye = "_main_16wfm_30", Ze = "_productBanner_16wfm_41", Ve = "_productBannerLabel_16wfm_53", Je = "_productBannerName_16wfm_59", Xe = "_productBannerCode_16wfm_67", et = "_productBannerBack_16wfm_72", tt = "_empty_16wfm_89",
|
|
489
|
+
const Fe = "_shellWrap_16wfm_6", Qe = "_shell_16wfm_6", Ye = "_main_16wfm_30", Ze = "_productBanner_16wfm_41", Ve = "_productBannerLabel_16wfm_53", Je = "_productBannerName_16wfm_59", Xe = "_productBannerCode_16wfm_67", et = "_productBannerBack_16wfm_72", tt = "_empty_16wfm_89", at = "_emptyIcon_16wfm_99", nt = "_emptyText_16wfm_104", m = {
|
|
490
490
|
shellWrap: Fe,
|
|
491
491
|
shell: Qe,
|
|
492
492
|
main: Ye,
|
|
@@ -496,22 +496,22 @@ const Fe = "_shellWrap_16wfm_6", Qe = "_shell_16wfm_6", Ye = "_main_16wfm_30", Z
|
|
|
496
496
|
productBannerCode: Xe,
|
|
497
497
|
productBannerBack: et,
|
|
498
498
|
empty: tt,
|
|
499
|
-
emptyIcon:
|
|
500
|
-
emptyText:
|
|
499
|
+
emptyIcon: at,
|
|
500
|
+
emptyText: nt
|
|
501
501
|
};
|
|
502
502
|
ge();
|
|
503
|
-
const t = (
|
|
504
|
-
function
|
|
505
|
-
return /* @__PURE__ */ r("div", { className:
|
|
506
|
-
/* @__PURE__ */ e("div", { className:
|
|
507
|
-
/* @__PURE__ */ e("div", { className:
|
|
503
|
+
const t = (s, l) => g(() => s().then((p) => ({ default: p[l] }))), ot = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), ct = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), st = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), lt = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), rt = t(() => import("@yuku123/z-ctc-component"), "DictPage"), pt = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), it = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), mt = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), $ = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), ut = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), dt = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), ht = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), bt = t(() => import("@yuku123/z-agent-component"), "AkManage"), gt = t(() => import("@yuku123/z-agent-component"), "BucketList"), _t = t(() => import("@yuku123/z-agent-component"), "LlmManage"), kt = t(() => import("@yuku123/z-agent-component"), "McpPage"), yt = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), St = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), wt = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), ft = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), At = t(() => import("./index-ilrh7uNR.js"), "AgentTeamIM"), K = t(() => import("./index-ilrh7uNR.js"), "DebugPlayground"), Pt = t(() => import("./index-ilrh7uNR.js"), "Overview"), F = t(() => import("./index-ilrh7uNR.js"), "Webide"), vt = g(() => import("./OnboardingPage-BEIz3UzA.js")), Dt = g(() => import("./InvitationManagementPage-DUn17QCS.js")), Nt = t(() => import("@yuku123/z-config-component"), "ConfigApp"), Ct = t(() => import("@yuku123/z-task-component"), "TaskApp"), Mt = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), Gt = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), It = t(() => import("@yuku123/z-mist-component"), "MistApp"), Ot = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Lt = t(() => import("@yuku123/z-msg-component"), "MsgApp"), Bt = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), zt = g(() => import("./ComponentDoc-C4t3POeE.js").then((s) => s.cp)), Tt = g(() => import("./ComponentDoc-C4t3POeE.js").then((s) => s.cq)), xt = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), Et = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), Rt = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), qt = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), Ht = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), jt = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), Wt = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), Ut = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), $t = t(() => import("@yuku123/z-cognition-kb-component"), "ComponentDocPage"), Kt = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), Ft = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), Qt = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), Yt = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), Zt = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), Vt = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), Jt = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), Xt = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), ea = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), ta = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), aa = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), na = g(() => import("./ComponentDoc-C4t3POeE.js").then((s) => s.co)), Q = g(() => import("@yuku123/z-qa-component"));
|
|
504
|
+
function oa() {
|
|
505
|
+
return /* @__PURE__ */ r("div", { className: m.empty, children: [
|
|
506
|
+
/* @__PURE__ */ e("div", { className: m.emptyIcon, children: "📋" }),
|
|
507
|
+
/* @__PURE__ */ e("div", { className: m.emptyText, children: "请从左侧菜单选择模块" })
|
|
508
508
|
] });
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
const { pathname:
|
|
512
|
-
return /* @__PURE__ */ e(c, { to:
|
|
510
|
+
function ca() {
|
|
511
|
+
const { pathname: s } = O();
|
|
512
|
+
return /* @__PURE__ */ e(c, { to: s.replace(/^\/product/, "/z-product"), replace: !0 });
|
|
513
513
|
}
|
|
514
|
-
const
|
|
514
|
+
const Y = [
|
|
515
515
|
// ─── 顶层 / 概览 ───
|
|
516
516
|
{ path: "/overview", element: /* @__PURE__ */ e(Pt, {}) },
|
|
517
517
|
// ─── 4A 中心 (/ctc/*) ───
|
|
@@ -524,9 +524,9 @@ const Q = [
|
|
|
524
524
|
{ path: "/ctc/4a/permission", element: /* @__PURE__ */ e(it, {}) },
|
|
525
525
|
{ path: "/ctc/4a/surl", element: /* @__PURE__ */ e($, {}) },
|
|
526
526
|
{ path: "/ctc/dict", element: /* @__PURE__ */ e(rt, {}) },
|
|
527
|
-
{ path: "/ctc/overview", element: /* @__PURE__ */ e(
|
|
528
|
-
{ path: "/ctc/audit", element: /* @__PURE__ */ e(
|
|
529
|
-
{ path: "/ctc/webide", element: /* @__PURE__ */ e(
|
|
527
|
+
{ path: "/ctc/overview", element: /* @__PURE__ */ e(lt, {}) },
|
|
528
|
+
{ path: "/ctc/audit", element: /* @__PURE__ */ e(st, {}) },
|
|
529
|
+
{ path: "/ctc/webide", element: /* @__PURE__ */ e(F, {}) },
|
|
530
530
|
{ path: "/ctc/agent-team", element: /* @__PURE__ */ e(At, {}) },
|
|
531
531
|
{ path: "/ctc/invitation", element: /* @__PURE__ */ e(Dt, {}) },
|
|
532
532
|
{ path: "/onboarding", element: /* @__PURE__ */ e(vt, {}) },
|
|
@@ -544,8 +544,8 @@ const Q = [
|
|
|
544
544
|
{ path: "/ai/oss", element: /* @__PURE__ */ e(c, { to: "/ai/oss/bucket", replace: !0 }) },
|
|
545
545
|
{ path: "/ai/oss/bucket", element: /* @__PURE__ */ e(gt, {}) },
|
|
546
546
|
{ path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(yt, {}) },
|
|
547
|
-
{ path: "/ai/trace", element: /* @__PURE__ */ e(
|
|
548
|
-
{ path: "/ai/trace/debug", element: /* @__PURE__ */ e(
|
|
547
|
+
{ path: "/ai/trace", element: /* @__PURE__ */ e(K, {}) },
|
|
548
|
+
{ path: "/ai/trace/debug", element: /* @__PURE__ */ e(K, {}) },
|
|
549
549
|
{ path: "/ai/dashboard", element: /* @__PURE__ */ e(ht, {}) },
|
|
550
550
|
// 多 Agent 实例 / 模板市场已下线 (2026-10-22): 模板并入 Agent 应用页,
|
|
551
551
|
// 旧深链重定向, 别再回到独立菜单
|
|
@@ -572,9 +572,9 @@ const Q = [
|
|
|
572
572
|
{ path: "/meta", element: /* @__PURE__ */ e(c, { to: "/meta/app", replace: !0 }) },
|
|
573
573
|
{ path: "/meta/*", element: /* @__PURE__ */ e(Ot, {}) },
|
|
574
574
|
{ path: "/msg", element: /* @__PURE__ */ e(c, { to: "/msg/inbox", replace: !0 }) },
|
|
575
|
-
{ path: "/msg/*", element: /* @__PURE__ */ e(
|
|
575
|
+
{ path: "/msg/*", element: /* @__PURE__ */ e(Lt, {}) },
|
|
576
576
|
{ path: "/rpc", element: /* @__PURE__ */ e(c, { to: "/rpc/service", replace: !0 }) },
|
|
577
|
-
{ path: "/rpc/*", element: /* @__PURE__ */ e(
|
|
577
|
+
{ path: "/rpc/*", element: /* @__PURE__ */ e(Bt, {}) },
|
|
578
578
|
// ─── 订阅中心 ───
|
|
579
579
|
{ path: "/subscribe", element: /* @__PURE__ */ e(c, { to: "/subscribe/list", replace: !0 }) },
|
|
580
580
|
{ path: "/subscribe/*", element: /* @__PURE__ */ e(zt, {}) },
|
|
@@ -589,7 +589,7 @@ const Q = [
|
|
|
589
589
|
{ path: "/z-product/*", element: /* @__PURE__ */ e(_e, { basePath: "/z-product" }) },
|
|
590
590
|
// 旧前缀 /product/* → 新前缀 /z-product/*:§14 前缀化之前的老 URL 仍可达(书签 / 旧分享链接)。
|
|
591
591
|
{ path: "/product", element: /* @__PURE__ */ e(c, { to: "/z-product/atelier", replace: !0 }) },
|
|
592
|
-
{ path: "/product/*", element: /* @__PURE__ */ e(
|
|
592
|
+
{ path: "/product/*", element: /* @__PURE__ */ e(ca, {}) },
|
|
593
593
|
// ─── 项目中心 ───
|
|
594
594
|
{ path: "/project", element: /* @__PURE__ */ e(c, { to: "/project/list", replace: !0 }) },
|
|
595
595
|
{ path: "/project/*", element: /* @__PURE__ */ e(Tt, {}) },
|
|
@@ -600,13 +600,13 @@ const Q = [
|
|
|
600
600
|
// ─── 工具中心 (/z-tool/*) — FEATURE054 ───
|
|
601
601
|
{ path: "/z-tool", element: /* @__PURE__ */ e(c, { to: "/z-tool/curl", replace: !0 }) },
|
|
602
602
|
{ path: "/z-tool/curl", element: /* @__PURE__ */ e($, {}) },
|
|
603
|
-
{ path: "/z-tool/webide", element: /* @__PURE__ */ e(
|
|
603
|
+
{ path: "/z-tool/webide", element: /* @__PURE__ */ e(F, {}) },
|
|
604
604
|
// ─── 测试中心 (/test/*) — FEATURE061 ───
|
|
605
605
|
{ path: "/test", element: /* @__PURE__ */ e(c, { to: "/test/qa/dashboard", replace: !0 }) },
|
|
606
|
-
{ path: "/test/mock", element: /* @__PURE__ */ e(
|
|
606
|
+
{ path: "/test/mock", element: /* @__PURE__ */ e(na, {}) },
|
|
607
607
|
// QAApp 内部用 <Routes> 相对路由, 通配匹配后由 QAApp 自己接管子路径
|
|
608
|
-
{ path: "/test/qa", element: /* @__PURE__ */ e(
|
|
609
|
-
{ path: "/test/qa/*", element: /* @__PURE__ */ e(
|
|
608
|
+
{ path: "/test/qa", element: /* @__PURE__ */ e(Q, {}) },
|
|
609
|
+
{ path: "/test/qa/*", element: /* @__PURE__ */ e(Q, {}) },
|
|
610
610
|
// ─── 低代码 ───
|
|
611
611
|
// /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
|
|
612
612
|
// main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
|
|
@@ -645,8 +645,8 @@ const Q = [
|
|
|
645
645
|
{ path: "/mist/docs", element: /* @__PURE__ */ e(Ht, {}) },
|
|
646
646
|
{ path: "/meta/docs", element: /* @__PURE__ */ e(jt, {}) },
|
|
647
647
|
{ path: "/msg/docs", element: /* @__PURE__ */ e(Wt, {}) },
|
|
648
|
-
{ path: "/rpc/docs", element: /* @__PURE__ */ e(
|
|
649
|
-
{ path: "/kb/docs", element: /* @__PURE__ */ e(
|
|
648
|
+
{ path: "/rpc/docs", element: /* @__PURE__ */ e(Ut, {}) },
|
|
649
|
+
{ path: "/kb/docs", element: /* @__PURE__ */ e($t, {}) },
|
|
650
650
|
{ path: "/z-product/docs", element: /* @__PURE__ */ e(Kt, {}) },
|
|
651
651
|
{ path: "/oss/docs", element: /* @__PURE__ */ e(Ft, {}) },
|
|
652
652
|
{ path: "/vector/docs", element: /* @__PURE__ */ e(Qt, {}) },
|
|
@@ -655,58 +655,64 @@ const Q = [
|
|
|
655
655
|
{ path: "/cache/docs", element: /* @__PURE__ */ e(Vt, {}) },
|
|
656
656
|
{ path: "/mq/docs", element: /* @__PURE__ */ e(Jt, {}) },
|
|
657
657
|
{ path: "/ctc/docs", element: /* @__PURE__ */ e(Xt, {}) },
|
|
658
|
-
{ path: "/ai/docs", element: /* @__PURE__ */ e(
|
|
659
|
-
{ path: "/lc/docs", element: /* @__PURE__ */ e(
|
|
660
|
-
{ path: "/test/qa/docs", element: /* @__PURE__ */ e(
|
|
658
|
+
{ path: "/ai/docs", element: /* @__PURE__ */ e(ea, {}) },
|
|
659
|
+
{ path: "/lc/docs", element: /* @__PURE__ */ e(ta, {}) },
|
|
660
|
+
{ path: "/test/qa/docs", element: /* @__PURE__ */ e(aa, {}) }
|
|
661
661
|
];
|
|
662
|
-
function
|
|
663
|
-
for (const
|
|
664
|
-
if (
|
|
665
|
-
for (const
|
|
666
|
-
if (
|
|
667
|
-
return /* @__PURE__ */ e(
|
|
662
|
+
function sa(s) {
|
|
663
|
+
for (const l of Y)
|
|
664
|
+
if (l.path === s) return l.element;
|
|
665
|
+
for (const l of Y)
|
|
666
|
+
if (la(l.path, s)) return l.element;
|
|
667
|
+
return /* @__PURE__ */ e(oa, {});
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
if (!
|
|
671
|
-
const
|
|
672
|
-
return new RegExp(
|
|
669
|
+
function la(s, l) {
|
|
670
|
+
if (!s.includes("*") && !s.includes(":")) return !1;
|
|
671
|
+
const p = "^" + s.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
|
|
672
|
+
return new RegExp(p).test(l);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
const
|
|
674
|
+
function ga() {
|
|
675
|
+
const s = Z(), { pathname: l, search: p } = O(), S = l.startsWith("/test/") || (() => {
|
|
676
|
+
try {
|
|
677
|
+
return new URLSearchParams(p).get("mode") === "test";
|
|
678
|
+
} catch {
|
|
679
|
+
return !1;
|
|
680
|
+
}
|
|
681
|
+
})(), i = y(() => {
|
|
676
682
|
try {
|
|
677
|
-
const
|
|
678
|
-
return
|
|
683
|
+
const d = new URLSearchParams(p), f = d.get("product");
|
|
684
|
+
return f ? { code: f, name: d.get("productName") || f } : null;
|
|
679
685
|
} catch {
|
|
680
686
|
return null;
|
|
681
687
|
}
|
|
682
|
-
}, [
|
|
683
|
-
if (!
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
}, [
|
|
687
|
-
return /* @__PURE__ */ r("div", { className:
|
|
688
|
-
|
|
689
|
-
/* @__PURE__ */ e("span", { className:
|
|
690
|
-
/* @__PURE__ */ e("span", { className:
|
|
691
|
-
/* @__PURE__ */ e("span", { className:
|
|
692
|
-
/* @__PURE__ */ e("button", { type: "button", className:
|
|
688
|
+
}, [p]), w = useCallback(() => {
|
|
689
|
+
if (!i) return;
|
|
690
|
+
const d = new URLSearchParams();
|
|
691
|
+
d.set("product", i.code), i.name && d.set("productName", i.name), s(`/workspace?mode=product&${d.toString()}`);
|
|
692
|
+
}, [i, s]), h = S && !l.startsWith("/test") ? "/test/qa/dashboard" : l, P = y(() => h, [h]), _ = y(() => sa(h), [h]);
|
|
693
|
+
return /* @__PURE__ */ r("div", { className: m.shellWrap, children: [
|
|
694
|
+
i && /* @__PURE__ */ r("div", { className: m.productBanner, children: [
|
|
695
|
+
/* @__PURE__ */ e("span", { className: m.productBannerLabel, children: "📦 当前产品" }),
|
|
696
|
+
/* @__PURE__ */ e("span", { className: m.productBannerName, title: i.name, children: i.name }),
|
|
697
|
+
/* @__PURE__ */ e("span", { className: m.productBannerCode, children: i.code }),
|
|
698
|
+
/* @__PURE__ */ e("button", { type: "button", className: m.productBannerBack, onClick: w, children: "← 返回产品工作台" })
|
|
693
699
|
] }),
|
|
694
|
-
/* @__PURE__ */ r("div", { className:
|
|
700
|
+
/* @__PURE__ */ r("div", { className: m.shell, children: [
|
|
695
701
|
/* @__PURE__ */ e(
|
|
696
702
|
Ke,
|
|
697
703
|
{
|
|
698
|
-
activePathOverride:
|
|
704
|
+
activePathOverride: P,
|
|
699
705
|
menuOnly: !0,
|
|
700
|
-
visibleGroups:
|
|
706
|
+
visibleGroups: S ? ["测试中心"] : void 0
|
|
701
707
|
}
|
|
702
708
|
),
|
|
703
|
-
/* @__PURE__ */ r("main", { className:
|
|
709
|
+
/* @__PURE__ */ r("main", { className: m.main, children: [
|
|
704
710
|
/* @__PURE__ */ e(ke, {}),
|
|
705
|
-
/* @__PURE__ */ e(ye, { resetKey:
|
|
711
|
+
/* @__PURE__ */ e(ye, { resetKey: l, children: /* @__PURE__ */ e(oe, { fallback: /* @__PURE__ */ e("div", { className: m.empty, children: "加载中…" }), children: _ }) })
|
|
706
712
|
] })
|
|
707
713
|
] })
|
|
708
714
|
] });
|
|
709
715
|
}
|
|
710
716
|
export {
|
|
711
|
-
|
|
717
|
+
ga as default
|
|
712
718
|
};
|