@yuku123/z-team-component 0.2.84 → 0.2.89
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-_bRZ55Yi.js → ChangeLogView-DagOxr6O.js} +1 -1
- package/dist/{ComponentDoc-BFoF51we.js → ComponentDoc-CP8PmT4l.js} +3 -3
- package/dist/ComponentDoc-D1vtx1CE.js +3998 -0
- package/dist/{InvitationManagementPage-CTPCZXHu.js → InvitationManagementPage-C-8t565B.js} +1 -1
- package/dist/InvitationManagementPage-DDx-AX4v.js +495 -0
- package/dist/{OnboardingPage-DwtuTL61.js → OnboardingPage-DUUHQLSp.js} +2 -2
- package/dist/OnboardingPage-DUVza4FC.js +393 -0
- package/dist/ScheduledTasks-BSJP-8rB.js +10708 -0
- package/dist/ScheduledTasks-CGNB0zlb.js +10708 -0
- package/dist/{SystemShell-D9OzKxL-.js → SystemShell-DTFR-Pfd.js} +5 -5
- package/dist/SystemShell-DZ-W2gUt.js +689 -0
- package/dist/{api-CIhVblfa.js → api-BftpestH.js} +392 -391
- package/dist/{api-DXLNhtCX.js → api-GfWm5pTp.js} +1 -1
- package/dist/api-nf4Uaca5.js +20 -0
- package/dist/{createWorkspaceWsHandler-BWP5S5X3.js → createWorkspaceWsHandler-rKc7vc8k.js} +4373 -4294
- package/dist/index-3qkbu-HG.js +9844 -0
- package/dist/{index-BCp5EtqR.js → index-9Vozb4E5.js} +3 -3
- package/dist/{index-PKkV63Sw.js → index-B1lzhb6f.js} +1 -1
- package/dist/{index-CxFAICql.js → index-B51WSpDM.js} +7 -7
- package/dist/{index-uF04Ucsi.js → index-B5dDwxhs.js} +1 -1
- package/dist/{index-Cvx6rrxD.js → index-BMQ6XkO3.js} +1 -1
- package/dist/{index-CESmMALI.js → index-BR0HXBjY.js} +3 -3
- package/dist/index-B_H-Ynz5.js +9844 -0
- package/dist/index-BngdCYiY.js +149 -0
- package/dist/{index-SbMjh8t4.js → index-BqG6XqTh.js} +2 -2
- package/dist/{index-CijskN6t.js → index-BxBGVGKQ.js} +4 -4
- package/dist/{index-x_7Rmav9.js → index-C1kpuot_.js} +2 -2
- package/dist/{index-nW0ikV2R.js → index-C5FC0WCa.js} +5 -5
- package/dist/{index-CoBZZQBy.js → index-CHTu5H1U.js} +3 -3
- package/dist/{index-CBQMS6rx.js → index-CUhSJJL0.js} +2 -2
- package/dist/index-D8ncig8C.js +149 -0
- package/dist/index-D92Y4nix.js +178 -0
- package/dist/index-DTFcQizU.js +3488 -0
- package/dist/index-D_t92tEF.js +2700 -0
- package/dist/{index-DK70mOTz.js → index-DcHrkop2.js} +3 -3
- package/dist/index-DelMCvoP.js +118 -0
- package/dist/{index-mnWs_wA3.js → index-DoC-nKZZ.js} +2 -2
- package/dist/index-Dxx0UEBW.js +93 -0
- package/dist/{index-Dm3wmB0K.js → index-DyFaoD5W.js} +2 -2
- package/dist/index-EdPtymBD.js +574 -0
- package/dist/index-JS2OVZ4Q.js +3488 -0
- package/dist/index-LkYDFjtJ.js +914 -0
- package/dist/{index-nU-V276i.js → index-MYohlrH6.js} +4 -4
- package/dist/{index-cdB5K3gx.js → index-VGtET31b.js} +1 -1
- package/dist/index-d7BD8lzt.js +242 -0
- package/dist/{index-DT80Pwa_.js → index-ji8TPz9K.js} +4 -4
- package/dist/index-mIk8zAAm.js +1143 -0
- package/dist/index-p1jMVRnp.js +112 -0
- package/dist/{index-Cwr5Slv1.js → index-pScDd5cp.js} +6 -6
- package/dist/{index-DzS6-D3M.js → index-s_ikMJ2V.js} +1 -1
- package/dist/{index-BgIheStI.js → index-v3WaXkDJ.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-CDmueqyu.js → instance-CI6-4BZ6.js} +1 -1
- package/dist/{menuPermission-DHUqvHfu.js → menuPermission-CF3r6JEV.js} +3 -3
- package/dist/menuPermission-CZvOK8eU.js +60 -0
- package/dist/pages.js +1 -1
- package/dist/{personal-Bn3RLYB8.js → personal-D-eMMf0_.js} +2 -2
- package/dist/{schedule-CETzN_0H.js → schedule-ChO2xIGd.js} +1 -1
- package/dist/{send-default-agent-team-message-CfVaEN2y.js → send-default-agent-team-message-c5oKdQQA.js} +1 -1
- package/dist/{sso-user-ZUKv4XMX.js → sso-user-DToM5dPy.js} +1 -1
- package/dist/{training-bxftgU55.js → training-B38tnwLL.js} +1 -1
- package/dist/{useAppStore-BBr_Fwsz.js → useAppStore-BFO_h1L2.js} +1 -1
- package/dist/{webide-Cuj_Pvkk.js → webide-DTZ46LPR.js} +4 -4
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/ScheduledTasks-yeTm2bOY.js +0 -9407
- package/dist/index-BHrMl3Jq.js +0 -9585
- package/dist/index-BP7WTzVH.js +0 -137
- package/dist/index-Co_0idJY.js +0 -2936
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as c, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { i as $, t as x, p as O, c as b, b as v } from "./api-
|
|
2
|
+
import { i as $, t as x, p as O, c as b, b as v } from "./api-BftpestH.js";
|
|
3
3
|
import { CheckCircleFilled as F } 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 j, 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 y } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-
|
|
10
|
-
import { u as w } from "./useAppStore-
|
|
9
|
+
import { l as Z, j as z, f as H, b as L, p as M } from "./instance-CI6-4BZ6.js";
|
|
10
|
+
import { u as w } from "./useAppStore-BFO_h1L2.js";
|
|
11
11
|
import { b as N } from "./mobile-client-O3yr9h6t.js";
|
|
12
12
|
function ct() {
|
|
13
13
|
const m = W(), p = B.parse(m.search), o = String(
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, useMemo as d } from "react";
|
|
3
|
+
import { useNavigate as G, useLocation as k } from "react-router-dom";
|
|
4
|
+
import { CodeOutlined as L, DownOutlined as N, RightOutlined as O, AppstoreOutlined as v, TableOutlined as A, DatabaseOutlined as w, RobotOutlined as H, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as C, BranchesOutlined as $, DeploymentUnitOutlined as p, SafetyCertificateOutlined as g } from "@ant-design/icons";
|
|
5
|
+
import R from "@yuku123/z-lc-component";
|
|
6
|
+
import { f as U, M as x } from "./menuPermission-CZvOK8eU.js";
|
|
7
|
+
import { u as b } from "./useAppStore-BFO_h1L2.js";
|
|
8
|
+
const D = "_shell_1n5c7_7", E = "_sidebar_1n5c7_15", P = "_sidebarHeader_1n5c7_26", j = "_menuList_1n5c7_37", K = "_menuGroup_1n5c7_43", T = "_menuGroupHeader_1n5c7_47", B = "_menuGroupLabel_1n5c7_65", F = "_menuGroupArrow_1n5c7_69", q = "_menuSubList_1n5c7_74", z = "_menuSubItemWrap_1n5c7_80", J = "_menuSubItem_1n5c7_80", Q = "_menuSubItemActive_1n5c7_101", V = "_menuSubItemIcon_1n5c7_108", X = "_menuSubItemLabel_1n5c7_113", Y = "_main_1n5c7_118", t = {
|
|
9
|
+
shell: D,
|
|
10
|
+
sidebar: E,
|
|
11
|
+
sidebarHeader: P,
|
|
12
|
+
menuList: j,
|
|
13
|
+
menuGroup: K,
|
|
14
|
+
menuGroupHeader: T,
|
|
15
|
+
menuGroupLabel: B,
|
|
16
|
+
menuGroupArrow: F,
|
|
17
|
+
menuSubList: q,
|
|
18
|
+
menuSubItemWrap: z,
|
|
19
|
+
menuSubItem: J,
|
|
20
|
+
menuSubItemActive: Q,
|
|
21
|
+
menuSubItemIcon: V,
|
|
22
|
+
menuSubItemLabel: X,
|
|
23
|
+
main: Y
|
|
24
|
+
}, r = [
|
|
25
|
+
{
|
|
26
|
+
title: "应用",
|
|
27
|
+
items: [
|
|
28
|
+
{ key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(v, {}), path: "apps" }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "建模",
|
|
33
|
+
items: [
|
|
34
|
+
{ key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(A, {}), path: "designer" },
|
|
35
|
+
{ key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(w, {}), path: "db-import" },
|
|
36
|
+
{ key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(H, {}), path: "admin/ai" }
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "配置",
|
|
41
|
+
items: [
|
|
42
|
+
{ key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(M, {}), path: "admin/dicts" },
|
|
43
|
+
{ key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(W, {}), path: "admin/relations" },
|
|
44
|
+
{ key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(C, {}), path: "admin/views" },
|
|
45
|
+
{ key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e($, {}), path: "admin/pipelines" },
|
|
46
|
+
{ key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(p, {}), path: "admin/workflows" }
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: "运行",
|
|
51
|
+
items: [
|
|
52
|
+
{ key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(g, {}), path: "admin/permissions", permission: "PERMISSION_MANAGE" },
|
|
53
|
+
{ key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(p, {}), path: "admin/deployments" }
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
], c = "/lc";
|
|
57
|
+
function Z(l) {
|
|
58
|
+
if (!l.startsWith(c)) return null;
|
|
59
|
+
const m = l.slice(c.length).replace(/^\//, "");
|
|
60
|
+
for (const o of r)
|
|
61
|
+
for (const s of o.items)
|
|
62
|
+
if (m === s.path || m.startsWith(`${s.path}/`)) return s.key;
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
function le() {
|
|
66
|
+
const l = G(), { pathname: m } = k(), o = b((n) => n.currentUser), s = b((n) => n.permissionState), [_, h] = y(
|
|
67
|
+
new Set(r.map((n) => n.title))
|
|
68
|
+
), S = d(
|
|
69
|
+
() => s === "failed" ? r : U(r, o),
|
|
70
|
+
[o, s]
|
|
71
|
+
), I = d(() => Z(m), [m]), f = (n) => {
|
|
72
|
+
h((u) => {
|
|
73
|
+
const i = new Set(u);
|
|
74
|
+
return i.has(n) ? i.delete(n) : i.add(n), i;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ a("div", { className: t.shell, children: [
|
|
78
|
+
/* @__PURE__ */ a("aside", { className: t.sidebar, children: [
|
|
79
|
+
/* @__PURE__ */ a("div", { className: t.sidebarHeader, children: [
|
|
80
|
+
/* @__PURE__ */ e(L, {}),
|
|
81
|
+
/* @__PURE__ */ e("span", { children: "研发工作台" })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ e(x, {}),
|
|
84
|
+
/* @__PURE__ */ e("nav", { className: t.menuList, children: S.map((n) => {
|
|
85
|
+
const u = !_.has(n.title);
|
|
86
|
+
return /* @__PURE__ */ a("div", { className: t.menuGroup, children: [
|
|
87
|
+
/* @__PURE__ */ a(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: t.menuGroupHeader,
|
|
91
|
+
onClick: () => f(n.title),
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ e("span", { className: t.menuGroupLabel, children: n.title }),
|
|
94
|
+
/* @__PURE__ */ e("span", { className: t.menuGroupArrow, children: u ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ e(O, {}) })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
u && /* @__PURE__ */ e("ul", { className: t.menuSubList, children: n.items.map((i) => /* @__PURE__ */ a(
|
|
99
|
+
"li",
|
|
100
|
+
{
|
|
101
|
+
className: `${t.menuSubItemWrap} ${t.menuSubItem} ${I === i.key ? t.menuSubItemActive : ""}`,
|
|
102
|
+
onClick: () => l(`${c}/${i.path}`),
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ e("span", { className: t.menuSubItemIcon, children: i.icon }),
|
|
105
|
+
/* @__PURE__ */ e("span", { className: t.menuSubItemLabel, children: i.label })
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
i.key
|
|
109
|
+
)) })
|
|
110
|
+
] }, n.title);
|
|
111
|
+
}) })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ e("main", { className: t.main, children: /* @__PURE__ */ e(R, {}) })
|
|
114
|
+
] });
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
le as default
|
|
118
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import v, { useState as d, useEffect as _, useMemo as h } from "react";
|
|
3
3
|
import { useLocation as N } from "react-router-dom";
|
|
4
|
-
import { g as b, s as g } from "./ComponentDoc-
|
|
5
|
-
import { i as K, P as x } from "./schedule-
|
|
4
|
+
import { g as b, s as g } from "./ComponentDoc-CP8PmT4l.js";
|
|
5
|
+
import { i as K, P as x } from "./schedule-ChO2xIGd.js";
|
|
6
6
|
const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
|
|
7
7
|
banner: E,
|
|
8
8
|
dot: S,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import v, { useState as d, useEffect as _, useMemo as h } from "react";
|
|
3
|
+
import { useLocation as N } from "react-router-dom";
|
|
4
|
+
import { g as b, s as g } from "./ComponentDoc-D1vtx1CE.js";
|
|
5
|
+
import { i as K, P as x } from "./schedule-ChO2xIGd.js";
|
|
6
|
+
const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
|
|
7
|
+
banner: E,
|
|
8
|
+
dot: S,
|
|
9
|
+
text: f,
|
|
10
|
+
retry: A,
|
|
11
|
+
dismiss: F,
|
|
12
|
+
details: P,
|
|
13
|
+
method: k,
|
|
14
|
+
status: C,
|
|
15
|
+
statusNet: D,
|
|
16
|
+
url: $
|
|
17
|
+
}, B = () => {
|
|
18
|
+
const { pathname: i } = N(), [s, n] = d(b()), [l, m] = d(0);
|
|
19
|
+
_(() => g(n), []), _(() => {
|
|
20
|
+
m(0);
|
|
21
|
+
}, [i]);
|
|
22
|
+
const u = h(
|
|
23
|
+
() => s.filter((t) => t.route === i && t.at >= l),
|
|
24
|
+
[s, i, l]
|
|
25
|
+
), p = h(() => {
|
|
26
|
+
const t = /* @__PURE__ */ new Map();
|
|
27
|
+
return u.forEach((r) => {
|
|
28
|
+
const o = t.get(r.status) ?? { status: r.status, count: 0, urls: [] };
|
|
29
|
+
o.count += 1, o.urls.includes(r.url) || o.urls.push(r.url), t.set(r.status, o);
|
|
30
|
+
}), [...t.values()].sort((r, o) => r.status - o.status);
|
|
31
|
+
}, [u]);
|
|
32
|
+
if (u.length === 0) return null;
|
|
33
|
+
const y = p.map((t) => `${t.status === 0 ? "网络错误" : t.status} ×${t.count}`).join(" · ");
|
|
34
|
+
return /* @__PURE__ */ c("div", { className: e.banner, role: "alert", "data-testid": "page-api-error-notice", children: [
|
|
35
|
+
/* @__PURE__ */ a("span", { className: e.dot }),
|
|
36
|
+
/* @__PURE__ */ c("span", { className: e.text, children: [
|
|
37
|
+
"本页有 ",
|
|
38
|
+
u.length,
|
|
39
|
+
" 个接口失败(",
|
|
40
|
+
y,
|
|
41
|
+
"),页面可能不完整。"
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ a("button", { type: "button", className: e.retry, onClick: () => location.reload(), children: "重试" }),
|
|
44
|
+
/* @__PURE__ */ c("details", { className: e.details, children: [
|
|
45
|
+
/* @__PURE__ */ a("summary", { children: "失败明细" }),
|
|
46
|
+
/* @__PURE__ */ a("ul", { children: u.map((t, r) => /* @__PURE__ */ c("li", { children: [
|
|
47
|
+
/* @__PURE__ */ a("span", { className: e.method, children: t.method }),
|
|
48
|
+
/* @__PURE__ */ a("span", { className: t.status === 0 ? e.statusNet : e.status, children: t.status === 0 ? "网络" : t.status }),
|
|
49
|
+
/* @__PURE__ */ a("span", { className: e.url, children: t.url })
|
|
50
|
+
] }, `${t.at}-${r}`)) })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ a(
|
|
53
|
+
"button",
|
|
54
|
+
{
|
|
55
|
+
type: "button",
|
|
56
|
+
className: e.dismiss,
|
|
57
|
+
title: "本页浏览期间不再显示",
|
|
58
|
+
onClick: () => m(Date.now() + 1),
|
|
59
|
+
children: "忽略"
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] });
|
|
63
|
+
};
|
|
64
|
+
class T extends v.Component {
|
|
65
|
+
constructor() {
|
|
66
|
+
super(...arguments), this.state = { error: null, resetKey: this.props.resetKey };
|
|
67
|
+
}
|
|
68
|
+
static getDerivedStateFromError(s) {
|
|
69
|
+
return { error: s };
|
|
70
|
+
}
|
|
71
|
+
static getDerivedStateFromProps(s, n) {
|
|
72
|
+
return n.error && s.resetKey !== n.resetKey ? { error: null, resetKey: s.resetKey } : s.resetKey !== n.resetKey ? { resetKey: s.resetKey } : null;
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
const { error: s } = this.state;
|
|
76
|
+
if (s) {
|
|
77
|
+
const n = K(s);
|
|
78
|
+
return /* @__PURE__ */ a(
|
|
79
|
+
x,
|
|
80
|
+
{
|
|
81
|
+
error: s,
|
|
82
|
+
retry: () => this.setState({ error: null }),
|
|
83
|
+
retryText: n ? "重试加载" : "重试渲染"
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
return this.props.children;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
B as P,
|
|
92
|
+
T as R
|
|
93
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as i, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useRef as F, useCallback as D, useEffect as R } from "react";
|
|
3
|
-
import { u as O } from "./useAppStore-
|
|
3
|
+
import { u as O } from "./useAppStore-BFO_h1L2.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { T as P, g as U } from "./api-
|
|
5
|
+
import { T as P, g as U } from "./api-BftpestH.js";
|
|
6
6
|
async function y(o, s) {
|
|
7
7
|
const n = await o.text().catch(() => "");
|
|
8
8
|
let t = {};
|