@yuku123/z-cognition-component 2.0.0 → 2.0.1
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-lib/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
- package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
- package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
- package/dist-lib/embed-DwLg9RDW.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
- package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
- package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
- package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
- package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as q } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useRef as Qe, useEffect as F, useCallback as x, useMemo as ce } from "react";
|
|
3
|
-
import { r as R,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { T as
|
|
3
|
+
import { r as R, d as Ve, I as E, A as Ce } from "./embed-DwLg9RDW.js";
|
|
4
|
+
import { S as Xe, B as k } from "./index-CrMcNEAZ.js";
|
|
5
|
+
import { A as M } from "./index-nQSVLWfW.js";
|
|
6
|
+
import { F as O, M as Te } from "./index-DBlG9uXV.js";
|
|
7
|
+
import { I as V } from "./index-DvWHYX81.js";
|
|
8
|
+
import { S as ge } from "./index-bOY1cBol.js";
|
|
9
|
+
import { F as be } from "./Table-CDagah-g.js";
|
|
10
|
+
import { T as z } from "./index-Bc-Vin3j.js";
|
|
11
|
+
import { P as Ze } from "./index-CyKWCYMK.js";
|
|
12
|
+
import { S as Je } from "./Skeleton-DXcERb5r.js";
|
|
13
|
+
import { B as ve } from "./index-o65vKUwa.js";
|
|
14
|
+
import { D as et } from "./index-9aQ4BzIK.js";
|
|
15
|
+
import { T as $e } from "./index-B57Fj7Y0.js";
|
|
11
16
|
const tt = "X-FB-BIOS", A = "/kb/v1/bios";
|
|
12
17
|
function D(t) {
|
|
13
18
|
return { [tt]: t };
|
|
@@ -29,14 +34,14 @@ function Ne(t) {
|
|
|
29
34
|
silent: !0
|
|
30
35
|
});
|
|
31
36
|
}
|
|
32
|
-
function
|
|
37
|
+
function rt(t) {
|
|
33
38
|
return R(`${A}/logout`, {
|
|
34
39
|
method: "POST",
|
|
35
40
|
headers: D(t),
|
|
36
41
|
silent: !0
|
|
37
42
|
});
|
|
38
43
|
}
|
|
39
|
-
function
|
|
44
|
+
function it(t) {
|
|
40
45
|
return R(`${A}/sites`, { method: "GET", headers: D(t) });
|
|
41
46
|
}
|
|
42
47
|
function ot(t, s) {
|
|
@@ -100,18 +105,18 @@ function le(t) {
|
|
|
100
105
|
return t instanceof Error ? t.message : String(t);
|
|
101
106
|
}
|
|
102
107
|
function mt() {
|
|
103
|
-
const [t, s] = m(() => ut()), [o, h] = m(null), [b, f] = m(null), [C, I] = m(""), [y, S] = m(!0), [c, a] = m([]), [w, L] = m(!1), [u, P] = m(""), [N, T] = m(""), [$, U] = m({}), [te, se] = m(!1), [ne,
|
|
108
|
+
const [t, s] = m(() => ut()), [o, h] = m(null), [b, f] = m(null), [C, I] = m(""), [y, S] = m(!0), [c, a] = m([]), [w, L] = m(!1), [u, P] = m(""), [N, T] = m(""), [$, U] = m({}), [te, se] = m(!1), [ne, re] = m(""), [H, X] = m([]), [K, W] = m(""), [de, n] = m([]), [v, _] = m(!1), [Ae, we] = m(""), [ue, Be] = m(""), [ie, Fe] = m("ALL"), [me, Me] = m("CODE"), [Y, oe] = m(null), [Ie, De] = m(() => Date.now()), G = Qe(t);
|
|
104
109
|
G.current = t, F(() => {
|
|
105
|
-
const
|
|
106
|
-
return () => window.clearInterval(
|
|
110
|
+
const i = window.setInterval(() => De(Date.now()), 1e3);
|
|
111
|
+
return () => window.clearInterval(i);
|
|
107
112
|
}, []);
|
|
108
113
|
const Z = x(async () => {
|
|
109
114
|
I("");
|
|
110
115
|
try {
|
|
111
|
-
const
|
|
112
|
-
return f(
|
|
113
|
-
} catch (
|
|
114
|
-
return I(le(
|
|
116
|
+
const i = await st();
|
|
117
|
+
return f(i), i;
|
|
118
|
+
} catch (i) {
|
|
119
|
+
return I(le(i)), null;
|
|
115
120
|
} finally {
|
|
116
121
|
S(!1);
|
|
117
122
|
}
|
|
@@ -125,21 +130,21 @@ function mt() {
|
|
|
125
130
|
F(() => {
|
|
126
131
|
if (!t)
|
|
127
132
|
return;
|
|
128
|
-
let
|
|
133
|
+
let i = !0;
|
|
129
134
|
return (async () => {
|
|
130
135
|
try {
|
|
131
136
|
const p = await Ne(t);
|
|
132
|
-
|
|
137
|
+
i && h(p);
|
|
133
138
|
} catch {
|
|
134
|
-
|
|
139
|
+
i && Q();
|
|
135
140
|
}
|
|
136
141
|
})(), () => {
|
|
137
|
-
|
|
142
|
+
i = !1;
|
|
138
143
|
};
|
|
139
144
|
}, [t, Q]), F(() => {
|
|
140
145
|
if (!t || !o)
|
|
141
146
|
return;
|
|
142
|
-
const
|
|
147
|
+
const i = window.setInterval(() => {
|
|
143
148
|
(async () => {
|
|
144
149
|
try {
|
|
145
150
|
h(await Ne(t));
|
|
@@ -148,12 +153,12 @@ function mt() {
|
|
|
148
153
|
}
|
|
149
154
|
})();
|
|
150
155
|
}, 6e4);
|
|
151
|
-
return () => window.clearInterval(
|
|
156
|
+
return () => window.clearInterval(i);
|
|
152
157
|
}, [t, o, Q]);
|
|
153
|
-
const he = x(async (
|
|
158
|
+
const he = x(async (i) => {
|
|
154
159
|
L(!0), P("");
|
|
155
160
|
try {
|
|
156
|
-
const p = await
|
|
161
|
+
const p = await it(i);
|
|
157
162
|
return a(p), T((d) => {
|
|
158
163
|
var l;
|
|
159
164
|
return d && p.some((g) => g.siteCode === d) ? d : ((l = p[0]) == null ? void 0 : l.siteCode) ?? "";
|
|
@@ -163,9 +168,9 @@ function mt() {
|
|
|
163
168
|
} finally {
|
|
164
169
|
L(!1);
|
|
165
170
|
}
|
|
166
|
-
}, []), Se = x(async (
|
|
171
|
+
}, []), Se = x(async (i) => {
|
|
167
172
|
try {
|
|
168
|
-
const p = await ct(
|
|
173
|
+
const p = await ct(i);
|
|
169
174
|
return X(p), W((d) => {
|
|
170
175
|
var l;
|
|
171
176
|
return d || ((l = p[0]) == null ? void 0 : l.code) || "";
|
|
@@ -173,9 +178,9 @@ function mt() {
|
|
|
173
178
|
} catch {
|
|
174
179
|
return X([]), [];
|
|
175
180
|
}
|
|
176
|
-
}, []), ae = x(async (
|
|
181
|
+
}, []), ae = x(async (i, p) => {
|
|
177
182
|
try {
|
|
178
|
-
const d = await ze(
|
|
183
|
+
const d = await ze(i, p, 30);
|
|
179
184
|
n(d);
|
|
180
185
|
} catch {
|
|
181
186
|
n([]);
|
|
@@ -184,16 +189,16 @@ function mt() {
|
|
|
184
189
|
F(() => {
|
|
185
190
|
!t || !o || (he(t), Se(t), ae(t));
|
|
186
191
|
}, [t, o, he, Se, ae]);
|
|
187
|
-
const J = x(async (
|
|
192
|
+
const J = x(async (i, p) => {
|
|
188
193
|
const d = p ?? G.current;
|
|
189
|
-
if (!d || !
|
|
194
|
+
if (!d || !i)
|
|
190
195
|
return null;
|
|
191
|
-
se(!0),
|
|
196
|
+
se(!0), re("");
|
|
192
197
|
try {
|
|
193
|
-
const l = await lt(d,
|
|
194
|
-
return U((g) => ({ ...g, [
|
|
198
|
+
const l = await lt(d, i);
|
|
199
|
+
return U((g) => ({ ...g, [i]: l })), l;
|
|
195
200
|
} catch (l) {
|
|
196
|
-
return
|
|
201
|
+
return re(le(l)), null;
|
|
197
202
|
} finally {
|
|
198
203
|
se(!1);
|
|
199
204
|
}
|
|
@@ -202,8 +207,8 @@ function mt() {
|
|
|
202
207
|
!t || !o || !N || (J(N, t), ae(t, N));
|
|
203
208
|
}, [t, o, N, J, ae]);
|
|
204
209
|
const Le = x(
|
|
205
|
-
async (
|
|
206
|
-
const d = await nt(
|
|
210
|
+
async (i, p) => {
|
|
211
|
+
const d = await nt(i, p);
|
|
207
212
|
return Ee(d.token), s(d.token), h({
|
|
208
213
|
account: d.account,
|
|
209
214
|
issuedAt: d.issuedAt,
|
|
@@ -213,34 +218,34 @@ function mt() {
|
|
|
213
218
|
},
|
|
214
219
|
[Z]
|
|
215
220
|
), Pe = x(async () => {
|
|
216
|
-
const
|
|
217
|
-
if (Q(),
|
|
221
|
+
const i = G.current;
|
|
222
|
+
if (Q(), i)
|
|
218
223
|
try {
|
|
219
|
-
await
|
|
224
|
+
await rt(i);
|
|
220
225
|
} catch {
|
|
221
226
|
}
|
|
222
227
|
}, [Q]), pe = x(
|
|
223
|
-
async (
|
|
228
|
+
async (i) => {
|
|
224
229
|
const p = G.current;
|
|
225
230
|
if (!p)
|
|
226
231
|
throw new Error("BIOS 会话已失效");
|
|
227
|
-
const d = await ot(p,
|
|
232
|
+
const d = await ot(p, i);
|
|
228
233
|
return a((l) => [...l.filter((B) => B.siteCode !== d.siteCode), d].sort((B, j) => B.siteCode.localeCompare(j.siteCode))), T(d.siteCode), oe(null), d;
|
|
229
234
|
},
|
|
230
235
|
[]
|
|
231
|
-
), Ke = x(async (
|
|
236
|
+
), Ke = x(async (i) => {
|
|
232
237
|
const p = G.current;
|
|
233
238
|
if (!p)
|
|
234
239
|
throw new Error("BIOS 会话已失效");
|
|
235
|
-
const d = c.find((l) => l.siteCode ===
|
|
236
|
-
a((l) => l.filter((g) => g.siteCode !==
|
|
240
|
+
const d = c.find((l) => l.siteCode === i);
|
|
241
|
+
a((l) => l.filter((g) => g.siteCode !== i)), T((l) => {
|
|
237
242
|
var B;
|
|
238
|
-
return l !==
|
|
243
|
+
return l !== i ? l : ((B = c.filter((j) => j.siteCode !== i)[0]) == null ? void 0 : B.siteCode) ?? "";
|
|
239
244
|
});
|
|
240
245
|
try {
|
|
241
|
-
await at(p,
|
|
246
|
+
await at(p, i), d && oe({ site: d, readiness: $[i] }), U((l) => {
|
|
242
247
|
const g = { ...l };
|
|
243
|
-
return delete g[
|
|
248
|
+
return delete g[i], g;
|
|
244
249
|
});
|
|
245
250
|
} catch (l) {
|
|
246
251
|
throw d && (a(
|
|
@@ -250,21 +255,21 @@ function mt() {
|
|
|
250
255
|
}, [c, $]), _e = x(async () => {
|
|
251
256
|
if (!Y)
|
|
252
257
|
return;
|
|
253
|
-
const { site:
|
|
258
|
+
const { site: i } = Y;
|
|
254
259
|
oe(null), await pe({
|
|
255
|
-
siteCode:
|
|
256
|
-
siteName:
|
|
257
|
-
tenantCode:
|
|
258
|
-
orgId:
|
|
259
|
-
}), Y.readiness && U((p) => ({ ...p, [
|
|
260
|
+
siteCode: i.siteCode,
|
|
261
|
+
siteName: i.siteName,
|
|
262
|
+
tenantCode: i.tenantCode,
|
|
263
|
+
orgId: i.orgId
|
|
264
|
+
}), Y.readiness && U((p) => ({ ...p, [i.siteCode]: Y.readiness }));
|
|
260
265
|
}, [Y, pe]), Ge = x(() => oe(null), []), je = x(
|
|
261
|
-
async (
|
|
266
|
+
async (i, p) => {
|
|
262
267
|
const d = G.current, l = N;
|
|
263
268
|
if (!d || !l)
|
|
264
269
|
throw new Error("未选择目标站点");
|
|
265
270
|
_(!0), we("");
|
|
266
271
|
try {
|
|
267
|
-
const g = await dt(d, { siteCode: l, templateCode:
|
|
272
|
+
const g = await dt(d, { siteCode: l, templateCode: i, staffId: p });
|
|
268
273
|
return n((B) => [g, ...B.filter((j) => j.pushId !== g.pushId)]), J(l, d), g;
|
|
269
274
|
} catch (g) {
|
|
270
275
|
throw we(le(g)), g;
|
|
@@ -274,7 +279,7 @@ function mt() {
|
|
|
274
279
|
},
|
|
275
280
|
[N, J]
|
|
276
281
|
), qe = ce(() => {
|
|
277
|
-
const
|
|
282
|
+
const i = ue.trim(), p = c.filter((l) => ie !== "ALL" && l.source !== ie ? !1 : i ? Ve(i, l.siteCode, l.siteName, l.tenantCode, l.orgId) : !0), d = (l) => {
|
|
278
283
|
var g;
|
|
279
284
|
return ((g = $[l]) == null ? void 0 : g.score) ?? -1;
|
|
280
285
|
};
|
|
@@ -290,11 +295,11 @@ function mt() {
|
|
|
290
295
|
return l.siteCode.localeCompare(g.siteCode);
|
|
291
296
|
}
|
|
292
297
|
});
|
|
293
|
-
}, [c, ue,
|
|
294
|
-
() => c.find((
|
|
298
|
+
}, [c, ue, ie, me, $]), Ue = ce(
|
|
299
|
+
() => c.find((i) => i.siteCode === N) ?? null,
|
|
295
300
|
[c, N]
|
|
296
301
|
), He = N ? $[N] ?? null : null, We = ce(
|
|
297
|
-
() => H.find((
|
|
302
|
+
() => H.find((i) => i.code === K) ?? null,
|
|
298
303
|
[H, K]
|
|
299
304
|
), Ye = o ? Math.max(0, o.expiresAt - Ie) : 0;
|
|
300
305
|
return {
|
|
@@ -327,7 +332,7 @@ function mt() {
|
|
|
327
332
|
push: je,
|
|
328
333
|
query: ue,
|
|
329
334
|
setQuery: Be,
|
|
330
|
-
filter:
|
|
335
|
+
filter: ie,
|
|
331
336
|
setFilter: Fe,
|
|
332
337
|
sort: me,
|
|
333
338
|
setSort: Me,
|
|
@@ -437,13 +442,13 @@ function wt({ controller: t }) {
|
|
|
437
442
|
I(!1);
|
|
438
443
|
}
|
|
439
444
|
}
|
|
440
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ r("div", { className: "bios-login-card", children: [
|
|
441
446
|
/* @__PURE__ */ e("h1", { className: "bios-login-title", children: "BIOS 站点初始化" }),
|
|
442
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ r("p", { className: "bios-login-sub", children: [
|
|
443
448
|
"独立维护的管理员入口 · ",
|
|
444
449
|
(s == null ? void 0 : s.version) ?? "检查固件状态中"
|
|
445
450
|
] }),
|
|
446
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ r("div", { className: "bios-login-status", children: [
|
|
447
452
|
h && !s ? /* @__PURE__ */ e("div", { style: { textAlign: "center", padding: "12px 0" }, children: /* @__PURE__ */ e(Xe, {}) }) : null,
|
|
448
453
|
!h && o ? /* @__PURE__ */ e(
|
|
449
454
|
M,
|
|
@@ -475,7 +480,7 @@ function wt({ controller: t }) {
|
|
|
475
480
|
) : null,
|
|
476
481
|
y ? /* @__PURE__ */ e(M, { type: "error", showIcon: !0, message: y, style: { marginTop: 12 } }) : null
|
|
477
482
|
] }),
|
|
478
|
-
c ? /* @__PURE__ */
|
|
483
|
+
c ? /* @__PURE__ */ r(O, { layout: "vertical", onFinish: (w) => void a(w), children: [
|
|
479
484
|
/* @__PURE__ */ e(
|
|
480
485
|
O.Item,
|
|
481
486
|
{
|
|
@@ -517,8 +522,8 @@ function It({ controller: t }) {
|
|
|
517
522
|
);
|
|
518
523
|
return F(() => {
|
|
519
524
|
c(o);
|
|
520
|
-
}, [c, o]), /* @__PURE__ */
|
|
521
|
-
/* @__PURE__ */
|
|
525
|
+
}, [c, o]), /* @__PURE__ */ r("section", { className: "bios-panel", "aria-label": "推送记录", children: [
|
|
526
|
+
/* @__PURE__ */ r("div", { className: "bios-panel-head", children: [
|
|
522
527
|
/* @__PURE__ */ e("h2", { children: "推送记录" }),
|
|
523
528
|
/* @__PURE__ */ e(
|
|
524
529
|
ge,
|
|
@@ -535,7 +540,7 @@ function It({ controller: t }) {
|
|
|
535
540
|
}
|
|
536
541
|
),
|
|
537
542
|
/* @__PURE__ */ e("span", { className: "spacer" }),
|
|
538
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ r("span", { style: { fontSize: 12, color: "#8a9099" }, children: [
|
|
539
544
|
"共 ",
|
|
540
545
|
b.length,
|
|
541
546
|
" 条,最近 ",
|
|
@@ -607,7 +612,7 @@ function It({ controller: t }) {
|
|
|
607
612
|
title: "模板",
|
|
608
613
|
dataIndex: "templateName",
|
|
609
614
|
width: 180,
|
|
610
|
-
render: (a, w) => /* @__PURE__ */
|
|
615
|
+
render: (a, w) => /* @__PURE__ */ r(q, { children: [
|
|
611
616
|
a,
|
|
612
617
|
/* @__PURE__ */ e("span", { style: { marginLeft: 6, fontSize: 11, color: "#8a9099" }, children: w.templateCode })
|
|
613
618
|
] })
|
|
@@ -664,7 +669,7 @@ function St({
|
|
|
664
669
|
C(!1);
|
|
665
670
|
}
|
|
666
671
|
}
|
|
667
|
-
return /* @__PURE__ */
|
|
672
|
+
return /* @__PURE__ */ r(
|
|
668
673
|
Te,
|
|
669
674
|
{
|
|
670
675
|
title: "登记站点",
|
|
@@ -676,7 +681,7 @@ function St({
|
|
|
676
681
|
destroyOnHidden: !0,
|
|
677
682
|
children: [
|
|
678
683
|
/* @__PURE__ */ e("p", { style: { color: "#8a9099", fontSize: 12 }, children: "站点 = 一个租户 + 一个 apex 机构。已存在的租户也可以在这里登记后做增量初始化。" }),
|
|
679
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ r(
|
|
680
685
|
O,
|
|
681
686
|
{
|
|
682
687
|
form: b,
|
|
@@ -761,8 +766,8 @@ function vt({
|
|
|
761
766
|
okText: "确认推送",
|
|
762
767
|
okButtonProps: { danger: (t == null ? void 0 : t.mode) === "WRITE" },
|
|
763
768
|
destroyOnHidden: !0,
|
|
764
|
-
children: t && b ? /* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
769
|
+
children: t && b ? /* @__PURE__ */ r(q, { children: [
|
|
770
|
+
/* @__PURE__ */ r("p", { children: [
|
|
766
771
|
"目标站点 ",
|
|
767
772
|
/* @__PURE__ */ e("b", { children: b.siteName }),
|
|
768
773
|
"(租户 ",
|
|
@@ -830,7 +835,7 @@ function Nt({ controller: t }) {
|
|
|
830
835
|
undo: te,
|
|
831
836
|
restoreSite: se,
|
|
832
837
|
dismissUndo: ne
|
|
833
|
-
} = t, [
|
|
838
|
+
} = t, [re, H] = m(!1), [X, K] = m(null), W = ce(
|
|
834
839
|
() => u ? Ct(u, $) : [],
|
|
835
840
|
[u, $]
|
|
836
841
|
);
|
|
@@ -842,9 +847,9 @@ function Nt({ controller: t }) {
|
|
|
842
847
|
s.error(ee(n));
|
|
843
848
|
}
|
|
844
849
|
}
|
|
845
|
-
return /* @__PURE__ */
|
|
846
|
-
/* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */
|
|
850
|
+
return /* @__PURE__ */ r("div", { className: "bios-split", children: [
|
|
851
|
+
/* @__PURE__ */ r("aside", { className: "bios-site-pane", "aria-label": "站点清单", children: [
|
|
852
|
+
/* @__PURE__ */ r("div", { className: "bios-site-pane-toolbar", children: [
|
|
848
853
|
/* @__PURE__ */ e(
|
|
849
854
|
V,
|
|
850
855
|
{
|
|
@@ -869,7 +874,7 @@ function Nt({ controller: t }) {
|
|
|
869
874
|
children: "登记站点"
|
|
870
875
|
}
|
|
871
876
|
),
|
|
872
|
-
te ? /* @__PURE__ */
|
|
877
|
+
te ? /* @__PURE__ */ r(
|
|
873
878
|
"div",
|
|
874
879
|
{
|
|
875
880
|
role: "status",
|
|
@@ -884,7 +889,7 @@ function Nt({ controller: t }) {
|
|
|
884
889
|
color: "#d48806"
|
|
885
890
|
},
|
|
886
891
|
children: [
|
|
887
|
-
/* @__PURE__ */
|
|
892
|
+
/* @__PURE__ */ r("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: [
|
|
888
893
|
"已移除 ",
|
|
889
894
|
te.site.siteCode
|
|
890
895
|
] }),
|
|
@@ -893,20 +898,20 @@ function Nt({ controller: t }) {
|
|
|
893
898
|
]
|
|
894
899
|
}
|
|
895
900
|
) : null,
|
|
896
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ r("div", { className: "bios-site-list", children: [
|
|
897
902
|
o.map((n) => {
|
|
898
903
|
var _;
|
|
899
904
|
const v = (_ = L[n.siteCode]) == null ? void 0 : _.score;
|
|
900
|
-
return /* @__PURE__ */
|
|
905
|
+
return /* @__PURE__ */ r(
|
|
901
906
|
"button",
|
|
902
907
|
{
|
|
903
908
|
type: "button",
|
|
904
909
|
className: `bios-site-item${n.siteCode === a ? " active" : ""}`,
|
|
905
910
|
onClick: () => w(n.siteCode),
|
|
906
911
|
children: [
|
|
907
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ r("span", { className: "bios-site-item-main", children: [
|
|
908
913
|
/* @__PURE__ */ e("span", { className: "bios-site-item-name", children: n.siteName }),
|
|
909
|
-
/* @__PURE__ */
|
|
914
|
+
/* @__PURE__ */ r("span", { className: "bios-site-item-sub", children: [
|
|
910
915
|
n.siteCode,
|
|
911
916
|
" · 租户 ",
|
|
912
917
|
n.tenantCode,
|
|
@@ -930,27 +935,27 @@ function Nt({ controller: t }) {
|
|
|
930
935
|
h.length === 0 ? /* @__PURE__ */ e("p", { style: { color: "#8a9099", fontSize: 12, padding: "8px 4px" }, children: "还没有站点。登记一个站点(租户 + apex 机构)后即可初始化。" }) : null
|
|
931
936
|
] })
|
|
932
937
|
] }),
|
|
933
|
-
/* @__PURE__ */ e("div", { className: "bios-detail-pane", children: c ? /* @__PURE__ */
|
|
934
|
-
/* @__PURE__ */ e("section", { className: "bios-panel", "aria-label": "站点详情", children: /* @__PURE__ */
|
|
935
|
-
/* @__PURE__ */
|
|
938
|
+
/* @__PURE__ */ e("div", { className: "bios-detail-pane", children: c ? /* @__PURE__ */ r(q, { children: [
|
|
939
|
+
/* @__PURE__ */ e("section", { className: "bios-panel", "aria-label": "站点详情", children: /* @__PURE__ */ r("div", { className: "bios-site-head", children: [
|
|
940
|
+
/* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
936
941
|
/* @__PURE__ */ e("h2", { children: c.siteName }),
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
942
|
+
/* @__PURE__ */ r("div", { className: "bios-tags", children: [
|
|
943
|
+
/* @__PURE__ */ r("span", { className: "bios-tag", children: [
|
|
939
944
|
/* @__PURE__ */ e(E, { name: "hash", size: 10 }),
|
|
940
945
|
/* @__PURE__ */ e("code", { children: c.siteCode })
|
|
941
946
|
] }),
|
|
942
|
-
/* @__PURE__ */
|
|
947
|
+
/* @__PURE__ */ r("span", { className: "bios-tag info", children: [
|
|
943
948
|
/* @__PURE__ */ e(E, { name: "database", size: 10 }),
|
|
944
949
|
"租户 ",
|
|
945
950
|
/* @__PURE__ */ e("code", { children: c.tenantCode })
|
|
946
951
|
] }),
|
|
947
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ r("span", { className: "bios-tag", children: [
|
|
948
953
|
/* @__PURE__ */ e(E, { name: "network", size: 10 }),
|
|
949
954
|
"机构 ",
|
|
950
955
|
/* @__PURE__ */ e("code", { children: c.orgId })
|
|
951
956
|
] }),
|
|
952
|
-
u ? /* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
957
|
+
u ? /* @__PURE__ */ r(q, { children: [
|
|
958
|
+
/* @__PURE__ */ r(
|
|
954
959
|
"span",
|
|
955
960
|
{
|
|
956
961
|
className: `bios-tag ${u.roleExists ? u.roleEnabled ? "ok" : "warn" : "fail"}`,
|
|
@@ -962,11 +967,11 @@ function Nt({ controller: t }) {
|
|
|
962
967
|
]
|
|
963
968
|
}
|
|
964
969
|
),
|
|
965
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ r("span", { className: `bios-tag ${u.orgRelationConfigured ? "ok" : "fail"}`, children: [
|
|
966
971
|
/* @__PURE__ */ e(E, { name: "link", size: 10 }),
|
|
967
972
|
u.orgRelationConfigured ? "组织关系已配置" : "组织关系未配置"
|
|
968
973
|
] }),
|
|
969
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ r("span", { className: "bios-tag", children: [
|
|
970
975
|
/* @__PURE__ */ e(E, { name: "users", size: 10 }),
|
|
971
976
|
"超管 ",
|
|
972
977
|
u.holderCount,
|
|
@@ -985,7 +990,7 @@ function Nt({ controller: t }) {
|
|
|
985
990
|
}
|
|
986
991
|
),
|
|
987
992
|
c.source === "RUNTIME" ? /* @__PURE__ */ e(
|
|
988
|
-
|
|
993
|
+
Ze,
|
|
989
994
|
{
|
|
990
995
|
title: "移除站点",
|
|
991
996
|
description: "只移除登记信息,不影响 apex 侧已写入的数据。",
|
|
@@ -996,15 +1001,15 @@ function Nt({ controller: t }) {
|
|
|
996
1001
|
}
|
|
997
1002
|
) : null
|
|
998
1003
|
] }) }),
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ r("section", { className: "bios-panel", "aria-label": "就绪度", children: [
|
|
1005
|
+
/* @__PURE__ */ r("div", { className: "bios-panel-head", children: [
|
|
1001
1006
|
/* @__PURE__ */ e("h2", { children: "初始化就绪度" }),
|
|
1002
|
-
u ? /* @__PURE__ */
|
|
1007
|
+
u ? /* @__PURE__ */ r(z, { color: fe(u.score) === "ok" ? "green" : fe(u.score) === "warn" ? "orange" : "red", children: [
|
|
1003
1008
|
u.score,
|
|
1004
1009
|
" 分"
|
|
1005
1010
|
] }) : null,
|
|
1006
1011
|
/* @__PURE__ */ e("span", { className: "spacer" }),
|
|
1007
|
-
u ? /* @__PURE__ */
|
|
1012
|
+
u ? /* @__PURE__ */ r("span", { style: { fontSize: 12, color: "#8a9099" }, children: [
|
|
1008
1013
|
"探测于 ",
|
|
1009
1014
|
Re(u.probedAt)
|
|
1010
1015
|
] }) : null
|
|
@@ -1019,8 +1024,8 @@ function Nt({ controller: t }) {
|
|
|
1019
1024
|
action: /* @__PURE__ */ e(k, { size: "small", onClick: () => void T(c.siteCode), children: "重试" })
|
|
1020
1025
|
}
|
|
1021
1026
|
) : null,
|
|
1022
|
-
!u && P ? /* @__PURE__ */ e(
|
|
1023
|
-
!u && !P && !N ? /* @__PURE__ */
|
|
1027
|
+
!u && P ? /* @__PURE__ */ e(Je, { active: !0, paragraph: { rows: 4 } }) : null,
|
|
1028
|
+
!u && !P && !N ? /* @__PURE__ */ r("p", { style: { color: "#8a9099" }, children: [
|
|
1024
1029
|
"尚未探测。探针只读 apex:角色、成员、组织关系与权限目录。",
|
|
1025
1030
|
/* @__PURE__ */ e(
|
|
1026
1031
|
k,
|
|
@@ -1032,9 +1037,9 @@ function Nt({ controller: t }) {
|
|
|
1032
1037
|
}
|
|
1033
1038
|
)
|
|
1034
1039
|
] }) : null,
|
|
1035
|
-
u ? /* @__PURE__ */
|
|
1040
|
+
u ? /* @__PURE__ */ r(q, { children: [
|
|
1036
1041
|
/* @__PURE__ */ e("div", { className: "bios-section-label", children: "检查项" }),
|
|
1037
|
-
/* @__PURE__ */ e("div", { className: "bios-checks", children: u.checks.map((n) => /* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ e("div", { className: "bios-checks", children: u.checks.map((n) => /* @__PURE__ */ r("div", { className: "bios-check", children: [
|
|
1038
1043
|
/* @__PURE__ */ e(
|
|
1039
1044
|
ve,
|
|
1040
1045
|
{
|
|
@@ -1044,11 +1049,11 @@ function Nt({ controller: t }) {
|
|
|
1044
1049
|
/* @__PURE__ */ e("span", { className: "bios-check-label", children: n.label }),
|
|
1045
1050
|
/* @__PURE__ */ e("span", { className: "bios-check-detail", title: n.detail, children: n.detail })
|
|
1046
1051
|
] }, n.code)) }),
|
|
1047
|
-
u.holders.length > 0 ? /* @__PURE__ */
|
|
1052
|
+
u.holders.length > 0 ? /* @__PURE__ */ r(q, { children: [
|
|
1048
1053
|
/* @__PURE__ */ e("div", { className: "bios-section-label", style: { marginTop: 14 }, children: "当前超管持有者" }),
|
|
1049
|
-
/* @__PURE__ */ e("div", { className: "bios-holders", children: u.holders.map((n) => /* @__PURE__ */
|
|
1054
|
+
/* @__PURE__ */ e("div", { className: "bios-holders", children: u.holders.map((n) => /* @__PURE__ */ r("span", { className: "bios-holder", children: [
|
|
1050
1055
|
n.name ?? `员工 ${n.staffId}`,
|
|
1051
|
-
/* @__PURE__ */
|
|
1056
|
+
/* @__PURE__ */ r("small", { children: [
|
|
1052
1057
|
n.jobNumber ? `${n.jobNumber} · ` : "",
|
|
1053
1058
|
"#",
|
|
1054
1059
|
n.staffId
|
|
@@ -1081,16 +1086,16 @@ function Nt({ controller: t }) {
|
|
|
1081
1086
|
}
|
|
1082
1087
|
) : null
|
|
1083
1088
|
] }),
|
|
1084
|
-
u && W.length > 0 ? /* @__PURE__ */
|
|
1089
|
+
u && W.length > 0 ? /* @__PURE__ */ r("section", { className: "bios-panel", "aria-label": "下一步建议", children: [
|
|
1085
1090
|
/* @__PURE__ */ e("div", { className: "bios-panel-head", children: /* @__PURE__ */ e("h2", { children: "下一步" }) }),
|
|
1086
|
-
W.map((n) => /* @__PURE__ */
|
|
1091
|
+
W.map((n) => /* @__PURE__ */ r("div", { className: "bios-next-row", children: [
|
|
1087
1092
|
/* @__PURE__ */ e(
|
|
1088
1093
|
ve,
|
|
1089
1094
|
{
|
|
1090
1095
|
status: n.tone === "ok" ? "success" : n.tone === "fail" ? "error" : "warning"
|
|
1091
1096
|
}
|
|
1092
1097
|
),
|
|
1093
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ r("span", { className: "bios-next-main", children: [
|
|
1094
1099
|
/* @__PURE__ */ e("span", { className: "bios-next-label", children: n.label }),
|
|
1095
1100
|
/* @__PURE__ */ e("span", { className: "bios-next-reason", title: n.reason, children: n.reason })
|
|
1096
1101
|
] }),
|
|
@@ -1105,7 +1110,7 @@ function Nt({ controller: t }) {
|
|
|
1105
1110
|
},
|
|
1106
1111
|
children: n.tone === "ok" ? "运行探针" : "执行模板"
|
|
1107
1112
|
}
|
|
1108
|
-
) : n.kind === "config" && n.configKey ? /* @__PURE__ */
|
|
1113
|
+
) : n.kind === "config" && n.configKey ? /* @__PURE__ */ r(
|
|
1109
1114
|
k,
|
|
1110
1115
|
{
|
|
1111
1116
|
size: "small",
|
|
@@ -1130,8 +1135,8 @@ function Nt({ controller: t }) {
|
|
|
1130
1135
|
)
|
|
1131
1136
|
] }, n.key))
|
|
1132
1137
|
] }) : null,
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
1138
|
+
/* @__PURE__ */ r("section", { className: "bios-panel", "aria-label": "模板", children: [
|
|
1139
|
+
/* @__PURE__ */ r("div", { className: "bios-panel-head", children: [
|
|
1135
1140
|
/* @__PURE__ */ e("h2", { children: "初始化模板" }),
|
|
1136
1141
|
/* @__PURE__ */ e("span", { className: "spacer" }),
|
|
1137
1142
|
/* @__PURE__ */ e("span", { style: { fontSize: 12, color: "#8a9099" }, children: "写操作会修改生产 apex 数据,推送前会二次确认" })
|
|
@@ -1147,7 +1152,7 @@ function Nt({ controller: t }) {
|
|
|
1147
1152
|
{
|
|
1148
1153
|
title: "模板",
|
|
1149
1154
|
dataIndex: "name",
|
|
1150
|
-
render: (n, v) => /* @__PURE__ */
|
|
1155
|
+
render: (n, v) => /* @__PURE__ */ r(q, { children: [
|
|
1151
1156
|
/* @__PURE__ */ e("b", { style: { fontSize: 13 }, children: n }),
|
|
1152
1157
|
/* @__PURE__ */ e("span", { style: { marginLeft: 8, fontSize: 11, color: "#8a9099" }, children: v.code })
|
|
1153
1158
|
] })
|
|
@@ -1194,7 +1199,7 @@ function Nt({ controller: t }) {
|
|
|
1194
1199
|
/* @__PURE__ */ e(
|
|
1195
1200
|
St,
|
|
1196
1201
|
{
|
|
1197
|
-
open:
|
|
1202
|
+
open: re,
|
|
1198
1203
|
onClose: () => H(!1),
|
|
1199
1204
|
controller: t
|
|
1200
1205
|
}
|
|
@@ -1206,7 +1211,7 @@ const Et = [
|
|
|
1206
1211
|
{ key: "sites", label: "站点初始化", icon: "zap" },
|
|
1207
1212
|
{ key: "records", label: "推送记录", icon: "list" }
|
|
1208
1213
|
];
|
|
1209
|
-
function
|
|
1214
|
+
function _t() {
|
|
1210
1215
|
const t = mt(), { firmware: s, session: o, sessionRemainMs: h, logout: b, now: f, sites: C, templates: I } = t, [y, S] = m("sites");
|
|
1211
1216
|
if (F(() => {
|
|
1212
1217
|
const a = document.title;
|
|
@@ -1218,13 +1223,13 @@ function Mt() {
|
|
|
1218
1223
|
}, [o, h, b]), !o)
|
|
1219
1224
|
return /* @__PURE__ */ e("div", { className: "bios-root", children: /* @__PURE__ */ e("div", { className: "bios-login-wrap", children: /* @__PURE__ */ e(wt, { controller: t }) }) });
|
|
1220
1225
|
const c = h < 12e4;
|
|
1221
|
-
return /* @__PURE__ */
|
|
1222
|
-
/* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1226
|
+
return /* @__PURE__ */ r("div", { className: "bios-root", children: [
|
|
1227
|
+
/* @__PURE__ */ r("header", { className: "bios-topbar", children: [
|
|
1228
|
+
/* @__PURE__ */ r("div", { className: "bios-brand", children: [
|
|
1224
1229
|
/* @__PURE__ */ e("b", { children: "BIOS 站点初始化" }),
|
|
1225
1230
|
/* @__PURE__ */ e("small", { children: (s == null ? void 0 : s.version) ?? "" })
|
|
1226
1231
|
] }),
|
|
1227
|
-
/* @__PURE__ */
|
|
1232
|
+
/* @__PURE__ */ r("span", { style: { fontSize: 12, color: "#8a9099" }, children: [
|
|
1228
1233
|
"站点 ",
|
|
1229
1234
|
C.length,
|
|
1230
1235
|
" · 模板 ",
|
|
@@ -1232,16 +1237,16 @@ function Mt() {
|
|
|
1232
1237
|
] }),
|
|
1233
1238
|
/* @__PURE__ */ e("span", { className: "bios-topbar-spacer" }),
|
|
1234
1239
|
/* @__PURE__ */ e("span", { className: "bios-clock", children: ht(f) }),
|
|
1235
|
-
/* @__PURE__ */
|
|
1240
|
+
/* @__PURE__ */ r("span", { className: `bios-session-pill${c ? " urgent" : ""}`, children: [
|
|
1236
1241
|
/* @__PURE__ */ e(E, { name: "user", size: 12 }),
|
|
1237
1242
|
o.account,
|
|
1238
1243
|
/* @__PURE__ */ e("b", { children: pt(h) })
|
|
1239
1244
|
] }),
|
|
1240
1245
|
/* @__PURE__ */ e(k, { size: "small", icon: /* @__PURE__ */ e(E, { name: "log-out", size: 12 }), onClick: () => void b(), children: "退出登录" })
|
|
1241
1246
|
] }),
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
Et.map((a) => /* @__PURE__ */
|
|
1247
|
+
/* @__PURE__ */ r("div", { className: "bios-layout", children: [
|
|
1248
|
+
/* @__PURE__ */ r("nav", { className: "bios-menu", "aria-label": "功能菜单", children: [
|
|
1249
|
+
Et.map((a) => /* @__PURE__ */ r(
|
|
1245
1250
|
"button",
|
|
1246
1251
|
{
|
|
1247
1252
|
type: "button",
|
|
@@ -1261,5 +1266,5 @@ function Mt() {
|
|
|
1261
1266
|
] });
|
|
1262
1267
|
}
|
|
1263
1268
|
export {
|
|
1264
|
-
|
|
1269
|
+
_t as default
|
|
1265
1270
|
};
|