@yuku123/z-team-component 0.2.89 → 0.2.91

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 (56) hide show
  1. package/dist/{ComponentDoc-CP8PmT4l.js → ComponentDoc-Bqfu128t.js} +3 -3
  2. package/dist/{InvitationManagementPage-C-8t565B.js → InvitationManagementPage-DYoqQA0v.js} +1 -1
  3. package/dist/{OnboardingPage-DUUHQLSp.js → OnboardingPage-D2Gm8MRd.js} +2 -2
  4. package/dist/{ScheduledTasks-BSJP-8rB.js → ScheduledTasks-DB3VxAnb.js} +3519 -3380
  5. package/dist/{SystemShell-DTFR-Pfd.js → SystemShell-D3jHItxY.js} +5 -5
  6. package/dist/admin-logs-ogvMwS4O.js +302 -0
  7. package/dist/{api-GfWm5pTp.js → api-DYsAzJJo.js} +1 -1
  8. package/dist/{createWorkspaceWsHandler-rKc7vc8k.js → createWorkspaceWsHandler-D8h5BEzH.js} +2 -2
  9. package/dist/{index-MYohlrH6.js → index-152G-_4j.js} +1 -1
  10. package/dist/{index-DyFaoD5W.js → index-BYe87pnq.js} +1 -1
  11. package/dist/{index-EdPtymBD.js → index-BZ12pY96.js} +2 -2
  12. package/dist/{index-mIk8zAAm.js → index-BaCqZeiw.js} +1 -1
  13. package/dist/{index-pScDd5cp.js → index-BfzgRKii.js} +3 -3
  14. package/dist/{index-ji8TPz9K.js → index-C8cR7lJw.js} +1 -1
  15. package/dist/{index-CHTu5H1U.js → index-CLD5lLa6.js} +3 -3
  16. package/dist/{index-s_ikMJ2V.js → index-CLfhHxPf.js} +1 -1
  17. package/dist/{index-D92Y4nix.js → index-CSpckSHg.js} +2 -2
  18. package/dist/{index-v3WaXkDJ.js → index-CYyFYmlZ.js} +1 -1
  19. package/dist/{index-BxBGVGKQ.js → index-CZyFAmEq.js} +1 -1
  20. package/dist/{index-DcHrkop2.js → index-CgWa7RFv.js} +1 -1
  21. package/dist/{index-9Vozb4E5.js → index-Cggl78j7.js} +2 -2
  22. package/dist/{index-C5FC0WCa.js → index-Cw6MIoNv.js} +4 -4
  23. package/dist/{index-BngdCYiY.js → index-DE82vM_4.js} +3 -3
  24. package/dist/{index-DTFcQizU.js → index-DVaTGA2z.js} +5 -5
  25. package/dist/{index-DoC-nKZZ.js → index-Dwqa30HZ.js} +1 -1
  26. package/dist/{index-B_H-Ynz5.js → index-DyQ9YnMd.js} +6 -6
  27. package/dist/{index-BR0HXBjY.js → index-E4Q6JmzX.js} +3 -3
  28. package/dist/{index-DelMCvoP.js → index-W_4faD_M.js} +2 -2
  29. package/dist/{index-B51WSpDM.js → index-ues0LW7p.js} +3 -3
  30. package/dist/index.js +1 -1
  31. package/dist/{menuPermission-CF3r6JEV.js → menuPermission-C33I6ujb.js} +2 -2
  32. package/dist/pages.js +1 -1
  33. package/dist/{useAppStore-BFO_h1L2.js → useAppStore-uc8v8XZC.js} +1 -1
  34. package/dist/{webide-DTZ46LPR.js → webide-BuUYLPSp.js} +2 -2
  35. package/dist/z-team-component.css +1 -1
  36. package/package.json +1 -1
  37. package/dist/ComponentDoc-D1vtx1CE.js +0 -3998
  38. package/dist/InvitationManagementPage-DDx-AX4v.js +0 -495
  39. package/dist/OnboardingPage-DUVza4FC.js +0 -393
  40. package/dist/ScheduledTasks-CGNB0zlb.js +0 -10708
  41. package/dist/SystemShell-DZ-W2gUt.js +0 -689
  42. package/dist/api-nf4Uaca5.js +0 -20
  43. package/dist/index-3qkbu-HG.js +0 -9844
  44. package/dist/index-B1lzhb6f.js +0 -1143
  45. package/dist/index-BqG6XqTh.js +0 -574
  46. package/dist/index-C1kpuot_.js +0 -118
  47. package/dist/index-CUhSJJL0.js +0 -178
  48. package/dist/index-D8ncig8C.js +0 -149
  49. package/dist/index-D_t92tEF.js +0 -2700
  50. package/dist/index-Dxx0UEBW.js +0 -93
  51. package/dist/index-JS2OVZ4Q.js +0 -3488
  52. package/dist/index-LkYDFjtJ.js +0 -914
  53. package/dist/index-d7BD8lzt.js +0 -242
  54. package/dist/index-p1jMVRnp.js +0 -112
  55. package/dist/menuPermission-CZvOK8eU.js +0 -60
  56. package/dist/personal-D-eMMf0_.js +0 -294
@@ -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-D1vtx1CE.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
- };