@yuku123/z-team-component 0.2.59 → 0.2.61

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 (52) hide show
  1. package/dist/{ChangeLogView-Cstbioyw.js → ChangeLogView-VRWVzP0r.js} +1 -1
  2. package/dist/{ComponentDoc-Bx6NAJlK.js → ComponentDoc-CZGpQekc.js} +1497 -1387
  3. package/dist/{InvitationManagementPage-Gkqisq4C.js → InvitationManagementPage-Dvhu6OWP.js} +1 -1
  4. package/dist/{OnboardingPage-C7C4PEjn.js → OnboardingPage-CF_ECLv7.js} +2 -2
  5. package/dist/{ScheduledTasks-BQRcjBOd.js → ScheduledTasks-Cec22jf4.js} +8 -8
  6. package/dist/SystemShell-D8uLAhd8.js +670 -0
  7. package/dist/{admin-logs-B9KS6VJz.js → admin-logs-DCYof_u5.js} +2 -2
  8. package/dist/{api-CALqShkO.js → api-DWt94BcM.js} +584 -572
  9. package/dist/{api-Y-52Ejhz.js → api-Dxw9Ajfn.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-DP30xvug.js → createWorkspaceWsHandler-3aHkBZE9.js} +4 -4
  11. package/dist/{index-4YxdJwFm.js → index-4LNRkvy6.js} +3 -3
  12. package/dist/index-B5dPYPuA.js +93 -0
  13. package/dist/{index-C2Wkg1b5.js → index-BIdcTXZW.js} +3 -3
  14. package/dist/{index-m8V5TniT.js → index-BVh0W8ck.js} +15861 -15586
  15. package/dist/{index-Gt21FARO.js → index-BdGXRcf4.js} +3 -3
  16. package/dist/index-BgR7NlYr.js +118 -0
  17. package/dist/{index-8gCovDDT.js → index-C6jp_1-U.js} +6 -6
  18. package/dist/{index-DJ0FV74Y.js → index-CKtjapcc.js} +3 -3
  19. package/dist/{index-lftFkqfI.js → index-CTKf6h2u.js} +4 -4
  20. package/dist/{index-DKeYG0Fu.js → index-CrIIInfs.js} +4 -4
  21. package/dist/{index-63ovR-_x.js → index-DF4ZWJfp.js} +1 -1
  22. package/dist/index-DepaHnKP.js +2858 -0
  23. package/dist/{index-CO6WYRIS.js → index-Dfce6-jv.js} +3 -3
  24. package/dist/{index-Bpn6x1So.js → index-Dr8elYjm.js} +12 -12
  25. package/dist/{index-CLWgeKwr.js → index-DtVBFjaJ.js} +2 -2
  26. package/dist/{index-CGWttFLb.js → index-Dvhocfyo.js} +4 -4
  27. package/dist/{index-aw72ID7y.js → index-NPxrK-81.js} +1 -1
  28. package/dist/{index-CinRd7Nz.js → index-VY-pgcyl.js} +1 -1
  29. package/dist/{index-DJOyOVn_.js → index-VxO9i5r6.js} +1 -1
  30. package/dist/{index-C3B7CbHo.js → index-bsGAZKaU.js} +624 -613
  31. package/dist/index-gMeWspFX.js +112 -0
  32. package/dist/{index-DET70T3j.js → index-i6Ejgpao.js} +1 -1
  33. package/dist/{index-BvTYVEEv.js → index-nxjdN-Fp.js} +20 -16
  34. package/dist/{index-DfQCaS0z.js → index-tipx38MZ.js} +248 -244
  35. package/dist/{index-CN9NsUQ6.js → index-yRDgpDx1.js} +5 -5
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-f3C-1qYl.js → instance-CbkHlDr4.js} +1 -1
  38. package/dist/menuPermission-BvgoOn21.js +60 -0
  39. package/dist/pages.js +1 -1
  40. package/dist/schedule-BRvmKoDG.js +587 -0
  41. package/dist/{send-default-agent-team-message-d_ECdczr.js → send-default-agent-team-message-8wnVWO7H.js} +1 -1
  42. package/dist/{sso-user-HcsSzg8P.js → sso-user-QZNVhjpR.js} +1 -1
  43. package/dist/{training-DnNQN0An.js → training-DYo1pvX7.js} +1 -1
  44. package/dist/{useAppStore-kRZEA5WZ.js → useAppStore-BGOxWep2.js} +6 -2
  45. package/dist/{webide-BcRzJX-h.js → webide-CWTbQs4I.js} +4 -4
  46. package/dist/z-team-component.css +2 -2
  47. package/package.json +1 -1
  48. package/dist/SystemShell-Df9PZzLO.js +0 -907
  49. package/dist/index-Bw9yypc4.js +0 -2841
  50. package/dist/index-C0EIMJI2.js +0 -112
  51. package/dist/index-DRrBkbr_.js +0 -100
  52. package/dist/schedule-DfkgwPdE.js +0 -497
