@yuku123/z-team-component 0.2.133 → 0.2.134
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/{index-BkzBYfhO.js → AdminModuleContent-DjEqlai_.js} +13552 -14053
- package/dist/{ChangeLogView-SwacGpsw.js → ChangeLogView-BQCxD0g7.js} +1 -1
- package/dist/{ComponentDoc-Dh5YhLCI.js → ComponentDoc-C1yrRq6Y.js} +707 -713
- package/dist/{InvitationManagementPage-CjEcLOGB.js → InvitationManagementPage-Bbl_HXlG.js} +1 -1
- package/dist/{OnboardingPage-DvNt71kX.js → OnboardingPage-BoYhlfWE.js} +2 -2
- package/dist/{ScheduledTasks-COgb4MZJ.js → ScheduledTasks-0FX6xhIs.js} +6 -6
- package/dist/SystemShell-DNRHYsgT.js +978 -0
- package/dist/{admin-logs-CExsxQ5h.js → admin-logs-OZ3s7ssr.js} +1 -1
- package/dist/{api-DXw93E7c.js → api-B0ComkTL.js} +1 -1
- package/dist/{api-C9kTgVc2.js → api-BgrPNvTB.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BwDUTYXH.js → createWorkspaceWsHandler-CkgJR6Oo.js} +3 -3
- package/dist/{index-D2DFKRUf.js → index-9fGksFL5.js} +1 -1
- package/dist/{index-mEgmHNRO.js → index-Bbs7DMqZ.js} +1 -1
- package/dist/{index-CF3xDZ7q.js → index-Bf-Az5am.js} +4 -4
- package/dist/index-Bf57pWxm.js +311 -0
- package/dist/{index-D_J1ZCy8.js → index-BiCIEDbX.js} +3 -3
- package/dist/{index-DmV6xR7C.js → index-BtCyMeHe.js} +3 -3
- package/dist/{index-9rfSVSTh.js → index-C1sQehbP.js} +2 -2
- package/dist/index-CHLZ4xCe.js +1176 -0
- package/dist/{index-B3uLo8-F.js → index-CM6iVhI3.js} +3 -3
- package/dist/{index-DLK7DuCr.js → index-Cg88iPqc.js} +3 -3
- package/dist/{index-CXEYA7rt.js → index-Cn2CVr2m.js} +2 -2
- package/dist/{index-Ci6_CBwE.js → index-DTKd1x9H.js} +3 -3
- package/dist/{index-DM6XeWFk.js → index-DXvw5NUH.js} +2383 -2416
- package/dist/{index-ftuPuj0s.js → index-Dg_qr92O.js} +1 -1
- package/dist/{index-DMfYPIkB.js → index-Dj88QNYQ.js} +2 -2
- package/dist/{index-t2nMJUPu.js → index-Dx6dKBLL.js} +1 -1
- package/dist/{index-Bs9odXxd.js → index-DxH2PsDU.js} +6 -6
- package/dist/{index-DZ0fYNO9.js → index-Dy5HesOM.js} +11 -11
- package/dist/{index-Ceu-yckM.js → index-M_hPRTgh.js} +12 -12
- package/dist/{index-BoY7L8C4.js → index-TaAkEm82.js} +3 -2
- package/dist/{index-B2Dfbi8J.js → index-dti6XFQV.js} +2 -2
- package/dist/{index-BNPq7yBg.js → index-glQgW-8f.js} +2 -2
- package/dist/{index-CntZHojY.js → index-mHqvjT5a.js} +2 -2
- package/dist/{index-COobH4Vi.js → index-vqAJt3qL.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-DD3kbAUh.js → instance-BXN17-Ol.js} +1 -1
- package/dist/{menuPermission-v0881tid.js → menuPermission-Bw3hPi8i.js} +3 -3
- package/dist/menuTree-Ctcz41N8.js +303 -0
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-Cug0T_7J.js → send-default-agent-team-message-DM0C9VL-.js} +1 -1
- package/dist/{sso-user-CnVXqYR7.js → sso-user-F62YVj4w.js} +1 -1
- package/dist/{training-BS23m-yy.js → training-Df00Ilsm.js} +1 -1
- package/dist/{webide-BPJ1IpZq.js → webide-Iw2coFFL.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +2 -1
- package/dist/SystemShell-CSXcsiNp.js +0 -752
- package/dist/index-BTJ83JLl.js +0 -1073
- package/dist/index-CU6jFFl5.js +0 -112
- package/dist/index-CZCKpsry.js +0 -607
- package/dist/useSidebarResize--Avuabb1.js +0 -46
|
@@ -0,0 +1,978 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useNavigate as ye, useLocation as Z, Navigate as c } from "react-router-dom";
|
|
3
|
+
import { useMemo as O, useState as ae, useEffect as Ie, useCallback as Ge, Suspense as we, lazy as S } from "react";
|
|
4
|
+
import { UnorderedListOutlined as D, HistoryOutlined as ne, ClusterOutlined as N, DashboardOutlined as f, ExperimentOutlined as De, SettingOutlined as oe, KeyOutlined as q, AppstoreOutlined as M, SafetyCertificateOutlined as K, TeamOutlined as J, ProfileOutlined as $, ApiOutlined as F, HddOutlined as W, ApartmentOutlined as V, InboxOutlined as ce, FileTextOutlined as I, SendOutlined as Ne, CloudServerOutlined as v, NodeIndexOutlined as Ce, TableOutlined as le, SearchOutlined as j, DatabaseOutlined as x, ConsoleSqlOutlined as Me, BranchesOutlined as Be, DeploymentUnitOutlined as Y, BookOutlined as B, ScheduleOutlined as ze, FundOutlined as Le, CloudUploadOutlined as Te, TagsOutlined as Ee, CodeOutlined as R, DownOutlined as se, RightOutlined as ie, UserOutlined as qe, CloudOutlined as Q, AuditOutlined as re, FolderOpenOutlined as He, DesktopOutlined as _e, ThunderboltOutlined as Re, FileImageOutlined as $e, ProjectOutlined as fe, CalendarOutlined as H, BarChartOutlined as pe, ControlOutlined as xe } from "@ant-design/icons";
|
|
5
|
+
import { f as Ue, M as We } from "./menuPermission-Bw3hPi8i.js";
|
|
6
|
+
import { u as me, a2 as je } from "./ComponentDoc-C1yrRq6Y.js";
|
|
7
|
+
import { M as Ke, f as Se, u as Fe } from "./menuTree-Ctcz41N8.js";
|
|
8
|
+
import { ProductApp as Ve } from "@yuku123/z-product-component";
|
|
9
|
+
import { P as Ye, R as Qe } from "./index-C1sQehbP.js";
|
|
10
|
+
import { configureGraph as Ze } from "@yuku123/z-graph-component";
|
|
11
|
+
const Je = [
|
|
12
|
+
{
|
|
13
|
+
title: "配置中心",
|
|
14
|
+
icon: /* @__PURE__ */ e(oe, {}),
|
|
15
|
+
permission: "OPS_CONFIG_VIEW",
|
|
16
|
+
items: [
|
|
17
|
+
{ key: "config-list", label: "配置列表", icon: /* @__PURE__ */ e(D, {}), path: "/config/list" },
|
|
18
|
+
{ key: "config-history", label: "变更历史", icon: /* @__PURE__ */ e(ne, {}), path: "/config/history" },
|
|
19
|
+
{ key: "config-service", label: "服务列表", icon: /* @__PURE__ */ e(N, {}), path: "/config/service" },
|
|
20
|
+
{ key: "config-cluster", label: "集群概览", icon: /* @__PURE__ */ e(f, {}), path: "/config/cluster" },
|
|
21
|
+
{ key: "config-namespace", label: "命名空间", icon: /* @__PURE__ */ e(De, {}), path: "/config/namespace" }
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: "密钥中心",
|
|
26
|
+
icon: /* @__PURE__ */ e(q, {}),
|
|
27
|
+
items: [
|
|
28
|
+
{ key: "mist-secret", label: "密钥管理", icon: /* @__PURE__ */ e(q, {}), path: "/mist/secret" },
|
|
29
|
+
{ key: "mist-app", label: "应用接入", icon: /* @__PURE__ */ e(M, {}), path: "/mist/app" },
|
|
30
|
+
{ key: "mist-acl", label: "密钥授权", icon: /* @__PURE__ */ e(K, {}), path: "/mist/acl" }
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "元数据中心",
|
|
35
|
+
icon: /* @__PURE__ */ e(V, {}),
|
|
36
|
+
items: [
|
|
37
|
+
{ key: "meta-app", label: "应用元数据", icon: /* @__PURE__ */ e(M, {}), path: "/meta/app" },
|
|
38
|
+
{ key: "meta-tenant", label: "租户管理", icon: /* @__PURE__ */ e(J, {}), path: "/meta/tenant" },
|
|
39
|
+
{ key: "meta-dict", label: "数据字典", icon: /* @__PURE__ */ e($, {}), path: "/meta/dict" },
|
|
40
|
+
{ key: "meta-interface", label: "接口台账", icon: /* @__PURE__ */ e(F, {}), path: "/meta/interface" },
|
|
41
|
+
{ key: "meta-private-config", label: "私有配置", icon: /* @__PURE__ */ e(oe, {}), path: "/meta/private-config" },
|
|
42
|
+
{ key: "meta-models", label: "业务模型", icon: /* @__PURE__ */ e(W, {}), path: "/meta/models" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: "消息中心",
|
|
47
|
+
icon: /* @__PURE__ */ e(Ne, {}),
|
|
48
|
+
items: [
|
|
49
|
+
{ key: "msg-inbox", label: "站内信", icon: /* @__PURE__ */ e(ce, {}), path: "/msg/inbox" },
|
|
50
|
+
{ key: "msg-template", label: "消息模板", icon: /* @__PURE__ */ e($, {}), path: "/msg/template" },
|
|
51
|
+
{ key: "msg-delivery", label: "投递日志", icon: /* @__PURE__ */ e(I, {}), path: "/msg/delivery" },
|
|
52
|
+
{ key: "msg-batch", label: "批量任务", icon: /* @__PURE__ */ e(D, {}), path: "/msg/batch" }
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "服务注册",
|
|
57
|
+
icon: /* @__PURE__ */ e(Ce, {}),
|
|
58
|
+
items: [
|
|
59
|
+
{ key: "rpc-service", label: "服务列表", icon: /* @__PURE__ */ e(N, {}), path: "/rpc/service" },
|
|
60
|
+
{ key: "rpc-instance", label: "服务实例", icon: /* @__PURE__ */ e(v, {}), path: "/rpc/instance" }
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: "向量检索",
|
|
65
|
+
icon: /* @__PURE__ */ e(x, {}),
|
|
66
|
+
items: [
|
|
67
|
+
{ key: "vector-collection", label: "向量集合", icon: /* @__PURE__ */ e(le, {}), path: "/vector/collections" },
|
|
68
|
+
{ key: "vector-search", label: "向量检索", icon: /* @__PURE__ */ e(j, {}), path: "/vector/search" },
|
|
69
|
+
{ key: "vector-instance", label: "实例与端口", icon: /* @__PURE__ */ e(v, {}), path: "/vector/instance" }
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
title: "图数据库",
|
|
74
|
+
icon: /* @__PURE__ */ e(V, {}),
|
|
75
|
+
items: [
|
|
76
|
+
{ key: "graph-schema", label: "图 Schema", icon: /* @__PURE__ */ e(le, {}), path: "/graph/schema" },
|
|
77
|
+
{ key: "graph-query", label: "图查询", icon: /* @__PURE__ */ e(Me, {}), path: "/graph/query" },
|
|
78
|
+
{ key: "graph-branches", label: "分支与提交", icon: /* @__PURE__ */ e(Be, {}), path: "/graph/branches" },
|
|
79
|
+
{ key: "graph-instance", label: "实例与端口", icon: /* @__PURE__ */ e(v, {}), path: "/graph/instance" }
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: "网关",
|
|
84
|
+
icon: /* @__PURE__ */ e(F, {}),
|
|
85
|
+
items: [
|
|
86
|
+
{ key: "gw-routes", label: "网关路由", icon: /* @__PURE__ */ e(D, {}), path: "/gw/routes" },
|
|
87
|
+
{ key: "gw-metrics", label: "网关指标", icon: /* @__PURE__ */ e(f, {}), path: "/gw/metrics" },
|
|
88
|
+
{ key: "gw-instance", label: "实例与面", icon: /* @__PURE__ */ e(v, {}), path: "/gw/instance" }
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title: "缓存",
|
|
93
|
+
icon: /* @__PURE__ */ e(x, {}),
|
|
94
|
+
items: [
|
|
95
|
+
{ key: "cache-overview", label: "缓存总览", icon: /* @__PURE__ */ e(M, {}), path: "/cache/overview" },
|
|
96
|
+
{ key: "cache-keys", label: "键浏览", icon: /* @__PURE__ */ e(j, {}), path: "/cache/keys" },
|
|
97
|
+
{ key: "cache-stats", label: "命中率与热键", icon: /* @__PURE__ */ e(f, {}), path: "/cache/stats" },
|
|
98
|
+
{ key: "cache-instance", label: "实例与端口", icon: /* @__PURE__ */ e(v, {}), path: "/cache/instance" }
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: "消息队列",
|
|
103
|
+
icon: /* @__PURE__ */ e(ce, {}),
|
|
104
|
+
items: [
|
|
105
|
+
{ key: "mq-instance", label: "实例与端口", icon: /* @__PURE__ */ e(v, {}), path: "/mq/instance" },
|
|
106
|
+
{ key: "mq-cluster", label: "集群与 Broker", icon: /* @__PURE__ */ e(N, {}), path: "/mq/cluster" },
|
|
107
|
+
{ key: "mq-topics", label: "Topic 列表", icon: /* @__PURE__ */ e(D, {}), path: "/mq/topics" },
|
|
108
|
+
{ key: "mq-broker", label: "Broker 元数据", icon: /* @__PURE__ */ e(Y, {}), path: "/mq/broker" }
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: "知识库",
|
|
113
|
+
icon: /* @__PURE__ */ e(B, {}),
|
|
114
|
+
items: [
|
|
115
|
+
{ key: "kb-workspace", label: "工作空间", icon: /* @__PURE__ */ e(B, {}), path: "/kb/workspaces" },
|
|
116
|
+
{ key: "kb-documents", label: "文档管理", icon: /* @__PURE__ */ e(B, {}), path: "/kb/documents" },
|
|
117
|
+
{ key: "kb-search", label: "知识搜索", icon: /* @__PURE__ */ e(j, {}), path: "/kb/search" }
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: "对象存储",
|
|
122
|
+
icon: /* @__PURE__ */ e(W, {}),
|
|
123
|
+
items: [
|
|
124
|
+
{ key: "oss-buckets", label: "Bucket 列表", icon: /* @__PURE__ */ e(W, {}), path: "/oss/buckets" },
|
|
125
|
+
{ key: "oss-objects", label: "对象浏览", icon: /* @__PURE__ */ e(I, {}), path: "/oss/objects" },
|
|
126
|
+
{ key: "oss-account", label: "访问身份", icon: /* @__PURE__ */ e(q, {}), path: "/oss/account" }
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
title: "调度中心",
|
|
131
|
+
icon: /* @__PURE__ */ e(ze, {}),
|
|
132
|
+
items: [
|
|
133
|
+
{ key: "schedule-jobs", label: "任务列表", icon: /* @__PURE__ */ e(D, {}), path: "/schedule/jobs" },
|
|
134
|
+
{ key: "schedule-group", label: "分组管理", icon: /* @__PURE__ */ e(N, {}), path: "/schedule/group" },
|
|
135
|
+
{ key: "schedule-log", label: "执行日志", icon: /* @__PURE__ */ e(ne, {}), path: "/schedule/log" }
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
title: "脚本中心",
|
|
140
|
+
icon: /* @__PURE__ */ e(R, {}),
|
|
141
|
+
items: [
|
|
142
|
+
{ key: "script-keys", label: "API Key 台账", icon: /* @__PURE__ */ e(q, {}), path: "/script/keys" },
|
|
143
|
+
{ key: "script-monitor", label: "调用监控", icon: /* @__PURE__ */ e(f, {}), path: "/script/monitor" },
|
|
144
|
+
{ key: "script-quota", label: "配额与用量", icon: /* @__PURE__ */ e(Le, {}), path: "/script/quota" },
|
|
145
|
+
{ key: "script-version", label: "脚本版本", icon: /* @__PURE__ */ e(Te, {}), path: "/script/version" },
|
|
146
|
+
{ key: "script-tag", label: "标签治理", icon: /* @__PURE__ */ e(Ee, {}), path: "/script/tag" }
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
], Xe = "_container_7o64f_7", et = "_sidebar_7o64f_17", tt = "_menuList_7o64f_37", at = "_menuGroup_7o64f_44", nt = "_menuGroupHeader_7o64f_49", ot = "_menuGroupHeaderOpen_7o64f_68", ct = "_menuGroupHeaderActive_7o64f_79", lt = "_menuGroupIcon_7o64f_83", st = "_menuGroupLabel_7o64f_92", it = "_menuGroupArrow_7o64f_97", rt = "_menuSubList_7o64f_104", pt = "_menuSubItem_7o64f_111", mt = "_menuSubGroup_7o64f_112", ut = "_menuItemOnPath_7o64f_157", dt = "_menuSubItemPill_7o64f_178", ht = "_menuSubItemActive_7o64f_194", bt = "_menuSubItemIcon_7o64f_204", kt = "_menuSubGroupHeader_7o64f_224", gt = "_menuSubGroupHeaderOpen_7o64f_251", yt = "_menuSubGroupHeaderActive_7o64f_261", _t = "_menuSubGroupLabel_7o64f_278", ft = "_main_7o64f_298", St = "_detailPanel_7o64f_308", At = "_detailHeader_7o64f_318", vt = "_detailIcon_7o64f_325", Pt = "_detailTitle_7o64f_338", Ot = "_detailDesc_7o64f_345", It = "_detailAction_7o64f_352", Gt = "_goBtn_7o64f_357", wt = "_emptyState_7o64f_377", n = {
|
|
150
|
+
container: Xe,
|
|
151
|
+
sidebar: et,
|
|
152
|
+
menuList: tt,
|
|
153
|
+
menuGroup: at,
|
|
154
|
+
menuGroupHeader: nt,
|
|
155
|
+
menuGroupHeaderOpen: ot,
|
|
156
|
+
menuGroupHeaderActive: ct,
|
|
157
|
+
menuGroupIcon: lt,
|
|
158
|
+
menuGroupLabel: st,
|
|
159
|
+
menuGroupArrow: it,
|
|
160
|
+
menuSubList: rt,
|
|
161
|
+
menuSubItem: pt,
|
|
162
|
+
menuSubGroup: mt,
|
|
163
|
+
menuItemOnPath: ut,
|
|
164
|
+
menuSubItemPill: dt,
|
|
165
|
+
menuSubItemActive: ht,
|
|
166
|
+
menuSubItemIcon: bt,
|
|
167
|
+
menuSubGroupHeader: kt,
|
|
168
|
+
menuSubGroupHeaderOpen: gt,
|
|
169
|
+
menuSubGroupHeaderActive: yt,
|
|
170
|
+
menuSubGroupLabel: _t,
|
|
171
|
+
main: ft,
|
|
172
|
+
detailPanel: St,
|
|
173
|
+
detailHeader: At,
|
|
174
|
+
detailIcon: vt,
|
|
175
|
+
detailTitle: Pt,
|
|
176
|
+
detailDesc: Ot,
|
|
177
|
+
detailAction: It,
|
|
178
|
+
goBtn: Gt,
|
|
179
|
+
emptyState: wt
|
|
180
|
+
};
|
|
181
|
+
function C(a) {
|
|
182
|
+
return a.flatMap((s) => [s, ...C(s.children ?? [])]);
|
|
183
|
+
}
|
|
184
|
+
const Dt = {
|
|
185
|
+
title: "测试中心",
|
|
186
|
+
icon: /* @__PURE__ */ e(f, {}),
|
|
187
|
+
// 测试 Tab 的入口权限点 (顶栏 test mode 同码)。4A 普通用户角色 USER 持有 TEST_ENTRY
|
|
188
|
+
// ⇒ 全员可见; 未绑测试角色的账号看不到这一组。
|
|
189
|
+
permission: "TEST_ENTRY",
|
|
190
|
+
items: [
|
|
191
|
+
{
|
|
192
|
+
key: "test-dashboard",
|
|
193
|
+
label: "测试总览",
|
|
194
|
+
icon: /* @__PURE__ */ e(f, {}),
|
|
195
|
+
path: "/test/qa/dashboard",
|
|
196
|
+
desc: "测试统计、趋势与套件健康度"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
key: "test-design",
|
|
200
|
+
label: "用例与编排",
|
|
201
|
+
icon: /* @__PURE__ */ e(I, {}),
|
|
202
|
+
children: [
|
|
203
|
+
{
|
|
204
|
+
key: "test-case",
|
|
205
|
+
label: "测试用例",
|
|
206
|
+
icon: /* @__PURE__ */ e(I, {}),
|
|
207
|
+
path: "/test/qa/cases",
|
|
208
|
+
desc: "接口用例与断言模板"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
key: "test-suite",
|
|
212
|
+
label: "测试套件",
|
|
213
|
+
icon: /* @__PURE__ */ e(N, {}),
|
|
214
|
+
path: "/test/qa/suites",
|
|
215
|
+
desc: "步骤编排与变量传递"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
key: "test-plan",
|
|
219
|
+
label: "测试计划",
|
|
220
|
+
icon: /* @__PURE__ */ e(fe, {}),
|
|
221
|
+
path: "/test/qa/plans",
|
|
222
|
+
desc: "套件组合与环境绑定"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
key: "test-exec",
|
|
228
|
+
label: "执行与调度",
|
|
229
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
230
|
+
children: [
|
|
231
|
+
{
|
|
232
|
+
key: "test-run",
|
|
233
|
+
label: "执行记录",
|
|
234
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
235
|
+
path: "/test/qa/runs",
|
|
236
|
+
desc: "执行触发、状态与报告"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
key: "test-schedule",
|
|
240
|
+
label: "定时调度",
|
|
241
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
242
|
+
path: "/test/qa/schedules",
|
|
243
|
+
desc: "cron 定时执行"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
key: "test-e2e",
|
|
247
|
+
label: "E2E 测试",
|
|
248
|
+
icon: /* @__PURE__ */ e(_e, {}),
|
|
249
|
+
path: "/test/qa/e2e",
|
|
250
|
+
desc: "浏览器自动化测试"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
key: "test-support",
|
|
256
|
+
label: "环境与工具",
|
|
257
|
+
icon: /* @__PURE__ */ e(Q, {}),
|
|
258
|
+
children: [
|
|
259
|
+
{
|
|
260
|
+
key: "test-env",
|
|
261
|
+
label: "环境管理",
|
|
262
|
+
icon: /* @__PURE__ */ e(Q, {}),
|
|
263
|
+
path: "/test/qa/envs",
|
|
264
|
+
desc: "多环境变量管理"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
key: "test-mock",
|
|
268
|
+
label: "Mock 平台",
|
|
269
|
+
icon: /* @__PURE__ */ e(x, {}),
|
|
270
|
+
path: "/test/mock",
|
|
271
|
+
desc: "API Mock 服务管理"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
key: "test-eval",
|
|
277
|
+
label: "智能测评",
|
|
278
|
+
icon: /* @__PURE__ */ e(pe, {}),
|
|
279
|
+
children: [
|
|
280
|
+
{
|
|
281
|
+
key: "test-eval-start",
|
|
282
|
+
label: "发起测评",
|
|
283
|
+
icon: /* @__PURE__ */ e(f, {}),
|
|
284
|
+
path: "/test/evaluation/start",
|
|
285
|
+
desc: "Agent 质量测评"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
key: "test-eval-schedule",
|
|
289
|
+
label: "自动测评",
|
|
290
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
291
|
+
path: "/test/evaluation/schedule",
|
|
292
|
+
desc: "定时批量测评"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
key: "test-eval-group",
|
|
296
|
+
label: "群聊评测",
|
|
297
|
+
icon: /* @__PURE__ */ e(J, {}),
|
|
298
|
+
path: "/test/evaluation/group",
|
|
299
|
+
desc: "群聊场景评测"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
key: "test-eval-report",
|
|
303
|
+
label: "分析报告",
|
|
304
|
+
icon: /* @__PURE__ */ e(pe, {}),
|
|
305
|
+
path: "/test/evaluation/report",
|
|
306
|
+
desc: "测评结果分析"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
};
|
|
312
|
+
function Nt(a) {
|
|
313
|
+
const s = Se(a.children ?? []), p = {
|
|
314
|
+
key: `operation-${a.key}`,
|
|
315
|
+
label: a.label,
|
|
316
|
+
icon: a.icon ?? /* @__PURE__ */ e(xe, {}),
|
|
317
|
+
permission: a.permission
|
|
318
|
+
};
|
|
319
|
+
return s.length === 0 ? { ...p, path: `/operation/${a.key}` } : {
|
|
320
|
+
...p,
|
|
321
|
+
children: s.map((b) => ({
|
|
322
|
+
key: `operation-${b.key}`,
|
|
323
|
+
label: b.label,
|
|
324
|
+
path: `/operation/${b.key}`,
|
|
325
|
+
permission: b.permission
|
|
326
|
+
}))
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
const Ct = {
|
|
330
|
+
title: "协作管理",
|
|
331
|
+
icon: /* @__PURE__ */ e(J, {}),
|
|
332
|
+
permission: "ADMIN_ENTRY",
|
|
333
|
+
items: Ke.map(Nt)
|
|
334
|
+
}, Mt = {
|
|
335
|
+
title: "基础服务",
|
|
336
|
+
icon: /* @__PURE__ */ e(x, {}),
|
|
337
|
+
items: Je.map((a) => ({
|
|
338
|
+
key: `mw-${a.title}`,
|
|
339
|
+
label: a.title,
|
|
340
|
+
icon: a.icon,
|
|
341
|
+
permission: a.permission,
|
|
342
|
+
children: a.items.map((s) => ({
|
|
343
|
+
key: s.key,
|
|
344
|
+
label: s.label,
|
|
345
|
+
path: s.path
|
|
346
|
+
}))
|
|
347
|
+
}))
|
|
348
|
+
}, Ae = [
|
|
349
|
+
{
|
|
350
|
+
title: "认证与权限",
|
|
351
|
+
icon: /* @__PURE__ */ e(K, {}),
|
|
352
|
+
// 4A 授权中心自身的资源管理动作 (账号/角色/应用/租户/组织/权限分配)
|
|
353
|
+
// ⇒ 4A 权限管理域 PERMISSION_MANAGE。普通用户角色 USER 不含该码,
|
|
354
|
+
// 之前照样能点进这些页面 (进去就是 403 / 空白) —— 现在入口先收敛。
|
|
355
|
+
permission: "PERMISSION_MANAGE",
|
|
356
|
+
items: [
|
|
357
|
+
{
|
|
358
|
+
key: "4a-account",
|
|
359
|
+
label: "账号管理",
|
|
360
|
+
icon: /* @__PURE__ */ e(qe, {}),
|
|
361
|
+
path: "/ctc/4a/account",
|
|
362
|
+
desc: "用户账号创建、编辑与状态管理"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
key: "4a-role",
|
|
366
|
+
label: "角色管理",
|
|
367
|
+
icon: /* @__PURE__ */ e(K, {}),
|
|
368
|
+
path: "/ctc/4a/role",
|
|
369
|
+
desc: "角色定义与权限分配"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
key: "4a-app",
|
|
373
|
+
label: "应用管理",
|
|
374
|
+
icon: /* @__PURE__ */ e(M, {}),
|
|
375
|
+
path: "/ctc/4a/application",
|
|
376
|
+
desc: "应用注册、资源与权限配置"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
key: "4a-tenant",
|
|
380
|
+
label: "租户管理",
|
|
381
|
+
icon: /* @__PURE__ */ e(Q, {}),
|
|
382
|
+
path: "/ctc/4a/tenant",
|
|
383
|
+
desc: "多租户管理与配置"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
key: "4a-org",
|
|
387
|
+
label: "组织管理",
|
|
388
|
+
icon: /* @__PURE__ */ e(Y, {}),
|
|
389
|
+
path: "/ctc/4a/org",
|
|
390
|
+
desc: "组织架构与部门管理"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
key: "4a-permission",
|
|
394
|
+
label: "权限管理",
|
|
395
|
+
icon: /* @__PURE__ */ e(re, {}),
|
|
396
|
+
path: "/ctc/4a/permission",
|
|
397
|
+
desc: "细粒度权限控制与审批"
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
title: "开发与工具",
|
|
403
|
+
icon: /* @__PURE__ */ e(R, {}),
|
|
404
|
+
items: [
|
|
405
|
+
{
|
|
406
|
+
key: "script",
|
|
407
|
+
label: "脚本中心",
|
|
408
|
+
icon: /* @__PURE__ */ e(R, {}),
|
|
409
|
+
path: "/script/manage",
|
|
410
|
+
desc: "DSL 脚本注册与执行"
|
|
411
|
+
},
|
|
412
|
+
{ key: "lc", label: "研发中心", icon: /* @__PURE__ */ e(R, {}), path: "/lc/apps", desc: "低代码应用开发与管理" },
|
|
413
|
+
{
|
|
414
|
+
key: "tool-curl",
|
|
415
|
+
label: "短链管理",
|
|
416
|
+
icon: /* @__PURE__ */ e(He, {}),
|
|
417
|
+
path: "/z-tool/curl",
|
|
418
|
+
desc: "短链接创建与管理"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
key: "tool-webide",
|
|
422
|
+
label: "WebIDE 容器",
|
|
423
|
+
icon: /* @__PURE__ */ e(_e, {}),
|
|
424
|
+
path: "/z-tool/webide",
|
|
425
|
+
desc: "在线 IDE 代码编辑器"
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
title: "产品认知",
|
|
431
|
+
icon: /* @__PURE__ */ e($, {}),
|
|
432
|
+
items: [
|
|
433
|
+
{
|
|
434
|
+
// 工坊是「一个面板干完产品业务开发」的主入口:对话 + 小册子 + 产物 + 台账。
|
|
435
|
+
// 它和小册子库原先只注册在 z-product-component 的 menuItems 里,
|
|
436
|
+
// 而主壳导航用的是这份写死的清单 ⇒ 面板做好了却在界面上进不去。
|
|
437
|
+
key: "product-atelier",
|
|
438
|
+
label: "产品工坊",
|
|
439
|
+
icon: /* @__PURE__ */ e(Re, {}),
|
|
440
|
+
path: "/z-product/atelier",
|
|
441
|
+
desc: "在一个面板里对话、沉淀产品稿与设计稿、渲染演示稿、建工程落地"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
key: "product-booklets",
|
|
445
|
+
label: "小册子库",
|
|
446
|
+
icon: /* @__PURE__ */ e(B, {}),
|
|
447
|
+
path: "/z-product/booklets",
|
|
448
|
+
desc: "可被对话引用的方法、清单与规范"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
key: "product-board",
|
|
452
|
+
label: "产品全景",
|
|
453
|
+
icon: /* @__PURE__ */ e(f, {}),
|
|
454
|
+
path: "/z-product/board",
|
|
455
|
+
desc: "业务/产品/研发三线可见的全量认知(术语·模型·链路·设计稿·缺口)"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
key: "product-blueprint",
|
|
459
|
+
label: "产品蓝图",
|
|
460
|
+
icon: /* @__PURE__ */ e($, {}),
|
|
461
|
+
path: "/z-product/blueprint",
|
|
462
|
+
desc: "AI 的唯一入口:后端实时投影的全量认知快照"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
key: "product-glossary",
|
|
466
|
+
label: "统一语言",
|
|
467
|
+
icon: /* @__PURE__ */ e(B, {}),
|
|
468
|
+
path: "/z-product/glossary",
|
|
469
|
+
desc: "术语仲裁表:标准词/别名/适用范围/反例"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
key: "product-concept",
|
|
473
|
+
label: "领域模型",
|
|
474
|
+
icon: /* @__PURE__ */ e(V, {}),
|
|
475
|
+
path: "/z-product/concept-model",
|
|
476
|
+
desc: "概念与关系画布(四种投影)"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
key: "product-scenarios",
|
|
480
|
+
label: "用户链路",
|
|
481
|
+
icon: /* @__PURE__ */ e(Y, {}),
|
|
482
|
+
path: "/z-product/scenarios",
|
|
483
|
+
desc: "端到端场景:步骤引用领域概念"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
key: "product-designs",
|
|
487
|
+
label: "设计稿 ⇄ 模型",
|
|
488
|
+
icon: /* @__PURE__ */ e($e, {}),
|
|
489
|
+
path: "/z-product/designs",
|
|
490
|
+
desc: "设计与认知的双向收敛回路"
|
|
491
|
+
}
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
title: "业务流程",
|
|
496
|
+
icon: /* @__PURE__ */ e(I, {}),
|
|
497
|
+
items: [
|
|
498
|
+
{
|
|
499
|
+
key: "workflow",
|
|
500
|
+
label: "流程中心",
|
|
501
|
+
icon: /* @__PURE__ */ e(re, {}),
|
|
502
|
+
path: "/workflow/dashboard",
|
|
503
|
+
desc: "工作流定义与审批管理"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
key: "task",
|
|
507
|
+
label: "任务中心",
|
|
508
|
+
icon: /* @__PURE__ */ e(I, {}),
|
|
509
|
+
path: "/task/dashboard",
|
|
510
|
+
desc: "任务创建、分配与跟踪"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
key: "subscribe",
|
|
514
|
+
label: "订阅中心",
|
|
515
|
+
icon: /* @__PURE__ */ e(F, {}),
|
|
516
|
+
path: "/subscribe/list",
|
|
517
|
+
desc: "第三方数据订阅与拉取"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
key: "project",
|
|
521
|
+
label: "项目中心",
|
|
522
|
+
icon: /* @__PURE__ */ e(fe, {}),
|
|
523
|
+
path: "/project/list",
|
|
524
|
+
desc: "项目创建与进度管理"
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
Ct,
|
|
529
|
+
Mt
|
|
530
|
+
], Bt = [...Ae, Dt];
|
|
531
|
+
function zt({
|
|
532
|
+
activePathOverride: a,
|
|
533
|
+
menuOnly: s = !1,
|
|
534
|
+
visibleGroups: p,
|
|
535
|
+
sidebarWidth: b
|
|
536
|
+
} = {}) {
|
|
537
|
+
const h = ye(), { pathname: z } = Z(), g = O(
|
|
538
|
+
() => p ? Bt.filter((o) => p.includes(o.title)) : Ae,
|
|
539
|
+
[p]
|
|
540
|
+
), L = me((o) => o.permissionState), T = me((o) => o.currentUser), y = O(
|
|
541
|
+
() => L === "failed" ? g : Ue(g, T),
|
|
542
|
+
[g, T, L]
|
|
543
|
+
), [U, E] = ae(/* @__PURE__ */ new Set()), [G, k] = ae(/* @__PURE__ */ new Set()), m = O(() => {
|
|
544
|
+
var u;
|
|
545
|
+
const o = a ?? z;
|
|
546
|
+
return ((u = y.flatMap((l) => C(l.items)).find(
|
|
547
|
+
(l) => l.path === o
|
|
548
|
+
)) == null ? void 0 : u.key) ?? null;
|
|
549
|
+
}, [a, z, y]);
|
|
550
|
+
Ie(() => {
|
|
551
|
+
m && y.forEach((o) => {
|
|
552
|
+
const u = o.items.find(
|
|
553
|
+
(l) => l.key === m || C([l]).some((i) => i.key === m)
|
|
554
|
+
);
|
|
555
|
+
u && (E(
|
|
556
|
+
(l) => l.has(o.title) ? l : new Set(l).add(o.title)
|
|
557
|
+
), u.children && k(
|
|
558
|
+
(l) => l.has(u.key) ? l : new Set(l).add(u.key)
|
|
559
|
+
));
|
|
560
|
+
});
|
|
561
|
+
}, [m, y]);
|
|
562
|
+
const ve = (o) => {
|
|
563
|
+
E((u) => {
|
|
564
|
+
const l = new Set(u);
|
|
565
|
+
return l.has(o) ? l.delete(o) : l.add(o), l;
|
|
566
|
+
});
|
|
567
|
+
}, Pe = (o) => {
|
|
568
|
+
k((u) => {
|
|
569
|
+
const l = new Set(u);
|
|
570
|
+
return l.has(o) ? l.delete(o) : l.add(o), l;
|
|
571
|
+
});
|
|
572
|
+
}, X = (o) => {
|
|
573
|
+
o.path && h(o.path);
|
|
574
|
+
}, A = y.flatMap((o) => C(o.items)).find(
|
|
575
|
+
(o) => o.key === m
|
|
576
|
+
);
|
|
577
|
+
return /* @__PURE__ */ r("div", { className: n.container, children: [
|
|
578
|
+
/* @__PURE__ */ r(
|
|
579
|
+
"aside",
|
|
580
|
+
{
|
|
581
|
+
className: n.sidebar,
|
|
582
|
+
style: b ? { width: b, minWidth: b } : void 0,
|
|
583
|
+
children: [
|
|
584
|
+
/* @__PURE__ */ e(We, {}),
|
|
585
|
+
/* @__PURE__ */ e("nav", { className: n.menuList, children: y.map((o) => {
|
|
586
|
+
const u = U.has(o.title), l = m ? o.items.findIndex(
|
|
587
|
+
(i) => i.key === m || C([i]).some((w) => w.key === m)
|
|
588
|
+
) : -1;
|
|
589
|
+
return /* @__PURE__ */ r("div", { className: n.menuGroup, children: [
|
|
590
|
+
/* @__PURE__ */ r(
|
|
591
|
+
"div",
|
|
592
|
+
{
|
|
593
|
+
className: `${n.menuGroupHeader} ${u ? n.menuGroupHeaderOpen : ""} ${l >= 0 ? n.menuGroupHeaderActive : ""}`,
|
|
594
|
+
onClick: () => ve(o.title),
|
|
595
|
+
children: [
|
|
596
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: o.icon }),
|
|
597
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupLabel, children: o.title }),
|
|
598
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: u ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(ie, {}) })
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
),
|
|
602
|
+
u && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: o.items.map((i, w) => {
|
|
603
|
+
const ee = l >= 0 && w <= l;
|
|
604
|
+
if (!i.children)
|
|
605
|
+
return /* @__PURE__ */ e(
|
|
606
|
+
"li",
|
|
607
|
+
{
|
|
608
|
+
className: `${n.menuSubItem} ${ee ? n.menuItemOnPath : ""} ${m === i.key ? n.menuSubItemActive : ""}`,
|
|
609
|
+
onClick: () => X(i),
|
|
610
|
+
children: /* @__PURE__ */ r("div", { className: n.menuSubItemPill, children: [
|
|
611
|
+
i.icon ? /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: i.icon }) : null,
|
|
612
|
+
/* @__PURE__ */ e("span", { children: i.label })
|
|
613
|
+
] })
|
|
614
|
+
},
|
|
615
|
+
i.key
|
|
616
|
+
);
|
|
617
|
+
const te = l === w ? i.children.findIndex((_) => _.key === m) : -1;
|
|
618
|
+
return /* @__PURE__ */ r(
|
|
619
|
+
"li",
|
|
620
|
+
{
|
|
621
|
+
className: `${n.menuSubGroup} ${ee ? n.menuItemOnPath : ""}`,
|
|
622
|
+
children: [
|
|
623
|
+
/* @__PURE__ */ r(
|
|
624
|
+
"div",
|
|
625
|
+
{
|
|
626
|
+
className: `${n.menuSubGroupHeader} ${G.has(i.key) ? n.menuSubGroupHeaderOpen : ""} ${l === w ? n.menuSubGroupHeaderActive : ""}`,
|
|
627
|
+
onClick: () => Pe(i.key),
|
|
628
|
+
children: [
|
|
629
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupIcon, children: i.icon }),
|
|
630
|
+
/* @__PURE__ */ e("span", { className: n.menuSubGroupLabel, children: i.label }),
|
|
631
|
+
/* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: G.has(i.key) ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(ie, {}) })
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
),
|
|
635
|
+
G.has(i.key) && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: i.children.map((_, Oe) => /* @__PURE__ */ e(
|
|
636
|
+
"li",
|
|
637
|
+
{
|
|
638
|
+
className: `${n.menuSubItem} ${te >= 0 && Oe <= te ? n.menuItemOnPath : ""} ${m === _.key ? n.menuSubItemActive : ""}`,
|
|
639
|
+
onClick: () => X(_),
|
|
640
|
+
children: /* @__PURE__ */ r("div", { className: n.menuSubItemPill, children: [
|
|
641
|
+
_.icon ? /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: _.icon }) : null,
|
|
642
|
+
/* @__PURE__ */ e("span", { children: _.label })
|
|
643
|
+
] })
|
|
644
|
+
},
|
|
645
|
+
_.key
|
|
646
|
+
)) })
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
i.key
|
|
650
|
+
);
|
|
651
|
+
}) })
|
|
652
|
+
] }, o.title);
|
|
653
|
+
}) })
|
|
654
|
+
]
|
|
655
|
+
}
|
|
656
|
+
),
|
|
657
|
+
s ? null : /* @__PURE__ */ e("main", { className: n.main, children: A ? /* @__PURE__ */ r("div", { className: n.detailPanel, children: [
|
|
658
|
+
/* @__PURE__ */ r("div", { className: n.detailHeader, children: [
|
|
659
|
+
/* @__PURE__ */ e("div", { className: n.detailIcon, children: A.icon }),
|
|
660
|
+
/* @__PURE__ */ r("div", { children: [
|
|
661
|
+
/* @__PURE__ */ e("h2", { className: n.detailTitle, children: A.label }),
|
|
662
|
+
/* @__PURE__ */ e("p", { className: n.detailDesc, children: A.desc })
|
|
663
|
+
] })
|
|
664
|
+
] }),
|
|
665
|
+
/* @__PURE__ */ e("div", { className: n.detailAction, children: /* @__PURE__ */ r(
|
|
666
|
+
"button",
|
|
667
|
+
{
|
|
668
|
+
className: n.goBtn,
|
|
669
|
+
onClick: () => h(A.path),
|
|
670
|
+
children: [
|
|
671
|
+
"进入 ",
|
|
672
|
+
A.label
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
) })
|
|
676
|
+
] }) : /* @__PURE__ */ r("div", { className: n.emptyState, children: [
|
|
677
|
+
/* @__PURE__ */ e(M, { style: { fontSize: 48, color: "#ccc" } }),
|
|
678
|
+
/* @__PURE__ */ e("p", { children: "点击左侧菜单进入对应功能模块" })
|
|
679
|
+
] }) })
|
|
680
|
+
] });
|
|
681
|
+
}
|
|
682
|
+
const Lt = "/api/graph";
|
|
683
|
+
let ue = !1;
|
|
684
|
+
function Tt() {
|
|
685
|
+
ue || (ue = !0, Ze(Lt));
|
|
686
|
+
}
|
|
687
|
+
const Et = "_shellWrap_11zl4_6", qt = "_shell_11zl4_6", Ht = "_dragBar_11zl4_31", Rt = "_dragBarActive_11zl4_52", $t = "_main_11zl4_56", xt = "_productBanner_11zl4_68", Ut = "_productBannerLabel_11zl4_80", Wt = "_productBannerName_11zl4_86", jt = "_productBannerCode_11zl4_94", Kt = "_productBannerBack_11zl4_99", Ft = "_empty_11zl4_116", Vt = "_emptyIcon_11zl4_126", Yt = "_emptyText_11zl4_131", d = {
|
|
688
|
+
shellWrap: Et,
|
|
689
|
+
shell: qt,
|
|
690
|
+
dragBar: Ht,
|
|
691
|
+
dragBarActive: Rt,
|
|
692
|
+
main: $t,
|
|
693
|
+
productBanner: xt,
|
|
694
|
+
productBannerLabel: Ut,
|
|
695
|
+
productBannerName: Wt,
|
|
696
|
+
productBannerCode: jt,
|
|
697
|
+
productBannerBack: Kt,
|
|
698
|
+
empty: Ft,
|
|
699
|
+
emptyIcon: Vt,
|
|
700
|
+
emptyText: Yt
|
|
701
|
+
};
|
|
702
|
+
je();
|
|
703
|
+
const t = (a, s) => S(() => a().then((p) => ({ default: p[s] }))), Qt = t(() => import("@yuku123/z-ctc-component"), "AccountManagement"), Zt = t(() => import("@yuku123/z-ctc-component"), "ApplicationManagement"), Jt = t(() => import("@yuku123/z-ctc-component"), "AuditPage"), Xt = t(() => import("@yuku123/z-ctc-component"), "CtcOverview"), ea = t(() => import("@yuku123/z-ctc-component"), "DictPage"), ta = t(() => import("@yuku123/z-ctc-component"), "OrgPage"), aa = t(() => import("@yuku123/z-ctc-component"), "PermissionManagement"), na = t(() => import("@yuku123/z-ctc-component"), "RoleManagement"), de = t(() => import("@yuku123/z-ctc-component"), "SurlManagement"), oa = t(() => import("@yuku123/z-ctc-component"), "TenantManagement"), ca = t(() => import("@yuku123/z-agent-component"), "AgentAppList"), la = t(() => import("@yuku123/z-agent-component"), "AgentDashboard"), sa = t(() => import("@yuku123/z-agent-component"), "AkManage"), ia = t(() => import("@yuku123/z-agent-component"), "BucketList"), ra = t(() => import("@yuku123/z-agent-component"), "LlmManage"), pa = t(() => import("@yuku123/z-agent-component"), "McpPage"), ma = t(() => import("@yuku123/z-agent-component"), "ObjectBrowser"), ua = t(() => import("@yuku123/z-agent-component"), "ScriptCenterPage"), P = t(() => import("@yuku123/z-agent-component"), "ScriptProductizationPage"), da = t(() => import("@yuku123/z-agent-component"), "SkillMarket"), ha = t(() => import("./index-Dy5HesOM.js"), "AgentTeamIM"), he = t(() => import("./index-Dy5HesOM.js"), "DebugPlayground"), ba = t(() => import("./index-Dy5HesOM.js"), "Overview"), be = t(() => import("./index-Dy5HesOM.js"), "Webide"), ka = S(() => import("./OnboardingPage-BoYhlfWE.js")), ga = S(() => import("./InvitationManagementPage-Bbl_HXlG.js")), ya = t(() => import("@yuku123/z-config-component"), "ConfigApp"), _a = t(() => import("@yuku123/z-task-component"), "TaskApp"), fa = t(() => import("@yuku123/z-wf-component"), "WorkflowApp"), Sa = t(() => import("@yuku123/z-schedule-component"), "ScheduleApp"), Aa = t(() => import("@yuku123/z-mist-component"), "MistApp"), va = t(() => import("@yuku123/z-meta-component"), "MetaApp"), Pa = t(() => import("@yuku123/z-msg-component"), "MsgApp"), Oa = t(() => import("@yuku123/z-rpc-component"), "RpcApp"), Ia = t(() => import("@yuku123/z-vector-component"), "VectorApp"), Ga = t(() => import("@yuku123/z-graph-component"), "GraphApp"), wa = t(() => import("@yuku123/z-gw-component"), "GwApp"), Da = t(() => import("@yuku123/z-cache-component"), "CacheApp"), Na = t(() => import("@yuku123/z-mq-component"), "MqApp"), Ca = t(() => import("@yuku123/z-oss-component"), "OssApp"), Ma = t(() => import("@yuku123/z-cognition-kb-component"), "KbApp"), Ba = S(() => import("./ComponentDoc-C1yrRq6Y.js").then((a) => a.co)), za = S(() => import("./ComponentDoc-C1yrRq6Y.js").then((a) => a.cp)), La = t(() => import("@yuku123/z-config-component"), "ComponentDocPage"), Ta = t(() => import("@yuku123/z-task-component"), "ComponentDocPage"), Ea = t(() => import("@yuku123/z-wf-component"), "ComponentDocPage"), qa = t(() => import("@yuku123/z-schedule-component"), "ComponentDocPage"), Ha = t(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), Ra = t(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), $a = t(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), xa = t(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), Ua = t(() => import("@yuku123/z-cognition-kb-component"), "ComponentDocPage"), Wa = t(() => import("@yuku123/z-product-component"), "ComponentDocPage"), ja = t(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), Ka = t(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), Fa = t(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), Va = t(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), Ya = t(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), Qa = t(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), Za = t(() => import("@yuku123/z-ctc-component"), "ComponentDocPage"), Ja = t(() => import("@yuku123/z-agent-component"), "ComponentDocPage"), Xa = t(() => import("@yuku123/z-lc-component"), "ComponentDocPage"), en = t(() => import("@yuku123/z-qa-component"), "ComponentDocPage"), tn = S(() => import("./AdminModuleContent-DjEqlai_.js"));
|
|
704
|
+
function an() {
|
|
705
|
+
return Tt(), /* @__PURE__ */ e(Ga, {});
|
|
706
|
+
}
|
|
707
|
+
const nn = S(() => import("./ComponentDoc-C1yrRq6Y.js").then((a) => a.cn)), ke = S(() => import("@yuku123/z-qa-component"));
|
|
708
|
+
function on() {
|
|
709
|
+
return /* @__PURE__ */ r("div", { className: d.empty, children: [
|
|
710
|
+
/* @__PURE__ */ e("div", { className: d.emptyIcon, children: "📋" }),
|
|
711
|
+
/* @__PURE__ */ e("div", { className: d.emptyText, children: "请从左侧菜单选择模块" })
|
|
712
|
+
] });
|
|
713
|
+
}
|
|
714
|
+
function cn() {
|
|
715
|
+
const { pathname: a } = Z();
|
|
716
|
+
return /* @__PURE__ */ e(c, { to: a.replace(/^\/product/, "/z-product"), replace: !0 });
|
|
717
|
+
}
|
|
718
|
+
const ln = [
|
|
719
|
+
// ─── 顶层 / 概览 ───
|
|
720
|
+
{ path: "/overview", element: /* @__PURE__ */ e(ba, {}) },
|
|
721
|
+
// ─── 4A 中心 (/ctc/*) ───
|
|
722
|
+
{ path: "/ctc", element: /* @__PURE__ */ e(c, { to: "/ctc/4a/account", replace: !0 }) },
|
|
723
|
+
{ path: "/ctc/4a/account", element: /* @__PURE__ */ e(Qt, {}) },
|
|
724
|
+
{ path: "/ctc/4a/role", element: /* @__PURE__ */ e(na, {}) },
|
|
725
|
+
{ path: "/ctc/4a/application", element: /* @__PURE__ */ e(Zt, {}) },
|
|
726
|
+
{ path: "/ctc/4a/tenant", element: /* @__PURE__ */ e(oa, {}) },
|
|
727
|
+
{ path: "/ctc/4a/org", element: /* @__PURE__ */ e(ta, {}) },
|
|
728
|
+
{ path: "/ctc/4a/permission", element: /* @__PURE__ */ e(aa, {}) },
|
|
729
|
+
{ path: "/ctc/4a/surl", element: /* @__PURE__ */ e(de, {}) },
|
|
730
|
+
{ path: "/ctc/dict", element: /* @__PURE__ */ e(ea, {}) },
|
|
731
|
+
{ path: "/ctc/overview", element: /* @__PURE__ */ e(Xt, {}) },
|
|
732
|
+
{ path: "/ctc/audit", element: /* @__PURE__ */ e(Jt, {}) },
|
|
733
|
+
{ path: "/ctc/webide", element: /* @__PURE__ */ e(be, {}) },
|
|
734
|
+
{ path: "/ctc/agent-team", element: /* @__PURE__ */ e(ha, {}) },
|
|
735
|
+
{ path: "/ctc/invitation", element: /* @__PURE__ */ e(ga, {}) },
|
|
736
|
+
{ path: "/onboarding", element: /* @__PURE__ */ e(ka, {}) },
|
|
737
|
+
// ─── 智能中心 (/ai/*) ───
|
|
738
|
+
{ path: "/ai", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
|
|
739
|
+
{ path: "/ai/agent", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
|
|
740
|
+
{ path: "/ai/agent/app", element: /* @__PURE__ */ e(ca, {}) },
|
|
741
|
+
{ path: "/ai/llm", element: /* @__PURE__ */ e(ra, {}) },
|
|
742
|
+
{ path: "/ai/llm/provider", element: /* @__PURE__ */ e(c, { to: "/ai/llm", replace: !0 }) },
|
|
743
|
+
{ path: "/ai/llm/model", element: /* @__PURE__ */ e(c, { to: "/ai/llm", replace: !0 }) },
|
|
744
|
+
{ path: "/ai/usage", element: /* @__PURE__ */ e(c, { to: "/ai/llm", replace: !0 }) },
|
|
745
|
+
{ path: "/ai/ak", element: /* @__PURE__ */ e(sa, {}) },
|
|
746
|
+
{ path: "/ai/mcp", element: /* @__PURE__ */ e(pa, {}) },
|
|
747
|
+
{ path: "/ai/skill", element: /* @__PURE__ */ e(da, {}) },
|
|
748
|
+
{ path: "/ai/oss", element: /* @__PURE__ */ e(c, { to: "/ai/oss/bucket", replace: !0 }) },
|
|
749
|
+
{ path: "/ai/oss/bucket", element: /* @__PURE__ */ e(ia, {}) },
|
|
750
|
+
{ path: "/ai/oss/bucket/:bucketName", element: /* @__PURE__ */ e(ma, {}) },
|
|
751
|
+
{ path: "/ai/trace", element: /* @__PURE__ */ e(he, {}) },
|
|
752
|
+
{ path: "/ai/trace/debug", element: /* @__PURE__ */ e(he, {}) },
|
|
753
|
+
{ path: "/ai/dashboard", element: /* @__PURE__ */ e(la, {}) },
|
|
754
|
+
// 多 Agent 实例 / 模板市场已下线 (2026-10-22): 模板并入 Agent 应用页,
|
|
755
|
+
// 旧深链重定向, 别再回到独立菜单
|
|
756
|
+
{ path: "/ai/template", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
|
|
757
|
+
{ path: "/ai/agent-instance", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
|
|
758
|
+
{ path: "/ai/agent/instances", element: /* @__PURE__ */ e(c, { to: "/ai/agent/app", replace: !0 }) },
|
|
759
|
+
// ─── 配置中心 ───
|
|
760
|
+
{ path: "/config/*", element: /* @__PURE__ */ e(ya, {}) },
|
|
761
|
+
// ─── 任务中心 ───
|
|
762
|
+
// 模块根路径要重定向到默认页:通配 /task/* 匹配不到裸 /task(matchPattern 要求
|
|
763
|
+
// 前缀带斜杠),落到 SystemShellEmpty 就是一句"请从左侧菜单选择模块"的空壳。
|
|
764
|
+
{ path: "/task", element: /* @__PURE__ */ e(c, { to: "/task/dashboard", replace: !0 }) },
|
|
765
|
+
{ path: "/task/*", element: /* @__PURE__ */ e(_a, {}) },
|
|
766
|
+
// ─── 流程中心 ───
|
|
767
|
+
{ path: "/workflow", element: /* @__PURE__ */ e(c, { to: "/workflow/dashboard", replace: !0 }) },
|
|
768
|
+
{ path: "/workflow/*", element: /* @__PURE__ */ e(fa, {}) },
|
|
769
|
+
// ─── 调度中心 ───
|
|
770
|
+
// 默认页是 jobs:z-schedule-component 的路由只有 jobs / group / log,没有 dashboard。
|
|
771
|
+
{ path: "/schedule", element: /* @__PURE__ */ e(c, { to: "/schedule/jobs", replace: !0 }) },
|
|
772
|
+
{ path: "/schedule/*", element: /* @__PURE__ */ e(Sa, {}) },
|
|
773
|
+
// ─── 密钥中心 ───
|
|
774
|
+
{ path: "/mist/*", element: /* @__PURE__ */ e(Aa, {}) },
|
|
775
|
+
// ─── 中间件(大需求 004)— 2026-11-11 中间件面整并入系统面「基础服务」分组,
|
|
776
|
+
// 系统面成为这批前缀的唯一宿主(原 MiddlewareWorkbench 已删)。菜单在 SystemWorkbench
|
|
777
|
+
// 「基础服务」分组,数据真源 MiddlewareWorkbench/menuData.tsx;前缀口径与
|
|
778
|
+
// businessFace.ts(这些前缀现归系统面)一一对齐。
|
|
779
|
+
{ path: "/meta", element: /* @__PURE__ */ e(c, { to: "/meta/app", replace: !0 }) },
|
|
780
|
+
{ path: "/meta/*", element: /* @__PURE__ */ e(va, {}) },
|
|
781
|
+
{ path: "/msg", element: /* @__PURE__ */ e(c, { to: "/msg/inbox", replace: !0 }) },
|
|
782
|
+
{ path: "/msg/*", element: /* @__PURE__ */ e(Pa, {}) },
|
|
783
|
+
{ path: "/rpc", element: /* @__PURE__ */ e(c, { to: "/rpc/service", replace: !0 }) },
|
|
784
|
+
{ path: "/rpc/*", element: /* @__PURE__ */ e(Oa, {}) },
|
|
785
|
+
// 向量检索:REST 面是内嵌 QdrantRestServer(非 Spring MVC),经 z-opc 的 /api/vector/** 代理出去
|
|
786
|
+
{ path: "/vector", element: /* @__PURE__ */ e(c, { to: "/vector/collections", replace: !0 }) },
|
|
787
|
+
{ path: "/vector/*", element: /* @__PURE__ */ e(Ia, {}) },
|
|
788
|
+
// 图数据库:REST 面是内嵌 GraphControlServer,经 z-opc 的 /api/graph/** 代理出去
|
|
789
|
+
// ⚠ 内嵌端口是 8091 不是 8090:8090 归一个外部进程,且被 BizKnowledgeGraphService 当业务依赖在用
|
|
790
|
+
{ path: "/graph", element: /* @__PURE__ */ e(c, { to: "/graph/schema", replace: !0 }) },
|
|
791
|
+
{ path: "/graph/*", element: /* @__PURE__ */ e(an, {}) },
|
|
792
|
+
// 网关:admin 面是 z-gw-admin 的原生 Spring MVC;页面一律走 z-opc 自己的环回代理 GET /api/gw/**
|
|
793
|
+
{ path: "/gw", element: /* @__PURE__ */ e(c, { to: "/gw/routes", replace: !0 }) },
|
|
794
|
+
{ path: "/gw/*", element: /* @__PURE__ */ e(wa, {}) },
|
|
795
|
+
// 缓存:/api/cache/** 是 CacheProxyController 在 JVM 内读 MemoryStore + 只读命令拼出的结构化 JSON
|
|
796
|
+
{ path: "/cache", element: /* @__PURE__ */ e(c, { to: "/cache/overview", replace: !0 }) },
|
|
797
|
+
{ path: "/cache/*", element: /* @__PURE__ */ e(Da, {}) },
|
|
798
|
+
// 消息队列::9877/:10912 是 z-mq-remoting 的 Netty 私有二进制协议,/api/mq/** 是协议适配器
|
|
799
|
+
{ path: "/mq", element: /* @__PURE__ */ e(c, { to: "/mq/instance", replace: !0 }) },
|
|
800
|
+
{ path: "/mq/*", element: /* @__PURE__ */ e(Na, {}) },
|
|
801
|
+
// 知识库(z-kb):主机侧确定性装配,接口真通(2026-09-25 实测)
|
|
802
|
+
{ path: "/kb", element: /* @__PURE__ */ e(c, { to: "/kb/workspaces", replace: !0 }) },
|
|
803
|
+
{ path: "/kb/*", element: /* @__PURE__ */ e(Ma, {}) },
|
|
804
|
+
// 对象存储(z-oss):走 z-opc 侧 /api/oss-admin/**,不再需要 AK/SK 下发
|
|
805
|
+
{ path: "/oss", element: /* @__PURE__ */ e(c, { to: "/oss/buckets", replace: !0 }) },
|
|
806
|
+
{ path: "/oss/*", element: /* @__PURE__ */ e(Ca, {}) },
|
|
807
|
+
// ─── 订阅中心 ───
|
|
808
|
+
{ path: "/subscribe", element: /* @__PURE__ */ e(c, { to: "/subscribe/list", replace: !0 }) },
|
|
809
|
+
{ path: "/subscribe/*", element: /* @__PURE__ */ e(Ba, {}) },
|
|
810
|
+
// ─── 产品工作台 z-product (2026-10-21 接入) ───
|
|
811
|
+
// /z-product/* 由 z-product 组件自己的 ProductApp 渲染(内部按 manifest 的绝对路径手工匹配,
|
|
812
|
+
// 不用嵌套 <Routes>:这里没有 Route 父上下文,绝对路径不会被再拼一次父前缀)。
|
|
813
|
+
// §14:z-product 的菜单 key / 路由 path 一律带产品名前缀(/z-product/xxx),
|
|
814
|
+
// 避免 /board、/products 这类短路径跟宿主自己的同名路由撞车。
|
|
815
|
+
// 产品域的默认落地页是工坊:它是「一个面板干完产品业务开发」的入口,
|
|
816
|
+
// 全景/蓝图是看板,不是第一动作。
|
|
817
|
+
{ path: "/z-product", element: /* @__PURE__ */ e(c, { to: "/z-product/atelier", replace: !0 }) },
|
|
818
|
+
{ path: "/z-product/*", element: /* @__PURE__ */ e(Ve, { basePath: "/z-product" }) },
|
|
819
|
+
// 旧前缀 /product/* → 新前缀 /z-product/*:§14 前缀化之前的老 URL 仍可达(书签 / 旧分享链接)。
|
|
820
|
+
{ path: "/product", element: /* @__PURE__ */ e(c, { to: "/z-product/atelier", replace: !0 }) },
|
|
821
|
+
{ path: "/product/*", element: /* @__PURE__ */ e(cn, {}) },
|
|
822
|
+
// ─── 项目中心 ───
|
|
823
|
+
{ path: "/project", element: /* @__PURE__ */ e(c, { to: "/project/list", replace: !0 }) },
|
|
824
|
+
{ path: "/project/*", element: /* @__PURE__ */ e(za, {}) },
|
|
825
|
+
// ─── 脚本中心 (/script/*) — FEATURE052 ───
|
|
826
|
+
{ path: "/script", element: /* @__PURE__ */ e(c, { to: "/script/manage", replace: !0 }) },
|
|
827
|
+
{ path: "/script/manage", element: /* @__PURE__ */ e(ua, {}) },
|
|
828
|
+
{ path: "/script/productization", element: /* @__PURE__ */ e(P, {}) },
|
|
829
|
+
// 脚本治理五条(2026-11-11 随中间件面并入):组件自带 5 个 Tab,
|
|
830
|
+
// 按「一个能力一条菜单」把 Tab 键透传成 initialTab,精确路径匹配先于 /script 通配。
|
|
831
|
+
{ path: "/script/keys", element: /* @__PURE__ */ e(P, { initialTab: "apikey" }) },
|
|
832
|
+
{ path: "/script/monitor", element: /* @__PURE__ */ e(P, { initialTab: "monitor" }) },
|
|
833
|
+
{ path: "/script/quota", element: /* @__PURE__ */ e(P, { initialTab: "quota" }) },
|
|
834
|
+
{ path: "/script/version", element: /* @__PURE__ */ e(P, { initialTab: "version" }) },
|
|
835
|
+
{ path: "/script/tag", element: /* @__PURE__ */ e(P, { initialTab: "tag" }) },
|
|
836
|
+
// ─── 工具中心 (/z-tool/*) — FEATURE054 ───
|
|
837
|
+
{ path: "/z-tool", element: /* @__PURE__ */ e(c, { to: "/z-tool/curl", replace: !0 }) },
|
|
838
|
+
{ path: "/z-tool/curl", element: /* @__PURE__ */ e(de, {}) },
|
|
839
|
+
{ path: "/z-tool/webide", element: /* @__PURE__ */ e(be, {}) },
|
|
840
|
+
// ─── 测试中心 (/test/*) — FEATURE061 ───
|
|
841
|
+
{ path: "/test", element: /* @__PURE__ */ e(c, { to: "/test/qa/dashboard", replace: !0 }) },
|
|
842
|
+
{ path: "/test/mock", element: /* @__PURE__ */ e(nn, {}) },
|
|
843
|
+
// QAApp 按 pathname 手动分发子页(非嵌套 <Routes>),挂载前缀推断依赖
|
|
844
|
+
// 路径里有 /qa 段。?mode=test 合成挂载时真实 pathname 是 /workspace(无 qa 段)
|
|
845
|
+
// ⇒ 显式传 mountPath, 否则被库 default 分支 <Navigate> 到 /dashboard(2026-11-11 实测)。
|
|
846
|
+
{ path: "/test/qa", element: /* @__PURE__ */ e(ke, { mountPath: "/test/qa" }) },
|
|
847
|
+
{ path: "/test/qa/*", element: /* @__PURE__ */ e(ke, { mountPath: "/test/qa" }) },
|
|
848
|
+
// ─── 低代码 ───
|
|
849
|
+
// /lc/* 刻意不在这里注册。它早就迁到 src/lc/(TS 重写), 挂载点是
|
|
850
|
+
// main.jsx 的 <Route path="/lc/*" element={<ZTeamApp forcedMode="dev"/>}/>,
|
|
851
|
+
// 由 DevWorkbench 把 pathname 原样交给 @/lc 自己的嵌套 <Routes>。
|
|
852
|
+
// 本表早先还挂着一行 {path:'/lc/*', element:<LcIndex/>}, 它的 import 写的是
|
|
853
|
+
// '@/pages/lc' —— 该别名解析到 src/zteam/pages/lc(不存在), 真身在 src/lc,
|
|
854
|
+
// 于是这行既解析不了、又因 main.jsx 先消费了 /lc/* 而永远不可达。
|
|
855
|
+
// /form/:entity 与 /form/_model 是 z-lc Phase 1 手写原型的两条 URL
|
|
856
|
+
// (LowCodeModel 实体字段编辑器 / LowCodeRuntime 通用 CRUD), 现已由
|
|
857
|
+
// @yuku123/z-lc-component 承接 —— 它是同一套 /api/lc 后端的完整前端客户,
|
|
858
|
+
// 能力严格更强(designer 模型编辑、workspace 七种视图 CRUD、admin 全套、
|
|
859
|
+
// db-import、AI 建模), 挂在 main.jsx 的 <Route path="/lc/*"> 下经
|
|
860
|
+
// DevWorkbench 的 <LcApp/> 渲染。
|
|
861
|
+
//
|
|
862
|
+
// 不做逐条映射: z-lc 的工作区路由是 /lc/{appCode}/{entityCode}/{viewType},
|
|
863
|
+
// 比 /form/{entityCode} 多一层 appCode, 旧 URL 里没有这个信息, 无法还原。
|
|
864
|
+
// 故统一重定向到应用列表, 由用户自行进入对应应用。
|
|
865
|
+
{ path: "/form/:entity", element: /* @__PURE__ */ e(c, { to: "/lc/apps", replace: !0 }) },
|
|
866
|
+
// ─── 各域组件文档(lead 008 §7)───
|
|
867
|
+
// 放在本表末尾即可:matchSystemPath 是「先全表精确匹配、再全表通配匹配」,
|
|
868
|
+
// 所以 /config/docs 这类精确路径**不会**被上面的 /config/* 吃掉。
|
|
869
|
+
//
|
|
870
|
+
// 为什么路径用宿主前缀(/config/docs)而不是各域 manifest 里的 /z-config/docs:
|
|
871
|
+
// manifest 的 routes 是给**独立壳**用的(suit 里 <Route path={r.path}> 直接铺);
|
|
872
|
+
// 工作台把各域挂在宿主前缀下(/config/* ⇒ ConfigApp 内部相对路由),
|
|
873
|
+
// 两套路径对不上 ⇒ manifest 的 routes 在工作台里不生效,文档页会 404。
|
|
874
|
+
// 这里统一按**宿主前缀**挂,各域自己的 manifest 路径仍然保留给独立壳用。
|
|
875
|
+
//
|
|
876
|
+
// §14 铁律(菜单 key 必须带产品名前缀)针对的是**同一宿主内多套件共存**的撞车问题;
|
|
877
|
+
// 这里每个域的宿主前缀本身就已经是产品名(/config / /task / /workflow …),
|
|
878
|
+
// 且各域之间前缀互不相同 ⇒ 不存在撞车,不需要再加 z- 前缀。
|
|
879
|
+
{ path: "/config/docs", element: /* @__PURE__ */ e(La, {}) },
|
|
880
|
+
{ path: "/task/docs", element: /* @__PURE__ */ e(Ta, {}) },
|
|
881
|
+
{ path: "/workflow/docs", element: /* @__PURE__ */ e(Ea, {}) },
|
|
882
|
+
{ path: "/schedule/docs", element: /* @__PURE__ */ e(qa, {}) },
|
|
883
|
+
{ path: "/mist/docs", element: /* @__PURE__ */ e(Ha, {}) },
|
|
884
|
+
{ path: "/meta/docs", element: /* @__PURE__ */ e(Ra, {}) },
|
|
885
|
+
{ path: "/msg/docs", element: /* @__PURE__ */ e($a, {}) },
|
|
886
|
+
{ path: "/rpc/docs", element: /* @__PURE__ */ e(xa, {}) },
|
|
887
|
+
{ path: "/kb/docs", element: /* @__PURE__ */ e(Ua, {}) },
|
|
888
|
+
{ path: "/z-product/docs", element: /* @__PURE__ */ e(Wa, {}) },
|
|
889
|
+
{ path: "/oss/docs", element: /* @__PURE__ */ e(ja, {}) },
|
|
890
|
+
{ path: "/vector/docs", element: /* @__PURE__ */ e(Ka, {}) },
|
|
891
|
+
{ path: "/graph/docs", element: /* @__PURE__ */ e(Fa, {}) },
|
|
892
|
+
{ path: "/gw/docs", element: /* @__PURE__ */ e(Va, {}) },
|
|
893
|
+
{ path: "/cache/docs", element: /* @__PURE__ */ e(Ya, {}) },
|
|
894
|
+
{ path: "/mq/docs", element: /* @__PURE__ */ e(Qa, {}) },
|
|
895
|
+
{ path: "/ctc/docs", element: /* @__PURE__ */ e(Za, {}) },
|
|
896
|
+
{ path: "/ai/docs", element: /* @__PURE__ */ e(Ja, {}) },
|
|
897
|
+
{ path: "/lc/docs", element: /* @__PURE__ */ e(Xa, {}) },
|
|
898
|
+
{ path: "/test/qa/docs", element: /* @__PURE__ */ e(en, {}) }
|
|
899
|
+
], sn = [
|
|
900
|
+
// 模块根重定向到默认页(admin 面的无参兜底同样是场景构建)
|
|
901
|
+
{ path: "/operation", element: /* @__PURE__ */ e(c, { to: "/operation/scenario", replace: !0 }) },
|
|
902
|
+
...Se().map((a) => ({
|
|
903
|
+
path: `/operation/${a.key}`,
|
|
904
|
+
element: /* @__PURE__ */ e(tn, { menuKey: a.key })
|
|
905
|
+
}))
|
|
906
|
+
], ge = [...ln, ...sn];
|
|
907
|
+
function rn(a) {
|
|
908
|
+
for (const s of ge)
|
|
909
|
+
if (s.path === a) return s.element;
|
|
910
|
+
for (const s of ge)
|
|
911
|
+
if (pn(s.path, a)) return s.element;
|
|
912
|
+
return /* @__PURE__ */ e(on, {});
|
|
913
|
+
}
|
|
914
|
+
function pn(a, s) {
|
|
915
|
+
if (!a.includes("*") && !a.includes(":")) return !1;
|
|
916
|
+
const p = "^" + a.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
|
|
917
|
+
return new RegExp(p).test(s);
|
|
918
|
+
}
|
|
919
|
+
function Sn() {
|
|
920
|
+
const a = ye(), { pathname: s, search: p } = Z(), b = s.startsWith("/test/") || (() => {
|
|
921
|
+
try {
|
|
922
|
+
return new URLSearchParams(p).get("mode") === "test";
|
|
923
|
+
} catch {
|
|
924
|
+
return !1;
|
|
925
|
+
}
|
|
926
|
+
})(), h = O(() => {
|
|
927
|
+
try {
|
|
928
|
+
const k = new URLSearchParams(p), m = k.get("product");
|
|
929
|
+
return m ? { code: m, name: k.get("productName") || m } : null;
|
|
930
|
+
} catch {
|
|
931
|
+
return null;
|
|
932
|
+
}
|
|
933
|
+
}, [p]), z = Ge(() => {
|
|
934
|
+
if (!h) return;
|
|
935
|
+
const k = new URLSearchParams();
|
|
936
|
+
k.set("product", h.code), h.name && k.set("productName", h.name), a(`/workspace?mode=product&${k.toString()}`);
|
|
937
|
+
}, [h, a]), g = b && !s.startsWith("/test") ? "/test/qa/dashboard" : s, L = O(() => g, [g]), T = O(() => rn(g), [g]), {
|
|
938
|
+
width: y,
|
|
939
|
+
dragging: U,
|
|
940
|
+
onHandlePointerDown: E,
|
|
941
|
+
resetWidth: G
|
|
942
|
+
} = Fe("zteam.sidebar.system", 220, 200, 480);
|
|
943
|
+
return /* @__PURE__ */ r("div", { className: d.shellWrap, children: [
|
|
944
|
+
h && /* @__PURE__ */ r("div", { className: d.productBanner, children: [
|
|
945
|
+
/* @__PURE__ */ e("span", { className: d.productBannerLabel, children: "📦 当前产品" }),
|
|
946
|
+
/* @__PURE__ */ e("span", { className: d.productBannerName, title: h.name, children: h.name }),
|
|
947
|
+
/* @__PURE__ */ e("span", { className: d.productBannerCode, children: h.code }),
|
|
948
|
+
/* @__PURE__ */ e("button", { type: "button", className: d.productBannerBack, onClick: z, children: "← 返回产品工作台" })
|
|
949
|
+
] }),
|
|
950
|
+
/* @__PURE__ */ r("div", { className: d.shell, children: [
|
|
951
|
+
/* @__PURE__ */ e(
|
|
952
|
+
zt,
|
|
953
|
+
{
|
|
954
|
+
activePathOverride: L,
|
|
955
|
+
menuOnly: !0,
|
|
956
|
+
visibleGroups: b ? ["测试中心"] : void 0,
|
|
957
|
+
sidebarWidth: y
|
|
958
|
+
}
|
|
959
|
+
),
|
|
960
|
+
/* @__PURE__ */ e(
|
|
961
|
+
"div",
|
|
962
|
+
{
|
|
963
|
+
className: `${d.dragBar} ${U ? d.dragBarActive : ""}`,
|
|
964
|
+
onPointerDown: E,
|
|
965
|
+
onDoubleClick: G,
|
|
966
|
+
title: "拖动调整菜单宽度,双击恢复默认"
|
|
967
|
+
}
|
|
968
|
+
),
|
|
969
|
+
/* @__PURE__ */ r("main", { className: d.main, children: [
|
|
970
|
+
/* @__PURE__ */ e(Ye, {}),
|
|
971
|
+
/* @__PURE__ */ e(Qe, { resetKey: s, children: /* @__PURE__ */ e(we, { fallback: /* @__PURE__ */ e("div", { className: d.empty, children: "加载中…" }), children: T }) })
|
|
972
|
+
] })
|
|
973
|
+
] })
|
|
974
|
+
] });
|
|
975
|
+
}
|
|
976
|
+
export {
|
|
977
|
+
Sn as default
|
|
978
|
+
};
|