@yuku123/z-team-component 0.2.174 → 0.2.176
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/{AdminModuleContent-B0OMv_hr.js → AdminModuleContent-CAJNrpxG.js} +6 -6
- package/dist/{ChangeLogView-BW8zSwI2.js → ChangeLogView-BUx22ygE.js} +1 -1
- package/dist/{ComponentDoc-BXB-N4BZ.js → ComponentDoc-in_96CpL.js} +3 -3
- package/dist/{InvitationManagementPage-BQpjkp4o.js → InvitationManagementPage-CTDyMZs5.js} +1 -1
- package/dist/{OnboardingPage-brDvdFDf.js → OnboardingPage-Co-rTH3C.js} +2 -2
- package/dist/{ScheduledTasks-Bg9LjSwe.js → ScheduledTasks-DQvZJDXk.js} +9 -9
- package/dist/{SettingsModal-D77Opfy1.js → SettingsModal-qQ4nqVvN.js} +4 -4
- package/dist/{SystemShell-DZ2BTUIG.js → SystemShell-BcLGyPbY.js} +7 -7
- package/dist/{admin-logs-Bv-oPEkh.js → admin-logs-C-qJqvCO.js} +1 -1
- package/dist/{api-s8LN2sEm.js → api-0uTaCrct.js} +1 -1
- package/dist/{api-B-bFqznr.js → api-ZCLTKVhT.js} +1 -1
- package/dist/{browser-CY4sdwd6.js → browser-C660-9Z7.js} +1 -1
- package/dist/{createWorkspaceWsHandler-CHyUJ3N3.js → createWorkspaceWsHandler-DhTzpTnA.js} +3 -3
- package/dist/{index-aF1dGHqh.js → index-BAv2yPv6.js} +4 -4
- package/dist/{index-BTP2_A2h.js → index-BYSyirOf.js} +4 -4
- package/dist/{index-D45joVlF.js → index-BrldFNRa.js} +1 -1
- package/dist/{index-C4Y7QHCW.js → index-BroEucBT.js} +12211 -12181
- package/dist/{index-Cfc5P4GF.js → index-Bx8xhnEs.js} +2 -2
- package/dist/{index-BTja435H.js → index-CBN-LCEi.js} +2 -2
- package/dist/{index-CMeDe1w2.js → index-CM8ISiGI.js} +6 -6
- package/dist/{index-Cbf3TwPU.js → index-CU9O7jJt.js} +2 -2
- package/dist/{index-hc8fMM2y.js → index-ChxP6rJn.js} +1 -1
- package/dist/{index-nQghXq5v.js → index-CjxEE4bh.js} +2 -2
- package/dist/{index-DLOlqj8L.js → index-CkdkzLiT.js} +1 -1
- package/dist/{index-BVF5nTIR.js → index-D3BFkFWc.js} +2 -2
- package/dist/{index-DiQ4Pdd9.js → index-DOFOhA6I.js} +3 -3
- package/dist/{index-BAcACL_x.js → index-DRyoc2Hq.js} +1 -1
- package/dist/{index-BIWyQr5I.js → index-DaAurGGZ.js} +2 -2
- package/dist/{index-BN85Cb0z.js → index-Dd5v5akw.js} +8 -8
- package/dist/{index-7fFmpl-3.js → index-Deb1t6Ss.js} +2 -2
- package/dist/{index-B3N3FrPq.js → index-DoIosQmo.js} +2 -2
- package/dist/{index-BNoI3ACj.js → index-EkCS9h8N.js} +1 -1
- package/dist/{index-C-ntbzqX.js → index-NOZ0vWu9.js} +3 -3
- package/dist/{index-BTU4Ninj.js → index-bZ3cxpkz.js} +1 -1
- package/dist/index-ftQ2n-vh.js +144 -0
- package/dist/{index-BiihZGRv.js → index-jE6cLfnT.js} +4 -4
- package/dist/{index-Bqo8X9xB.js → index-kvt7x63p.js} +1 -1
- package/dist/{index-Co2TO4cb.js → index-ylpBVPTR.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-BInOKlA3.js → instance-Cm6oQb9w.js} +1 -1
- package/dist/{menuPermission-5D-KvpVt.js → menuPermission-BeDNWc92.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-B4CRoq20.js → send-default-agent-team-message-BGOlzIHO.js} +1 -1
- package/dist/{spark-md5-DjR0FXyG.js → spark-md5-CY1_eD7h.js} +1 -1
- package/dist/{training-CHzpyTfV.js → training-C0qOiKrb.js} +1 -1
- package/dist/{webide-CkVrduMw.js → webide-DtsdHo3h.js} +3 -3
- package/package.json +4 -4
- package/dist/index-vXPaMJgZ.js +0 -136
package/dist/index-vXPaMJgZ.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as m, useCallback as B, useEffect as N } from "react";
|
|
3
|
-
import { useNavigate as O, useLocation as S } from "react-router-dom";
|
|
4
|
-
import { AppstoreOutlined as $, HomeOutlined as x, DashboardOutlined as g, TableOutlined as w, DatabaseOutlined as A, RobotOutlined as L, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as R, BranchesOutlined as I, DeploymentUnitOutlined as P, SafetyCertificateOutlined as U, RocketOutlined as q } from "@ant-design/icons";
|
|
5
|
-
import G from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as T, M as E } from "./menuPermission-5D-KvpVt.js";
|
|
7
|
-
import { u as _ } from "./ComponentDoc-BXB-N4BZ.js";
|
|
8
|
-
import { SidebarShell as D, MenuTree as C } from "@yuku123/z-frontend-common/ui";
|
|
9
|
-
const K = "_shellWrap_kxkvd_7", j = "_shell_kxkvd_7", F = "_productBanner_kxkvd_25", H = "_productBannerLabel_kxkvd_37", z = "_productBannerName_kxkvd_43", J = "_productBannerCode_kxkvd_51", Q = "_productBannerBack_kxkvd_56", V = "_main_kxkvd_351", p = {
|
|
10
|
-
shellWrap: K,
|
|
11
|
-
shell: j,
|
|
12
|
-
productBanner: F,
|
|
13
|
-
productBannerLabel: H,
|
|
14
|
-
productBannerName: z,
|
|
15
|
-
productBannerCode: J,
|
|
16
|
-
productBannerBack: Q,
|
|
17
|
-
main: V
|
|
18
|
-
}, h = "/lc", X = /* @__PURE__ */ new Set(["apps", "designer", "db-import", "admin", "docs"]);
|
|
19
|
-
function Y(e, t) {
|
|
20
|
-
if (!e.startsWith(h)) return null;
|
|
21
|
-
const s = e.slice(h.length).replace(/^\//, "").split("/").filter(Boolean);
|
|
22
|
-
return s[0] === "designer" && s[1] ? s[1] : s[0] && !X.has(s[0]) ? s[0] : new URLSearchParams(t.startsWith("?") ? t.slice(1) : t).get("appCode") || null;
|
|
23
|
-
}
|
|
24
|
-
function Z(e) {
|
|
25
|
-
const t = `?appCode=${encodeURIComponent(e)}`;
|
|
26
|
-
return [
|
|
27
|
-
{ key: `${e}:overview`, label: "应用概览", icon: /* @__PURE__ */ n(x, {}), path: e },
|
|
28
|
-
{ key: `${e}:dashboard`, label: "仪表盘", icon: /* @__PURE__ */ n(g, {}), path: `${e}/dashboard` },
|
|
29
|
-
{ key: `${e}:designer`, label: "Schema 设计器", icon: /* @__PURE__ */ n(w, {}), path: `designer/${e}` },
|
|
30
|
-
{ key: `${e}:db-import`, label: "从数据库导入", icon: /* @__PURE__ */ n(A, {}), path: `db-import${t}` },
|
|
31
|
-
{ key: `${e}:ai`, label: "AI 建模", icon: /* @__PURE__ */ n(L, {}), path: `admin/ai${t}` },
|
|
32
|
-
{ key: `${e}:dicts`, label: "数据字典", icon: /* @__PURE__ */ n(M, {}), path: `admin/dicts${t}` },
|
|
33
|
-
{ key: `${e}:relations`, label: "实体关系", icon: /* @__PURE__ */ n(W, {}), path: `admin/relations${t}` },
|
|
34
|
-
{ key: `${e}:views`, label: "视图配置", icon: /* @__PURE__ */ n(R, {}), path: `admin/views${t}` },
|
|
35
|
-
{ key: `${e}:pipelines`, label: "Pipeline", icon: /* @__PURE__ */ n(I, {}), path: `admin/pipelines${t}` },
|
|
36
|
-
{ key: `${e}:workflows`, label: "流程绑定", icon: /* @__PURE__ */ n(P, {}), path: `admin/workflows${t}` },
|
|
37
|
-
{ key: `${e}:permissions`, label: "权限矩阵", icon: /* @__PURE__ */ n(U, {}), path: `admin/permissions${t}`, permission: "PERMISSION_MANAGE" },
|
|
38
|
-
{ key: `${e}:deployments`, label: "部署记录", icon: /* @__PURE__ */ n(q, {}), path: `admin/deployments${t}` }
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
function ee(e) {
|
|
42
|
-
const t = [
|
|
43
|
-
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ n($, {}), path: "apps" }
|
|
44
|
-
];
|
|
45
|
-
return e && t.push({
|
|
46
|
-
key: e,
|
|
47
|
-
label: e,
|
|
48
|
-
icon: /* @__PURE__ */ n($, {}),
|
|
49
|
-
children: Z(e)
|
|
50
|
-
}), [{ title: "应用", icon: /* @__PURE__ */ n($, {}), items: t }];
|
|
51
|
-
}
|
|
52
|
-
function te(e, t, c, s) {
|
|
53
|
-
if (!e.path) return !1;
|
|
54
|
-
const l = e.path.indexOf("?"), r = l >= 0 ? e.path.slice(0, l) : e.path;
|
|
55
|
-
return (s ? t === r : t === r || t.startsWith(`${r}/`)) ? l >= 0 ? new URLSearchParams(e.path.slice(l + 1)).get("appCode") === c : !0 : !1;
|
|
56
|
-
}
|
|
57
|
-
function ne(e, t, c, s) {
|
|
58
|
-
if (!t.startsWith(h)) return null;
|
|
59
|
-
const l = t.slice(h.length).replace(/^\//, ""), r = e.flatMap(
|
|
60
|
-
(u) => u.items.flatMap((o) => o.children ? [o, ...o.children] : [o])
|
|
61
|
-
);
|
|
62
|
-
for (const u of [!0, !1])
|
|
63
|
-
for (const o of r)
|
|
64
|
-
if (te(o, l, s, u)) return o.key;
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
function ue() {
|
|
68
|
-
const e = O(), { pathname: t, search: c } = S(), s = _((a) => a.currentUser), l = _((a) => a.permissionState), r = m(() => {
|
|
69
|
-
try {
|
|
70
|
-
const a = new URLSearchParams(c), i = a.get("product");
|
|
71
|
-
return i ? { code: i, name: a.get("productName") || i } : null;
|
|
72
|
-
} catch {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
}, [c]), u = B(() => {
|
|
76
|
-
if (!r) return;
|
|
77
|
-
const a = new URLSearchParams();
|
|
78
|
-
a.set("product", r.code), r.name && a.set("productName", r.name), e(`/product?${a.toString()}`);
|
|
79
|
-
}, [r, e]);
|
|
80
|
-
N(() => {
|
|
81
|
-
t.startsWith("/lc") || e(`/lc/apps${c || ""}`, { replace: !0 });
|
|
82
|
-
}, [t, c, e]);
|
|
83
|
-
const o = m(() => Y(t, c), [t, c]), b = m(() => ee(o), [o]), k = m(
|
|
84
|
-
() => l === "failed" ? b : T(b, s),
|
|
85
|
-
[b, s, l]
|
|
86
|
-
), y = m(
|
|
87
|
-
() => ne(k, t, c, o),
|
|
88
|
-
[k, t, c, o]
|
|
89
|
-
), v = m(
|
|
90
|
-
() => k.map((a) => ({
|
|
91
|
-
key: a.title,
|
|
92
|
-
title: a.title,
|
|
93
|
-
items: a.items.map((i) => ({
|
|
94
|
-
key: i.key,
|
|
95
|
-
label: i.label,
|
|
96
|
-
icon: i.icon,
|
|
97
|
-
active: y === i.key,
|
|
98
|
-
onClick: i.path ? () => e(`${h}/${i.path}`) : void 0,
|
|
99
|
-
children: i.children ? i.children.map((d) => ({
|
|
100
|
-
key: d.key,
|
|
101
|
-
label: d.label,
|
|
102
|
-
icon: d.icon,
|
|
103
|
-
active: y === d.key,
|
|
104
|
-
onClick: d.path ? () => e(`${h}/${d.path}`) : void 0
|
|
105
|
-
})) : void 0
|
|
106
|
-
}))
|
|
107
|
-
})),
|
|
108
|
-
[k, y, e]
|
|
109
|
-
);
|
|
110
|
-
return /* @__PURE__ */ f("div", { className: p.shellWrap, children: [
|
|
111
|
-
r && /* @__PURE__ */ f("div", { className: p.productBanner, children: [
|
|
112
|
-
/* @__PURE__ */ n("span", { className: p.productBannerLabel, children: "📦 当前产品" }),
|
|
113
|
-
/* @__PURE__ */ n("span", { className: p.productBannerName, title: r.name, children: r.name }),
|
|
114
|
-
/* @__PURE__ */ n("span", { className: p.productBannerCode, children: r.code }),
|
|
115
|
-
/* @__PURE__ */ n("button", { type: "button", className: p.productBannerBack, onClick: u, children: "← 返回产品工作台" })
|
|
116
|
-
] }),
|
|
117
|
-
/* @__PURE__ */ f("div", { className: p.shell, children: [
|
|
118
|
-
/* @__PURE__ */ f(
|
|
119
|
-
D,
|
|
120
|
-
{
|
|
121
|
-
title: "研发工作台",
|
|
122
|
-
width: 220,
|
|
123
|
-
storageKey: "ft_dev_sidebar_collapsed",
|
|
124
|
-
children: [
|
|
125
|
-
/* @__PURE__ */ n(E, {}),
|
|
126
|
-
/* @__PURE__ */ n(C, { groups: v, defaultCollapsed: !0 })
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ n("main", { className: p.main, children: /* @__PURE__ */ n(G, {}) })
|
|
131
|
-
] })
|
|
132
|
-
] });
|
|
133
|
-
}
|
|
134
|
-
export {
|
|
135
|
-
ue as default
|
|
136
|
-
};
|