@yuku123/z-team-component 0.2.175 → 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.
Files changed (48) hide show
  1. package/dist/{AdminModuleContent-D_8EYwdn.js → AdminModuleContent-CAJNrpxG.js} +6 -6
  2. package/dist/{ChangeLogView-DUpaLhCQ.js → ChangeLogView-BUx22ygE.js} +1 -1
  3. package/dist/{ComponentDoc-DX-G36XL.js → ComponentDoc-in_96CpL.js} +3 -3
  4. package/dist/{InvitationManagementPage-I8MOZm3P.js → InvitationManagementPage-CTDyMZs5.js} +1 -1
  5. package/dist/{OnboardingPage-AaBeXdmN.js → OnboardingPage-Co-rTH3C.js} +2 -2
  6. package/dist/{ScheduledTasks-BL_8NPGL.js → ScheduledTasks-DQvZJDXk.js} +9 -9
  7. package/dist/{SettingsModal-CGAZqXe4.js → SettingsModal-qQ4nqVvN.js} +4 -4
  8. package/dist/{SystemShell-CaVgXHac.js → SystemShell-BcLGyPbY.js} +7 -7
  9. package/dist/{admin-logs-B9buBCgA.js → admin-logs-C-qJqvCO.js} +1 -1
  10. package/dist/{api-ZYYxC97k.js → api-0uTaCrct.js} +1 -1
  11. package/dist/{api-BmkkjjsH.js → api-ZCLTKVhT.js} +1 -1
  12. package/dist/{browser-C0gbH8ge.js → browser-C660-9Z7.js} +1 -1
  13. package/dist/{createWorkspaceWsHandler-MqWCJ3KJ.js → createWorkspaceWsHandler-DhTzpTnA.js} +3 -3
  14. package/dist/{index-CWaHhvIE.js → index-BAv2yPv6.js} +4 -4
  15. package/dist/{index-TaTPCmzs.js → index-BYSyirOf.js} +4 -4
  16. package/dist/{index-DbWXIpT-.js → index-BrldFNRa.js} +1 -1
  17. package/dist/{index-aC6vnN6n.js → index-BroEucBT.js} +12209 -12179
  18. package/dist/{index-BnHTn8Xs.js → index-Bx8xhnEs.js} +2 -2
  19. package/dist/{index-x-bISlja.js → index-CBN-LCEi.js} +2 -2
  20. package/dist/{index-B2y5hSr-.js → index-CM8ISiGI.js} +6 -6
  21. package/dist/{index-DKB_9Pt2.js → index-CU9O7jJt.js} +2 -2
  22. package/dist/{index-DUhw_cyy.js → index-ChxP6rJn.js} +1 -1
  23. package/dist/{index-BUj4F26q.js → index-CjxEE4bh.js} +2 -2
  24. package/dist/{index-kY06f1E0.js → index-CkdkzLiT.js} +1 -1
  25. package/dist/{index-DC8RZCnW.js → index-D3BFkFWc.js} +2 -2
  26. package/dist/{index-D9d8bgEi.js → index-DOFOhA6I.js} +3 -3
  27. package/dist/{index-C5sKclSK.js → index-DRyoc2Hq.js} +1 -1
  28. package/dist/{index-DmFsawHq.js → index-DaAurGGZ.js} +2 -2
  29. package/dist/{index-BvMBUz-F.js → index-Dd5v5akw.js} +8 -8
  30. package/dist/{index-BVNGvh47.js → index-Deb1t6Ss.js} +2 -2
  31. package/dist/{index-4DweUdei.js → index-DoIosQmo.js} +2 -2
  32. package/dist/{index-D4e8DuEX.js → index-EkCS9h8N.js} +1 -1
  33. package/dist/{index-Bd-Cv2QM.js → index-NOZ0vWu9.js} +3 -3
  34. package/dist/{index-9op0-8ql.js → index-bZ3cxpkz.js} +1 -1
  35. package/dist/index-ftQ2n-vh.js +144 -0
  36. package/dist/{index-5JrzKWwz.js → index-jE6cLfnT.js} +4 -4
  37. package/dist/{index-B7XLCmXb.js → index-kvt7x63p.js} +1 -1
  38. package/dist/{index-Bflp4ZlY.js → index-ylpBVPTR.js} +3 -3
  39. package/dist/index.js +1 -1
  40. package/dist/{instance-DxbL4Bbl.js → instance-Cm6oQb9w.js} +1 -1
  41. package/dist/{menuPermission-DPK7_dTG.js → menuPermission-BeDNWc92.js} +3 -3
  42. package/dist/pages.js +1 -1
  43. package/dist/{send-default-agent-team-message-BTBYYybd.js → send-default-agent-team-message-BGOlzIHO.js} +1 -1
  44. package/dist/{spark-md5-g8UkrRCx.js → spark-md5-CY1_eD7h.js} +1 -1
  45. package/dist/{training-B_3o23mq.js → training-C0qOiKrb.js} +1 -1
  46. package/dist/{webide-Bnacw27I.js → webide-DtsdHo3h.js} +3 -3
  47. package/package.json +3 -3
  48. package/dist/index-BQq61T-r.js +0 -136
@@ -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-DPK7_dTG.js";
7
- import { u as _ } from "./ComponentDoc-DX-G36XL.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
- };