@yuku123/z-team-component 0.2.112 → 0.2.113
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-B7cMx3Bi.js → ChangeLogView-BQVeGGOq.js} +1 -1
- package/dist/{ComponentDoc-B6TVciFv.js → ComponentDoc-DuZKO_M0.js} +3 -3
- package/dist/{InvitationManagementPage-Da8qCTmd.js → InvitationManagementPage-Uy0SaSpc.js} +1 -1
- package/dist/{OnboardingPage-BUmvx6p7.js → OnboardingPage-BRTW83xZ.js} +2 -2
- package/dist/{ScheduledTasks-ZvrskUuu.js → ScheduledTasks-BxyAFM5v.js} +6 -6
- package/dist/{SystemShell-aeO9jKKr.js → SystemShell-mIYbM1gS.js} +4 -4
- package/dist/{admin-logs-CknnGuR4.js → admin-logs-BEa--KWA.js} +1 -1
- package/dist/{api-3uFbzaqp.js → api-C5oaKh01.js} +1 -1
- package/dist/{api-BYPtX7kc.js → api-CQhA4HzE.js} +1 -1
- package/dist/{createWorkspaceWsHandler-CidEgesk.js → createWorkspaceWsHandler-Bxyh4dDh.js} +3 -3
- package/dist/{index-D6EuWCRD.js → index-64rvQ2mT.js} +2 -2
- package/dist/{index-BnZc0pbx.js → index-6SduZQvN.js} +1 -1
- package/dist/{index-BN8EFwf0.js → index-B4OuXuSz.js} +253 -247
- package/dist/{index-Dx9UpJZN.js → index-B4wlUoF-.js} +1 -1
- package/dist/{index-CF2w7f7D.js → index-BD4XbsQS.js} +2 -2
- package/dist/{index-0fFX5-t1.js → index-BdeiDVvr.js} +3 -3
- package/dist/{index-BZqJulGw.js → index-Bho7jIk6.js} +3 -3
- package/dist/{index-ByRgBkJO.js → index-Bi_dV1or.js} +2 -2
- package/dist/{index-CKIzCbcm.js → index-BmEwnxYd.js} +1 -1
- package/dist/index-CP2ncRCL.js +147 -0
- package/dist/{index-BAIVuQuX.js → index-Cl_TNvrb.js} +3 -3
- package/dist/{index-BrNcqiL0.js → index-CoqvbnH9.js} +4 -4
- package/dist/{index-DDc_NN8J.js → index-Cxe1ocyx.js} +1 -1
- package/dist/{index-CB0X1hPQ.js → index-D6vXsumL.js} +6 -6
- package/dist/{index-CjGCP9FP.js → index-DEeNTifq.js} +5 -5
- package/dist/{index-Dg3xzNu_.js → index-DjQ5WeY9.js} +2 -2
- package/dist/{index-HPCdZacc.js → index-DlteNbYc.js} +3 -3
- package/dist/{index-C-wU3z6v.js → index-DzfP7CaA.js} +1 -1
- package/dist/{index-BXk3bjiv.js → index-SQ95AbXB.js} +3 -3
- package/dist/{index-CDQA4QdC.js → index-cZNgGxUN.js} +2 -2
- package/dist/{index-DLuLYnIB.js → index-du-uzXT2.js} +2 -2
- package/dist/{index-CVoS2loC.js → index-eCL-bT4M.js} +3 -3
- package/dist/{index-C9HASn0X.js → index-sE67AqD0.js} +3 -3
- package/dist/{index-CMXFhbO9.js → index-vS2KDimS.js} +6 -6
- package/dist/{index-BOoa-ZUV.js → index-zSFI8OQ7.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{instance-Dm3M39Qs.js → instance-CwoNz-fv.js} +1 -1
- package/dist/{menuPermission-D-FEv6Mp.js → menuPermission-Brjt76gw.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BjGCuqxm.js → send-default-agent-team-message-BVbchNl7.js} +1 -1
- package/dist/{sso-user-Bp_hz18Y.js → sso-user-epKai_nP.js} +1 -1
- package/dist/{training-BikyoDuw.js → training-S_S7Dd_A.js} +1 -1
- package/dist/{webide-C4vtuekF.js → webide-BrWP9HqH.js} +3 -3
- package/package.json +1 -1
- package/dist/index-cfu1Eo4O.js +0 -143
package/dist/index-cfu1Eo4O.js
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as I, useMemo as p } from "react";
|
|
3
|
-
import { useNavigate as B, useLocation as L } from "react-router-dom";
|
|
4
|
-
import { CodeOutlined as y, DownOutlined as G, RightOutlined as v, AppstoreOutlined as O, TableOutlined as A, DatabaseOutlined as C, RobotOutlined as W, FunctionOutlined as H, ApartmentOutlined as M, EyeOutlined as P, BranchesOutlined as R, DeploymentUnitOutlined as _, SafetyCertificateOutlined as U } from "@ant-design/icons";
|
|
5
|
-
import $ from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as x, M as D } from "./menuPermission-D-FEv6Mp.js";
|
|
7
|
-
import { u as h } from "./ComponentDoc-B6TVciFv.js";
|
|
8
|
-
const E = "_shellWrap_1gpbw_7", T = "_shell_1gpbw_7", j = "_productBanner_1gpbw_25", K = "_productBannerLabel_1gpbw_37", q = "_productBannerName_1gpbw_43", F = "_productBannerCode_1gpbw_51", z = "_productBannerBack_1gpbw_56", J = "_sidebar_1gpbw_73", Q = "_sidebarHeader_1gpbw_84", V = "_menuList_1gpbw_95", X = "_menuGroup_1gpbw_101", Y = "_menuGroupHeader_1gpbw_105", Z = "_menuGroupLabel_1gpbw_123", ee = "_menuGroupArrow_1gpbw_127", ne = "_menuSubList_1gpbw_132", te = "_menuSubItemWrap_1gpbw_138", ae = "_menuSubItem_1gpbw_138", re = "_menuSubItemActive_1gpbw_159", se = "_menuSubItemIcon_1gpbw_166", oe = "_menuSubItemLabel_1gpbw_171", ie = "_main_1gpbw_176", t = {
|
|
9
|
-
shellWrap: E,
|
|
10
|
-
shell: T,
|
|
11
|
-
productBanner: j,
|
|
12
|
-
productBannerLabel: K,
|
|
13
|
-
productBannerName: q,
|
|
14
|
-
productBannerCode: F,
|
|
15
|
-
productBannerBack: z,
|
|
16
|
-
sidebar: J,
|
|
17
|
-
sidebarHeader: Q,
|
|
18
|
-
menuList: V,
|
|
19
|
-
menuGroup: X,
|
|
20
|
-
menuGroupHeader: Y,
|
|
21
|
-
menuGroupLabel: Z,
|
|
22
|
-
menuGroupArrow: ee,
|
|
23
|
-
menuSubList: ne,
|
|
24
|
-
menuSubItemWrap: te,
|
|
25
|
-
menuSubItem: ae,
|
|
26
|
-
menuSubItemActive: re,
|
|
27
|
-
menuSubItemIcon: se,
|
|
28
|
-
menuSubItemLabel: oe,
|
|
29
|
-
main: ie
|
|
30
|
-
}, m = [
|
|
31
|
-
{
|
|
32
|
-
title: "应用",
|
|
33
|
-
items: [
|
|
34
|
-
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(O, {}), path: "apps" }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
title: "建模",
|
|
39
|
-
items: [
|
|
40
|
-
{ key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(A, {}), path: "designer" },
|
|
41
|
-
{ key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(C, {}), path: "db-import" },
|
|
42
|
-
{ key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(W, {}), path: "admin/ai" }
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: "配置",
|
|
47
|
-
items: [
|
|
48
|
-
{ key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(H, {}), path: "admin/dicts" },
|
|
49
|
-
{ key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(M, {}), path: "admin/relations" },
|
|
50
|
-
{ key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(P, {}), path: "admin/views" },
|
|
51
|
-
{ key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e(R, {}), path: "admin/pipelines" },
|
|
52
|
-
{ key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(_, {}), path: "admin/workflows" }
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
title: "运行",
|
|
57
|
-
items: [
|
|
58
|
-
{ key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(U, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
|
|
59
|
-
{ key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(_, {}), path: "admin/deployments" }
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
], d = "/lc";
|
|
63
|
-
function ce(i) {
|
|
64
|
-
if (!i.startsWith(d)) return null;
|
|
65
|
-
const u = i.slice(d.length).replace(/^\//, "");
|
|
66
|
-
for (const l of m)
|
|
67
|
-
for (const c of l.items)
|
|
68
|
-
if (u === c.path || u.startsWith(`${c.path}/`)) return c.key;
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
function he() {
|
|
72
|
-
const i = B(), { pathname: u, search: l } = L(), c = h((n) => n.currentUser), b = h((n) => n.permissionState), [S, w] = I(
|
|
73
|
-
new Set(m.map((n) => n.title))
|
|
74
|
-
), r = p(() => {
|
|
75
|
-
try {
|
|
76
|
-
const n = new URLSearchParams(l), s = n.get("product");
|
|
77
|
-
return s ? { code: s, name: n.get("productName") || s } : null;
|
|
78
|
-
} catch {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
}, [l]), N = useCallback(() => {
|
|
82
|
-
if (!r) return;
|
|
83
|
-
const n = new URLSearchParams();
|
|
84
|
-
n.set("product", r.code), r.name && n.set("productName", r.name), i(`/workspace?mode=product&${n.toString()}`);
|
|
85
|
-
}, [r, i]), g = p(
|
|
86
|
-
() => b === "failed" ? m : x(m, c),
|
|
87
|
-
[c, b]
|
|
88
|
-
), f = p(() => ce(u), [u]), k = (n) => {
|
|
89
|
-
w((s) => {
|
|
90
|
-
const a = new Set(s);
|
|
91
|
-
return a.has(n) ? a.delete(n) : a.add(n), a;
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
return /* @__PURE__ */ o("div", { className: t.shellWrap, children: [
|
|
95
|
-
r && /* @__PURE__ */ o("div", { className: t.productBanner, children: [
|
|
96
|
-
/* @__PURE__ */ e("span", { className: t.productBannerLabel, children: "📦 当前产品" }),
|
|
97
|
-
/* @__PURE__ */ e("span", { className: t.productBannerName, title: r.name, children: r.name }),
|
|
98
|
-
/* @__PURE__ */ e("span", { className: t.productBannerCode, children: r.code }),
|
|
99
|
-
/* @__PURE__ */ e("button", { type: "button", className: t.productBannerBack, onClick: N, children: "← 返回产品工作台" })
|
|
100
|
-
] }),
|
|
101
|
-
/* @__PURE__ */ o("div", { className: t.shell, children: [
|
|
102
|
-
/* @__PURE__ */ o("aside", { className: t.sidebar, children: [
|
|
103
|
-
/* @__PURE__ */ o("div", { className: t.sidebarHeader, children: [
|
|
104
|
-
/* @__PURE__ */ e(y, {}),
|
|
105
|
-
/* @__PURE__ */ e("span", { children: "研发工作台" })
|
|
106
|
-
] }),
|
|
107
|
-
/* @__PURE__ */ e(D, {}),
|
|
108
|
-
/* @__PURE__ */ e("nav", { className: t.menuList, children: g.map((n) => {
|
|
109
|
-
const s = !S.has(n.title);
|
|
110
|
-
return /* @__PURE__ */ o("div", { className: t.menuGroup, children: [
|
|
111
|
-
/* @__PURE__ */ o(
|
|
112
|
-
"div",
|
|
113
|
-
{
|
|
114
|
-
className: t.menuGroupHeader,
|
|
115
|
-
onClick: () => k(n.title),
|
|
116
|
-
children: [
|
|
117
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
|
|
118
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: s ? /* @__PURE__ */ e(G, {}) : /* @__PURE__ */ e(v, {}) })
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
s && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((a) => /* @__PURE__ */ o(
|
|
123
|
-
"li",
|
|
124
|
-
{
|
|
125
|
-
className: `${t.menuSubItemWrap} ${t.menuSubItem} ${f === a.key ? t.menuSubItemActive : ""}`,
|
|
126
|
-
onClick: () => i(`${d}/${a.path}`),
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: a.icon }),
|
|
129
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: a.label })
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
a.key
|
|
133
|
-
)) })
|
|
134
|
-
] }, n.title);
|
|
135
|
-
}) })
|
|
136
|
-
] }),
|
|
137
|
-
/* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e($, {}) })
|
|
138
|
-
] })
|
|
139
|
-
] });
|
|
140
|
-
}
|
|
141
|
-
export {
|
|
142
|
-
he as default
|
|
143
|
-
};
|