@yuku123/z-team-component 0.2.37 → 0.2.38
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-BKjq4J_p.js → ComponentDoc-CSdxKqUS.js} +39 -39
- package/dist/{InvitationManagementPage-1ltSXMut.js → InvitationManagementPage-CffDsyab.js} +1 -1
- package/dist/{OnboardingPage-CJK2A0fG.js → OnboardingPage-2pc1hLlZ.js} +2 -2
- package/dist/{SystemShell-BUBaiZfa.js → SystemShell-Vb8zer_S.js} +1 -1
- package/dist/{api-XuBBtap9.js → api-DjTLmeZp.js} +1 -1
- package/dist/{index-qAOhpMUP.js → index-B3zpx3YB.js} +1 -1
- package/dist/{index-D4tQ0KN9.js → index-BAY37t4f.js} +1 -1
- package/dist/{index-B_JFsyJ8.js → index-BT3VobW1.js} +1203 -1218
- package/dist/{index-C29bzppl.js → index-BoBuTvFh.js} +1 -1
- package/dist/{index-DyJp2kSb.js → index-BtaRkt8l.js} +2 -2
- package/dist/{index-CQDlK88K.js → index-C52lmww8.js} +2 -2
- package/dist/{index-B-VKCQnw.js → index-Dn3Q_5em.js} +2023 -1994
- package/dist/{index-B3kZRd65.js → index-droRtYU6.js} +1056 -1054
- 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-CTvdgMFE.js → webide-BEHelWeW.js} +1 -1
- package/package.json +1 -1
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-CSdxKqUS.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,
|
|
@@ -10,7 +10,7 @@ import { a as E, f as A, B as M, u as j, v as Xe, t as Re, i as it, k as be, c a
|
|
|
10
10
|
import { u as In, f as Ca, a as Pr, b as Sa, c as Ur, d as zr, e as Na, g as Br, r as jr, h as Fr, m as Hr } from "./admin-logs-D6HtRcK6.js";
|
|
11
11
|
import Ee from "dayjs";
|
|
12
12
|
import { u as Pt } from "./useAppStore-ibJyVIAX.js";
|
|
13
|
-
import { s as Ia } from "./schedule-
|
|
13
|
+
import { s as Ia } from "./schedule-C-4ksDPw.js";
|
|
14
14
|
import { M as wa } from "./index-CUVdeb8y.js";
|
|
15
15
|
import "./echarts-B1OU1xr4.js";
|
|
16
16
|
import * as Wr from "echarts/core";
|