@yuku123/z-team-component 0.2.89 → 0.2.90

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.
Files changed (41) hide show
  1. package/dist/{ComponentDoc-CP8PmT4l.js → ComponentDoc-DgjWNYvc.js} +1 -1
  2. package/dist/{InvitationManagementPage-C-8t565B.js → InvitationManagementPage-BWeW0h7p.js} +1 -1
  3. package/dist/{OnboardingPage-DUUHQLSp.js → OnboardingPage-tW2xXPui.js} +2 -2
  4. package/dist/{ScheduledTasks-BSJP-8rB.js → ScheduledTasks-2X5KfwFi.js} +1470 -1461
  5. package/dist/{SystemShell-DTFR-Pfd.js → SystemShell-CSiNt2JL.js} +4 -4
  6. package/dist/{api-GfWm5pTp.js → api-WqoLUPy-.js} +1 -1
  7. package/dist/{index-C5FC0WCa.js → index-7iEmueKf.js} +2 -2
  8. package/dist/{index-BR0HXBjY.js → index-B8mikT45.js} +3 -3
  9. package/dist/{index-D92Y4nix.js → index-BIbkA-jX.js} +2 -2
  10. package/dist/{index-CHTu5H1U.js → index-CGSWoJJv.js} +2 -2
  11. package/dist/{index-DTFcQizU.js → index-ClRT3ECx.js} +2 -2
  12. package/dist/{index-9Vozb4E5.js → index-DBEdsfjb.js} +1 -1
  13. package/dist/{index-EdPtymBD.js → index-DKWvNjHa.js} +2 -2
  14. package/dist/{index-DelMCvoP.js → index-DS4IgliO.js} +1 -1
  15. package/dist/{index-BngdCYiY.js → index-Ds6Ac0UE.js} +2 -2
  16. package/dist/{index-Dxx0UEBW.js → index-NCoTXpQ0.js} +1 -1
  17. package/dist/{index-3qkbu-HG.js → index-Pt4RiXWL.js} +3 -3
  18. package/dist/{index-mIk8zAAm.js → index-iCpFhLce.js} +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/{menuPermission-CF3r6JEV.js → menuPermission-BqZsG_Fz.js} +1 -1
  21. package/dist/pages.js +1 -1
  22. package/package.json +1 -1
  23. package/dist/ComponentDoc-D1vtx1CE.js +0 -3998
  24. package/dist/InvitationManagementPage-DDx-AX4v.js +0 -495
  25. package/dist/OnboardingPage-DUVza4FC.js +0 -393
  26. package/dist/ScheduledTasks-CGNB0zlb.js +0 -10708
  27. package/dist/SystemShell-DZ-W2gUt.js +0 -689
  28. package/dist/api-nf4Uaca5.js +0 -20
  29. package/dist/index-B1lzhb6f.js +0 -1143
  30. package/dist/index-B_H-Ynz5.js +0 -9844
  31. package/dist/index-BqG6XqTh.js +0 -574
  32. package/dist/index-C1kpuot_.js +0 -118
  33. package/dist/index-CUhSJJL0.js +0 -178
  34. package/dist/index-D8ncig8C.js +0 -149
  35. package/dist/index-D_t92tEF.js +0 -2700
  36. package/dist/index-DoC-nKZZ.js +0 -93
  37. package/dist/index-JS2OVZ4Q.js +0 -3488
  38. package/dist/index-LkYDFjtJ.js +0 -914
  39. package/dist/index-d7BD8lzt.js +0 -242
  40. package/dist/index-p1jMVRnp.js +0 -112
  41. package/dist/menuPermission-CZvOK8eU.js +0 -60
@@ -1,93 +0,0 @@
1
- import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
- import v, { useState as d, useEffect as _, useMemo as h } from "react";
3
- import { useLocation as N } from "react-router-dom";
4
- import { g as b, s as g } from "./ComponentDoc-CP8PmT4l.js";
5
- import { i as K, P as x } from "./schedule-ChO2xIGd.js";
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
- banner: E,
8
- dot: S,
9
- text: f,
10
- retry: A,
11
- dismiss: F,
12
- details: P,
13
- method: k,
14
- status: C,
15
- statusNet: D,
16
- url: $
17
- }, B = () => {
18
- const { pathname: i } = N(), [s, n] = d(b()), [l, m] = d(0);
19
- _(() => g(n), []), _(() => {
20
- m(0);
21
- }, [i]);
22
- const u = h(
23
- () => s.filter((t) => t.route === i && t.at >= l),
24
- [s, i, l]
25
- ), p = h(() => {
26
- const t = /* @__PURE__ */ new Map();
27
- return u.forEach((r) => {
28
- const o = t.get(r.status) ?? { status: r.status, count: 0, urls: [] };
29
- o.count += 1, o.urls.includes(r.url) || o.urls.push(r.url), t.set(r.status, o);
30
- }), [...t.values()].sort((r, o) => r.status - o.status);
31
- }, [u]);
32
- if (u.length === 0) return null;
33
- const y = p.map((t) => `${t.status === 0 ? "网络错误" : t.status} ×${t.count}`).join(" · ");
34
- return /* @__PURE__ */ c("div", { className: e.banner, role: "alert", "data-testid": "page-api-error-notice", children: [
35
- /* @__PURE__ */ a("span", { className: e.dot }),
36
- /* @__PURE__ */ c("span", { className: e.text, children: [
37
- "本页有 ",
38
- u.length,
39
- " 个接口失败(",
40
- y,
41
- "),页面可能不完整。"
42
- ] }),
43
- /* @__PURE__ */ a("button", { type: "button", className: e.retry, onClick: () => location.reload(), children: "重试" }),
44
- /* @__PURE__ */ c("details", { className: e.details, children: [
45
- /* @__PURE__ */ a("summary", { children: "失败明细" }),
46
- /* @__PURE__ */ a("ul", { children: u.map((t, r) => /* @__PURE__ */ c("li", { children: [
47
- /* @__PURE__ */ a("span", { className: e.method, children: t.method }),
48
- /* @__PURE__ */ a("span", { className: t.status === 0 ? e.statusNet : e.status, children: t.status === 0 ? "网络" : t.status }),
49
- /* @__PURE__ */ a("span", { className: e.url, children: t.url })
50
- ] }, `${t.at}-${r}`)) })
51
- ] }),
52
- /* @__PURE__ */ a(
53
- "button",
54
- {
55
- type: "button",
56
- className: e.dismiss,
57
- title: "本页浏览期间不再显示",
58
- onClick: () => m(Date.now() + 1),
59
- children: "忽略"
60
- }
61
- )
62
- ] });
63
- };
64
- class T extends v.Component {
65
- constructor() {
66
- super(...arguments), this.state = { error: null, resetKey: this.props.resetKey };
67
- }
68
- static getDerivedStateFromError(s) {
69
- return { error: s };
70
- }
71
- static getDerivedStateFromProps(s, n) {
72
- return n.error && s.resetKey !== n.resetKey ? { error: null, resetKey: s.resetKey } : s.resetKey !== n.resetKey ? { resetKey: s.resetKey } : null;
73
- }
74
- render() {
75
- const { error: s } = this.state;
76
- if (s) {
77
- const n = K(s);
78
- return /* @__PURE__ */ a(
79
- x,
80
- {
81
- error: s,
82
- retry: () => this.setState({ error: null }),
83
- retryText: n ? "重试加载" : "重试渲染"
84
- }
85
- );
86
- }
87
- return this.props.children;
88
- }
89
- }
90
- export {
91
- B as P,
92
- T as R
93
- };