@yuku123/z-team-component 0.2.40 → 0.2.41

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.
@@ -12,7 +12,7 @@ import Tt from "remark-gfm";
12
12
  import { h as be } from "./index.module-CAa-2T7m.js";
13
13
  import { M as Hl } from "./index-CUVdeb8y.js";
14
14
  import { af as Kl } from "./api-C78tCfne.js";
15
- import { h as ql } from "./schedule-C-4ksDPw.js";
15
+ import { h as ql } from "./schedule-Dstx5SE_.js";
16
16
  import { s as Ee } from "./SmartWorkbench.module-xRRmpTTw.js";
17
17
  function Vl() {
18
18
  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 () => {
@@ -4,9 +4,9 @@ import { PlusOutlined as $t, SaveOutlined as Gn, EditOutlined as xn, DeleteOutli
4
4
  import { Form as We, Space as Ve, Button as C, Typography as pt, Card as Kn, Empty as Tt, Table as kt, Modal as et, Input as ve, Divider as Hn, Select as He, InputNumber as On, Switch as _n, message as m, Tooltip as fe, Tag as F, Spin as ot, Drawer as bn, Tabs as vt, Alert as an, Radio as Rn, Collapse as on, Popconfirm as nn, DatePicker as zn, Row as Br, Col as aa, Statistic as hn, Skeleton as Zs, Dropdown as Ci, Descriptions as wt, List as Ma, Layout as Zd, Tree as eu, Checkbox as ta, Steps as th, Upload as nh, Progress as so, Image as tu, Badge as jn, AutoComplete as ah, Breadcrumb as zi, Avatar as lh } from "antd";
5
5
  import { useState as i, useEffect as ke, useCallback as re, useMemo as De, useRef as Lt, useLayoutEffect as nu } from "react";
6
6
  import { h as Ll } from "./history-BlrA1eaW.js";
7
- import { h as au, E as sh } from "./schedule-C-4ksDPw.js";
7
+ import { h as au, E as sh } from "./schedule-Dstx5SE_.js";
8
8
  import ih from "./index-BAK7UDvY.js";
9
- import { d as rh, e as oh, g as io, h as lu, i as ch, j as ns, k as Mi, l as dh, m as uh, r as mh, u as hh, n as ph, o as gh, f as fh, p as yh, q as _h, v as vh, t as bh, w as Nh, x as Ch, y as wh, z as Th, A as kh, B as Sh, C as xh, D as Ih, E as Fr, F as su, G as Ah, H as Lh, I as $h, J as Eh, K as Dh, L as Po, M as Rh, N as Oh, O as zo, Q as hi, R as Ph, U as zh, V as Mh, W as Bh, X as Fh, Y as Hh, Z as jh, _ as Uh, $ as Gh, a0 as Wh, a1 as qh, a2 as Vh, a3 as Yh, a4 as Kh, a5 as Jh, a6 as Qh, a7 as Xh, a8 as Zh, a9 as ep, aa as tp, ab as np, ac as ap, ad as be, ae as Xt, af as Qe, ag as il, ah as iu, ai as ru, aj as Hr, ak as Sa, al as xt, am as Ua, an as al, ao as lp, ap as sp, aq as da, ar as ro, as as ip, at as rp, au as op, av as cp, aw as dp, ax as up, ay as mp, az as hp, aA as pp, aB as gp, aC as fp, aD as yp, aE as _p, aF as vp, aG as bp, aH as Np, aI as Mo, aJ as Cp, P as wp, S as Tp } from "./webide-RsFP9pHM.js";
9
+ import { d as rh, e as oh, g as io, h as lu, i as ch, j as ns, k as Mi, l as dh, m as uh, r as mh, u as hh, n as ph, o as gh, f as fh, p as yh, q as _h, v as vh, t as bh, w as Nh, x as Ch, y as wh, z as Th, A as kh, B as Sh, C as xh, D as Ih, E as Fr, F as su, G as Ah, H as Lh, I as $h, J as Eh, K as Dh, L as Po, M as Rh, N as Oh, O as zo, Q as hi, R as Ph, U as zh, V as Mh, W as Bh, X as Fh, Y as Hh, Z as jh, _ as Uh, $ as Gh, a0 as Wh, a1 as qh, a2 as Vh, a3 as Yh, a4 as Kh, a5 as Jh, a6 as Qh, a7 as Xh, a8 as Zh, a9 as ep, aa as tp, ab as np, ac as ap, ad as be, ae as Xt, af as Qe, ag as il, ah as iu, ai as ru, aj as Hr, ak as Sa, al as xt, am as Ua, an as al, ao as lp, ap as sp, aq as da, ar as ro, as as ip, at as rp, au as op, av as cp, aw as dp, ax as up, ay as mp, az as hp, aA as pp, aB as gp, aC as fp, aD as yp, aE as _p, aF as vp, aG as bp, aH as Np, aI as Mo, aJ as Cp, P as wp, S as Tp } from "./webide-CTvdgMFE.js";
10
10
  import { a as ct, f as It, B as bt, u as yt, b4 as oo, b5 as kp, t as lt, b6 as Sp, b7 as xp, aw as Ip, b8 as Ap, k as An, b9 as Lp, an as $p, ba as Ep, bb as Bo, bc as Dp, bd as Rp, be as Op, aq as ia, bf as Pp, i as ss, af as ei, bg as ms, bh as Bi, bi as Rl, bj as Fo, bk as zp, bl as Mp, bm as Bp, bn as Fp, bo as Hp, bp as jp, bq as Up, br as Gp, bs as Wp, bt as qp, bu as Vp, bv as Yp, bw as Ho, bx as Kp, by as jo, bz as Uo, bA as Jp, bB as Qp, bC as Xp, bD as Zp, bE as eg, bF as tg, y as ou, a3 as Go, bG as co, bH as uo, bI as ti, am as ng, bJ as ag, bK as lg, bL as sg, bM as ig, bN as rg, bO as og, bP as cg, bQ as dg, bR as ug, bS as mg, bT as hg, bU as pg, bV as gg, bW as cu, bX as fg, bY as yg, e as _g } from "./api-C78tCfne.js";
11
11
  import { u as Ct } from "./useAppStore-ibJyVIAX.js";
12
12
  /* empty css */
@@ -17829,7 +17829,7 @@ function VT() {
17829
17829
  /* @__PURE__ */ e(
17830
17830
  ve,
17831
17831
  {
17832
- placeholder: "git 地址(https://gitlab.zteam.local/<group>/<repo>.git,勿带凭证:凭证由服务端注入)",
17832
+ placeholder: "git 地址(https://gitlab.zteam.local/<group>/<repo>.git,可含凭证)",
17833
17833
  value: g.gitUrl,
17834
17834
  onChange: (E) => p({ ...g, gitUrl: E.target.value })
17835
17835
  }
@@ -3,7 +3,7 @@ import { useNavigate as G, useParams as pe, useLocation as he, useRoutes as ue }
3
3
  import { useState as _, useEffect as M, useMemo as me } from "react";
4
4
  import { RocketOutlined as ye, AppstoreOutlined as le, BellOutlined as ae, PlayCircleOutlined as V, CheckCircleOutlined as Q, CloseCircleOutlined as X, BulbOutlined as Y, PlusOutlined as B, EditOutlined as ge, CopyOutlined as ne, DeleteOutlined as fe, ArrowLeftOutlined as be, SaveOutlined as we, ReloadOutlined as Ie, ShopOutlined as ie, StarFilled as _e, CloudDownloadOutlined as ke, DashboardOutlined as ve, InfoCircleOutlined as xe } from "@ant-design/icons";
5
5
  import { Typography as $, Row as H, Col as O, Card as F, Statistic as P, Table as se, Tag as b, Form as h, Input as N, Button as y, Space as S, Popconfirm as de, Drawer as J, Select as z, message as g, Tabs as Ce, InputNumber as Te, Switch as Ae, Descriptions as R, Timeline as Ee, Spin as Ne } from "antd";
6
- import { r as w } from "./ComponentDoc-D2R0AgNC.js";
6
+ import { r as w } from "./ComponentDoc-BztX6VlY.js";
7
7
  import { ListTable as K } from "@yuku123/z-frontend-common/ui";
8
8
  const { Title: Se, Paragraph: Oe } = $;
9
9
  function q() {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-D2R0AgNC.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-BztX6VlY.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
package/dist/pages.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createElement as e } from "react";
2
2
  import { ReadOutlined as t } from "@ant-design/icons";
3
- import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-D2R0AgNC.js";
3
+ import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-BztX6VlY.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react-router-dom";
6
6
  import "antd";
@@ -1,38 +1,7 @@
1
1
  import { jsxs as E, jsx as h } from "react/jsx-runtime";
2
2
  import { Component as N } from "react";
3
3
  import { a as c, B as i, u as l, f as u, g as A, v as f } from "./api-C78tCfne.js";
4
- const S = {
5
- RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
6
- EVALUATION_VIEW: ["EVALUATION_MANAGE"],
7
- COLLABORATION_VIEW: [
8
- "AGENT_MANAGE",
9
- "SKILL_MANAGE",
10
- "SCENARIO_MANAGE",
11
- "PROFILE_MANAGE",
12
- "TAG_MANAGE",
13
- "TOOL_MANAGE"
14
- ],
15
- EVOLUTION_VIEW: ["EVOLUTION_MANAGE"],
16
- OPS_CONFIG_VIEW: [
17
- "OPS_CONFIG_MANAGE",
18
- "ONCALL_MANAGE",
19
- "ANNOUNCEMENT_MANAGE",
20
- "OPS_REPORT_MANAGE"
21
- ],
22
- KNOWLEDGE_VIEW: ["KNOWLEDGE_MANAGE"],
23
- WEBIDE_VIEW: ["WEBIDE_MANAGE"]
24
- };
25
- function I(n, e) {
26
- var r;
27
- if (!n) return !1;
28
- if (n.is_global_admin || (r = n.permissions) != null && r.includes(e)) return !0;
29
- const t = S[e];
30
- return !!(t != null && t.some((a) => {
31
- var s;
32
- return (s = n.permissions) == null ? void 0 : s.includes(a);
33
- }));
34
- }
35
- class O extends N {
4
+ class I extends N {
36
5
  constructor(e) {
37
6
  super(e), this.state = { hasError: !1, error: null };
38
7
  }
@@ -93,6 +62,37 @@ class O extends N {
93
62
  ) : this.props.children;
94
63
  }
95
64
  }
65
+ const S = {
66
+ RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
67
+ EVALUATION_VIEW: ["EVALUATION_MANAGE"],
68
+ COLLABORATION_VIEW: [
69
+ "AGENT_MANAGE",
70
+ "SKILL_MANAGE",
71
+ "SCENARIO_MANAGE",
72
+ "PROFILE_MANAGE",
73
+ "TAG_MANAGE",
74
+ "TOOL_MANAGE"
75
+ ],
76
+ EVOLUTION_VIEW: ["EVOLUTION_MANAGE"],
77
+ OPS_CONFIG_VIEW: [
78
+ "OPS_CONFIG_MANAGE",
79
+ "ONCALL_MANAGE",
80
+ "ANNOUNCEMENT_MANAGE",
81
+ "OPS_REPORT_MANAGE"
82
+ ],
83
+ KNOWLEDGE_VIEW: ["KNOWLEDGE_MANAGE"],
84
+ WEBIDE_VIEW: ["WEBIDE_MANAGE"]
85
+ };
86
+ function O(n, e) {
87
+ var r;
88
+ if (!n) return !1;
89
+ if (n.is_global_admin || (r = n.permissions) != null && r.includes(e)) return !0;
90
+ const t = S[e];
91
+ return !!(t != null && t.some((a) => {
92
+ var s;
93
+ return (s = n.permissions) == null ? void 0 : s.includes(a);
94
+ }));
95
+ }
96
96
  function p(n) {
97
97
  const e = n && typeof n == "object" ? n : {}, t = Array.isArray(e.items) ? A(e.items) : [];
98
98
  return { ...e, items: t };
@@ -223,14 +223,14 @@ async function P(n = "") {
223
223
  return l(t, "标记已读失败");
224
224
  }
225
225
  export {
226
- O as E,
226
+ I as E,
227
227
  P as a,
228
228
  _ as b,
229
229
  G as c,
230
230
  T as d,
231
231
  R as e,
232
232
  b as f,
233
- I as h,
233
+ O as h,
234
234
  U as m,
235
235
  M as r,
236
236
  L as s,