@yuku123/z-team-component 0.2.134 → 0.2.135
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-DjEqlai_.js → AdminModuleContent-DHCn4OpR.js} +5 -5
- package/dist/{ChangeLogView-BQCxD0g7.js → ChangeLogView-Cc5cYmcz.js} +1 -1
- package/dist/{ComponentDoc-C1yrRq6Y.js → ComponentDoc-BAUII4UZ.js} +3 -3
- package/dist/{InvitationManagementPage-Bbl_HXlG.js → InvitationManagementPage-BgY1jxQB.js} +1 -1
- package/dist/{OnboardingPage-BoYhlfWE.js → OnboardingPage-CckzpaI0.js} +2 -2
- package/dist/{ScheduledTasks-0FX6xhIs.js → ScheduledTasks-DZSEnuIF.js} +6 -6
- package/dist/{SystemShell-DNRHYsgT.js → SystemShell-DCRIL4Rh.js} +5 -5
- package/dist/{admin-logs-OZ3s7ssr.js → admin-logs-DEawvNOd.js} +1 -1
- package/dist/{api-B0ComkTL.js → api--xHkMnrY.js} +1 -1
- package/dist/{api-BgrPNvTB.js → api-B-nnjGsa.js} +1 -1
- package/dist/{createWorkspaceWsHandler-CkgJR6Oo.js → createWorkspaceWsHandler-y6pRWLoa.js} +3 -3
- package/dist/{index-mHqvjT5a.js → index-4R_QcR8P.js} +2 -2
- package/dist/{index-Cn2CVr2m.js → index-B2ztJXV3.js} +2 -2
- package/dist/{index-Bf-Az5am.js → index-BDUHHaoY.js} +4 -4
- package/dist/{index-CHLZ4xCe.js → index-BIffImVM.js} +426 -414
- package/dist/{index-Dy5HesOM.js → index-C09THX8u.js} +2 -2
- package/dist/{index-dti6XFQV.js → index-C4cx5Qxu.js} +2 -2
- package/dist/{index-vqAJt3qL.js → index-C7ng_cdZ.js} +1 -1
- package/dist/{index-9fGksFL5.js → index-C9LqX4Lg.js} +1 -1
- package/dist/{index-DXvw5NUH.js → index-CMLlvrEW.js} +13 -13
- package/dist/{index-Cg88iPqc.js → index-COn912sj.js} +3 -3
- package/dist/{index-C1sQehbP.js → index-CcHrWE4P.js} +2 -2
- package/dist/index-Cxoup7V8.js +139 -0
- package/dist/{index-CM6iVhI3.js → index-CzS_q6Tn.js} +3 -3
- package/dist/{index-DTKd1x9H.js → index-DWrEAa8-.js} +3 -3
- package/dist/{index-BtCyMeHe.js → index-DePIQVt9.js} +3 -3
- package/dist/{index-Bf57pWxm.js → index-DlBN-ou4.js} +5 -5
- package/dist/{index-Dg_qr92O.js → index-Do3pyigD.js} +1 -1
- package/dist/{index-BiCIEDbX.js → index-DtgTLML8.js} +3 -3
- package/dist/{index-Dx6dKBLL.js → index-DxXcTAH4.js} +1 -1
- package/dist/index-H7hP7Fmj.js +228 -0
- package/dist/{index-DxH2PsDU.js → index-LnUf9Vil.js} +6 -6
- package/dist/{index-Dj88QNYQ.js → index-XWWknPNw.js} +2 -2
- package/dist/{index-M_hPRTgh.js → index-frmk-zNf.js} +5 -5
- package/dist/{index-Bbs7DMqZ.js → index-ztXjGIJk.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instance-BXN17-Ol.js → instance-DL4u5k9c.js} +1 -1
- package/dist/{menuPermission-Bw3hPi8i.js → menuPermission-CA_atlfk.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-DM0C9VL-.js → send-default-agent-team-message-BfBVm9AO.js} +1 -1
- package/dist/{sso-user-F62YVj4w.js → sso-user-Dr8_-Sxd.js} +1 -1
- package/dist/{training-Df00Ilsm.js → training-CcGUA5KC.js} +1 -1
- package/dist/{webide-Iw2coFFL.js → webide-C2JfQ-Je.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
- package/dist/index-TaAkEm82.js +0 -112
- package/dist/index-glQgW-8f.js +0 -147
package/package.json
CHANGED
package/dist/index-TaAkEm82.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import h, { useMemo as u, useEffect as f } from "react";
|
|
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 $ } 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-cognition-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
|
|
25
|
-
}, p = [
|
|
26
|
-
{ title: "知识管理", icon: "📚", items: k },
|
|
27
|
-
...N || [
|
|
28
|
-
{ title: "业务认知", icon: "🧠", items: T }
|
|
29
|
-
],
|
|
30
|
-
// 代码索引(2026-11-10 归纳):z-cognition 代码索引板块(原独立仓 z-indexer,收购后
|
|
31
|
-
// npm 包随之改名 @yuku123/z-cognition-indexer-component)前台四页,
|
|
32
|
-
// 与 admin「知识沉淀 → 知识认知 → 代码认知」同口径:前台查、后台管。
|
|
33
|
-
{ title: "代码索引", icon: "🔍", items: C }
|
|
34
|
-
], d = [
|
|
35
|
-
...A,
|
|
36
|
-
...$,
|
|
37
|
-
...H
|
|
38
|
-
], q = "/z-kb/dashboard";
|
|
39
|
-
function B(s) {
|
|
40
|
-
const n = s.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
41
|
-
return new RegExp(
|
|
42
|
-
`^${n.replace(/:[A-Za-z0-9_]+\*/g, "(?:/.*)?").replace(/:[A-Za-z0-9_]+/g, "[^/]+")}$`
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
function G(s) {
|
|
46
|
-
const n = d.find((t) => t.path === s);
|
|
47
|
-
if (n != null && n.Component) return n.Component;
|
|
48
|
-
for (const t of d)
|
|
49
|
-
if (t.Component) {
|
|
50
|
-
if (t.path.includes(":")) {
|
|
51
|
-
if (B(t.path).test(s)) return t.Component;
|
|
52
|
-
} else if (s.startsWith(t.path + "/"))
|
|
53
|
-
return t.Component;
|
|
54
|
-
}
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
function _(s) {
|
|
58
|
-
for (const n of p)
|
|
59
|
-
for (const t of n.items)
|
|
60
|
-
if (s === t.key || s.startsWith(t.key + "/")) return t.key;
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
function ne() {
|
|
64
|
-
var r, l;
|
|
65
|
-
const s = y(), { pathname: n } = b(), t = u(() => _(n), [n]);
|
|
66
|
-
f(() => {
|
|
67
|
-
if (!_(n)) {
|
|
68
|
-
const { search: i } = window.location;
|
|
69
|
-
s(`${q}${i || ""}`, { replace: !0 });
|
|
70
|
-
}
|
|
71
|
-
}, [n, s]);
|
|
72
|
-
const a = u(() => G(n), [n]);
|
|
73
|
-
return /* @__PURE__ */ o("div", { className: e.shell, children: [
|
|
74
|
-
/* @__PURE__ */ o("aside", { className: e.sidebar, children: [
|
|
75
|
-
/* @__PURE__ */ o("div", { className: e.sidebarHeader, children: [
|
|
76
|
-
/* @__PURE__ */ c("span", { className: e.sidebarHeaderIcon, children: "🧠" }),
|
|
77
|
-
/* @__PURE__ */ c("span", { children: ((r = L) == null ? void 0 : r.title) ?? ((l = v) == null ? void 0 : l.title) ?? "知识工作台" })
|
|
78
|
-
] }),
|
|
79
|
-
/* @__PURE__ */ c("nav", { className: e.menuList, children: p.map((i) => /* @__PURE__ */ o("div", { className: e.section, children: [
|
|
80
|
-
/* @__PURE__ */ o("div", { className: e.sectionTitle, children: [
|
|
81
|
-
/* @__PURE__ */ c("span", { className: e.sectionIcon, children: i.icon }),
|
|
82
|
-
i.title
|
|
83
|
-
] }),
|
|
84
|
-
i.items.map((m) => {
|
|
85
|
-
const I = t === m.key;
|
|
86
|
-
return /* @__PURE__ */ o(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
className: `${e.menuItem} ${I ? e.menuItemActive : ""}`,
|
|
90
|
-
onClick: () => s(m.key),
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ o("div", { className: e.menuItemLabel, children: [
|
|
93
|
-
m.icon ? /* @__PURE__ */ c("span", { className: e.menuItemIcon, children: m.icon }) : null,
|
|
94
|
-
m.label
|
|
95
|
-
] }),
|
|
96
|
-
m.desc ? /* @__PURE__ */ c("div", { className: e.menuItemDesc, children: m.desc }) : null
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
m.key
|
|
100
|
-
);
|
|
101
|
-
})
|
|
102
|
-
] }, i.title)) })
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ c("main", { className: e.main, children: a ? /* @__PURE__ */ c(h.Suspense, { fallback: /* @__PURE__ */ c("div", { className: e.emptyText, children: "加载中…" }), children: /* @__PURE__ */ c(a, {}) }) : /* @__PURE__ */ o("div", { className: e.empty, children: [
|
|
105
|
-
/* @__PURE__ */ c("div", { className: e.emptyIcon, children: "🧠" }),
|
|
106
|
-
/* @__PURE__ */ c("div", { className: e.emptyText, children: "请从左侧选择知识模块" })
|
|
107
|
-
] }) })
|
|
108
|
-
] });
|
|
109
|
-
}
|
|
110
|
-
export {
|
|
111
|
-
ne as default
|
|
112
|
-
};
|
package/dist/index-glQgW-8f.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as I, useMemo as p, useCallback as B, useEffect as L } from "react";
|
|
3
|
-
import { useNavigate as y, useLocation as G } from "react-router-dom";
|
|
4
|
-
import { CodeOutlined as v, DownOutlined as O, RightOutlined as A, AppstoreOutlined as C, TableOutlined as W, DatabaseOutlined as H, RobotOutlined as M, FunctionOutlined as $, ApartmentOutlined as P, EyeOutlined as R, BranchesOutlined as U, DeploymentUnitOutlined as _, SafetyCertificateOutlined as x } from "@ant-design/icons";
|
|
5
|
-
import E from "@yuku123/z-lc-component";
|
|
6
|
-
import { f as D, M as T } from "./menuPermission-Bw3hPi8i.js";
|
|
7
|
-
import { u as h } from "./ComponentDoc-C1yrRq6Y.js";
|
|
8
|
-
const j = "_shellWrap_1gpbw_7", K = "_shell_1gpbw_7", q = "_productBanner_1gpbw_25", F = "_productBannerLabel_1gpbw_37", z = "_productBannerName_1gpbw_43", J = "_productBannerCode_1gpbw_51", Q = "_productBannerBack_1gpbw_56", V = "_sidebar_1gpbw_73", X = "_sidebarHeader_1gpbw_84", Y = "_menuList_1gpbw_95", Z = "_menuGroup_1gpbw_101", ee = "_menuGroupHeader_1gpbw_105", ne = "_menuGroupLabel_1gpbw_123", te = "_menuGroupArrow_1gpbw_127", ae = "_menuSubList_1gpbw_132", se = "_menuSubItemWrap_1gpbw_138", re = "_menuSubItem_1gpbw_138", ie = "_menuSubItemActive_1gpbw_159", oe = "_menuSubItemIcon_1gpbw_166", ce = "_menuSubItemLabel_1gpbw_171", ue = "_main_1gpbw_176", t = {
|
|
9
|
-
shellWrap: j,
|
|
10
|
-
shell: K,
|
|
11
|
-
productBanner: q,
|
|
12
|
-
productBannerLabel: F,
|
|
13
|
-
productBannerName: z,
|
|
14
|
-
productBannerCode: J,
|
|
15
|
-
productBannerBack: Q,
|
|
16
|
-
sidebar: V,
|
|
17
|
-
sidebarHeader: X,
|
|
18
|
-
menuList: Y,
|
|
19
|
-
menuGroup: Z,
|
|
20
|
-
menuGroupHeader: ee,
|
|
21
|
-
menuGroupLabel: ne,
|
|
22
|
-
menuGroupArrow: te,
|
|
23
|
-
menuSubList: ae,
|
|
24
|
-
menuSubItemWrap: se,
|
|
25
|
-
menuSubItem: re,
|
|
26
|
-
menuSubItemActive: ie,
|
|
27
|
-
menuSubItemIcon: oe,
|
|
28
|
-
menuSubItemLabel: ce,
|
|
29
|
-
main: ue
|
|
30
|
-
}, m = [
|
|
31
|
-
{
|
|
32
|
-
title: "应用",
|
|
33
|
-
items: [
|
|
34
|
-
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(C, {}), path: "apps" }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
title: "建模",
|
|
39
|
-
items: [
|
|
40
|
-
{ key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(W, {}), path: "designer" },
|
|
41
|
-
{ key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(H, {}), path: "db-import" },
|
|
42
|
-
{ key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(M, {}), path: "admin/ai" }
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: "配置",
|
|
47
|
-
items: [
|
|
48
|
-
{ key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e($, {}), path: "admin/dicts" },
|
|
49
|
-
{ key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(P, {}), path: "admin/relations" },
|
|
50
|
-
{ key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(R, {}), path: "admin/views" },
|
|
51
|
-
{ key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e(U, {}), 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(x, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
|
|
59
|
-
{ key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(_, {}), path: "admin/deployments" }
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
], d = "/lc";
|
|
63
|
-
function le(r) {
|
|
64
|
-
if (!r.startsWith(d)) return null;
|
|
65
|
-
const c = r.slice(d.length).replace(/^\//, "");
|
|
66
|
-
for (const u of m)
|
|
67
|
-
for (const l of u.items)
|
|
68
|
-
if (c === l.path || c.startsWith(`${l.path}/`)) return l.key;
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
function we() {
|
|
72
|
-
const r = y(), { pathname: c, search: u } = G(), l = h((n) => n.currentUser), b = h((n) => n.permissionState), [S, w] = I(
|
|
73
|
-
new Set(m.map((n) => n.title))
|
|
74
|
-
), s = p(() => {
|
|
75
|
-
try {
|
|
76
|
-
const n = new URLSearchParams(u), i = n.get("product");
|
|
77
|
-
return i ? { code: i, name: n.get("productName") || i } : null;
|
|
78
|
-
} catch {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
}, [u]), f = B(() => {
|
|
82
|
-
if (!s) return;
|
|
83
|
-
const n = new URLSearchParams();
|
|
84
|
-
n.set("product", s.code), s.name && n.set("productName", s.name), r(`/workspace?mode=product&${n.toString()}`);
|
|
85
|
-
}, [s, r]);
|
|
86
|
-
L(() => {
|
|
87
|
-
c.startsWith("/lc") || r(`/lc/apps${u || ""}`, { replace: !0 });
|
|
88
|
-
}, [c, u, r]);
|
|
89
|
-
const N = p(
|
|
90
|
-
() => b === "failed" ? m : D(m, l),
|
|
91
|
-
[l, b]
|
|
92
|
-
), g = p(() => le(c), [c]), k = (n) => {
|
|
93
|
-
w((i) => {
|
|
94
|
-
const a = new Set(i);
|
|
95
|
-
return a.has(n) ? a.delete(n) : a.add(n), a;
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
return /* @__PURE__ */ o("div", { className: t.shellWrap, children: [
|
|
99
|
-
s && /* @__PURE__ */ o("div", { className: t.productBanner, children: [
|
|
100
|
-
/* @__PURE__ */ e("span", { className: t.productBannerLabel, children: "📦 当前产品" }),
|
|
101
|
-
/* @__PURE__ */ e("span", { className: t.productBannerName, title: s.name, children: s.name }),
|
|
102
|
-
/* @__PURE__ */ e("span", { className: t.productBannerCode, children: s.code }),
|
|
103
|
-
/* @__PURE__ */ e("button", { type: "button", className: t.productBannerBack, onClick: f, children: "← 返回产品工作台" })
|
|
104
|
-
] }),
|
|
105
|
-
/* @__PURE__ */ o("div", { className: t.shell, children: [
|
|
106
|
-
/* @__PURE__ */ o("aside", { className: t.sidebar, children: [
|
|
107
|
-
/* @__PURE__ */ o("div", { className: t.sidebarHeader, children: [
|
|
108
|
-
/* @__PURE__ */ e(v, {}),
|
|
109
|
-
/* @__PURE__ */ e("span", { children: "研发工作台" })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ e(T, {}),
|
|
112
|
-
/* @__PURE__ */ e("nav", { className: t.menuList, children: N.map((n) => {
|
|
113
|
-
const i = !S.has(n.title);
|
|
114
|
-
return /* @__PURE__ */ o("div", { className: t.menuGroup, children: [
|
|
115
|
-
/* @__PURE__ */ o(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
className: t.menuGroupHeader,
|
|
119
|
-
onClick: () => k(n.title),
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
|
|
122
|
-
/* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: i ? /* @__PURE__ */ e(O, {}) : /* @__PURE__ */ e(A, {}) })
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
),
|
|
126
|
-
i && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((a) => /* @__PURE__ */ o(
|
|
127
|
-
"li",
|
|
128
|
-
{
|
|
129
|
-
className: `${t.menuSubItemWrap} ${t.menuSubItem} ${g === a.key ? t.menuSubItemActive : ""}`,
|
|
130
|
-
onClick: () => r(`${d}/${a.path}`),
|
|
131
|
-
children: [
|
|
132
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: a.icon }),
|
|
133
|
-
/* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: a.label })
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
a.key
|
|
137
|
-
)) })
|
|
138
|
-
] }, n.title);
|
|
139
|
-
}) })
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e(E, {}) })
|
|
142
|
-
] })
|
|
143
|
-
] });
|
|
144
|
-
}
|
|
145
|
-
export {
|
|
146
|
-
we as default
|
|
147
|
-
};
|