@@ -0,0 +1,112 @@
1
+ import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
+ import { useState as x, useMemo as p } from "react";
3
+ import { useNavigate as v, useLocation as A } from "react-router-dom";
4
+ import { DownOutlined as k, RightOutlined as W } from "@ant-design/icons";
5
+ import { P as $, R as E } from "./index-B5dPYPuA.js";
6
+ import { f as g, M as H } from "./menuPermission-BvgoOn21.js";
7
+ import { u as h } from "./useAppStore-BGOxWep2.js";
8
+ const M = "_shell_92w2c_7", R = "_sidebar_92w2c_15", T = "_menuList_92w2c_37", C = "_menuGroup_92w2c_43", P = "_menuGroupHeader_92w2c_47", j = "_menuGroupIcon_92w2c_65", z = "_menuGroupLabel_92w2c_70", K = "_menuGroupArrow_92w2c_74", U = "_menuSubList_92w2c_80", Z = "_menuSubItem_92w2c_86", B = "_menuSubItemActive_92w2c_103", D = "_menuSubItemIcon_92w2c_110", O = "_menuSubItemLabel_92w2c_115", q = "_menuSubItemWrap_92w2c_119", F = "_main_92w2c_123", J = "_empty_92w2c_130", Q = "_emptyIcon_92w2c_140", V = "_emptyText_92w2c_145", n = {
9
+ shell: M,
10
+ sidebar: R,
11
+ menuList: T,
12
+ menuGroup: C,
13
+ menuGroupHeader: P,
14
+ menuGroupIcon: j,
15
+ menuGroupLabel: z,
16
+ menuGroupArrow: K,
17
+ menuSubList: U,
18
+ menuSubItem: Z,
19
+ menuSubItemActive: B,
20
+ menuSubItemIcon: D,
21
+ menuSubItemLabel: O,
22
+ menuSubItemWrap: q,
23
+ main: F,
24
+ empty: J,
25
+ emptyIcon: Q,
26
+ emptyText: V
27
+ };
28
+ function X(m, r) {
29
+ for (const s of m)
30
+ if (s.path === r) return s.element;
31
+ for (const s of m)
32
+ if (s.path.includes("*") || s.path.includes(":")) {
33
+ const i = "^" + s.path.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
34
+ if (new RegExp(i).test(r)) return s.element;
35
+ }
36
+ return null;
37
+ }
38
+ function Y({ text: m }) {
39
+ return /* @__PURE__ */ u("div", { className: n.empty, children: [
40
+ /* @__PURE__ */ t("div", { className: n.emptyIcon, children: "⚙️" }),
41
+ /* @__PURE__ */ t("div", { className: n.emptyText, children: m })
42
+ ] });
43
+ }
44
+ function oe({
45
+ groups: m,
46
+ routes: r,
47
+ mode: s,
48
+ emptyText: i,
49
+ activePathOverride: _,
50
+ menuOnly: I = !1
51
+ }) {
52
+ const S = v(), { pathname: a } = A(), d = h((e) => e.currentUser), b = h((e) => e.permissionState), [f, w] = x(
53
+ new Set(m.map((e) => e.title))
54
+ ), l = p(
55
+ () => b === "failed" ? m : g(m, d),
56
+ [m, d, b]
57
+ ), G = p(() => {
58
+ const e = _ ?? a;
59
+ for (const o of l)
60
+ for (const c of o.items)
61
+ if (c.path === e) return c.key;
62
+ return null;
63
+ }, [l, _, a]), y = (e) => {
64
+ w((o) => {
65
+ const c = new Set(o);
66
+ return c.has(e) ? c.delete(e) : c.add(e), c;
67
+ });
68
+ }, N = (e) => {
69
+ S(`${e.path}?mode=${s}`);
70
+ }, L = p(() => X(r, a), [r, a]);
71
+ return /* @__PURE__ */ u("div", { className: n.shell, children: [
72
+ /* @__PURE__ */ u("aside", { className: n.sidebar, children: [
73
+ /* @__PURE__ */ t(H, {}),
74
+ /* @__PURE__ */ t("nav", { className: n.menuList, children: l.map((e) => {
75
+ const o = f.has(e.title);
76
+ return /* @__PURE__ */ u("div", { className: n.menuGroup, children: [
77
+ /* @__PURE__ */ u(
78
+ "div",
79
+ {
80
+ className: n.menuGroupHeader,
81
+ onClick: () => y(e.title),
82
+ children: [
83
+ /* @__PURE__ */ t("span", { className: n.menuGroupIcon, children: e.icon }),
84
+ /* @__PURE__ */ t("span", { className: n.menuGroupLabel, children: e.title }),
85
+ /* @__PURE__ */ t("span", { className: n.menuGroupArrow, children: o ? /* @__PURE__ */ t(k, {}) : /* @__PURE__ */ t(W, {}) })
86
+ ]
87
+ }
88
+ ),
89
+ o && /* @__PURE__ */ t("ul", { className: n.menuSubList, children: e.items.map((c) => /* @__PURE__ */ u(
90
+ "li",
91
+ {
92
+ className: `${n.menuSubItemWrap} ${n.menuSubItem} ${G === c.key ? n.menuSubItemActive : ""}`,
93
+ onClick: () => N(c),
94
+ children: [
95
+ /* @__PURE__ */ t("span", { className: n.menuSubItemIcon, children: c.icon }),
96
+ /* @__PURE__ */ t("span", { className: n.menuSubItemLabel, children: c.label })
97
+ ]
98
+ },
99
+ c.key
100
+ )) })
101
+ ] }, e.title);
102
+ }) })
103
+ ] }),
104
+ I ? null : /* @__PURE__ */ u("main", { className: n.main, children: [
105
+ /* @__PURE__ */ t($, {}),
106
+ /* @__PURE__ */ t(E, { resetKey: a, children: L ?? /* @__PURE__ */ t(Y, { text: i }) })
107
+ ] })
108
+ ] });
109
+ }
110
+ export {
111
+ oe as W
112
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { C as r } from "./ChangeLogView-Cstbioyw.js";
2
+ import { C as r } from "./ChangeLogView-VRWVzP0r.js";
3
3
  function n() {
4
4
  return /* @__PURE__ */ e(r, { variant: "page" });
5
5
  }
@@ -1,26 +1,30 @@
1
1
  import { jsx as e, jsxs as b } from "react/jsx-runtime";
2
2
  import { Navigate as t } from "react-router-dom";
3
- import { lazy as T } from "react";
4
- import { UnorderedListOutlined as i, HistoryOutlined as S, ClusterOutlined as l, DashboardOutlined as n, ExperimentOutlined as q, SettingOutlined as k, KeyOutlined as s, AppstoreOutlined as m, SafetyCertificateOutlined as w, TeamOutlined as z, ProfileOutlined as u, ApiOutlined as y, HddOutlined as h, ApartmentOutlined as f, InboxOutlined as v, FileTextOutlined as O, SendOutlined as P, CloudServerOutlined as a, NodeIndexOutlined as x, TableOutlined as C, SearchOutlined as d, DatabaseOutlined as D, ConsoleSqlOutlined as _, BranchesOutlined as E, DeploymentUnitOutlined as G, BookOutlined as g, FundOutlined as M, CloudUploadOutlined as N, TagsOutlined as I, CodeOutlined as R } from "@ant-design/icons";
5
- import { W as B } from "./index-DRrBkbr_.js";
3
+ import { lazy as S } from "react";
4
+ import { UnorderedListOutlined as i, HistoryOutlined as T, ClusterOutlined as l, DashboardOutlined as n, ExperimentOutlined as q, SettingOutlined as k, KeyOutlined as s, AppstoreOutlined as m, SafetyCertificateOutlined as w, TeamOutlined as z, ProfileOutlined as u, ApiOutlined as y, HddOutlined as h, ApartmentOutlined as f, InboxOutlined as v, FileTextOutlined as O, SendOutlined as P, CloudServerOutlined as a, NodeIndexOutlined as _, TableOutlined as C, SearchOutlined as d, DatabaseOutlined as D, ConsoleSqlOutlined as x, BranchesOutlined as E, DeploymentUnitOutlined as G, BookOutlined as g, FundOutlined as M, CloudUploadOutlined as I, TagsOutlined as N, CodeOutlined as R } from "@ant-design/icons";
5
+ import { W as B } from "./index-gMeWspFX.js";
6
6
  import { ConfigApp as U } from "@yuku123/z-config-component";
7
7
  import { MistApp as K } from "@yuku123/z-mist-component";
8
8
  import { MetaApp as L } from "@yuku123/z-meta-component";
9
9
  import { MsgApp as j } from "@yuku123/z-msg-component";
10
10
  import { RpcApp as W } from "@yuku123/z-rpc-component";
11
- import { VectorApp as H } from "@yuku123/z-vector-component";
12
- import { GraphApp as F } from "@yuku123/z-graph-component";
11
+ import { VectorApp as F } from "@yuku123/z-vector-component";
12
+ import { GraphApp as H } from "@yuku123/z-graph-component";
13
13
  import { GwApp as V } from "@yuku123/z-gw-component";
14
14
  import { CacheApp as Z } from "@yuku123/z-cache-component";
15
15
  import { MqApp as Q } from "@yuku123/z-mq-component";
16
16
  import { OssApp as Y } from "@yuku123/z-oss-component";
17
17
  import { ZkbApp as J } from "@yuku123/z-kb-component";
18
18
  import { ScriptProductizationPage as o } from "@yuku123/z-agent-component";
19
- import "./index-DfQCaS0z.js";
20
- const c = (p, r) => T(() => p().then((A) => ({ default: A[r] }))), X = c(() => import("@yuku123/z-config-component"), "ComponentDocPage"), $ = c(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), ee = c(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), te = c(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), ce = c(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), ae = c(() => import("@yuku123/z-kb-component"), "ComponentDocPage"), oe = c(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), ie = c(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), ne = c(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), se = c(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), pe = c(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), re = c(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), le = [
19
+ import "./index-tipx38MZ.js";
20
+ const c = (p, r) => S(() => p().then((A) => ({ default: A[r] }))), X = c(() => import("@yuku123/z-config-component"), "ComponentDocPage"), $ = c(() => import("@yuku123/z-mist-component"), "ComponentDocPage"), ee = c(() => import("@yuku123/z-meta-component"), "ComponentDocPage"), te = c(() => import("@yuku123/z-msg-component"), "ComponentDocPage"), ce = c(() => import("@yuku123/z-rpc-component"), "ComponentDocPage"), ae = c(() => import("@yuku123/z-kb-component"), "ComponentDocPage"), oe = c(() => import("@yuku123/z-oss-component"), "ComponentDocPage"), ie = c(() => import("@yuku123/z-vector-component"), "ComponentDocPage"), ne = c(() => import("@yuku123/z-graph-component"), "ComponentDocPage"), se = c(() => import("@yuku123/z-gw-component"), "ComponentDocPage"), pe = c(() => import("@yuku123/z-cache-component"), "ComponentDocPage"), re = c(() => import("@yuku123/z-mq-component"), "ComponentDocPage"), le = [
21
21
  {
22
22
  title: "配置中心",
23
23
  icon: /* @__PURE__ */ e(k, {}),
24
+ // 通用配置(z-config)属 4A 的 OPS_CONFIG_VIEW「运营配置查看」域:
25
+ // 4A 普通用户角色 USER 不含该权限点 ⇒ 普通用户看不到配置中心入口
26
+ // (否则点进去就是 403 白脸)。管理员角色 ADMIN / 超管可见。
27
+ permission: "OPS_CONFIG_VIEW",
24
28
  items: [
25
29
  {
26
30
  key: "config-list",
@@ -32,7 +36,7 @@ const c = (p, r) => T(() => p().then((A) => ({ default: A[r] }))), X = c(() => i
32
36
  {
33
37
  key: "config-history",
34
38
  label: "变更历史",
35
- icon: /* @__PURE__ */ e(S, {}),
39
+ icon: /* @__PURE__ */ e(T, {}),
36
40
  path: "/config/history",
37
41
  desc: "配置变更记录与版本回溯"
38
42
  },
@@ -170,7 +174,7 @@ const c = (p, r) => T(() => p().then((A) => ({ default: A[r] }))), X = c(() => i
170
174
  },
171
175
  {
172
176
  title: "服务注册",
173
- icon: /* @__PURE__ */ e(x, {}),
177
+ icon: /* @__PURE__ */ e(_, {}),
174
178
  items: [
175
179
  {
176
180
  key: "rpc-service",
@@ -229,7 +233,7 @@ const c = (p, r) => T(() => p().then((A) => ({ default: A[r] }))), X = c(() => i
229
233
  {
230
234
  key: "graph-query",
231
235
  label: "图查询",
232
- icon: /* @__PURE__ */ e(_, {}),
236
+ icon: /* @__PURE__ */ e(x, {}),
233
237
  path: "/graph/query",
234
238
  desc: "Cypher 执行 + 执行计划,写语句二次确认(/api/graph/query)"
235
239
  },
@@ -426,14 +430,14 @@ const c = (p, r) => T(() => p().then((A) => ({ default: A[r] }))), X = c(() => i
426
430
  {
427
431
  key: "script-version",
428
432
  label: "脚本版本",
429
- icon: /* @__PURE__ */ e(N, {}),
433
+ icon: /* @__PURE__ */ e(I, {}),
430
434
  path: "/script/version",
431
435
  desc: "GET /api/script/version/list/{scriptId} · 按脚本主表 ID 查,状态是字符串枚举"
432
436
  },
433
437
  {
434
438
  key: "script-tag",
435
439
  label: "标签治理",
436
- icon: /* @__PURE__ */ e(I, {}),
440
+ icon: /* @__PURE__ */ e(N, {}),
437
441
  path: "/script/tag",
438
442
  desc: "GET /api/script/tag/list · 3 条标签,颜色取 tag_color(回退 color)"
439
443
  }
@@ -496,12 +500,12 @@ const he = [
496
500
  // ─── 向量检索 (z-vector) ───
497
501
  // REST 面是内嵌 QdrantRestServer(非 Spring MVC),经 z-opc 的 /api/vector/** 代理出去
498
502
  { path: "/vector", element: /* @__PURE__ */ e(t, { to: "/vector/collections", replace: !0 }) },
499
- { path: "/vector/*", element: /* @__PURE__ */ e(H, {}) },
503
+ { path: "/vector/*", element: /* @__PURE__ */ e(F, {}) },
500
504
  // ─── 图数据库 (z-graph) ───
501
505
  // REST 面是内嵌 GraphControlServer(JDK HttpServer,非 Spring MVC),经 z-opc 的 /api/graph/** 代理出去
502
506
  // ⚠ 内嵌端口是 8091 不是 8090:8090 归一个外部进程,且被 BizKnowledgeGraphService 当业务依赖在用
503
507
  { path: "/graph", element: /* @__PURE__ */ e(t, { to: "/graph/schema", replace: !0 }) },
504
- { path: "/graph/*", element: /* @__PURE__ */ e(F, {}) },
508
+ { path: "/graph/*", element: /* @__PURE__ */ e(H, {}) },
505
509
  // ─── 网关 (z-gw) ───
506
510
  // admin 面是 z-gw-admin 的原生 Spring MVC(pom 加 io.github.yuku123:z-gw-admin 后挂 /gw/admin/**,12 条 handler);
507
511
  // 页面不直连裸 /gw/admin(不在 sso.intercept-paths 内),一律走 z-opc 自己的环回代理 GET /api/gw/**
@@ -566,7 +570,7 @@ const he = [
566
570
  { path: "/cache/docs", element: /* @__PURE__ */ e(pe, {}) },
567
571
  { path: "/mq/docs", element: /* @__PURE__ */ e(re, {}) }
568
572
  ];
569
- function _e() {
573
+ function xe() {
570
574
  return /* @__PURE__ */ e(
571
575
  B,
572
576
  {
@@ -578,5 +582,5 @@ function _e() {
578
582
  );
579
583
  }
580
584
  export {
581
- _e as default
585
+ xe as default
582
586
  };