@yuku123/z-team-component 0.2.139 → 0.2.141
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-B1IJbLVN.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
- package/dist/{ChangeLogView-BVKf3AZn.js → ChangeLogView-C5v5uT8L.js} +1 -1
- package/dist/{ComponentDoc-BIX-e69A.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
- package/dist/{InvitationManagementPage-DRC_8AiO.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
- package/dist/{OnboardingPage-B4GQTFCS.js → OnboardingPage-BW8WhBg5.js} +2 -2
- package/dist/ScheduledTasks-BaZ0_klE.js +12024 -0
- package/dist/SystemShell-I7vWo1XG.js +858 -0
- package/dist/{admin-logs-DK00NEUv.js → admin-logs-BDPC3Q_Y.js} +5 -5
- package/dist/{api-C_9xZbZr.js → api-BJ5jPWNm.js} +1 -1
- package/dist/{api-DBemNteG.js → api-U9U4zzq_.js} +1 -1
- package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
- package/dist/{index-BGAG77Nt.js → index-BGZV4U3S.js} +1325 -1187
- package/dist/{CollabPersonalHost-BY6RqeQJ.js → index-BPEfgkzE.js} +3 -3
- package/dist/{index-BgCxUeRF.js → index-BXaJSMd0.js} +9 -9
- package/dist/{from-scenario-D8CIJLDn.js → index-Bfw6OE5L.js} +19 -20
- package/dist/index-BlDMnzJF.js +18 -0
- package/dist/{welcome-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
- package/dist/{build-by-form-CXxXrXvw.js → index-BwhK44Dc.js} +26 -27
- package/dist/{TrainingAdminShell-CgnQM4Nb.js → index-CP5raaOW.js} +780 -792
- package/dist/{docs-A-g6sqaE.js → index-CPpqideA.js} +1 -1
- package/dist/{index-BM6KEb8k.js → index-CToJEufJ.js} +1 -1
- package/dist/{common-Bcnlb4nY.js → index-CVgvlDAT.js} +17 -17
- package/dist/{admin-ryysUJ9z.js → index-CmzTSdmD.js} +30 -31
- package/dist/{Market-C2vkBzDr.js → index-CsNtBWH-.js} +2 -2
- package/dist/index-DIv1OJ_2.js +1840 -0
- package/dist/{chat-DKwMolQV.js → index-DKUg7Evq.js} +28 -29
- package/dist/{index-BlfOXOZM.js → index-DSXVCDf7.js} +9 -9
- package/dist/{OpsWorkbench-D8RF2p4X.js → index-Dd5RE_0a.js} +342 -389
- package/dist/index-DuZrrpXt.js +1298 -0
- package/dist/{from-ticket-D0oQPEf1.js → index-Gn0zdd5m.js} +2 -2
- package/dist/index-WWGxF0UX.js +136 -0
- package/dist/{change-log-CcmXtywx.js → index-XTNGZnrF.js} +1 -1
- package/dist/{KnowledgeGraphTab-BfhDEyvW.js → index-XgaiU13i.js} +1 -1
- package/dist/{scenario-DOpFkfNV.js → index-d6RIzlsj.js} +2 -2
- package/dist/{index-Bs_WMKyt.js → index-kjli87DO.js} +3895 -3964
- package/dist/{phone-BU4g7eHI.js → index-mDjl3m2W.js} +198 -192
- package/dist/{index-Dlf6mERD.js → index-nj-cjKsf.js} +1910 -1950
- package/dist/{WorkBuddyShell-DCrPpMd5.js → index-skl-gjj4.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/instance-D_EP8AQm.js +116 -0
- package/dist/{menuPermission-C4EVCwjs.js → menuPermission-Bhnols4v.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-1L9Jv1eJ.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
- package/dist/{training-BqYfINRR.js → training-B1eRX8g1.js} +1 -1
- package/dist/{webide-AknolY0B.js → webide-C4ThGZzY.js} +1161 -1317
- package/dist/z-team-component.css +1 -1
- package/package.json +5 -4
- package/dist/CognitionWorkbench-DrDFy5jN.js +0 -139
- package/dist/DevWorkbench-BtiPE_V4.js +0 -228
- package/dist/ProductWorkspace-PSO7Q9m-.js +0 -1323
- package/dist/ScheduledTasks-CoaHVU6e.js +0 -12006
- package/dist/SmartWorkbench-BkdfSgqx.js +0 -1867
- package/dist/SystemShell-CANwRSyW.js +0 -886
- package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
- package/dist/createWorkspaceWsHandler-6xyLJ14H.js +0 -12902
- package/dist/instance-B9ZKD5cL.js +0 -186
- package/dist/sso-user-Co71Xi9I.js +0 -43
- /package/dist/{download-B_LJRFsK.js → index-B_LJRFsK.js} +0 -0
- /package/dist/{chatdemo-C815hPWS.js → index-C815hPWS.js} +0 -0
- /package/dist/{portal-QNpTaU--.js → index-QNpTaU--.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-
|
|
2
|
+
import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-DnZq0_Rk.js";
|
|
3
3
|
import { CheckCircleFilled as b } from "@ant-design/icons";
|
|
4
4
|
import { Result as D, Button as R, Spin as U } from "antd";
|
|
5
5
|
import B from "query-string";
|
|
6
6
|
import { useMemo as y, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
|
|
7
7
|
import { useLocation as W } from "react-router-dom";
|
|
8
8
|
import { h as w } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-D_EP8AQm.js";
|
|
10
10
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
11
11
|
function nt() {
|
|
12
12
|
const m = W(), p = B.parse(m.search), o = String(
|
|
@@ -0,0 +1,136 @@
|
|
|
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-Bhnols4v.js";
|
|
7
|
+
import { u as _ } from "./ComponentDoc-DnZq0_Rk.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(`/workspace?mode=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
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as n, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import { BookOutlined as V, ReloadOutlined as Ne, SearchOutlined as fe, CloseOutlined as ge, CaretDownOutlined as ve, CaretRightOutlined as Te } from "@ant-design/icons";
|
|
3
3
|
import { message as Se, Spin as F } from "antd";
|
|
4
4
|
import { useState as k, useRef as M, useEffect as G, useCallback as C } from "react";
|
|
5
|
-
import { a as A, B as R, b as E } from "./ComponentDoc-
|
|
5
|
+
import { a as A, B as R, b as E } from "./ComponentDoc-DnZq0_Rk.js";
|
|
6
6
|
function B(a) {
|
|
7
7
|
const l = new URLSearchParams();
|
|
8
8
|
Object.entries(a).forEach(([N, s]) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
|
|
3
|
-
import { u as j } from "./ComponentDoc-
|
|
3
|
+
import { u as j } from "./ComponentDoc-DnZq0_Rk.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { l as F, c as G, a as z, b as K, p as W } from "./api-
|
|
5
|
+
import { l as F, c as G, a as z, b as K, p as W } from "./api-U9U4zzq_.js";
|
|
6
6
|
const L = "dev_brain_scenario";
|
|
7
7
|
function q() {
|
|
8
8
|
var M;
|