@yuku123/z-team-component 0.2.91 → 0.2.93
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-DagOxr6O.js → ChangeLogView-BjV4gBq4.js} +12 -12
- package/dist/ComponentDoc-C9lt-45y.js +8035 -0
- package/dist/{InvitationManagementPage-DYoqQA0v.js → InvitationManagementPage-CWtBWLd9.js} +1 -1
- package/dist/{OnboardingPage-D2Gm8MRd.js → OnboardingPage-B2fwh4gu.js} +2 -2
- package/dist/{ScheduledTasks-DB3VxAnb.js → ScheduledTasks-CuQyjAK-.js} +4341 -4337
- package/dist/{SystemShell-D3jHItxY.js → SystemShell-CTkRb3jk.js} +11 -12
- package/dist/admin-logs-Dh41ezP6.js +198 -0
- package/dist/{api-DYsAzJJo.js → api-ChrRZOc4.js} +1 -1
- package/dist/createWorkspaceWsHandler-DMw_Vk6i.js +13135 -0
- package/dist/{index-152G-_4j.js → index-3JPBTMXq.js} +5 -6
- package/dist/{index-CLD5lLa6.js → index-7glbcqX1.js} +19 -19
- package/dist/{index-CSpckSHg.js → index-BYpA6zMn.js} +23 -23
- package/dist/{index-BydWNuk5.js → index-BZCQSW-G.js} +44 -51
- package/dist/{index-CLfhHxPf.js → index-B_2fxZ6u.js} +1 -1
- package/dist/{index-B5dDwxhs.js → index-BnRRZ6Iv.js} +1 -1
- package/dist/{index-W_4faD_M.js → index-C-XgeN0c.js} +2 -2
- package/dist/index-CA0ql0r3.js +3495 -0
- package/dist/{index-CgWa7RFv.js → index-CIGBLmd6.js} +23 -24
- package/dist/{index-Cggl78j7.js → index-CLSOhZRs.js} +5 -6
- package/dist/index-CLnmI_a7.js +316 -0
- package/dist/{index-BfzgRKii.js → index-CSXrOBjf.js} +90 -91
- package/dist/{index-ues0LW7p.js → index-CdqU0NUf.js} +1257 -1258
- package/dist/{index-BMQ6XkO3.js → index-CnWYolUK.js} +1 -1
- package/dist/{index-CYyFYmlZ.js → index-CrQpBHe1.js} +8 -9
- package/dist/{index-BZ12pY96.js → index-D1_tbmUH.js} +2 -2
- package/dist/{index-CZyFAmEq.js → index-DNo7i9f6.js} +10 -11
- package/dist/{index-DE82vM_4.js → index-DPyEBso8.js} +19 -18
- package/dist/{index-DyQ9YnMd.js → index-DdvzONMo.js} +3663 -3537
- package/dist/{index-Dwqa30HZ.js → index-Dq4oBpcb.js} +4 -4
- package/dist/{index-C8cR7lJw.js → index-DtIPLfks.js} +10 -11
- package/dist/{index-Cw6MIoNv.js → index-Dy6vNz1c.js} +6 -7
- package/dist/{index-VGtET31b.js → index-bkqC-Ys8.js} +1 -1
- package/dist/{index-E4Q6JmzX.js → index-fab1eszg.js} +3 -3
- package/dist/{index-BYe87pnq.js → index-vIdK5WMU.js} +11 -12
- package/dist/index.js +1 -1
- package/dist/{instance-CI6-4BZ6.js → instance-BY043pYn.js} +1 -1
- package/dist/{menuPermission-C33I6ujb.js → menuPermission-BeYwZcoW.js} +11 -11
- package/dist/pages.js +8 -8
- package/dist/{send-default-agent-team-message-c5oKdQQA.js → send-default-agent-team-message-BN61cG7q.js} +1 -1
- package/dist/{sso-user-DToM5dPy.js → sso-user-DmsDr1MJ.js} +1 -1
- package/dist/{training-B38tnwLL.js → training-CU6j5m-5.js} +1 -1
- package/dist/webide-BYaEjOx6.js +5233 -0
- package/dist/z-team-component.css +1 -26
- package/package.json +3 -2
- package/dist/ComponentDoc-Bqfu128t.js +0 -3998
- package/dist/admin-logs-ogvMwS4O.js +0 -302
- package/dist/api-BftpestH.js +0 -2156
- package/dist/createWorkspaceWsHandler-D8h5BEzH.js +0 -13030
- package/dist/index-BaCqZeiw.js +0 -1143
- package/dist/index-CUVdeb8y.js +0 -638
- package/dist/index-DVaTGA2z.js +0 -3488
- package/dist/schedule-ChO2xIGd.js +0 -625
- package/dist/useAppStore-uc8v8XZC.js +0 -1920
- package/dist/webide-BuUYLPSp.js +0 -8399
|
@@ -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 {
|
|
5
|
-
import { i as
|
|
4
|
+
import { w as b, x as g } from "./ComponentDoc-C9lt-45y.js";
|
|
5
|
+
import { i as x, P as K } from "./index-CLnmI_a7.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,
|
|
@@ -74,9 +74,9 @@ class T extends v.Component {
|
|
|
74
74
|
render() {
|
|
75
75
|
const { error: s } = this.state;
|
|
76
76
|
if (s) {
|
|
77
|
-
const n =
|
|
77
|
+
const n = x(s);
|
|
78
78
|
return /* @__PURE__ */ a(
|
|
79
|
-
|
|
79
|
+
K,
|
|
80
80
|
{
|
|
81
81
|
error: s,
|
|
82
82
|
retry: () => this.setState({ error: null }),
|
|
@@ -3,16 +3,15 @@ import { SearchOutlined as Ie, ReloadOutlined as Ne, PlusOutlined as xe, ArrowUp
|
|
|
3
3
|
import { Input as K, Select as ae, Button as M, Modal as ve, Space as qe, Tooltip as oe, message as P, Tag as H, Popconfirm as ke, Spin as Xe, Empty as Ke, AutoComplete as st, Segmented as Bt, TreeSelect as et, Descriptions as ne, InputNumber as Fe, Drawer as cl, Tabs as Mt, Switch as zt, Radio as yt, Tree as ul, Table as Oe } from "antd";
|
|
4
4
|
import { ListTable as Ae, DEFAULT_PAGINATION as hl } from "@yuku123/z-frontend-common/ui";
|
|
5
5
|
import { useState as o, useCallback as de, useEffect as ce, useMemo as pe, useRef as Ft } from "react";
|
|
6
|
-
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-
|
|
7
|
-
import {
|
|
6
|
+
import { f as Ut, a as Gt, b as ct, c as ut, s as vt, d as ml, e as pl, g as tt, h as gl, i as yl, j as vl, k as jt, l as ft, m as fl, n as wl, o as Cl, r as Wt, p as Ht, q as bl, t as wt, u as Il, v as ht, w as mt, x as xl, y as Tl, z as Nl, A as kl, B as Ct, C as Sl, D as _l, E as Al, F as El, G as Dl, H as bt, I as Rl, J as Ll, K as $l, L as Pl, M as Ol, N as Bl, O as Ml, P as It, Q as zl, R as Fl, S as Ul, T as Gl, U as jl } from "./training-CU6j5m-5.js";
|
|
7
|
+
import { d as Ce, aa as Wl } from "./ComponentDoc-C9lt-45y.js";
|
|
8
8
|
import { s as r } from "./index.module-UI0iz8K0.js";
|
|
9
|
-
import
|
|
9
|
+
import Hl from "dayjs";
|
|
10
10
|
import xt from "react-markdown";
|
|
11
11
|
import Tt from "remark-gfm";
|
|
12
12
|
import { h as be } from "./index.module-CAa-2T7m.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { h as ql } from "./schedule-ChO2xIGd.js";
|
|
13
|
+
import { MarkdownLiveEditor as Kl } from "@yuku123/z-markdown-component";
|
|
14
|
+
import { h as ql } from "./index-CLnmI_a7.js";
|
|
16
15
|
function Vl() {
|
|
17
16
|
const l = Ce((i) => i.token), [n, D] = o([]), [k, L] = o(!1), [x, B] = o(""), [E, F] = o(null), [c, A] = o(!1), [C, T] = o(!1), [I, U] = o(null), [u, v] = o([]), [_, y] = o([]), [j, J] = o([]), [Z, O] = o([]), [w, z] = o([]), h = de(async () => {
|
|
18
17
|
L(!0);
|
|
@@ -644,7 +643,7 @@ function $n({
|
|
|
644
643
|
/* @__PURE__ */ t("div", { className: be.readerMeta, children: [
|
|
645
644
|
l.category ? /* @__PURE__ */ e(H, { color: "blue", children: l.category }) : null,
|
|
646
645
|
/* @__PURE__ */ e("span", { children: l.createByName ?? "-" }),
|
|
647
|
-
/* @__PURE__ */ e("span", { children: l.createTime ?
|
|
646
|
+
/* @__PURE__ */ e("span", { children: l.createTime ? Hl(l.createTime).format("YYYY-MM-DD HH:mm") : "" }),
|
|
648
647
|
/* @__PURE__ */ e("span", { children: (l.videoIds ?? []).length > 0 ? `内嵌视频 ${(l.videoIds ?? []).length} 个` : "纯文档" }),
|
|
649
648
|
(l.refCount ?? 0) > 0 ? /* @__PURE__ */ t("span", { children: [
|
|
650
649
|
"已被 ",
|
|
@@ -1264,7 +1263,7 @@ ${An(s)}
|
|
|
1264
1263
|
)
|
|
1265
1264
|
] }),
|
|
1266
1265
|
/* @__PURE__ */ e("div", { className: q.editEditor, children: /* @__PURE__ */ e(
|
|
1267
|
-
|
|
1266
|
+
Kl,
|
|
1268
1267
|
{
|
|
1269
1268
|
mode: Be,
|
|
1270
1269
|
value: te.content ?? "",
|
|
@@ -1802,7 +1801,7 @@ function zn() {
|
|
|
1802
1801
|
async (f) => {
|
|
1803
1802
|
y(!0);
|
|
1804
1803
|
try {
|
|
1805
|
-
v(await
|
|
1804
|
+
v(await Wl(f, l));
|
|
1806
1805
|
} catch {
|
|
1807
1806
|
} finally {
|
|
1808
1807
|
y(!1);
|
|
@@ -5850,7 +5849,7 @@ const za = "_container_nfu8c_5", Fa = "_sidebar_nfu8c_14", Ua = "_menuList_nfu8c
|
|
|
5850
5849
|
]
|
|
5851
5850
|
}
|
|
5852
5851
|
];
|
|
5853
|
-
function
|
|
5852
|
+
function si() {
|
|
5854
5853
|
const [l, n] = o("video");
|
|
5855
5854
|
return Ce((k) => ql(k.currentUser, "TRAINING")) ? /* @__PURE__ */ t("div", { className: _e.container, children: [
|
|
5856
5855
|
/* @__PURE__ */ e("aside", { className: _e.sidebar, children: /* @__PURE__ */ e("nav", { className: _e.menuList, children: qa.map((k) => /* @__PURE__ */ t("div", { children: [
|
|
@@ -5889,5 +5888,5 @@ function di() {
|
|
|
5889
5888
|
) });
|
|
5890
5889
|
}
|
|
5891
5890
|
export {
|
|
5892
|
-
|
|
5891
|
+
si as default
|
|
5893
5892
|
};
|
|
@@ -6,10 +6,9 @@ import { useState as F, useRef as fp, useEffect as Y, useMemo as Wp, useCallback
|
|
|
6
6
|
import Vp, { defaultUrlTransform as KA } from "react-markdown";
|
|
7
7
|
import gp from "rehype-highlight";
|
|
8
8
|
import Jp from "remark-gfm";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { d as RA, e as NA, f as kA, g as WA, h as Cp, j as DA, k as qA, r as uA, l as mA, m as wA, n as BA, o as GA, p as LA, q as zA, t as VA } from "./createWorkspaceWsHandler-D8h5BEzH.js";
|
|
9
|
+
import { ab as xa, ac as jA, d as Dp } from "./ComponentDoc-C9lt-45y.js";
|
|
10
|
+
import { H as ia, I as oA, J as fA, K as lA, i as xA, M as iA, O as cA, Q as TA, V as vA, X as up, Y as Yp, Z as mp, _ as yp, $ as Ip, a0 as FA, a1 as dA, a2 as OA, a3 as XA } from "./index-DdvzONMo.js";
|
|
11
|
+
import { d as RA, e as NA, f as kA, g as WA, h as Cp, j as DA, k as qA, r as uA, l as mA, m as wA, n as BA, o as GA, p as LA, q as zA, t as VA } from "./createWorkspaceWsHandler-DMw_Vk6i.js";
|
|
13
12
|
import { h as r } from "./index.module-CAa-2T7m.js";
|
|
14
13
|
const gA = "_editorView_as93v_7", JA = "_editorTopBar_as93v_16", bA = "_backBtn_as93v_25", MA = "_titleInput_as93v_39", sA = "_summaryBar_as93v_50", QA = "_summaryInput_as93v_55", hA = "_mdToolbar_as93v_67", YA = "_mdBtn_as93v_77", yA = "_mdSep_as93v_84", IA = "_editorBody_as93v_93", CA = "_tocPanel_as93v_100", ZA = "_tocHeader_as93v_108", EA = "_tocList_as93v_117", _A = "_tocItem_as93v_122", $A = "_tocEmpty_as93v_137", pt = "_textarea_as93v_144", at = "_half_as93v_160", At = "_preview_as93v_163", tt = "_markdown_as93v_173", et = "_videoEmbed_as93v_185", w = {
|
|
15
14
|
editorView: gA,
|
|
@@ -1682,7 +1681,7 @@ const Rt = [
|
|
|
1682
1681
|
draftDeleteBtn: T0,
|
|
1683
1682
|
markdown: v0
|
|
1684
1683
|
}, F0 = HA(
|
|
1685
|
-
() => import("./index-
|
|
1684
|
+
() => import("./index-CLSOhZRs.js").then((a) => ({ default: a.MarketContent }))
|
|
1686
1685
|
);
|
|
1687
1686
|
function d0(a) {
|
|
1688
1687
|
const n = [], x = a.split(`
|
|
@@ -2690,11 +2689,11 @@ function W0({
|
|
|
2690
2689
|
] }) }) })
|
|
2691
2690
|
] });
|
|
2692
2691
|
}
|
|
2693
|
-
const
|
|
2692
|
+
const b0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2694
2693
|
__proto__: null,
|
|
2695
2694
|
default: N0
|
|
2696
2695
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2697
2696
|
export {
|
|
2698
2697
|
Rt as M,
|
|
2699
|
-
|
|
2698
|
+
b0 as i
|
|
2700
2699
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b, useRef as N, useEffect as r, useCallback as h } from "react";
|
|
3
3
|
import { h as o } from "./history-BlrA1eaW.js";
|
|
4
|
-
import { C as A } from "./ChangeLogView-
|
|
4
|
+
import { C as A } from "./ChangeLogView-BjV4gBq4.js";
|
|
5
5
|
const T = "_docs_lzhu5_12", v = "_bgLayer_lzhu5_59", p = "_bgGrid_lzhu5_70", f = "_navbar_lzhu5_87", y = "_navLeft_lzhu5_103", z = "_navBack_lzhu5_110", k = "_navBrand_lzhu5_132", I = "_navLogo_lzhu5_139", B = "_navTitle_lzhu5_154", q = "_navLink_lzhu5_164", L = "_layout_lzhu5_191", C = "_sidebar_lzhu5_202", S = "_sidebarInner_lzhu5_213", G = "_sidebarTitle_lzhu5_217", D = "_tocItem_lzhu5_227", E = "_tocActive_lzhu5_249", K = "_tocNum_lzhu5_260", w = "_content_lzhu5_275", F = "_section_lzhu5_285", O = "_secTitle_lzhu5_290", R = "_subTitle_lzhu5_301", x = "_lead_lzhu5_309", W = "_list_lzhu5_329", M = "_olist_lzhu5_360", Z = "_callout_lzhu5_397", Q = "_calloutBlue_lzhu5_398", $ = "_calloutGreen_lzhu5_399", P = "_calloutRed_lzhu5_400", U = "_inlineCode_lzhu5_441", V = "_codeBlock_lzhu5_454", H = "_tableWrap_lzhu5_470", j = "_table_lzhu5_470", Y = "_tableKey_lzhu5_512", J = "_tableIcon_lzhu5_517", X = "_statusDot_lzhu5_523", ee = "_tone_pending_lzhu5_532", le = "_tone_running_lzhu5_536", ne = "_tone_suspended_lzhu5_541", ce = "_tone_done_lzhu5_546", ie = "_tone_failed_lzhu5_551", te = "_tone_cancelled_lzhu5_556", ae = "_markGood_lzhu5_562", se = "_markBad_lzhu5_563", de = "_faqList_lzhu5_577", re = "_faqItem_lzhu5_583", he = "_faqQ_lzhu5_597", oe = "_faqA_lzhu5_604", me = "_changelogEmbed_lzhu5_611", ge = "_changelogTip_lzhu5_619", ue = "_changelogLink_lzhu5_625", _e = "_docFooter_lzhu5_637", be = "_backBtn_lzhu5_648", Ne = "_docFooterText_lzhu5_671", l = {
|
|
6
6
|
docs: T,
|
|
7
7
|
bgLayer: v,
|
|
@@ -2,9 +2,9 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { Navigate as i, useLocation as b } from "react-router-dom";
|
|
3
3
|
import { Alert as u } from "antd";
|
|
4
4
|
import { DashboardOutlined as v, ClusterOutlined as r, ContainerOutlined as y, CloudServerOutlined as l, BranchesOutlined as O, RocketOutlined as g, AlertOutlined as k, FileTextOutlined as S, DatabaseOutlined as c, CloudOutlined as f, DeploymentUnitOutlined as z } from "@ant-design/icons";
|
|
5
|
-
import { W as P } from "./index-
|
|
6
|
-
import { M as D } from "./ComponentDoc-
|
|
7
|
-
import "./index-
|
|
5
|
+
import { W as P } from "./index-7glbcqX1.js";
|
|
6
|
+
import { M as D } from "./ComponentDoc-C9lt-45y.js";
|
|
7
|
+
import "./index-DdvzONMo.js";
|
|
8
8
|
const a = "K8s 管理面的数据源在**独立运维平台 z-ops**:/z-team/ops/k8s/** 由 z-ops 仓的 z-ops-web 提供(K8sController 注册 /z-team/ops/k8s,HpaController 注册 /z-team/ops/k8s/hpa)。**z-opc 主壳不承载它**:主壳制品 BOOT-INF/lib 里 0 个 z-ops-*,主壳 nginx 路由总表里也没有^/z-team/ops 这条反代规则 ⇒ 实测 GET /z-team/ops/k8s/nodes 得到的是 SPA 兜底页(HTTP 200 + text/html + 451B,与必假路径逐字节相同),不是后端 JSON。该页面的真实入口在 z-ops 独立平台(集群内端口 8886,其前端路由 /ops/k8s)。", E = [
|
|
9
9
|
{
|
|
10
10
|
title: "DevOps 运维",
|
|
@@ -1,8 +1,7 @@
|
|
|
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 {
|
|
3
|
+
import { T as O, k as U, d as P } from "./ComponentDoc-C9lt-45y.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { T as P, g as U } from "./api-BftpestH.js";
|
|
6
5
|
async function y(o, s) {
|
|
7
6
|
const n = await o.text().catch(() => "");
|
|
8
7
|
let t = {};
|
|
@@ -21,7 +20,7 @@ async function y(o, s) {
|
|
|
21
20
|
if (!o.ok) throw new Error(s);
|
|
22
21
|
return U(t);
|
|
23
22
|
}
|
|
24
|
-
const m =
|
|
23
|
+
const m = O;
|
|
25
24
|
async function q(o, s) {
|
|
26
25
|
const n = s ? `?token=${encodeURIComponent(s)}` : "", t = { ...o, extend_params: { skip_init_task: "true" } }, r = await fetch(`${m}/scenario-instances${n}`, {
|
|
27
26
|
method: "POST",
|
|
@@ -91,20 +90,20 @@ async function J(o, s) {
|
|
|
91
90
|
return y(t, "Failed to list members");
|
|
92
91
|
}
|
|
93
92
|
const L = "dev_brain_scenario";
|
|
94
|
-
function
|
|
93
|
+
function Z() {
|
|
95
94
|
var M;
|
|
96
95
|
const [o, s] = d([]), [n, t] = d(
|
|
97
96
|
null
|
|
98
|
-
), [r, h] = d([]), [u, z] = d([]), [v, b] = d(""), [W, w] = d(!1), [g, S] = d(!1), [A, T] = d(""),
|
|
97
|
+
), [r, h] = d([]), [u, z] = d([]), [v, b] = d(""), [W, w] = d(!1), [g, S] = d(!1), [A, T] = d(""), k = F(null), { token: f } = P(), C = D(() => {
|
|
99
98
|
var e;
|
|
100
|
-
(e =
|
|
99
|
+
(e = k.current) == null || e.scrollIntoView({ behavior: "smooth" });
|
|
101
100
|
}, []);
|
|
102
101
|
R(() => {
|
|
102
|
+
C();
|
|
103
|
+
}, [r, C]), R(() => {
|
|
103
104
|
I();
|
|
104
|
-
}, [r, I]), R(() => {
|
|
105
|
-
k();
|
|
106
105
|
}, []);
|
|
107
|
-
const
|
|
106
|
+
const I = async () => {
|
|
108
107
|
try {
|
|
109
108
|
const e = await K(f || void 0);
|
|
110
109
|
s(e || []);
|
|
@@ -120,7 +119,7 @@ function ee() {
|
|
|
120
119
|
{ scenario_code: L, name: e },
|
|
121
120
|
f || void 0
|
|
122
121
|
);
|
|
123
|
-
T(""), await
|
|
122
|
+
T(""), await I(), $(c);
|
|
124
123
|
} catch (c) {
|
|
125
124
|
alert(c instanceof Error ? c.message : "Create failed");
|
|
126
125
|
} finally {
|
|
@@ -360,7 +359,7 @@ function ee() {
|
|
|
360
359
|
},
|
|
361
360
|
e.id
|
|
362
361
|
)),
|
|
363
|
-
/* @__PURE__ */ i("div", { ref:
|
|
362
|
+
/* @__PURE__ */ i("div", { ref: k })
|
|
364
363
|
]
|
|
365
364
|
}
|
|
366
365
|
),
|
|
@@ -431,5 +430,5 @@ function ee() {
|
|
|
431
430
|
] });
|
|
432
431
|
}
|
|
433
432
|
export {
|
|
434
|
-
|
|
433
|
+
Z as default
|
|
435
434
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, f as d, B as r, u as c } from "./
|
|
1
|
+
import { a as o, f as d, B as r, u as c } from "./ComponentDoc-C9lt-45y.js";
|
|
2
2
|
async function h(e, n = "") {
|
|
3
3
|
const t = new URLSearchParams();
|
|
4
4
|
n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Alert as h } from "antd";
|
|
3
|
-
import {
|
|
4
|
-
import { h as g } from "./
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { d } from "./ComponentDoc-C9lt-45y.js";
|
|
4
|
+
import { h as g } from "./index-CLnmI_a7.js";
|
|
5
|
+
import { N as A } from "./index-DdvzONMo.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
|
@@ -16,7 +16,7 @@ function P() {
|
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function u(e) {
|
|
20
20
|
const n = e.permission;
|
|
21
21
|
return n ? Array.isArray(n) ? n : [n] : [];
|
|
22
22
|
}
|
|
@@ -26,30 +26,30 @@ function S(e) {
|
|
|
26
26
|
function f(e, n) {
|
|
27
27
|
return n.length === 0 ? !0 : S(e) ? n.some((i) => A.includes(i)) : n.some((i) => g(e, i));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
29
|
+
function m(e, n, i) {
|
|
30
|
+
const t = u(n), s = t.length > 0 ? t : i ? [i] : [];
|
|
31
31
|
return f(e, s);
|
|
32
32
|
}
|
|
33
33
|
function _(e, n) {
|
|
34
34
|
const i = [];
|
|
35
35
|
for (const t of e) {
|
|
36
36
|
const s = t.permission;
|
|
37
|
-
if (!f(n,
|
|
37
|
+
if (!f(n, u(t))) continue;
|
|
38
38
|
const o = t.items;
|
|
39
39
|
if (!Array.isArray(o)) {
|
|
40
40
|
i.push(t);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const c = o.filter((r) => m(n, r, s)).map(
|
|
44
44
|
(r) => r.children ? {
|
|
45
45
|
...r,
|
|
46
46
|
children: r.children.filter(
|
|
47
|
-
(l) =>
|
|
47
|
+
(l) => m(n, l, r.permission ?? s)
|
|
48
48
|
)
|
|
49
49
|
} : r
|
|
50
50
|
).filter((r) => !r.children || r.children.length > 0);
|
|
51
|
-
if (
|
|
52
|
-
const p = { ...t, items:
|
|
51
|
+
if (c.length === 0) continue;
|
|
52
|
+
const p = { ...t, items: c };
|
|
53
53
|
i.push(p);
|
|
54
54
|
}
|
|
55
55
|
return i;
|
package/dist/pages.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-C9lt-45y.js";
|
|
1
2
|
import { createElement as e } from "react";
|
|
2
|
-
import { BellOutlined as
|
|
3
|
-
import { S as m, P as p, C as i, Z as n } from "./ComponentDoc-Bqfu128t.js";
|
|
3
|
+
import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "react-router-dom";
|
|
6
6
|
import "antd";
|
|
7
7
|
import "@yuku123/z-frontend-common";
|
|
8
8
|
import "@yuku123/z-frontend-common/ui";
|
|
9
9
|
const h = { title: "Z-OPC 一人公司基建", short: "team" }, O = [
|
|
10
|
-
{ path: "/team/subscribe", title: "订阅", order: 1, Component:
|
|
11
|
-
{ path: "/team/project", title: "项目", order: 2, Component:
|
|
10
|
+
{ path: "/team/subscribe", title: "订阅", order: 1, Component: t },
|
|
11
|
+
{ path: "/team/project", title: "项目", order: 2, Component: o },
|
|
12
12
|
// 组件文档页(lead 008 §7):放在 /team/:rest* 兜底之前,否则会被兜底路由吃掉。
|
|
13
|
-
{ path: "/team/docs", title: "组件文档", order: 3, Component:
|
|
14
|
-
{ path: "/team/:rest*", Component:
|
|
13
|
+
{ path: "/team/docs", title: "组件文档", order: 3, Component: r },
|
|
14
|
+
{ path: "/team/:rest*", Component: a }
|
|
15
15
|
];
|
|
16
|
-
e(
|
|
16
|
+
e(m), e(p), e(i), e(n);
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
r as ComponentDocPage,
|
|
19
19
|
h as appMeta,
|
|
20
20
|
O as routes
|
|
21
21
|
};
|