@yuku123/z-team-component 0.2.46 → 0.2.48

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-Bgk7vVRl.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-FxbM6ncV.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-Bgk7vVRl.js";
3
+ import { S as o, P as a, C as r, Z as m } from "./ComponentDoc-FxbM6ncV.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react-router-dom";
6
6
  import "antd";
@@ -1,7 +1,38 @@
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
- class I extends N {
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 {
5
36
  constructor(e) {
6
37
  super(e), this.state = { hasError: !1, error: null };
7
38
  }
@@ -62,37 +93,6 @@ class I extends N {
62
93
  ) : this.props.children;
63
94
  }
64
95
  }
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
- I as E,
226
+ O 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
- O as h,
233
+ I as h,
234
234
  U as m,
235
235
  M as r,
236
236
  L as s,