@yuku123/z-team-component 0.2.47 → 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/{ComponentDoc-Bgk7vVRl.js → ComponentDoc-FxbM6ncV.js} +39 -39
- package/dist/{InvitationManagementPage-CJ7221xy.js → InvitationManagementPage-vVRv7TCo.js} +1 -1
- package/dist/{OnboardingPage-BAPaHWAG.js → OnboardingPage-clQvJ-M2.js} +2 -2
- package/dist/{SystemShell-9354yfAu.js → SystemShell-BEGk1kAl.js} +1 -1
- package/dist/{api-BBVndbPG.js → api-DYJa6iNh.js} +1 -1
- package/dist/{index-BNAnqNMm.js → index-9UUM0xgl.js} +1056 -1054
- package/dist/{index-3UOwUv4A.js → index-B5c2tEWO.js} +2 -2
- package/dist/{index-D4tQ0KN9.js → index-BAY37t4f.js} +1 -1
- package/dist/{index-CjhBIxoG.js → index-BI13V6Vn.js} +1 -1
- package/dist/index-BYboYcBe.js +844 -0
- package/dist/{index-BBKatjOg.js → index-BjECQ0AM.js} +1 -1
- package/dist/{index-BfRlRsfj.js → index-CR3sbzOU.js} +3 -3
- package/dist/{index-d-1KM3FU.js → index-CtWrcU5w.js} +2005 -1973
- package/dist/{index-BdQYlCsi.js → index-DdPQcBkY.js} +362 -357
- package/dist/{index-BKQbeDm4.js → index-oEt7V3Pg.js} +1203 -1218
- package/dist/index.js +1 -1
- package/dist/pages.js +1 -1
- package/dist/{schedule-Dstx5SE_.js → schedule-C-4ksDPw.js} +34 -34
- package/dist/{webide-qCE8lM1s.js → webide-RsFP9pHM.js} +1898 -1897
- package/package.json +1 -1
- package/dist/index-CcpWacSZ.js +0 -1664
package/dist/index.js
CHANGED
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
233
|
+
I as h,
|
|
234
234
|
U as m,
|
|
235
235
|
M as r,
|
|
236
236
|
L as s,
|