@yuku123/z-team-component 0.2.130 → 0.2.131
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-AY7dKChQ.js → ChangeLogView-SwacGpsw.js} +1 -1
- package/dist/{ComponentDoc-DTpTBK1V.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
- package/dist/{InvitationManagementPage-YzQVnNWz.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
- package/dist/{OnboardingPage-ClH-s7zs.js → OnboardingPage-DvNt71kX.js} +2 -2
- package/dist/{ScheduledTasks-DhcmGmhu.js → ScheduledTasks-COgb4MZJ.js} +6 -6
- package/dist/SystemShell-CSXcsiNp.js +752 -0
- package/dist/{admin-logs-2gdJxEwA.js → admin-logs-CExsxQ5h.js} +5 -5
- package/dist/{api-BHYf7Uyx.js → api-C9kTgVc2.js} +1 -1
- package/dist/{api---aB1ADx.js → api-DXw93E7c.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BC4HmdFu.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
- package/dist/{index-CqOsWy6H.js → index-9rfSVSTh.js} +9 -9
- package/dist/{index-lucAUJAv.js → index-B2Dfbi8J.js} +2 -2
- package/dist/{index-Chzml7fB.js → index-B3uLo8-F.js} +3 -3
- package/dist/{index-CnIbuXF9.js → index-BNPq7yBg.js} +2 -2
- package/dist/{index--HSE1tzT.js → index-BTJ83JLl.js} +11 -11
- package/dist/{index-9coNts0T.js → index-BkzBYfhO.js} +8489 -8453
- package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
- package/dist/index-Bs9odXxd.js +1214 -0
- package/dist/{index-mwKbvNPB.js → index-CF3xDZ7q.js} +4 -4
- package/dist/{index-CnRAUDUi.js → index-COobH4Vi.js} +1 -1
- package/dist/{index-Opx4qrhX.js → index-CU6jFFl5.js} +3 -3
- package/dist/{index-DA0MCrVH.js → index-CXEYA7rt.js} +2 -2
- package/dist/{index-Zr09eAzk.js → index-CZCKpsry.js} +2 -2
- package/dist/{index-CnyMTIyv.js → index-Ceu-yckM.js} +70 -70
- package/dist/{index-baUMWaRm.js → index-Ci6_CBwE.js} +3 -3
- package/dist/{index-CTqU8nrB.js → index-CntZHojY.js} +2 -2
- package/dist/{index-DqiBrPAv.js → index-D2DFKRUf.js} +1 -1
- package/dist/{index-DfpB0BR9.js → index-DLK7DuCr.js} +3 -3
- package/dist/{index-Ci31buz9.js → index-DM6XeWFk.js} +4059 -4043
- package/dist/{index-fJnhCAB9.js → index-DMfYPIkB.js} +2 -2
- package/dist/{index-Ca08VoFz.js → index-DZ0fYNO9.js} +20 -20
- package/dist/{index-Cui8SX9p.js → index-D_J1ZCy8.js} +3 -3
- package/dist/{index-Ccvhn50s.js → index-DmV6xR7C.js} +9 -9
- package/dist/{index-CROBbbCB.js → index-ftuPuj0s.js} +9 -9
- package/dist/{index-DHubhPeT.js → index-mEgmHNRO.js} +1 -1
- package/dist/{index--L2wU6OV.js → index-t2nMJUPu.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-ITIB5e5v.js → instance-DD3kbAUh.js} +1 -1
- package/dist/{menuPermission-Dw1EJWIf.js → menuPermission-v0881tid.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DzRmAa6S.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
- package/dist/{sso-user-497FBkoQ.js → sso-user-CnVXqYR7.js} +1 -1
- package/dist/{training-B4IByvWW.js → training-BS23m-yy.js} +1 -1
- package/dist/useSidebarResize--Avuabb1.js +46 -0
- package/dist/{webide-DwQqqS-I.js → webide-BPJ1IpZq.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/SystemShell-Cz7S4YnT.js +0 -718
- package/dist/index-4apTfQuo.js +0 -2213
|
@@ -1,48 +1,53 @@
|
|
|
1
1
|
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import h, { useMemo as
|
|
2
|
+
import h, { useMemo as u, useEffect as f } from "react";
|
|
3
3
|
import { useNavigate as y, useLocation as b } from "react-router-dom";
|
|
4
|
-
import { appMeta as v, menuSections as N, menuItems as T, routes as
|
|
5
|
-
import { appMeta as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
import { appMeta as v, menuSections as N, menuItems as T, routes as $ } from "@yuku123/z-cognition-component/pages";
|
|
5
|
+
import { appMeta as L, menuItems as k, routes as A } from "@yuku123/z-cognition-kb-component/pages";
|
|
6
|
+
import { menuItems as C, routes as H } from "@yuku123/z-indexer-component/pages";
|
|
7
|
+
const g = "_shell_9m078_6", x = "_sidebar_9m078_15", M = "_sidebarHeader_9m078_26", E = "_sidebarHeaderIcon_9m078_37", D = "_menuList_9m078_41", S = "_section_9m078_48", w = "_sectionTitle_9m078_52", z = "_sectionIcon_9m078_64", R = "_menuItemIcon_9m078_68", U = "_menuItem_9m078_68", W = "_menuItemActive_9m078_85", j = "_menuItemLabel_9m078_90", K = "_menuItemDesc_9m078_101", O = "_main_9m078_113", P = "_empty_9m078_122", Z = "_emptyIcon_9m078_132", F = "_emptyText_9m078_136", e = {
|
|
8
|
+
shell: g,
|
|
9
|
+
sidebar: x,
|
|
10
|
+
sidebarHeader: M,
|
|
11
|
+
sidebarHeaderIcon: E,
|
|
12
|
+
menuList: D,
|
|
13
|
+
section: S,
|
|
14
|
+
sectionTitle: w,
|
|
15
|
+
sectionIcon: z,
|
|
16
|
+
menuItemIcon: R,
|
|
17
|
+
menuItem: U,
|
|
18
|
+
menuItemActive: W,
|
|
19
|
+
menuItemLabel: j,
|
|
20
|
+
menuItemDesc: K,
|
|
21
|
+
main: O,
|
|
22
|
+
empty: P,
|
|
23
|
+
emptyIcon: Z,
|
|
24
|
+
emptyText: F
|
|
24
25
|
}, p = [
|
|
25
|
-
{ title: "知识管理", icon: "📚", items:
|
|
26
|
+
{ title: "知识管理", icon: "📚", items: k },
|
|
26
27
|
...N || [
|
|
27
28
|
{ title: "业务认知", icon: "🧠", items: T }
|
|
28
|
-
]
|
|
29
|
-
|
|
29
|
+
],
|
|
30
|
+
// 代码索引(2026-11-10 归纳):独立仓 z-indexer 代码索引中心前台四页,
|
|
31
|
+
// 与 admin「知识沉淀 → 知识认知 → 代码认知」同口径:前台查、后台管。
|
|
32
|
+
{ title: "代码索引", icon: "🔍", items: C }
|
|
33
|
+
], d = [
|
|
30
34
|
...A,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
...$,
|
|
36
|
+
...H
|
|
37
|
+
], q = "/z-kb/dashboard";
|
|
38
|
+
function B(s) {
|
|
34
39
|
const n = s.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
35
40
|
return new RegExp(
|
|
36
41
|
`^${n.replace(/:[A-Za-z0-9_]+\*/g, "(?:/.*)?").replace(/:[A-Za-z0-9_]+/g, "[^/]+")}$`
|
|
37
42
|
);
|
|
38
43
|
}
|
|
39
|
-
function
|
|
40
|
-
const n =
|
|
44
|
+
function G(s) {
|
|
45
|
+
const n = d.find((t) => t.path === s);
|
|
41
46
|
if (n != null && n.Component) return n.Component;
|
|
42
|
-
for (const t of
|
|
47
|
+
for (const t of d)
|
|
43
48
|
if (t.Component) {
|
|
44
49
|
if (t.path.includes(":")) {
|
|
45
|
-
if (
|
|
50
|
+
if (B(t.path).test(s)) return t.Component;
|
|
46
51
|
} else if (s.startsWith(t.path + "/"))
|
|
47
52
|
return t.Component;
|
|
48
53
|
}
|
|
@@ -54,21 +59,21 @@ function _(s) {
|
|
|
54
59
|
if (s === t.key || s.startsWith(t.key + "/")) return t.key;
|
|
55
60
|
return null;
|
|
56
61
|
}
|
|
57
|
-
function
|
|
62
|
+
function ne() {
|
|
58
63
|
var r, l;
|
|
59
|
-
const s = y(), { pathname: n } = b(), t =
|
|
64
|
+
const s = y(), { pathname: n } = b(), t = u(() => _(n), [n]);
|
|
60
65
|
f(() => {
|
|
61
66
|
if (!_(n)) {
|
|
62
67
|
const { search: i } = window.location;
|
|
63
|
-
s(`${
|
|
68
|
+
s(`${q}${i || ""}`, { replace: !0 });
|
|
64
69
|
}
|
|
65
70
|
}, [n, s]);
|
|
66
|
-
const a =
|
|
71
|
+
const a = u(() => G(n), [n]);
|
|
67
72
|
return /* @__PURE__ */ o("div", { className: e.shell, children: [
|
|
68
73
|
/* @__PURE__ */ o("aside", { className: e.sidebar, children: [
|
|
69
74
|
/* @__PURE__ */ o("div", { className: e.sidebarHeader, children: [
|
|
70
75
|
/* @__PURE__ */ c("span", { className: e.sidebarHeaderIcon, children: "🧠" }),
|
|
71
|
-
/* @__PURE__ */ c("span", { children: ((r =
|
|
76
|
+
/* @__PURE__ */ c("span", { children: ((r = L) == null ? void 0 : r.title) ?? ((l = v) == null ? void 0 : l.title) ?? "知识工作台" })
|
|
72
77
|
] }),
|
|
73
78
|
/* @__PURE__ */ c("nav", { className: e.menuList, children: p.map((i) => /* @__PURE__ */ o("div", { className: e.section, children: [
|
|
74
79
|
/* @__PURE__ */ o("div", { className: e.sectionTitle, children: [
|
|
@@ -102,5 +107,5 @@ function X() {
|
|
|
102
107
|
] });
|
|
103
108
|
}
|
|
104
109
|
export {
|
|
105
|
-
|
|
110
|
+
ne as default
|
|
106
111
|
};
|