@yuku123/z-cognition-component 2.0.2 → 2.0.3
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/BaseInput-DHrGPDB9.js +1096 -0
- package/dist-lib/ClockCircleOutlined-DP6fSLgk.js +12 -0
- package/dist-lib/Collapse-B77SsmFh.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-BAZSAooQ.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-Dr4orLLw.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CudyDdjH.js} +1 -1
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-CJasZIyX.js} +1 -1
- package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
- package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
- package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
- package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
- package/dist-lib/Pagination-BJ8wnqAa.js +1112 -0
- package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
- package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
- package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
- package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-DqyspFCO.js} +1 -1
- package/dist-lib/Skeleton-CxFsInYI.js +671 -0
- package/dist-lib/Table-Civ838nE.js +20514 -0
- package/dist-lib/{Table-CDagah-g.js → Table-J_7eBbi7.js} +414 -414
- package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
- package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist-lib/accessAk-CA30m5eX.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-eZDKzePP.js} +41 -41
- package/dist-lib/{ai-DYDhijtn.js → ai-CNSn3-sd.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-Yrqt_J6a.js} +13 -14
- package/dist-lib/ak-manage-DklVFT5I.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-B-bCSmfi.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-B0ggYiyD.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-Of0mgMsM.js} +33 -34
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-DcyDhUzJ.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-CjLaTyFz.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-wDNCfmOy.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-CIwO1AUK.js} +128 -130
- package/dist-lib/callSuper-CpMOVGin.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-9gqNseEa.js +76 -0
- package/dist-lib/causal-CzAYukj9.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-CQfIMS51.js} +2 -2
- package/dist-lib/changelog-sKJMQrlV.js +103 -0
- package/dist-lib/chat-panel-BPbqKckR.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-D_ZE966E.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-DpKdb8L-.js} +3 -3
- package/dist-lib/community-9_7ExHcm.js +70 -0
- package/dist-lib/community-CfWXxujB.js +217 -0
- package/dist-lib/community-material-page-Z_EZuBPl.js +747 -0
- package/dist-lib/connections-Bcqsp11M.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-CasBzL_Q.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/detail-CV6xp_Jp.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-DioaWKWj.js} +5847 -7224
- package/dist-lib/{detail-Cx5c4KJH.js → detail-EyLdjGpX.js} +71 -72
- package/dist-lib/development-CFcOIUKc.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DtV5hOQv.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-NtXUNj5N.js} +262 -266
- package/dist-lib/{editor-mtaJBQXz.js → editor-KZhj-rwT.js} +25 -26
- package/dist-lib/editor-page-BaxK_OYm.js +1169 -0
- package/dist-lib/embed-mf8t3QXh.js +51841 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-CZTpC9v3.js} +14 -15
- package/dist-lib/execution-B6HmOA2_.js +159 -0
- package/dist-lib/focus-set-lt52maBX.js +38 -0
- package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
- package/dist-lib/graph-BllA9bmL.js +44 -0
- package/dist-lib/graph-DHV-rdiK.js +640 -0
- package/dist-lib/{index-o65vKUwa.js → index--AI-htgA.js} +44 -45
- package/dist-lib/index-2SysmGHo.js +1166 -0
- package/dist-lib/{index-Bm1sK-VN.js → index-3J47mTL1.js} +10 -10
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B12ZggsE.js +77 -0
- package/dist-lib/{index-D3GHtSlM.js → index-B5Roo82U.js} +49 -50
- package/dist-lib/{index-nQSVLWfW.js → index-B7SfTpox.js} +79 -81
- package/dist-lib/index-BEO8itgt.js +566 -0
- package/dist-lib/index-BPbOPT2j.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-Bd7AGv4a.js +34 -0
- package/dist-lib/index-BkJjYgKD.js +5012 -0
- package/dist-lib/{index-DBlG9uXV.js → index-BkTegt8T.js} +513 -590
- package/dist-lib/{index-B22_2Dzh.js → index-Bln3mJfp.js} +2 -2
- package/dist-lib/index-BoCtPJD4.js +915 -0
- package/dist-lib/{index-DMTPsTna.js → index-BqTsLClH.js} +3 -4
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/index-BsoHetYT.js +236 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-BvJ35WL3.js} +13 -14
- package/dist-lib/{index-BEjXaDfk.js → index-Bw4M9KLv.js} +84 -85
- package/dist-lib/index-C2CV4bte.js +242 -0
- package/dist-lib/{index-BSlCGnzo.js → index-CF0ucN_K.js} +12 -12
- package/dist-lib/{index-B57Fj7Y0.js → index-CLhLA2ig.js} +92 -94
- package/dist-lib/{index-Vu6sPBci.js → index-CSJA8wvL.js} +301 -296
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/{index-ounfql2z.js → index-CdJ5ggvp.js} +26 -28
- package/dist-lib/index-CgwK2maq.js +1987 -0
- package/dist-lib/{index-Bc-Vin3j.js → index-CtqUgNxs.js} +53 -55
- package/dist-lib/index-CvxfA0ZK.js +215 -0
- package/dist-lib/{index-y7jVGGI0.js → index-CwyFMPcr.js} +16 -18
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/{index-Cj4DDWyj.js → index-D6ns_Xmf.js} +10 -11
- package/dist-lib/{index-DsuUGhTA.js → index-DGbjbjBY.js} +46 -48
- package/dist-lib/index-DKAGVWMX.js +390 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DU6bO95v.js +2075 -0
- package/dist-lib/index-DaMLYomP.js +853 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-CHBNrCMy.js → index-DgfIEgir.js} +29 -29
- package/dist-lib/{index-Cy9i4Kx7.js → index-DhSCFLtV.js} +113 -117
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-QZ9JPfVR.js +251 -0
- package/dist-lib/index-VeAMz0iC.js +1719 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-CLTfICbf.js → index-xQmDaKK3.js} +6 -6
- package/dist-lib/{index-BwVZgt5s.js → index-zXwXfn-X.js} +48 -50
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-COcz5F2R.js +196 -0
- package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
- package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-D9gnvXbE.js} +67 -67
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-CorrPJFr.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-DJkjMFHW.js} +103 -104
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-DKiDlaZz.js} +54 -55
- package/dist-lib/login-56zv4aLO.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-p1tiuSZM.js} +198 -202
- package/dist-lib/material-DtPASeqq.js +204 -0
- package/dist-lib/material-draft-markdown-281d5_GN.js +443 -0
- package/dist-lib/material-original-preview-CPGjdmbe.js +214 -0
- package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
- package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
- package/dist-lib/material-workspace-model-QLsU5qUO.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-Cz-OIdj9.js} +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +8 -0
- package/dist-lib/memory-spaces-D-orVNR7.js +2340 -0
- package/dist-lib/{message-Dievi8Jw.js → message-C9gfvpGg.js} +1 -1
- package/dist-lib/{message-BrooQ3Q7.js → message-D6FhzB7J.js} +24 -25
- package/dist-lib/{messages-xTNmTS9g.js → messages-cctmEVcG.js} +15 -16
- package/dist-lib/meta-DT_O4zM9.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-BNeVcI8-.js} +2 -2
- package/dist-lib/mobile-D8kZjfQU.js +2413 -0
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-DTUyqumg.js} +4 -4
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-DexMYjzF.js} +8 -8
- package/dist-lib/{my-access-CEGErUgv.js → my-access-DWBV6ohp.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-B-gJZQYM.js} +22 -23
- package/dist-lib/navigation-DVlyWnpD.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-JmARyD88.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-B4rkO33J.js} +50 -52
- package/dist-lib/ontology-dataprep-BwD5TKs2.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-zxFrjn0v.js} +89 -92
- package/dist-lib/ontology-extract-BHOxruRO.js +3199 -0
- package/dist-lib/ontology-extract-iR_rXxFe.js +295 -0
- package/dist-lib/ontology-flow-CW0SzeK7.js +456 -0
- package/dist-lib/ontology-flow-Dv5iQ20f.js +154 -0
- package/dist-lib/ontology-modeling-B9wswveh.js +510 -0
- package/dist-lib/ontology-modeling-hakCluBi.js +15136 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-C2kp7Rs-.js} +1466 -1482
- package/dist-lib/ontology-scenarios-DKnfydG6.js +675 -0
- package/dist-lib/ontology-task-config-DmnWyCCB.js +122 -0
- package/dist-lib/ontology-terms-BoNB-5ar.js +66 -0
- package/dist-lib/ontology-terms-C-NhpcIZ.js +1195 -0
- package/dist-lib/pages-CticGC6S.js +512 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-BUXo69Ne.js → permission-Dq1-AOQw.js} +41 -41
- package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
- package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
- package/dist-lib/preset-Bp_mvsJm.js +56827 -0
- package/dist-lib/{preset-gh5SGoYT.js → preset-DCNSE--Y.js} +8 -8
- package/dist-lib/progress-CZxOOnIs.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-oICQRHFU.js} +4 -4
- package/dist-lib/row-By17TCiW.js +154 -0
- package/dist-lib/runs-DQTDpPaN.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-CwCZE1Dn.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-sJtjgmry.js} +46 -48
- package/dist-lib/scenario-simple-form-BvKSPFzw.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-CwkPPSuT.js} +8 -8
- package/dist-lib/script-gYJAFobb.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CJd5Jj4y.js} +133 -134
- package/dist-lib/{shared-CTCzvhyE.js → shared-DG5-VCDM.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-CFHws1DA.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-lxpJ5Lzx.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-DJnQQckl.js} +16 -16
- package/dist-lib/sources-C83LpCcV.js +279 -0
- package/dist-lib/style-B5THvtDY.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-BNYoOb79.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-LuZvKDo6.js} +3 -4
- package/dist-lib/templates-a-kbCamr.js +58 -0
- package/dist-lib/tenant-login-COB-5h_2.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CrA6GrY6.js} +14 -14
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-ehGJBGvU.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-DfRnsBS6.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-CrhEeHfD.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-Cul9y9Cu.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-B-dwOwJ8.js} +11 -11
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-mWXkC-uB.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-nPlG7wQO.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-Cqv1-rXT.js} +3 -4
- package/package.json +1 -1
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
- package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
- package/dist-lib/Pagination-Dxslodkq.js +0 -1344
- package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
- package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
- package/dist-lib/Skeleton-DXcERb5r.js +0 -557
- package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
- package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
- package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
- package/dist-lib/callSuper-DZEfdkXG.js +0 -7
- package/dist-lib/changelog-Cn81Dvgk.js +0 -69
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
- package/dist-lib/context-Buz0ggsK.js +0 -710
- package/dist-lib/context-DpmyNOn3.js +0 -21
- package/dist-lib/embed-CR8XVkMy.js +0 -31148
- package/dist-lib/focus-set-h0YtOUB2.js +0 -427
- package/dist-lib/index-CaXylbQR.js +0 -3419
- package/dist-lib/index-Cfu1W1H6.js +0 -535
- package/dist-lib/index-CrMcNEAZ.js +0 -9656
- package/dist-lib/index-CyKWCYMK.js +0 -218
- package/dist-lib/index-DBtGE89a.js +0 -168
- package/dist-lib/index-DjFPRXl5.js +0 -1484
- package/dist-lib/index-DvWHYX81.js +0 -450
- package/dist-lib/index-PBT9GksC.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-BD_qYTZu.js +0 -540
- package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
- package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
- package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
- package/dist-lib/pages-CsexFuEz.js +0 -73
- package/dist-lib/row-B5MnGm9M.js +0 -156
- package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, 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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { D as et } from "./index-9aQ4BzIK.js";
|
|
15
|
-
import { T as $e } from "./index-B57Fj7Y0.js";
|
|
3
|
+
import { r as R, g as Ve, S as Xe, B as k, I as E, h as ge, A as Ce, i as Ze } from "./embed-mf8t3QXh.js";
|
|
4
|
+
import { A as M } from "./index-B7SfTpox.js";
|
|
5
|
+
import { F as O } from "./index-BkTegt8T.js";
|
|
6
|
+
import { I as V } from "./index-2SysmGHo.js";
|
|
7
|
+
import { F as be } from "./Table-J_7eBbi7.js";
|
|
8
|
+
import { T as z } from "./index-CtqUgNxs.js";
|
|
9
|
+
import { P as Je } from "./index-CvxfA0ZK.js";
|
|
10
|
+
import { B as ve } from "./index--AI-htgA.js";
|
|
11
|
+
import { D as et } from "./index-BvJ35WL3.js";
|
|
12
|
+
import { M as Te } from "./index-B12ZggsE.js";
|
|
13
|
+
import { T as $e } from "./index-CLhLA2ig.js";
|
|
16
14
|
const tt = "X-FB-BIOS", A = "/kb/v1/bios";
|
|
17
15
|
function D(t) {
|
|
18
16
|
return { [tt]: t };
|
|
@@ -34,14 +32,14 @@ function Ne(t) {
|
|
|
34
32
|
silent: !0
|
|
35
33
|
});
|
|
36
34
|
}
|
|
37
|
-
function
|
|
35
|
+
function it(t) {
|
|
38
36
|
return R(`${A}/logout`, {
|
|
39
37
|
method: "POST",
|
|
40
38
|
headers: D(t),
|
|
41
39
|
silent: !0
|
|
42
40
|
});
|
|
43
41
|
}
|
|
44
|
-
function
|
|
42
|
+
function rt(t) {
|
|
45
43
|
return R(`${A}/sites`, { method: "GET", headers: D(t) });
|
|
46
44
|
}
|
|
47
45
|
function ot(t, s) {
|
|
@@ -105,18 +103,18 @@ function le(t) {
|
|
|
105
103
|
return t instanceof Error ? t.message : String(t);
|
|
106
104
|
}
|
|
107
105
|
function mt() {
|
|
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,
|
|
106
|
+
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, ie] = m(""), [H, X] = m([]), [K, W] = m(""), [de, n] = m([]), [v, _] = m(!1), [Ae, we] = m(""), [ue, Be] = m(""), [re, Fe] = m("ALL"), [me, Me] = m("CODE"), [Y, oe] = m(null), [Ie, De] = m(() => Date.now()), G = Qe(t);
|
|
109
107
|
G.current = t, F(() => {
|
|
110
|
-
const
|
|
111
|
-
return () => window.clearInterval(
|
|
108
|
+
const r = window.setInterval(() => De(Date.now()), 1e3);
|
|
109
|
+
return () => window.clearInterval(r);
|
|
112
110
|
}, []);
|
|
113
111
|
const Z = x(async () => {
|
|
114
112
|
I("");
|
|
115
113
|
try {
|
|
116
|
-
const
|
|
117
|
-
return f(
|
|
118
|
-
} catch (
|
|
119
|
-
return I(le(
|
|
114
|
+
const r = await st();
|
|
115
|
+
return f(r), r;
|
|
116
|
+
} catch (r) {
|
|
117
|
+
return I(le(r)), null;
|
|
120
118
|
} finally {
|
|
121
119
|
S(!1);
|
|
122
120
|
}
|
|
@@ -130,21 +128,21 @@ function mt() {
|
|
|
130
128
|
F(() => {
|
|
131
129
|
if (!t)
|
|
132
130
|
return;
|
|
133
|
-
let
|
|
131
|
+
let r = !0;
|
|
134
132
|
return (async () => {
|
|
135
133
|
try {
|
|
136
134
|
const p = await Ne(t);
|
|
137
|
-
|
|
135
|
+
r && h(p);
|
|
138
136
|
} catch {
|
|
139
|
-
|
|
137
|
+
r && Q();
|
|
140
138
|
}
|
|
141
139
|
})(), () => {
|
|
142
|
-
|
|
140
|
+
r = !1;
|
|
143
141
|
};
|
|
144
142
|
}, [t, Q]), F(() => {
|
|
145
143
|
if (!t || !o)
|
|
146
144
|
return;
|
|
147
|
-
const
|
|
145
|
+
const r = window.setInterval(() => {
|
|
148
146
|
(async () => {
|
|
149
147
|
try {
|
|
150
148
|
h(await Ne(t));
|
|
@@ -153,12 +151,12 @@ function mt() {
|
|
|
153
151
|
}
|
|
154
152
|
})();
|
|
155
153
|
}, 6e4);
|
|
156
|
-
return () => window.clearInterval(
|
|
154
|
+
return () => window.clearInterval(r);
|
|
157
155
|
}, [t, o, Q]);
|
|
158
|
-
const he = x(async (
|
|
156
|
+
const he = x(async (r) => {
|
|
159
157
|
L(!0), P("");
|
|
160
158
|
try {
|
|
161
|
-
const p = await
|
|
159
|
+
const p = await rt(r);
|
|
162
160
|
return a(p), T((d) => {
|
|
163
161
|
var l;
|
|
164
162
|
return d && p.some((g) => g.siteCode === d) ? d : ((l = p[0]) == null ? void 0 : l.siteCode) ?? "";
|
|
@@ -168,9 +166,9 @@ function mt() {
|
|
|
168
166
|
} finally {
|
|
169
167
|
L(!1);
|
|
170
168
|
}
|
|
171
|
-
}, []), Se = x(async (
|
|
169
|
+
}, []), Se = x(async (r) => {
|
|
172
170
|
try {
|
|
173
|
-
const p = await ct(
|
|
171
|
+
const p = await ct(r);
|
|
174
172
|
return X(p), W((d) => {
|
|
175
173
|
var l;
|
|
176
174
|
return d || ((l = p[0]) == null ? void 0 : l.code) || "";
|
|
@@ -178,9 +176,9 @@ function mt() {
|
|
|
178
176
|
} catch {
|
|
179
177
|
return X([]), [];
|
|
180
178
|
}
|
|
181
|
-
}, []), ae = x(async (
|
|
179
|
+
}, []), ae = x(async (r, p) => {
|
|
182
180
|
try {
|
|
183
|
-
const d = await ze(
|
|
181
|
+
const d = await ze(r, p, 30);
|
|
184
182
|
n(d);
|
|
185
183
|
} catch {
|
|
186
184
|
n([]);
|
|
@@ -189,16 +187,16 @@ function mt() {
|
|
|
189
187
|
F(() => {
|
|
190
188
|
!t || !o || (he(t), Se(t), ae(t));
|
|
191
189
|
}, [t, o, he, Se, ae]);
|
|
192
|
-
const J = x(async (
|
|
190
|
+
const J = x(async (r, p) => {
|
|
193
191
|
const d = p ?? G.current;
|
|
194
|
-
if (!d || !
|
|
192
|
+
if (!d || !r)
|
|
195
193
|
return null;
|
|
196
|
-
se(!0),
|
|
194
|
+
se(!0), ie("");
|
|
197
195
|
try {
|
|
198
|
-
const l = await lt(d,
|
|
199
|
-
return U((g) => ({ ...g, [
|
|
196
|
+
const l = await lt(d, r);
|
|
197
|
+
return U((g) => ({ ...g, [r]: l })), l;
|
|
200
198
|
} catch (l) {
|
|
201
|
-
return
|
|
199
|
+
return ie(le(l)), null;
|
|
202
200
|
} finally {
|
|
203
201
|
se(!1);
|
|
204
202
|
}
|
|
@@ -207,8 +205,8 @@ function mt() {
|
|
|
207
205
|
!t || !o || !N || (J(N, t), ae(t, N));
|
|
208
206
|
}, [t, o, N, J, ae]);
|
|
209
207
|
const Le = x(
|
|
210
|
-
async (
|
|
211
|
-
const d = await nt(
|
|
208
|
+
async (r, p) => {
|
|
209
|
+
const d = await nt(r, p);
|
|
212
210
|
return Ee(d.token), s(d.token), h({
|
|
213
211
|
account: d.account,
|
|
214
212
|
issuedAt: d.issuedAt,
|
|
@@ -218,34 +216,34 @@ function mt() {
|
|
|
218
216
|
},
|
|
219
217
|
[Z]
|
|
220
218
|
), Pe = x(async () => {
|
|
221
|
-
const
|
|
222
|
-
if (Q(),
|
|
219
|
+
const r = G.current;
|
|
220
|
+
if (Q(), r)
|
|
223
221
|
try {
|
|
224
|
-
await
|
|
222
|
+
await it(r);
|
|
225
223
|
} catch {
|
|
226
224
|
}
|
|
227
225
|
}, [Q]), pe = x(
|
|
228
|
-
async (
|
|
226
|
+
async (r) => {
|
|
229
227
|
const p = G.current;
|
|
230
228
|
if (!p)
|
|
231
229
|
throw new Error("BIOS 会话已失效");
|
|
232
|
-
const d = await ot(p,
|
|
230
|
+
const d = await ot(p, r);
|
|
233
231
|
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;
|
|
234
232
|
},
|
|
235
233
|
[]
|
|
236
|
-
), Ke = x(async (
|
|
234
|
+
), Ke = x(async (r) => {
|
|
237
235
|
const p = G.current;
|
|
238
236
|
if (!p)
|
|
239
237
|
throw new Error("BIOS 会话已失效");
|
|
240
|
-
const d = c.find((l) => l.siteCode ===
|
|
241
|
-
a((l) => l.filter((g) => g.siteCode !==
|
|
238
|
+
const d = c.find((l) => l.siteCode === r);
|
|
239
|
+
a((l) => l.filter((g) => g.siteCode !== r)), T((l) => {
|
|
242
240
|
var B;
|
|
243
|
-
return l !==
|
|
241
|
+
return l !== r ? l : ((B = c.filter((j) => j.siteCode !== r)[0]) == null ? void 0 : B.siteCode) ?? "";
|
|
244
242
|
});
|
|
245
243
|
try {
|
|
246
|
-
await at(p,
|
|
244
|
+
await at(p, r), d && oe({ site: d, readiness: $[r] }), U((l) => {
|
|
247
245
|
const g = { ...l };
|
|
248
|
-
return delete g[
|
|
246
|
+
return delete g[r], g;
|
|
249
247
|
});
|
|
250
248
|
} catch (l) {
|
|
251
249
|
throw d && (a(
|
|
@@ -255,21 +253,21 @@ function mt() {
|
|
|
255
253
|
}, [c, $]), _e = x(async () => {
|
|
256
254
|
if (!Y)
|
|
257
255
|
return;
|
|
258
|
-
const { site:
|
|
256
|
+
const { site: r } = Y;
|
|
259
257
|
oe(null), await pe({
|
|
260
|
-
siteCode:
|
|
261
|
-
siteName:
|
|
262
|
-
tenantCode:
|
|
263
|
-
orgId:
|
|
264
|
-
}), Y.readiness && U((p) => ({ ...p, [
|
|
258
|
+
siteCode: r.siteCode,
|
|
259
|
+
siteName: r.siteName,
|
|
260
|
+
tenantCode: r.tenantCode,
|
|
261
|
+
orgId: r.orgId
|
|
262
|
+
}), Y.readiness && U((p) => ({ ...p, [r.siteCode]: Y.readiness }));
|
|
265
263
|
}, [Y, pe]), Ge = x(() => oe(null), []), je = x(
|
|
266
|
-
async (
|
|
264
|
+
async (r, p) => {
|
|
267
265
|
const d = G.current, l = N;
|
|
268
266
|
if (!d || !l)
|
|
269
267
|
throw new Error("未选择目标站点");
|
|
270
268
|
_(!0), we("");
|
|
271
269
|
try {
|
|
272
|
-
const g = await dt(d, { siteCode: l, templateCode:
|
|
270
|
+
const g = await dt(d, { siteCode: l, templateCode: r, staffId: p });
|
|
273
271
|
return n((B) => [g, ...B.filter((j) => j.pushId !== g.pushId)]), J(l, d), g;
|
|
274
272
|
} catch (g) {
|
|
275
273
|
throw we(le(g)), g;
|
|
@@ -279,7 +277,7 @@ function mt() {
|
|
|
279
277
|
},
|
|
280
278
|
[N, J]
|
|
281
279
|
), qe = ce(() => {
|
|
282
|
-
const
|
|
280
|
+
const r = ue.trim(), p = c.filter((l) => re !== "ALL" && l.source !== re ? !1 : r ? Ve(r, l.siteCode, l.siteName, l.tenantCode, l.orgId) : !0), d = (l) => {
|
|
283
281
|
var g;
|
|
284
282
|
return ((g = $[l]) == null ? void 0 : g.score) ?? -1;
|
|
285
283
|
};
|
|
@@ -295,11 +293,11 @@ function mt() {
|
|
|
295
293
|
return l.siteCode.localeCompare(g.siteCode);
|
|
296
294
|
}
|
|
297
295
|
});
|
|
298
|
-
}, [c, ue,
|
|
299
|
-
() => c.find((
|
|
296
|
+
}, [c, ue, re, me, $]), Ue = ce(
|
|
297
|
+
() => c.find((r) => r.siteCode === N) ?? null,
|
|
300
298
|
[c, N]
|
|
301
299
|
), He = N ? $[N] ?? null : null, We = ce(
|
|
302
|
-
() => H.find((
|
|
300
|
+
() => H.find((r) => r.code === K) ?? null,
|
|
303
301
|
[H, K]
|
|
304
302
|
), Ye = o ? Math.max(0, o.expiresAt - Ie) : 0;
|
|
305
303
|
return {
|
|
@@ -332,7 +330,7 @@ function mt() {
|
|
|
332
330
|
push: je,
|
|
333
331
|
query: ue,
|
|
334
332
|
setQuery: Be,
|
|
335
|
-
filter:
|
|
333
|
+
filter: re,
|
|
336
334
|
setFilter: Fe,
|
|
337
335
|
sort: me,
|
|
338
336
|
setSort: Me,
|
|
@@ -442,13 +440,13 @@ function wt({ controller: t }) {
|
|
|
442
440
|
I(!1);
|
|
443
441
|
}
|
|
444
442
|
}
|
|
445
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ i("div", { className: "bios-login-card", children: [
|
|
446
444
|
/* @__PURE__ */ e("h1", { className: "bios-login-title", children: "BIOS 站点初始化" }),
|
|
447
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ i("p", { className: "bios-login-sub", children: [
|
|
448
446
|
"独立维护的管理员入口 · ",
|
|
449
447
|
(s == null ? void 0 : s.version) ?? "检查固件状态中"
|
|
450
448
|
] }),
|
|
451
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ i("div", { className: "bios-login-status", children: [
|
|
452
450
|
h && !s ? /* @__PURE__ */ e("div", { style: { textAlign: "center", padding: "12px 0" }, children: /* @__PURE__ */ e(Xe, {}) }) : null,
|
|
453
451
|
!h && o ? /* @__PURE__ */ e(
|
|
454
452
|
M,
|
|
@@ -480,7 +478,7 @@ function wt({ controller: t }) {
|
|
|
480
478
|
) : null,
|
|
481
479
|
y ? /* @__PURE__ */ e(M, { type: "error", showIcon: !0, message: y, style: { marginTop: 12 } }) : null
|
|
482
480
|
] }),
|
|
483
|
-
c ? /* @__PURE__ */
|
|
481
|
+
c ? /* @__PURE__ */ i(O, { layout: "vertical", onFinish: (w) => void a(w), children: [
|
|
484
482
|
/* @__PURE__ */ e(
|
|
485
483
|
O.Item,
|
|
486
484
|
{
|
|
@@ -522,8 +520,8 @@ function It({ controller: t }) {
|
|
|
522
520
|
);
|
|
523
521
|
return F(() => {
|
|
524
522
|
c(o);
|
|
525
|
-
}, [c, o]), /* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */
|
|
523
|
+
}, [c, o]), /* @__PURE__ */ i("section", { className: "bios-panel", "aria-label": "推送记录", children: [
|
|
524
|
+
/* @__PURE__ */ i("div", { className: "bios-panel-head", children: [
|
|
527
525
|
/* @__PURE__ */ e("h2", { children: "推送记录" }),
|
|
528
526
|
/* @__PURE__ */ e(
|
|
529
527
|
ge,
|
|
@@ -540,7 +538,7 @@ function It({ controller: t }) {
|
|
|
540
538
|
}
|
|
541
539
|
),
|
|
542
540
|
/* @__PURE__ */ e("span", { className: "spacer" }),
|
|
543
|
-
/* @__PURE__ */
|
|
541
|
+
/* @__PURE__ */ i("span", { style: { fontSize: 12, color: "#8a9099" }, children: [
|
|
544
542
|
"共 ",
|
|
545
543
|
b.length,
|
|
546
544
|
" 条,最近 ",
|
|
@@ -612,7 +610,7 @@ function It({ controller: t }) {
|
|
|
612
610
|
title: "模板",
|
|
613
611
|
dataIndex: "templateName",
|
|
614
612
|
width: 180,
|
|
615
|
-
render: (a, w) => /* @__PURE__ */
|
|
613
|
+
render: (a, w) => /* @__PURE__ */ i(q, { children: [
|
|
616
614
|
a,
|
|
617
615
|
/* @__PURE__ */ e("span", { style: { marginLeft: 6, fontSize: 11, color: "#8a9099" }, children: w.templateCode })
|
|
618
616
|
] })
|
|
@@ -669,7 +667,7 @@ function St({
|
|
|
669
667
|
C(!1);
|
|
670
668
|
}
|
|
671
669
|
}
|
|
672
|
-
return /* @__PURE__ */
|
|
670
|
+
return /* @__PURE__ */ i(
|
|
673
671
|
Te,
|
|
674
672
|
{
|
|
675
673
|
title: "登记站点",
|
|
@@ -681,7 +679,7 @@ function St({
|
|
|
681
679
|
destroyOnHidden: !0,
|
|
682
680
|
children: [
|
|
683
681
|
/* @__PURE__ */ e("p", { style: { color: "#8a9099", fontSize: 12 }, children: "站点 = 一个租户 + 一个 apex 机构。已存在的租户也可以在这里登记后做增量初始化。" }),
|
|
684
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ i(
|
|
685
683
|
O,
|
|
686
684
|
{
|
|
687
685
|
form: b,
|
|
@@ -766,8 +764,8 @@ function vt({
|
|
|
766
764
|
okText: "确认推送",
|
|
767
765
|
okButtonProps: { danger: (t == null ? void 0 : t.mode) === "WRITE" },
|
|
768
766
|
destroyOnHidden: !0,
|
|
769
|
-
children: t && b ? /* @__PURE__ */
|
|
770
|
-
/* @__PURE__ */
|
|
767
|
+
children: t && b ? /* @__PURE__ */ i(q, { children: [
|
|
768
|
+
/* @__PURE__ */ i("p", { children: [
|
|
771
769
|
"目标站点 ",
|
|
772
770
|
/* @__PURE__ */ e("b", { children: b.siteName }),
|
|
773
771
|
"(租户 ",
|
|
@@ -835,7 +833,7 @@ function Nt({ controller: t }) {
|
|
|
835
833
|
undo: te,
|
|
836
834
|
restoreSite: se,
|
|
837
835
|
dismissUndo: ne
|
|
838
|
-
} = t, [
|
|
836
|
+
} = t, [ie, H] = m(!1), [X, K] = m(null), W = ce(
|
|
839
837
|
() => u ? Ct(u, $) : [],
|
|
840
838
|
[u, $]
|
|
841
839
|
);
|
|
@@ -847,9 +845,9 @@ function Nt({ controller: t }) {
|
|
|
847
845
|
s.error(ee(n));
|
|
848
846
|
}
|
|
849
847
|
}
|
|
850
|
-
return /* @__PURE__ */
|
|
851
|
-
/* @__PURE__ */
|
|
852
|
-
/* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ i("div", { className: "bios-split", children: [
|
|
849
|
+
/* @__PURE__ */ i("aside", { className: "bios-site-pane", "aria-label": "站点清单", children: [
|
|
850
|
+
/* @__PURE__ */ i("div", { className: "bios-site-pane-toolbar", children: [
|
|
853
851
|
/* @__PURE__ */ e(
|
|
854
852
|
V,
|
|
855
853
|
{
|
|
@@ -874,7 +872,7 @@ function Nt({ controller: t }) {
|
|
|
874
872
|
children: "登记站点"
|
|
875
873
|
}
|
|
876
874
|
),
|
|
877
|
-
te ? /* @__PURE__ */
|
|
875
|
+
te ? /* @__PURE__ */ i(
|
|
878
876
|
"div",
|
|
879
877
|
{
|
|
880
878
|
role: "status",
|
|
@@ -889,7 +887,7 @@ function Nt({ controller: t }) {
|
|
|
889
887
|
color: "#d48806"
|
|
890
888
|
},
|
|
891
889
|
children: [
|
|
892
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ i("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: [
|
|
893
891
|
"已移除 ",
|
|
894
892
|
te.site.siteCode
|
|
895
893
|
] }),
|
|
@@ -898,20 +896,20 @@ function Nt({ controller: t }) {
|
|
|
898
896
|
]
|
|
899
897
|
}
|
|
900
898
|
) : null,
|
|
901
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ i("div", { className: "bios-site-list", children: [
|
|
902
900
|
o.map((n) => {
|
|
903
901
|
var _;
|
|
904
902
|
const v = (_ = L[n.siteCode]) == null ? void 0 : _.score;
|
|
905
|
-
return /* @__PURE__ */
|
|
903
|
+
return /* @__PURE__ */ i(
|
|
906
904
|
"button",
|
|
907
905
|
{
|
|
908
906
|
type: "button",
|
|
909
907
|
className: `bios-site-item${n.siteCode === a ? " active" : ""}`,
|
|
910
908
|
onClick: () => w(n.siteCode),
|
|
911
909
|
children: [
|
|
912
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ i("span", { className: "bios-site-item-main", children: [
|
|
913
911
|
/* @__PURE__ */ e("span", { className: "bios-site-item-name", children: n.siteName }),
|
|
914
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ i("span", { className: "bios-site-item-sub", children: [
|
|
915
913
|
n.siteCode,
|
|
916
914
|
" · 租户 ",
|
|
917
915
|
n.tenantCode,
|
|
@@ -935,27 +933,27 @@ function Nt({ controller: t }) {
|
|
|
935
933
|
h.length === 0 ? /* @__PURE__ */ e("p", { style: { color: "#8a9099", fontSize: 12, padding: "8px 4px" }, children: "还没有站点。登记一个站点(租户 + apex 机构)后即可初始化。" }) : null
|
|
936
934
|
] })
|
|
937
935
|
] }),
|
|
938
|
-
/* @__PURE__ */ e("div", { className: "bios-detail-pane", children: c ? /* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */ e("section", { className: "bios-panel", "aria-label": "站点详情", children: /* @__PURE__ */
|
|
940
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ e("div", { className: "bios-detail-pane", children: c ? /* @__PURE__ */ i(q, { children: [
|
|
937
|
+
/* @__PURE__ */ e("section", { className: "bios-panel", "aria-label": "站点详情", children: /* @__PURE__ */ i("div", { className: "bios-site-head", children: [
|
|
938
|
+
/* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
941
939
|
/* @__PURE__ */ e("h2", { children: c.siteName }),
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
/* @__PURE__ */
|
|
940
|
+
/* @__PURE__ */ i("div", { className: "bios-tags", children: [
|
|
941
|
+
/* @__PURE__ */ i("span", { className: "bios-tag", children: [
|
|
944
942
|
/* @__PURE__ */ e(E, { name: "hash", size: 10 }),
|
|
945
943
|
/* @__PURE__ */ e("code", { children: c.siteCode })
|
|
946
944
|
] }),
|
|
947
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ i("span", { className: "bios-tag info", children: [
|
|
948
946
|
/* @__PURE__ */ e(E, { name: "database", size: 10 }),
|
|
949
947
|
"租户 ",
|
|
950
948
|
/* @__PURE__ */ e("code", { children: c.tenantCode })
|
|
951
949
|
] }),
|
|
952
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ i("span", { className: "bios-tag", children: [
|
|
953
951
|
/* @__PURE__ */ e(E, { name: "network", size: 10 }),
|
|
954
952
|
"机构 ",
|
|
955
953
|
/* @__PURE__ */ e("code", { children: c.orgId })
|
|
956
954
|
] }),
|
|
957
|
-
u ? /* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */
|
|
955
|
+
u ? /* @__PURE__ */ i(q, { children: [
|
|
956
|
+
/* @__PURE__ */ i(
|
|
959
957
|
"span",
|
|
960
958
|
{
|
|
961
959
|
className: `bios-tag ${u.roleExists ? u.roleEnabled ? "ok" : "warn" : "fail"}`,
|
|
@@ -967,11 +965,11 @@ function Nt({ controller: t }) {
|
|
|
967
965
|
]
|
|
968
966
|
}
|
|
969
967
|
),
|
|
970
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ i("span", { className: `bios-tag ${u.orgRelationConfigured ? "ok" : "fail"}`, children: [
|
|
971
969
|
/* @__PURE__ */ e(E, { name: "link", size: 10 }),
|
|
972
970
|
u.orgRelationConfigured ? "组织关系已配置" : "组织关系未配置"
|
|
973
971
|
] }),
|
|
974
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ i("span", { className: "bios-tag", children: [
|
|
975
973
|
/* @__PURE__ */ e(E, { name: "users", size: 10 }),
|
|
976
974
|
"超管 ",
|
|
977
975
|
u.holderCount,
|
|
@@ -990,7 +988,7 @@ function Nt({ controller: t }) {
|
|
|
990
988
|
}
|
|
991
989
|
),
|
|
992
990
|
c.source === "RUNTIME" ? /* @__PURE__ */ e(
|
|
993
|
-
|
|
991
|
+
Je,
|
|
994
992
|
{
|
|
995
993
|
title: "移除站点",
|
|
996
994
|
description: "只移除登记信息,不影响 apex 侧已写入的数据。",
|
|
@@ -1001,15 +999,15 @@ function Nt({ controller: t }) {
|
|
|
1001
999
|
}
|
|
1002
1000
|
) : null
|
|
1003
1001
|
] }) }),
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
/* @__PURE__ */
|
|
1002
|
+
/* @__PURE__ */ i("section", { className: "bios-panel", "aria-label": "就绪度", children: [
|
|
1003
|
+
/* @__PURE__ */ i("div", { className: "bios-panel-head", children: [
|
|
1006
1004
|
/* @__PURE__ */ e("h2", { children: "初始化就绪度" }),
|
|
1007
|
-
u ? /* @__PURE__ */
|
|
1005
|
+
u ? /* @__PURE__ */ i(z, { color: fe(u.score) === "ok" ? "green" : fe(u.score) === "warn" ? "orange" : "red", children: [
|
|
1008
1006
|
u.score,
|
|
1009
1007
|
" 分"
|
|
1010
1008
|
] }) : null,
|
|
1011
1009
|
/* @__PURE__ */ e("span", { className: "spacer" }),
|
|
1012
|
-
u ? /* @__PURE__ */
|
|
1010
|
+
u ? /* @__PURE__ */ i("span", { style: { fontSize: 12, color: "#8a9099" }, children: [
|
|
1013
1011
|
"探测于 ",
|
|
1014
1012
|
Re(u.probedAt)
|
|
1015
1013
|
] }) : null
|
|
@@ -1024,8 +1022,8 @@ function Nt({ controller: t }) {
|
|
|
1024
1022
|
action: /* @__PURE__ */ e(k, { size: "small", onClick: () => void T(c.siteCode), children: "重试" })
|
|
1025
1023
|
}
|
|
1026
1024
|
) : null,
|
|
1027
|
-
!u && P ? /* @__PURE__ */ e(
|
|
1028
|
-
!u && !P && !N ? /* @__PURE__ */
|
|
1025
|
+
!u && P ? /* @__PURE__ */ e(Ze, { active: !0, paragraph: { rows: 4 } }) : null,
|
|
1026
|
+
!u && !P && !N ? /* @__PURE__ */ i("p", { style: { color: "#8a9099" }, children: [
|
|
1029
1027
|
"尚未探测。探针只读 apex:角色、成员、组织关系与权限目录。",
|
|
1030
1028
|
/* @__PURE__ */ e(
|
|
1031
1029
|
k,
|
|
@@ -1037,9 +1035,9 @@ function Nt({ controller: t }) {
|
|
|
1037
1035
|
}
|
|
1038
1036
|
)
|
|
1039
1037
|
] }) : null,
|
|
1040
|
-
u ? /* @__PURE__ */
|
|
1038
|
+
u ? /* @__PURE__ */ i(q, { children: [
|
|
1041
1039
|
/* @__PURE__ */ e("div", { className: "bios-section-label", children: "检查项" }),
|
|
1042
|
-
/* @__PURE__ */ e("div", { className: "bios-checks", children: u.checks.map((n) => /* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ e("div", { className: "bios-checks", children: u.checks.map((n) => /* @__PURE__ */ i("div", { className: "bios-check", children: [
|
|
1043
1041
|
/* @__PURE__ */ e(
|
|
1044
1042
|
ve,
|
|
1045
1043
|
{
|
|
@@ -1049,11 +1047,11 @@ function Nt({ controller: t }) {
|
|
|
1049
1047
|
/* @__PURE__ */ e("span", { className: "bios-check-label", children: n.label }),
|
|
1050
1048
|
/* @__PURE__ */ e("span", { className: "bios-check-detail", title: n.detail, children: n.detail })
|
|
1051
1049
|
] }, n.code)) }),
|
|
1052
|
-
u.holders.length > 0 ? /* @__PURE__ */
|
|
1050
|
+
u.holders.length > 0 ? /* @__PURE__ */ i(q, { children: [
|
|
1053
1051
|
/* @__PURE__ */ e("div", { className: "bios-section-label", style: { marginTop: 14 }, children: "当前超管持有者" }),
|
|
1054
|
-
/* @__PURE__ */ e("div", { className: "bios-holders", children: u.holders.map((n) => /* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ e("div", { className: "bios-holders", children: u.holders.map((n) => /* @__PURE__ */ i("span", { className: "bios-holder", children: [
|
|
1055
1053
|
n.name ?? `员工 ${n.staffId}`,
|
|
1056
|
-
/* @__PURE__ */
|
|
1054
|
+
/* @__PURE__ */ i("small", { children: [
|
|
1057
1055
|
n.jobNumber ? `${n.jobNumber} · ` : "",
|
|
1058
1056
|
"#",
|
|
1059
1057
|
n.staffId
|
|
@@ -1086,16 +1084,16 @@ function Nt({ controller: t }) {
|
|
|
1086
1084
|
}
|
|
1087
1085
|
) : null
|
|
1088
1086
|
] }),
|
|
1089
|
-
u && W.length > 0 ? /* @__PURE__ */
|
|
1087
|
+
u && W.length > 0 ? /* @__PURE__ */ i("section", { className: "bios-panel", "aria-label": "下一步建议", children: [
|
|
1090
1088
|
/* @__PURE__ */ e("div", { className: "bios-panel-head", children: /* @__PURE__ */ e("h2", { children: "下一步" }) }),
|
|
1091
|
-
W.map((n) => /* @__PURE__ */
|
|
1089
|
+
W.map((n) => /* @__PURE__ */ i("div", { className: "bios-next-row", children: [
|
|
1092
1090
|
/* @__PURE__ */ e(
|
|
1093
1091
|
ve,
|
|
1094
1092
|
{
|
|
1095
1093
|
status: n.tone === "ok" ? "success" : n.tone === "fail" ? "error" : "warning"
|
|
1096
1094
|
}
|
|
1097
1095
|
),
|
|
1098
|
-
/* @__PURE__ */
|
|
1096
|
+
/* @__PURE__ */ i("span", { className: "bios-next-main", children: [
|
|
1099
1097
|
/* @__PURE__ */ e("span", { className: "bios-next-label", children: n.label }),
|
|
1100
1098
|
/* @__PURE__ */ e("span", { className: "bios-next-reason", title: n.reason, children: n.reason })
|
|
1101
1099
|
] }),
|
|
@@ -1110,7 +1108,7 @@ function Nt({ controller: t }) {
|
|
|
1110
1108
|
},
|
|
1111
1109
|
children: n.tone === "ok" ? "运行探针" : "执行模板"
|
|
1112
1110
|
}
|
|
1113
|
-
) : n.kind === "config" && n.configKey ? /* @__PURE__ */
|
|
1111
|
+
) : n.kind === "config" && n.configKey ? /* @__PURE__ */ i(
|
|
1114
1112
|
k,
|
|
1115
1113
|
{
|
|
1116
1114
|
size: "small",
|
|
@@ -1135,8 +1133,8 @@ function Nt({ controller: t }) {
|
|
|
1135
1133
|
)
|
|
1136
1134
|
] }, n.key))
|
|
1137
1135
|
] }) : null,
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ i("section", { className: "bios-panel", "aria-label": "模板", children: [
|
|
1137
|
+
/* @__PURE__ */ i("div", { className: "bios-panel-head", children: [
|
|
1140
1138
|
/* @__PURE__ */ e("h2", { children: "初始化模板" }),
|
|
1141
1139
|
/* @__PURE__ */ e("span", { className: "spacer" }),
|
|
1142
1140
|
/* @__PURE__ */ e("span", { style: { fontSize: 12, color: "#8a9099" }, children: "写操作会修改生产 apex 数据,推送前会二次确认" })
|
|
@@ -1152,7 +1150,7 @@ function Nt({ controller: t }) {
|
|
|
1152
1150
|
{
|
|
1153
1151
|
title: "模板",
|
|
1154
1152
|
dataIndex: "name",
|
|
1155
|
-
render: (n, v) => /* @__PURE__ */
|
|
1153
|
+
render: (n, v) => /* @__PURE__ */ i(q, { children: [
|
|
1156
1154
|
/* @__PURE__ */ e("b", { style: { fontSize: 13 }, children: n }),
|
|
1157
1155
|
/* @__PURE__ */ e("span", { style: { marginLeft: 8, fontSize: 11, color: "#8a9099" }, children: v.code })
|
|
1158
1156
|
] })
|
|
@@ -1199,7 +1197,7 @@ function Nt({ controller: t }) {
|
|
|
1199
1197
|
/* @__PURE__ */ e(
|
|
1200
1198
|
St,
|
|
1201
1199
|
{
|
|
1202
|
-
open:
|
|
1200
|
+
open: ie,
|
|
1203
1201
|
onClose: () => H(!1),
|
|
1204
1202
|
controller: t
|
|
1205
1203
|
}
|
|
@@ -1211,7 +1209,7 @@ const Et = [
|
|
|
1211
1209
|
{ key: "sites", label: "站点初始化", icon: "zap" },
|
|
1212
1210
|
{ key: "records", label: "推送记录", icon: "list" }
|
|
1213
1211
|
];
|
|
1214
|
-
function
|
|
1212
|
+
function Pt() {
|
|
1215
1213
|
const t = mt(), { firmware: s, session: o, sessionRemainMs: h, logout: b, now: f, sites: C, templates: I } = t, [y, S] = m("sites");
|
|
1216
1214
|
if (F(() => {
|
|
1217
1215
|
const a = document.title;
|
|
@@ -1223,13 +1221,13 @@ function _t() {
|
|
|
1223
1221
|
}, [o, h, b]), !o)
|
|
1224
1222
|
return /* @__PURE__ */ e("div", { className: "bios-root", children: /* @__PURE__ */ e("div", { className: "bios-login-wrap", children: /* @__PURE__ */ e(wt, { controller: t }) }) });
|
|
1225
1223
|
const c = h < 12e4;
|
|
1226
|
-
return /* @__PURE__ */
|
|
1227
|
-
/* @__PURE__ */
|
|
1228
|
-
/* @__PURE__ */
|
|
1224
|
+
return /* @__PURE__ */ i("div", { className: "bios-root", children: [
|
|
1225
|
+
/* @__PURE__ */ i("header", { className: "bios-topbar", children: [
|
|
1226
|
+
/* @__PURE__ */ i("div", { className: "bios-brand", children: [
|
|
1229
1227
|
/* @__PURE__ */ e("b", { children: "BIOS 站点初始化" }),
|
|
1230
1228
|
/* @__PURE__ */ e("small", { children: (s == null ? void 0 : s.version) ?? "" })
|
|
1231
1229
|
] }),
|
|
1232
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ i("span", { style: { fontSize: 12, color: "#8a9099" }, children: [
|
|
1233
1231
|
"站点 ",
|
|
1234
1232
|
C.length,
|
|
1235
1233
|
" · 模板 ",
|
|
@@ -1237,16 +1235,16 @@ function _t() {
|
|
|
1237
1235
|
] }),
|
|
1238
1236
|
/* @__PURE__ */ e("span", { className: "bios-topbar-spacer" }),
|
|
1239
1237
|
/* @__PURE__ */ e("span", { className: "bios-clock", children: ht(f) }),
|
|
1240
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ i("span", { className: `bios-session-pill${c ? " urgent" : ""}`, children: [
|
|
1241
1239
|
/* @__PURE__ */ e(E, { name: "user", size: 12 }),
|
|
1242
1240
|
o.account,
|
|
1243
1241
|
/* @__PURE__ */ e("b", { children: pt(h) })
|
|
1244
1242
|
] }),
|
|
1245
1243
|
/* @__PURE__ */ e(k, { size: "small", icon: /* @__PURE__ */ e(E, { name: "log-out", size: 12 }), onClick: () => void b(), children: "退出登录" })
|
|
1246
1244
|
] }),
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
Et.map((a) => /* @__PURE__ */
|
|
1245
|
+
/* @__PURE__ */ i("div", { className: "bios-layout", children: [
|
|
1246
|
+
/* @__PURE__ */ i("nav", { className: "bios-menu", "aria-label": "功能菜单", children: [
|
|
1247
|
+
Et.map((a) => /* @__PURE__ */ i(
|
|
1250
1248
|
"button",
|
|
1251
1249
|
{
|
|
1252
1250
|
type: "button",
|
|
@@ -1266,5 +1264,5 @@ function _t() {
|
|
|
1266
1264
|
] });
|
|
1267
1265
|
}
|
|
1268
1266
|
export {
|
|
1269
|
-
|
|
1267
|
+
Pt as default
|
|
1270
1268
|
};
|