dsh-plugin 1.4.6 → 1.4.8
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/README.en.md +1 -1
- package/README.md +1 -1
- package/client/client.js +326 -308
- package/client/client.js.map +1 -1
- package/lib/http/routes.js +41 -11
- package/lib/services/install/npm-resolve.js +14 -8
- package/lib/services/install/package-entry.js +39 -0
- package/lib/services/install/preflight.js +2 -7
- package/lib/services/install/task-queue.js +15 -7
- package/lib/services/probe.js +92 -63
- package/lib/types/services/install/npm-resolve.d.ts +3 -1
- package/lib/types/services/install/package-entry.d.ts +21 -0
- package/lib/types/services/probe.d.ts +25 -2
- package/package.json +2 -2
- package/src/client/components/views/DiagnosticsView.tsx +11 -4
- package/src/client/components/views/SettingsView.tsx +14 -5
- package/src/client/locales.ts +10 -0
- package/src/server/http/routes.ts +37 -11
- package/src/server/services/install/npm-resolve.ts +14 -9
- package/src/server/services/install/package-entry.ts +41 -0
- package/src/server/services/install/preflight.ts +2 -7
- package/src/server/services/install/task-queue.ts +15 -7
- package/src/server/services/probe.ts +113 -63
package/client/client.js
CHANGED
|
@@ -114,6 +114,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
114
114
|
proxyCheckChecking: "正在测试该代理地址…",
|
|
115
115
|
proxyCheckOk: "测试可达,安装与目录请求将统一走该代理",
|
|
116
116
|
proxyCheckFail: "此地址测试不通,仍可保存;请确认代理已开启、地址与端口无误",
|
|
117
|
+
proxyCheckRevocation: "证书吊销检查受阻(Windows Schannel 取不到 CRL/OCSP),握手被中断;属本机 TLS 环境问题,非代理地址不通",
|
|
117
118
|
settingsMirror: "npm 镜像源",
|
|
118
119
|
settingsMirrorDesc: "默认跟随本机 npm 配置;官方源慢可换国内镜像",
|
|
119
120
|
mirrorNone: "未配置(跟随本机 npm 配置)",
|
|
@@ -198,6 +199,8 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
198
199
|
diagSummaryRunning: "正在检测通道…",
|
|
199
200
|
diagSummaryOk: "全部通道正常",
|
|
200
201
|
diagSummaryFail: "存在不可达通道,点击对应行可重测",
|
|
202
|
+
diagFailRevocation: "证书校验受阻",
|
|
203
|
+
diagFailRevocationHint: "系统 curl 取不到证书吊销信息(Windows Schannel 必需 CRL/OCSP),TLS 握手被中断 —— 这不是网络不通,npm/git 可能照常可用。升级 curl 到 7.70+ 可自动按「尽力而为」处理,或换一个能访问吊销服务的网络。",
|
|
201
204
|
settingsEnvSnapshot: "系统版本",
|
|
202
205
|
settingsEnvSnapshotDesc: "复制宿主版本与系统信息,提交 Issue 时粘贴到正文便于复现",
|
|
203
206
|
settingsEnvCopy: "复制",
|
|
@@ -445,6 +448,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
445
448
|
proxyCheckChecking: "Testing this proxy address…",
|
|
446
449
|
proxyCheckOk: "Reachable — installs and catalog requests will route through it",
|
|
447
450
|
proxyCheckFail: "Unreachable, but you can still save it; make sure the proxy is running and the address and port are correct",
|
|
451
|
+
proxyCheckRevocation: "Certificate revocation check blocked (Windows Schannel could not fetch CRL/OCSP), so the handshake was aborted — a local TLS issue, not a bad proxy address",
|
|
448
452
|
settingsMirror: "npm mirror",
|
|
449
453
|
settingsMirrorDesc: "Unset by default — follows local npm config; pick a domestic mirror if slow",
|
|
450
454
|
mirrorNone: "Unset (follow local npm config)",
|
|
@@ -529,6 +533,8 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
529
533
|
diagSummaryRunning: "Checking channels…",
|
|
530
534
|
diagSummaryOk: "All channels reachable",
|
|
531
535
|
diagSummaryFail: "Unreachable channel(s) — click a row to re-check",
|
|
536
|
+
diagFailRevocation: "Cert check blocked",
|
|
537
|
+
diagFailRevocationHint: "The system curl cannot fetch certificate revocation info (CRL/OCSP, required by Windows Schannel), so the TLS handshake is aborted — this is not a network outage, and npm/git may still work. curl 7.70+ downgrades the check to best-effort, or switch to a network that can reach the revocation service.",
|
|
532
538
|
settingsEnvSnapshot: "System version",
|
|
533
539
|
settingsEnvSnapshotDesc: "Copy host version and system info for pasting into issue reports",
|
|
534
540
|
settingsEnvCopy: "Copy",
|
|
@@ -690,42 +696,42 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
690
696
|
css: css$11
|
|
691
697
|
});
|
|
692
698
|
var Header_module_css_default = {
|
|
693
|
-
"
|
|
694
|
-
"
|
|
695
|
-
"
|
|
696
|
-
"
|
|
697
|
-
"
|
|
698
|
-
"taglineLink": "qikqja_taglineLink",
|
|
699
|
+
"root": "qikqja_root",
|
|
700
|
+
"search": "qikqja_search",
|
|
701
|
+
"hubUpdateBadge": "qikqja_hubUpdateBadge",
|
|
702
|
+
"controls": "qikqja_controls",
|
|
703
|
+
"tab": "qikqja_tab",
|
|
699
704
|
"title": "qikqja_title",
|
|
700
|
-
"
|
|
701
|
-
"
|
|
705
|
+
"resultCount": "qikqja_resultCount",
|
|
706
|
+
"brandTitle": "qikqja_brandTitle",
|
|
702
707
|
"version": "qikqja_version",
|
|
703
|
-
"
|
|
708
|
+
"headerRight": "qikqja_headerRight",
|
|
709
|
+
"segBtn": "qikqja_segBtn",
|
|
710
|
+
"adText": "qikqja_adText",
|
|
711
|
+
"tabsRow": "qikqja_tabsRow",
|
|
712
|
+
"taglineLink": "qikqja_taglineLink",
|
|
713
|
+
"tabs": "qikqja_tabs",
|
|
714
|
+
"aboutBtn": "qikqja_aboutBtn",
|
|
715
|
+
"logoIcon": "qikqja_logoIcon",
|
|
716
|
+
"tabActive": "qikqja_tabActive",
|
|
704
717
|
"segLabel": "qikqja_segLabel",
|
|
705
|
-
"
|
|
706
|
-
"
|
|
707
|
-
"
|
|
718
|
+
"sortGroup": "qikqja_sortGroup",
|
|
719
|
+
"versionBtn": "qikqja_versionBtn",
|
|
720
|
+
"segGroup": "qikqja_segGroup",
|
|
708
721
|
"githubIcon": "qikqja_githubIcon",
|
|
709
|
-
"
|
|
710
|
-
"tabCount": "qikqja_tabCount",
|
|
711
|
-
"brandTitle": "qikqja_brandTitle",
|
|
722
|
+
"langBtn": "qikqja_langBtn",
|
|
712
723
|
"githubLink": "qikqja_githubLink",
|
|
713
|
-
"aboutBtn": "qikqja_aboutBtn",
|
|
714
|
-
"controls": "qikqja_controls",
|
|
715
724
|
"headerTitleRow": "qikqja_headerTitleRow",
|
|
716
|
-
"
|
|
725
|
+
"resultSeg": "qikqja_resultSeg",
|
|
726
|
+
"segBtnActive": "qikqja_segBtnActive",
|
|
717
727
|
"searchRow": "qikqja_searchRow",
|
|
718
|
-
"tabs": "qikqja_tabs",
|
|
719
|
-
"copyIcon": "qikqja_copyIcon",
|
|
720
|
-
"tabsRow": "qikqja_tabsRow",
|
|
721
|
-
"sortGroup": "qikqja_sortGroup",
|
|
722
728
|
"header": "qikqja_header",
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
"
|
|
726
|
-
"
|
|
727
|
-
"
|
|
728
|
-
"
|
|
729
|
+
"copyIcon": "qikqja_copyIcon",
|
|
730
|
+
"adBanner": "qikqja_adBanner",
|
|
731
|
+
"adArrow": "qikqja_adArrow",
|
|
732
|
+
"tagline": "qikqja_tagline",
|
|
733
|
+
"adBadge": "qikqja_adBadge",
|
|
734
|
+
"tabCount": "qikqja_tabCount"
|
|
729
735
|
};
|
|
730
736
|
//#endregion
|
|
731
737
|
//#region \0dsh-css:src/client/styles/Modal.module.css.mjs
|
|
@@ -744,136 +750,136 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
744
750
|
css: css$10
|
|
745
751
|
});
|
|
746
752
|
var Modal_module_css_default = {
|
|
747
|
-
"
|
|
748
|
-
"
|
|
749
|
-
"modalCloseIcon": "BiQ1zG_modalCloseIcon",
|
|
750
|
-
"modalLink": "BiQ1zG_modalLink",
|
|
751
|
-
"detailStatusRunning": "BiQ1zG_detailStatusRunning",
|
|
752
|
-
"failEmpty": "BiQ1zG_failEmpty",
|
|
753
|
-
"detailPathBtn": "BiQ1zG_detailPathBtn",
|
|
754
|
-
"modalCopy": "BiQ1zG_modalCopy",
|
|
755
|
-
"failHead": "BiQ1zG_failHead",
|
|
756
|
-
"queuedHint": "BiQ1zG_queuedHint",
|
|
757
|
-
"confirmIconWrap": "BiQ1zG_confirmIconWrap",
|
|
758
|
-
"noticeRowOk": "BiQ1zG_noticeRowOk",
|
|
759
|
-
"modalValue": "BiQ1zG_modalValue",
|
|
760
|
-
"modalRow": "BiQ1zG_modalRow",
|
|
761
|
-
"hubUpdateMetaItem": "BiQ1zG_hubUpdateMetaItem",
|
|
762
|
-
"failRepo": "BiQ1zG_failRepo",
|
|
753
|
+
"queueRowHead": "BiQ1zG_queueRowHead",
|
|
754
|
+
"failList": "BiQ1zG_failList",
|
|
763
755
|
"modalCmdText": "BiQ1zG_modalCmdText",
|
|
764
|
-
"
|
|
756
|
+
"modalInstall": "BiQ1zG_modalInstall",
|
|
757
|
+
"errorCopySoft": "BiQ1zG_errorCopySoft",
|
|
765
758
|
"noticeHead": "BiQ1zG_noticeHead",
|
|
759
|
+
"confirmIcon": "BiQ1zG_confirmIcon",
|
|
766
760
|
"aboutModal": "BiQ1zG_aboutModal",
|
|
767
|
-
"
|
|
768
|
-
"
|
|
769
|
-
"
|
|
770
|
-
"
|
|
771
|
-
"
|
|
772
|
-
"
|
|
773
|
-
"progressTrack": "BiQ1zG_progressTrack",
|
|
774
|
-
"modalWide": "BiQ1zG_modalWide",
|
|
761
|
+
"pendingRowStatus": "BiQ1zG_pendingRowStatus",
|
|
762
|
+
"queueRow": "BiQ1zG_queueRow",
|
|
763
|
+
"hubUpdateModal": "BiQ1zG_hubUpdateModal",
|
|
764
|
+
"toast": "BiQ1zG_toast",
|
|
765
|
+
"failBigIssue": "BiQ1zG_failBigIssue",
|
|
766
|
+
"errorTitle": "BiQ1zG_errorTitle",
|
|
775
767
|
"failDiagBtn": "BiQ1zG_failDiagBtn",
|
|
776
|
-
"
|
|
768
|
+
"failEmpty": "BiQ1zG_failEmpty",
|
|
769
|
+
"modalTitleQueued": "BiQ1zG_modalTitleQueued",
|
|
770
|
+
"detailPath": "BiQ1zG_detailPath",
|
|
771
|
+
"progressTrack": "BiQ1zG_progressTrack",
|
|
772
|
+
"queueSection": "BiQ1zG_queueSection",
|
|
773
|
+
"noticeVersion": "BiQ1zG_noticeVersion",
|
|
774
|
+
"detailRow": "BiQ1zG_detailRow",
|
|
775
|
+
"noticeMain": "BiQ1zG_noticeMain",
|
|
776
|
+
"detailModal": "BiQ1zG_detailModal",
|
|
777
|
+
"modalClose": "BiQ1zG_modalClose",
|
|
777
778
|
"detailValue": "BiQ1zG_detailValue",
|
|
779
|
+
"overlay": "BiQ1zG_overlay",
|
|
780
|
+
"failRepo": "BiQ1zG_failRepo",
|
|
781
|
+
"failKindInstall": "BiQ1zG_failKindInstall",
|
|
782
|
+
"queueRowStatus": "BiQ1zG_queueRowStatus",
|
|
783
|
+
"noticeList": "BiQ1zG_noticeList",
|
|
784
|
+
"failPrepareHint": "BiQ1zG_failPrepareHint",
|
|
785
|
+
"detailDim": "BiQ1zG_detailDim",
|
|
786
|
+
"dangerConfirm": "BiQ1zG_dangerConfirm",
|
|
787
|
+
"trustHint": "BiQ1zG_trustHint",
|
|
788
|
+
"noticeBadgeIcon": "BiQ1zG_noticeBadgeIcon",
|
|
789
|
+
"hubUpdateNotes": "BiQ1zG_hubUpdateNotes",
|
|
790
|
+
"queueSectionTitle": "BiQ1zG_queueSectionTitle",
|
|
791
|
+
"aboutMeta": "BiQ1zG_aboutMeta",
|
|
792
|
+
"failNetworkTarget": "BiQ1zG_failNetworkTarget",
|
|
793
|
+
"aboutContent": "BiQ1zG_aboutContent",
|
|
794
|
+
"failClear": "BiQ1zG_failClear",
|
|
778
795
|
"resultTitle": "BiQ1zG_resultTitle",
|
|
779
|
-
"
|
|
780
|
-
"
|
|
796
|
+
"detailArrow": "BiQ1zG_detailArrow",
|
|
797
|
+
"modalLink": "BiQ1zG_modalLink",
|
|
798
|
+
"modalCancel": "BiQ1zG_modalCancel",
|
|
799
|
+
"resultCheck": "BiQ1zG_resultCheck",
|
|
781
800
|
"confirmIconDanger": "BiQ1zG_confirmIconDanger",
|
|
782
|
-
"
|
|
783
|
-
"
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"modalIn": "BiQ1zG_modalIn",
|
|
788
|
-
"helpModal": "BiQ1zG_helpModal",
|
|
789
|
-
"errorModal": "BiQ1zG_errorModal",
|
|
790
|
-
"queueSection": "BiQ1zG_queueSection",
|
|
791
|
-
"progressFill": "BiQ1zG_progressFill",
|
|
792
|
-
"logModal": "BiQ1zG_logModal",
|
|
793
|
-
"resultDesc": "BiQ1zG_resultDesc",
|
|
794
|
-
"confirmPrimary": "BiQ1zG_confirmPrimary",
|
|
795
|
-
"restartNowWarning": "BiQ1zG_restartNowWarning",
|
|
796
|
-
"noticeUpdateGo": "BiQ1zG_noticeUpdateGo",
|
|
797
|
-
"noticeIgnore": "BiQ1zG_noticeIgnore",
|
|
798
|
-
"failedCopyHint": "BiQ1zG_failedCopyHint",
|
|
799
|
-
"detailStars": "BiQ1zG_detailStars",
|
|
800
|
-
"modalLabel": "BiQ1zG_modalLabel",
|
|
801
|
-
"detailUpdateHint": "BiQ1zG_detailUpdateHint",
|
|
802
|
-
"queueRow": "BiQ1zG_queueRow",
|
|
803
|
-
"hubUpdateModal": "BiQ1zG_hubUpdateModal",
|
|
801
|
+
"queueRowPct": "BiQ1zG_queueRowPct",
|
|
802
|
+
"linkIcon": "BiQ1zG_linkIcon",
|
|
803
|
+
"queueRowBody": "BiQ1zG_queueRowBody",
|
|
804
|
+
"toastFail": "BiQ1zG_toastFail",
|
|
805
|
+
"errorHint": "BiQ1zG_errorHint",
|
|
804
806
|
"modalActions": "BiQ1zG_modalActions",
|
|
805
|
-
"
|
|
806
|
-
"aboutContent": "BiQ1zG_aboutContent",
|
|
807
|
+
"failRow": "BiQ1zG_failRow",
|
|
807
808
|
"stripCancel": "BiQ1zG_stripCancel",
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
809
|
+
"resultCheckIcon": "BiQ1zG_resultCheckIcon",
|
|
810
|
+
"modalLabel": "BiQ1zG_modalLabel",
|
|
811
|
+
"noticeFoot": "BiQ1zG_noticeFoot",
|
|
812
|
+
"noticeUpdateGo": "BiQ1zG_noticeUpdateGo",
|
|
813
|
+
"queueRowDesc": "BiQ1zG_queueRowDesc",
|
|
814
|
+
"pendingRowActions": "BiQ1zG_pendingRowActions",
|
|
815
|
+
"result": "BiQ1zG_result",
|
|
816
|
+
"noticeRow": "BiQ1zG_noticeRow",
|
|
817
|
+
"detailStatusText": "BiQ1zG_detailStatusText",
|
|
814
818
|
"detailMono": "BiQ1zG_detailMono",
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
"
|
|
819
|
+
"modalTitleBusy": "BiQ1zG_modalTitleBusy",
|
|
820
|
+
"queuedHint": "BiQ1zG_queuedHint",
|
|
821
|
+
"progressHead": "BiQ1zG_progressHead",
|
|
822
|
+
"uninstallConfirm": "BiQ1zG_uninstallConfirm",
|
|
818
823
|
"modalDesc": "BiQ1zG_modalDesc",
|
|
819
|
-
"
|
|
820
|
-
"
|
|
821
|
-
"detailStatusText": "BiQ1zG_detailStatusText",
|
|
822
|
-
"pendingRowActions": "BiQ1zG_pendingRowActions",
|
|
823
|
-
"resultCheckIcon": "BiQ1zG_resultCheckIcon",
|
|
824
|
-
"modalBody": "BiQ1zG_modalBody",
|
|
825
|
-
"detailDim": "BiQ1zG_detailDim",
|
|
824
|
+
"modalWide": "BiQ1zG_modalWide",
|
|
825
|
+
"restartNow": "BiQ1zG_restartNow",
|
|
826
826
|
"noticeBadgeFail": "BiQ1zG_noticeBadgeFail",
|
|
827
|
+
"hubUpdateMetaItem": "BiQ1zG_hubUpdateMetaItem",
|
|
828
|
+
"detailPathText": "BiQ1zG_detailPathText",
|
|
829
|
+
"confirmPrimary": "BiQ1zG_confirmPrimary",
|
|
830
|
+
"failKind": "BiQ1zG_failKind",
|
|
831
|
+
"overlayIn": "BiQ1zG_overlayIn",
|
|
832
|
+
"modalValue": "BiQ1zG_modalValue",
|
|
833
|
+
"progressText": "BiQ1zG_progressText",
|
|
834
|
+
"modalIn": "BiQ1zG_modalIn",
|
|
835
|
+
"modalCopy": "BiQ1zG_modalCopy",
|
|
836
|
+
"failedCopyHint": "BiQ1zG_failedCopyHint",
|
|
827
837
|
"modalTitle": "BiQ1zG_modalTitle",
|
|
828
|
-
"
|
|
829
|
-
"
|
|
838
|
+
"confirmIconWrap": "BiQ1zG_confirmIconWrap",
|
|
839
|
+
"toastIn": "BiQ1zG_toastIn",
|
|
840
|
+
"progressFillFail": "BiQ1zG_progressFillFail",
|
|
841
|
+
"noticeRowMain": "BiQ1zG_noticeRowMain",
|
|
842
|
+
"noticeIgnore": "BiQ1zG_noticeIgnore",
|
|
843
|
+
"modalCmdCopy": "BiQ1zG_modalCmdCopy",
|
|
844
|
+
"noticeTime": "BiQ1zG_noticeTime",
|
|
845
|
+
"errorBox": "BiQ1zG_errorBox",
|
|
846
|
+
"failCopy": "BiQ1zG_failCopy",
|
|
847
|
+
"failKindUninstall": "BiQ1zG_failKindUninstall",
|
|
848
|
+
"detailStatusPending": "BiQ1zG_detailStatusPending",
|
|
849
|
+
"cliOnlyHint": "BiQ1zG_cliOnlyHint",
|
|
850
|
+
"detailPathActions": "BiQ1zG_detailPathActions",
|
|
851
|
+
"detailStatusRunning": "BiQ1zG_detailStatusRunning",
|
|
852
|
+
"modal": "BiQ1zG_modal",
|
|
853
|
+
"restartNowWarning": "BiQ1zG_restartNowWarning",
|
|
854
|
+
"failHead": "BiQ1zG_failHead",
|
|
830
855
|
"modalHead": "BiQ1zG_modalHead",
|
|
856
|
+
"modalBody": "BiQ1zG_modalBody",
|
|
857
|
+
"modalCmd": "BiQ1zG_modalCmd",
|
|
858
|
+
"noticeBadgeOk": "BiQ1zG_noticeBadgeOk",
|
|
859
|
+
"logModal": "BiQ1zG_logModal",
|
|
860
|
+
"noticeRemove": "BiQ1zG_noticeRemove",
|
|
861
|
+
"helpModal": "BiQ1zG_helpModal",
|
|
862
|
+
"hubUpdateMeta": "BiQ1zG_hubUpdateMeta",
|
|
863
|
+
"progressFill": "BiQ1zG_progressFill",
|
|
864
|
+
"noticeTextFail": "BiQ1zG_noticeTextFail",
|
|
831
865
|
"restartLater": "BiQ1zG_restartLater",
|
|
832
|
-
"
|
|
833
|
-
"
|
|
866
|
+
"detailUpdateHint": "BiQ1zG_detailUpdateHint",
|
|
867
|
+
"detailGrid": "BiQ1zG_detailGrid",
|
|
868
|
+
"detailStars": "BiQ1zG_detailStars",
|
|
869
|
+
"queueRowTarget": "BiQ1zG_queueRowTarget",
|
|
870
|
+
"detailLabel": "BiQ1zG_detailLabel",
|
|
834
871
|
"detailLink": "BiQ1zG_detailLink",
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
"
|
|
839
|
-
"
|
|
840
|
-
"
|
|
841
|
-
"
|
|
872
|
+
"detailPathBtn": "BiQ1zG_detailPathBtn",
|
|
873
|
+
"noticeTextOk": "BiQ1zG_noticeTextOk",
|
|
874
|
+
"modalCloseIcon": "BiQ1zG_modalCloseIcon",
|
|
875
|
+
"resultRestarting": "BiQ1zG_resultRestarting",
|
|
876
|
+
"errorModal": "BiQ1zG_errorModal",
|
|
877
|
+
"modalRow": "BiQ1zG_modalRow",
|
|
878
|
+
"resultDesc": "BiQ1zG_resultDesc",
|
|
879
|
+
"queueRowTrack": "BiQ1zG_queueRowTrack",
|
|
842
880
|
"progress": "BiQ1zG_progress",
|
|
843
|
-
"uninstallConfirm": "BiQ1zG_uninstallConfirm",
|
|
844
|
-
"pendingRowStatus": "BiQ1zG_pendingRowStatus",
|
|
845
|
-
"hubUpdateNotes": "BiQ1zG_hubUpdateNotes",
|
|
846
881
|
"noticeRowUpdate": "BiQ1zG_noticeRowUpdate",
|
|
847
|
-
"
|
|
848
|
-
"cliOnlyHint": "BiQ1zG_cliOnlyHint",
|
|
849
|
-
"errorHint": "BiQ1zG_errorHint",
|
|
850
|
-
"detailLabel": "BiQ1zG_detailLabel",
|
|
851
|
-
"detailPath": "BiQ1zG_detailPath",
|
|
852
|
-
"aboutMeta": "BiQ1zG_aboutMeta",
|
|
853
|
-
"detailPathText": "BiQ1zG_detailPathText",
|
|
854
|
-
"failCopy": "BiQ1zG_failCopy",
|
|
855
|
-
"confirmIcon": "BiQ1zG_confirmIcon",
|
|
856
|
-
"resultRestarting": "BiQ1zG_resultRestarting",
|
|
857
|
-
"noticeVersion": "BiQ1zG_noticeVersion",
|
|
858
|
-
"detailArrow": "BiQ1zG_detailArrow",
|
|
859
|
-
"trustHint": "BiQ1zG_trustHint",
|
|
860
|
-
"noticeTextOk": "BiQ1zG_noticeTextOk",
|
|
861
|
-
"failBigIssue": "BiQ1zG_failBigIssue",
|
|
862
|
-
"failClear": "BiQ1zG_failClear",
|
|
863
|
-
"queueRowPct": "BiQ1zG_queueRowPct",
|
|
864
|
-
"noticeList": "BiQ1zG_noticeList",
|
|
865
|
-
"errorCopySoft": "BiQ1zG_errorCopySoft",
|
|
866
|
-
"detailGrid": "BiQ1zG_detailGrid",
|
|
867
|
-
"result": "BiQ1zG_result",
|
|
868
|
-
"modal": "BiQ1zG_modal",
|
|
869
|
-
"failKindInstall": "BiQ1zG_failKindInstall",
|
|
870
|
-
"progressFillFail": "BiQ1zG_progressFillFail",
|
|
871
|
-
"modalInstall": "BiQ1zG_modalInstall",
|
|
872
|
-
"noticeTime": "BiQ1zG_noticeTime",
|
|
873
|
-
"failList": "BiQ1zG_failList",
|
|
874
|
-
"detailModal": "BiQ1zG_detailModal",
|
|
875
|
-
"modalTitleBusy": "BiQ1zG_modalTitleBusy",
|
|
876
|
-
"failKindUninstall": "BiQ1zG_failKindUninstall"
|
|
882
|
+
"noticeRowOk": "BiQ1zG_noticeRowOk"
|
|
877
883
|
};
|
|
878
884
|
//#endregion
|
|
879
885
|
//#region src/client/logic/install-command.ts
|
|
@@ -943,7 +949,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
943
949
|
* tsdown 构建时用 define 把 __PLUGIN_VERSION__ 替换成 package.json 的版本号;
|
|
944
950
|
* node --test 直接 import 本模块时该标识符不存在,typeof 守卫兜底为空串。
|
|
945
951
|
*/
|
|
946
|
-
const PLUGIN_VERSION = "1.4.
|
|
952
|
+
const PLUGIN_VERSION = "1.4.8";
|
|
947
953
|
const CATEGORY_ORDER = [
|
|
948
954
|
"interface",
|
|
949
955
|
"session",
|
|
@@ -1580,7 +1586,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
1580
1586
|
*/
|
|
1581
1587
|
const hubHasUpdate = (() => {
|
|
1582
1588
|
if (!hubUpdateInfo) return false;
|
|
1583
|
-
if (hubUpdateInfo.version === "1.4.
|
|
1589
|
+
if (hubUpdateInfo.version === "1.4.8") return false;
|
|
1584
1590
|
const publishedAt = hubUpdateInfo.publishedAt;
|
|
1585
1591
|
if (publishedAt) {
|
|
1586
1592
|
const publishedMs = Date.parse(publishedAt);
|
|
@@ -4171,40 +4177,40 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4171
4177
|
css: css$9
|
|
4172
4178
|
});
|
|
4173
4179
|
var List_module_css_default = {
|
|
4174
|
-
"
|
|
4175
|
-
"topics": "_3XaZHa_topics",
|
|
4176
|
-
"date": "_3XaZHa_date",
|
|
4177
|
-
"fork": "_3XaZHa_fork",
|
|
4178
|
-
"uninstallBtn": "_3XaZHa_uninstallBtn",
|
|
4179
|
-
"diagBtn": "_3XaZHa_diagBtn",
|
|
4180
|
-
"footLink": "_3XaZHa_footLink",
|
|
4181
|
-
"categoryBadge": "_3XaZHa_categoryBadge",
|
|
4182
|
-
"cardMain": "_3XaZHa_cardMain",
|
|
4183
|
-
"card": "_3XaZHa_card",
|
|
4180
|
+
"cardSide": "_3XaZHa_cardSide",
|
|
4184
4181
|
"stats": "_3XaZHa_stats",
|
|
4185
|
-
"
|
|
4186
|
-
"
|
|
4187
|
-
"actions": "_3XaZHa_actions",
|
|
4188
|
-
"retryBtn": "_3XaZHa_retryBtn",
|
|
4189
|
-
"updateBadge": "_3XaZHa_updateBadge",
|
|
4190
|
-
"cardTitle": "_3XaZHa_cardTitle",
|
|
4191
|
-
"installBtnCopied": "_3XaZHa_installBtnCopied",
|
|
4182
|
+
"moreSentinel": "_3XaZHa_moreSentinel",
|
|
4183
|
+
"versionBadge": "_3XaZHa_versionBadge",
|
|
4192
4184
|
"star": "_3XaZHa_star",
|
|
4185
|
+
"state": "_3XaZHa_state",
|
|
4193
4186
|
"stateDesc": "_3XaZHa_stateDesc",
|
|
4194
|
-
"
|
|
4195
|
-
"
|
|
4196
|
-
"
|
|
4197
|
-
"
|
|
4187
|
+
"categoryBadge": "_3XaZHa_categoryBadge",
|
|
4188
|
+
"cardMain": "_3XaZHa_cardMain",
|
|
4189
|
+
"uninstallBtn": "_3XaZHa_uninstallBtn",
|
|
4190
|
+
"desc": "_3XaZHa_desc",
|
|
4198
4191
|
"list": "_3XaZHa_list",
|
|
4192
|
+
"card": "_3XaZHa_card",
|
|
4193
|
+
"footer": "_3XaZHa_footer",
|
|
4194
|
+
"fork": "_3XaZHa_fork",
|
|
4195
|
+
"installBtnCopied": "_3XaZHa_installBtnCopied",
|
|
4196
|
+
"installBtnUpdate": "_3XaZHa_installBtnUpdate",
|
|
4197
|
+
"stateActions": "_3XaZHa_stateActions",
|
|
4198
|
+
"cardHead": "_3XaZHa_cardHead",
|
|
4199
|
+
"topics": "_3XaZHa_topics",
|
|
4200
|
+
"stateTitle": "_3XaZHa_stateTitle",
|
|
4201
|
+
"diagBtn": "_3XaZHa_diagBtn",
|
|
4202
|
+
"verified": "_3XaZHa_verified",
|
|
4203
|
+
"topic": "_3XaZHa_topic",
|
|
4199
4204
|
"body": "_3XaZHa_body",
|
|
4200
|
-
"desc": "_3XaZHa_desc",
|
|
4201
|
-
"state": "_3XaZHa_state",
|
|
4202
|
-
"cardSide": "_3XaZHa_cardSide",
|
|
4203
4205
|
"installBtnInstalled": "_3XaZHa_installBtnInstalled",
|
|
4204
|
-
"
|
|
4206
|
+
"date": "_3XaZHa_date",
|
|
4205
4207
|
"detailBtn": "_3XaZHa_detailBtn",
|
|
4206
|
-
"
|
|
4207
|
-
"
|
|
4208
|
+
"footLink": "_3XaZHa_footLink",
|
|
4209
|
+
"cardTitle": "_3XaZHa_cardTitle",
|
|
4210
|
+
"actions": "_3XaZHa_actions",
|
|
4211
|
+
"updateBadge": "_3XaZHa_updateBadge",
|
|
4212
|
+
"retryBtn": "_3XaZHa_retryBtn",
|
|
4213
|
+
"installBtn": "_3XaZHa_installBtn"
|
|
4208
4214
|
};
|
|
4209
4215
|
//#endregion
|
|
4210
4216
|
//#region src/client/hooks/useIncrementalList.ts
|
|
@@ -4411,15 +4417,15 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4411
4417
|
css: css$8
|
|
4412
4418
|
});
|
|
4413
4419
|
var SectionTabs_module_css_default = {
|
|
4414
|
-
"tabCount": "_7tvizq_tabCount",
|
|
4415
|
-
"noticeBtn": "_7tvizq_noticeBtn",
|
|
4416
|
-
"tabActive": "_7tvizq_tabActive",
|
|
4417
4420
|
"tabIcon": "_7tvizq_tabIcon",
|
|
4421
|
+
"tabCount": "_7tvizq_tabCount",
|
|
4418
4422
|
"root": "_7tvizq_root",
|
|
4419
|
-
"noticeCount": "_7tvizq_noticeCount",
|
|
4420
|
-
"tabCountActive": "_7tvizq_tabCountActive",
|
|
4421
4423
|
"noticeIcon": "_7tvizq_noticeIcon",
|
|
4422
|
-
"
|
|
4424
|
+
"tabCountActive": "_7tvizq_tabCountActive",
|
|
4425
|
+
"tabActive": "_7tvizq_tabActive",
|
|
4426
|
+
"tab": "_7tvizq_tab",
|
|
4427
|
+
"noticeBtn": "_7tvizq_noticeBtn",
|
|
4428
|
+
"noticeCount": "_7tvizq_noticeCount"
|
|
4423
4429
|
};
|
|
4424
4430
|
//#endregion
|
|
4425
4431
|
//#region src/client/components/layout/SectionTabs.tsx
|
|
@@ -4498,40 +4504,40 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4498
4504
|
var InstalledView_module_css_default = {
|
|
4499
4505
|
"toolbar": "_1nXeGW_toolbar",
|
|
4500
4506
|
"empty": "_1nXeGW_empty",
|
|
4501
|
-
"
|
|
4502
|
-
"
|
|
4503
|
-
"
|
|
4504
|
-
"exampleRow": "_1nXeGW_exampleRow",
|
|
4507
|
+
"segLabel": "_1nXeGW_segLabel",
|
|
4508
|
+
"rowMain": "_1nXeGW_rowMain",
|
|
4509
|
+
"segBtnActive": "_1nXeGW_segBtnActive",
|
|
4505
4510
|
"segBtn": "_1nXeGW_segBtn",
|
|
4511
|
+
"versionBadge": "_1nXeGW_versionBadge",
|
|
4512
|
+
"rowUpdate": "_1nXeGW_rowUpdate",
|
|
4513
|
+
"segRow": "_1nXeGW_segRow",
|
|
4506
4514
|
"emptyTitle": "_1nXeGW_emptyTitle",
|
|
4507
|
-
"rowDesc": "_1nXeGW_rowDesc",
|
|
4508
|
-
"row": "_1nXeGW_row",
|
|
4509
|
-
"statusDot": "_1nXeGW_statusDot",
|
|
4510
|
-
"rowMeta": "_1nXeGW_rowMeta",
|
|
4511
|
-
"rowTitle": "_1nXeGW_rowTitle",
|
|
4512
|
-
"segBtnActive": "_1nXeGW_segBtnActive",
|
|
4513
|
-
"list": "_1nXeGW_list",
|
|
4514
|
-
"rowMain": "_1nXeGW_rowMain",
|
|
4515
|
-
"rowActions": "_1nXeGW_rowActions",
|
|
4516
|
-
"rowSourceTagHub": "_1nXeGW_rowSourceTagHub",
|
|
4517
|
-
"rowUninstall": "_1nXeGW_rowUninstall",
|
|
4518
|
-
"rowCategory": "_1nXeGW_rowCategory",
|
|
4519
|
-
"rowRestart": "_1nXeGW_rowRestart",
|
|
4520
4515
|
"updateBadge": "_1nXeGW_updateBadge",
|
|
4521
|
-
"
|
|
4522
|
-
"rowTitleLine": "_1nXeGW_rowTitleLine",
|
|
4523
|
-
"segLabel": "_1nXeGW_segLabel",
|
|
4524
|
-
"statusInactive": "_1nXeGW_statusInactive",
|
|
4516
|
+
"root": "_1nXeGW_root",
|
|
4525
4517
|
"rowSourceTag": "_1nXeGW_rowSourceTag",
|
|
4526
|
-
"segRow": "_1nXeGW_segRow",
|
|
4527
4518
|
"rowSourceTagManual": "_1nXeGW_rowSourceTagManual",
|
|
4519
|
+
"rowActions": "_1nXeGW_rowActions",
|
|
4520
|
+
"rowCategory": "_1nXeGW_rowCategory",
|
|
4521
|
+
"rowDesc": "_1nXeGW_rowDesc",
|
|
4522
|
+
"rowSourceTagHub": "_1nXeGW_rowSourceTagHub",
|
|
4528
4523
|
"rowDetail": "_1nXeGW_rowDetail",
|
|
4524
|
+
"exampleRow": "_1nXeGW_exampleRow",
|
|
4529
4525
|
"searchInput": "_1nXeGW_searchInput",
|
|
4530
|
-
"
|
|
4526
|
+
"statusDot": "_1nXeGW_statusDot",
|
|
4527
|
+
"statusPending": "_1nXeGW_statusPending",
|
|
4528
|
+
"exampleBadge": "_1nXeGW_exampleBadge",
|
|
4529
|
+
"rowRestart": "_1nXeGW_rowRestart",
|
|
4530
|
+
"row": "_1nXeGW_row",
|
|
4531
|
+
"list": "_1nXeGW_list",
|
|
4531
4532
|
"searchWrap": "_1nXeGW_searchWrap",
|
|
4533
|
+
"rowMeta": "_1nXeGW_rowMeta",
|
|
4534
|
+
"rowTitleLine": "_1nXeGW_rowTitleLine",
|
|
4535
|
+
"emptyDesc": "_1nXeGW_emptyDesc",
|
|
4532
4536
|
"segGroup": "_1nXeGW_segGroup",
|
|
4533
|
-
"
|
|
4534
|
-
"
|
|
4537
|
+
"rowRepo": "_1nXeGW_rowRepo",
|
|
4538
|
+
"rowTitle": "_1nXeGW_rowTitle",
|
|
4539
|
+
"statusInactive": "_1nXeGW_statusInactive",
|
|
4540
|
+
"rowUninstall": "_1nXeGW_rowUninstall"
|
|
4535
4541
|
};
|
|
4536
4542
|
//#endregion
|
|
4537
4543
|
//#region src/client/components/views/InstalledView.tsx
|
|
@@ -4777,28 +4783,28 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4777
4783
|
css: css$6
|
|
4778
4784
|
});
|
|
4779
4785
|
var CustomInstallView_module_css_default = {
|
|
4780
|
-
"
|
|
4781
|
-
"
|
|
4786
|
+
"installLabel": "zISxCG_installLabel",
|
|
4787
|
+
"installInput": "zISxCG_installInput",
|
|
4782
4788
|
"installError": "zISxCG_installError",
|
|
4783
|
-
"
|
|
4789
|
+
"channelOffBtn": "zISxCG_channelOffBtn",
|
|
4790
|
+
"installBtn": "zISxCG_installBtn",
|
|
4791
|
+
"installCards": "zISxCG_installCards",
|
|
4792
|
+
"installHelpBtn": "zISxCG_installHelpBtn",
|
|
4793
|
+
"desc": "zISxCG_desc",
|
|
4794
|
+
"installCardDisabled": "zISxCG_installCardDisabled",
|
|
4795
|
+
"installCardHead": "zISxCG_installCardHead",
|
|
4796
|
+
"installRow": "zISxCG_installRow",
|
|
4797
|
+
"channelOff": "zISxCG_channelOff",
|
|
4784
4798
|
"helpLine": "zISxCG_helpLine",
|
|
4785
|
-
"
|
|
4799
|
+
"helpNote": "zISxCG_helpNote",
|
|
4786
4800
|
"installInsertBtn": "zISxCG_installInsertBtn",
|
|
4801
|
+
"helpCmd": "zISxCG_helpCmd",
|
|
4787
4802
|
"root": "zISxCG_root",
|
|
4788
|
-
"desc": "zISxCG_desc",
|
|
4789
|
-
"installCards": "zISxCG_installCards",
|
|
4790
|
-
"installHelpBtn": "zISxCG_installHelpBtn",
|
|
4791
|
-
"installLabel": "zISxCG_installLabel",
|
|
4792
4803
|
"installExample": "zISxCG_installExample",
|
|
4793
|
-
"
|
|
4794
|
-
"installInput": "zISxCG_installInput",
|
|
4804
|
+
"installCard": "zISxCG_installCard",
|
|
4795
4805
|
"installInputError": "zISxCG_installInputError",
|
|
4796
|
-
"installBtn": "zISxCG_installBtn",
|
|
4797
|
-
"channelOffBtn": "zISxCG_channelOffBtn",
|
|
4798
|
-
"installCardHead": "zISxCG_installCardHead",
|
|
4799
4806
|
"channelOffText": "zISxCG_channelOffText",
|
|
4800
|
-
"
|
|
4801
|
-
"channelOff": "zISxCG_channelOff"
|
|
4807
|
+
"helpBody": "zISxCG_helpBody"
|
|
4802
4808
|
};
|
|
4803
4809
|
//#endregion
|
|
4804
4810
|
//#region src/client/components/views/CustomInstallView.tsx
|
|
@@ -5088,30 +5094,30 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5088
5094
|
css: css$5
|
|
5089
5095
|
});
|
|
5090
5096
|
var SettingsView_module_css_default = {
|
|
5091
|
-
"
|
|
5097
|
+
"controlDropdown": "_506LLG_controlDropdown",
|
|
5092
5098
|
"card": "_506LLG_card",
|
|
5093
|
-
"settingRow": "_506LLG_settingRow",
|
|
5094
|
-
"textInput": "_506LLG_textInput",
|
|
5095
|
-
"content": "_506LLG_content",
|
|
5096
|
-
"root": "_506LLG_root",
|
|
5097
|
-
"settingLabel": "_506LLG_settingLabel",
|
|
5098
|
-
"settingControlStack": "_506LLG_settingControlStack",
|
|
5099
|
-
"sidebar": "_506LLG_sidebar",
|
|
5100
|
-
"proxyHint": "_506LLG_proxyHint",
|
|
5101
|
-
"settingRowStack": "_506LLG_settingRowStack",
|
|
5102
|
-
"pageHeader": "_506LLG_pageHeader",
|
|
5103
5099
|
"settingTitle": "_506LLG_settingTitle",
|
|
5104
|
-
"
|
|
5100
|
+
"settingControlStack": "_506LLG_settingControlStack",
|
|
5105
5101
|
"settingDesc": "_506LLG_settingDesc",
|
|
5106
|
-
"
|
|
5107
|
-
"
|
|
5108
|
-
"
|
|
5102
|
+
"pageDesc": "_506LLG_pageDesc",
|
|
5103
|
+
"settingLabel": "_506LLG_settingLabel",
|
|
5104
|
+
"pageHeader": "_506LLG_pageHeader",
|
|
5109
5105
|
"pageTitle": "_506LLG_pageTitle",
|
|
5110
|
-
"
|
|
5106
|
+
"content": "_506LLG_content",
|
|
5107
|
+
"root": "_506LLG_root",
|
|
5111
5108
|
"settingControl": "_506LLG_settingControl",
|
|
5112
|
-
"
|
|
5109
|
+
"textInput": "_506LLG_textInput",
|
|
5110
|
+
"navItem": "_506LLG_navItem",
|
|
5111
|
+
"settingRow": "_506LLG_settingRow",
|
|
5112
|
+
"resetBtn": "_506LLG_resetBtn",
|
|
5113
|
+
"sidebar": "_506LLG_sidebar",
|
|
5114
|
+
"proxyControl": "_506LLG_proxyControl",
|
|
5115
|
+
"navIcon": "_506LLG_navIcon",
|
|
5113
5116
|
"proxyHintOk": "_506LLG_proxyHintOk",
|
|
5114
|
-
"
|
|
5117
|
+
"proxyHintFail": "_506LLG_proxyHintFail",
|
|
5118
|
+
"proxyHint": "_506LLG_proxyHint",
|
|
5119
|
+
"settingRowStack": "_506LLG_settingRowStack",
|
|
5120
|
+
"navItemActive": "_506LLG_navItemActive"
|
|
5115
5121
|
};
|
|
5116
5122
|
//#endregion
|
|
5117
5123
|
//#region \0dsh-css:src/client/styles/Dropdown.module.css.mjs
|
|
@@ -5130,18 +5136,18 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5130
5136
|
css: css$4
|
|
5131
5137
|
});
|
|
5132
5138
|
var Dropdown_module_css_default = {
|
|
5133
|
-
"
|
|
5134
|
-
"
|
|
5139
|
+
"dropdownCountActive": "B_Gxsq_dropdownCountActive",
|
|
5140
|
+
"dropdownItem": "B_Gxsq_dropdownItem",
|
|
5135
5141
|
"dropdownItemLabel": "B_Gxsq_dropdownItemLabel",
|
|
5136
5142
|
"dropdownBtn": "B_Gxsq_dropdownBtn",
|
|
5137
|
-
"dropdownFill": "B_Gxsq_dropdownFill",
|
|
5138
5143
|
"dropdownPanel": "B_Gxsq_dropdownPanel",
|
|
5139
|
-
"
|
|
5140
|
-
"dropdownItem": "B_Gxsq_dropdownItem",
|
|
5141
|
-
"dropdownArrow": "B_Gxsq_dropdownArrow",
|
|
5142
|
-
"dropdownCountActive": "B_Gxsq_dropdownCountActive",
|
|
5144
|
+
"dropdown": "B_Gxsq_dropdown",
|
|
5143
5145
|
"dropdownLabel": "B_Gxsq_dropdownLabel",
|
|
5144
|
-
"
|
|
5146
|
+
"dropdownArrow": "B_Gxsq_dropdownArrow",
|
|
5147
|
+
"dropdownItemActive": "B_Gxsq_dropdownItemActive",
|
|
5148
|
+
"dropdownCount": "B_Gxsq_dropdownCount",
|
|
5149
|
+
"dropdownArrowOpen": "B_Gxsq_dropdownArrowOpen",
|
|
5150
|
+
"dropdownFill": "B_Gxsq_dropdownFill"
|
|
5145
5151
|
};
|
|
5146
5152
|
//#endregion
|
|
5147
5153
|
//#region \0dsh-css:src/client/styles/Toggle.module.css.mjs
|
|
@@ -5160,9 +5166,9 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5160
5166
|
css: css$3
|
|
5161
5167
|
});
|
|
5162
5168
|
var Toggle_module_css_default = {
|
|
5163
|
-
"toggleOn": "k-cD4G_toggleOn",
|
|
5164
5169
|
"knob": "k-cD4G_knob",
|
|
5165
|
-
"toggle": "k-cD4G_toggle"
|
|
5170
|
+
"toggle": "k-cD4G_toggle",
|
|
5171
|
+
"toggleOn": "k-cD4G_toggleOn"
|
|
5166
5172
|
};
|
|
5167
5173
|
//#endregion
|
|
5168
5174
|
//#region src/client/components/ui/Toggle.tsx
|
|
@@ -5262,29 +5268,29 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5262
5268
|
css: css$2
|
|
5263
5269
|
});
|
|
5264
5270
|
var DiagnosticsView_module_css_default = {
|
|
5265
|
-
"
|
|
5266
|
-
"
|
|
5271
|
+
"envCopyBtn": "k9eRya_envCopyBtn",
|
|
5272
|
+
"name": "k9eRya_name",
|
|
5273
|
+
"summaryRunning": "k9eRya_summaryRunning",
|
|
5267
5274
|
"badgeOk": "k9eRya_badgeOk",
|
|
5268
|
-
"badgeRunning": "k9eRya_badgeRunning",
|
|
5269
5275
|
"envTitle": "k9eRya_envTitle",
|
|
5270
|
-
"meta": "k9eRya_meta",
|
|
5271
|
-
"badgeFail": "k9eRya_badgeFail",
|
|
5272
5276
|
"panel": "k9eRya_panel",
|
|
5273
|
-
"badge": "k9eRya_badge",
|
|
5274
5277
|
"runBtn": "k9eRya_runBtn",
|
|
5278
|
+
"row": "k9eRya_row",
|
|
5279
|
+
"badgeFail": "k9eRya_badgeFail",
|
|
5275
5280
|
"head": "k9eRya_head",
|
|
5276
|
-
"envDesc": "k9eRya_envDesc",
|
|
5277
|
-
"headHint": "k9eRya_headHint",
|
|
5278
|
-
"name": "k9eRya_name",
|
|
5279
|
-
"display": "k9eRya_display",
|
|
5280
|
-
"envCopyBtn": "k9eRya_envCopyBtn",
|
|
5281
|
-
"badgeIdle": "k9eRya_badgeIdle",
|
|
5282
|
-
"summaryRunning": "k9eRya_summaryRunning",
|
|
5283
|
-
"summaryFail": "k9eRya_summaryFail",
|
|
5284
|
-
"envRow": "k9eRya_envRow",
|
|
5285
5281
|
"diagPulse": "k9eRya_diagPulse",
|
|
5286
5282
|
"summaryOk": "k9eRya_summaryOk",
|
|
5287
|
-
"
|
|
5283
|
+
"envRow": "k9eRya_envRow",
|
|
5284
|
+
"display": "k9eRya_display",
|
|
5285
|
+
"badge": "k9eRya_badge",
|
|
5286
|
+
"envLabel": "k9eRya_envLabel",
|
|
5287
|
+
"envDesc": "k9eRya_envDesc",
|
|
5288
|
+
"badgeRunning": "k9eRya_badgeRunning",
|
|
5289
|
+
"summary": "k9eRya_summary",
|
|
5290
|
+
"summaryFail": "k9eRya_summaryFail",
|
|
5291
|
+
"meta": "k9eRya_meta",
|
|
5292
|
+
"badgeIdle": "k9eRya_badgeIdle",
|
|
5293
|
+
"headHint": "k9eRya_headHint"
|
|
5288
5294
|
};
|
|
5289
5295
|
//#endregion
|
|
5290
5296
|
//#region src/client/components/views/DiagnosticsView.tsx
|
|
@@ -5366,7 +5372,8 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5366
5372
|
patchRows(key, {
|
|
5367
5373
|
status: "running",
|
|
5368
5374
|
ms: null,
|
|
5369
|
-
statusCode: null
|
|
5375
|
+
statusCode: null,
|
|
5376
|
+
reason: null
|
|
5370
5377
|
});
|
|
5371
5378
|
(async () => {
|
|
5372
5379
|
try {
|
|
@@ -5395,7 +5402,8 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5395
5402
|
status: ev.type === "ok" ? "ok" : "fail",
|
|
5396
5403
|
ms: typeof ev.ms === "number" ? ev.ms : null,
|
|
5397
5404
|
statusCode: typeof ev.status === "number" ? ev.status : null,
|
|
5398
|
-
display: typeof ev.display === "string" ? ev.display : ""
|
|
5405
|
+
display: typeof ev.display === "string" ? ev.display : "",
|
|
5406
|
+
reason: typeof ev.reason === "string" ? ev.reason : null
|
|
5399
5407
|
});
|
|
5400
5408
|
}
|
|
5401
5409
|
nl = buf.indexOf("\n");
|
|
@@ -5431,14 +5439,15 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5431
5439
|
disabled: anyRunning,
|
|
5432
5440
|
onClick: () => run()
|
|
5433
5441
|
}, t("diagRunAll"))), rows.map((r) => {
|
|
5434
|
-
const
|
|
5442
|
+
const revokeBlocked = r.status === "fail" && r.reason === "tlsRevocation";
|
|
5443
|
+
const badge = r.status === "running" ? (0, react.createElement)("span", { className: `${DiagnosticsView_module_css_default.badge} ${DiagnosticsView_module_css_default.badgeRunning}` }, t("diagChecking")) : r.status === "ok" ? (0, react.createElement)("span", { className: `${DiagnosticsView_module_css_default.badge} ${DiagnosticsView_module_css_default.badgeOk}` }, r.statusCode !== null ? `HTTP ${r.statusCode} ${t("diagOk")}` : t("diagOk")) : r.status === "fail" ? (0, react.createElement)("span", { className: `${DiagnosticsView_module_css_default.badge} ${DiagnosticsView_module_css_default.badgeFail}` }, revokeBlocked ? t("diagFailRevocation") : t("settingsDiagFail")) : (0, react.createElement)("span", { className: `${DiagnosticsView_module_css_default.badge} ${DiagnosticsView_module_css_default.badgeIdle}` }, t("diagIdle"));
|
|
5435
5444
|
return (0, react.createElement)("button", {
|
|
5436
5445
|
key: r.key,
|
|
5437
5446
|
type: "button",
|
|
5438
5447
|
className: DiagnosticsView_module_css_default.row,
|
|
5439
5448
|
disabled: r.status === "running",
|
|
5440
5449
|
onClick: () => run(r.key),
|
|
5441
|
-
title: t("diagRecheck")
|
|
5450
|
+
title: revokeBlocked ? t("diagFailRevocationHint") : t("diagRecheck")
|
|
5442
5451
|
}, (0, react.createElement)("span", { className: DiagnosticsView_module_css_default.name }, t(r.nameKey)), (0, react.createElement)("span", { className: DiagnosticsView_module_css_default.display }, r.key === "catalog" ? t("diagCatalogTarget") : r.display !== "" ? r.display : t("diagNpmUnset")), (0, react.createElement)("span", { className: DiagnosticsView_module_css_default.meta }, r.status === "ok" && r.ms !== null ? `${r.ms} ms` : ""), badge);
|
|
5443
5452
|
}), (0, react.createElement)("div", { className: `${DiagnosticsView_module_css_default.summary} ${anyRunning ? DiagnosticsView_module_css_default.summaryRunning : allOk ? DiagnosticsView_module_css_default.summaryOk : DiagnosticsView_module_css_default.summaryFail}` }, anyRunning ? t("diagSummaryRunning") : allOk ? t("diagSummaryOk") : t("diagSummaryFail")));
|
|
5444
5453
|
}
|
|
@@ -5459,57 +5468,57 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5459
5468
|
css: css$1
|
|
5460
5469
|
});
|
|
5461
5470
|
var LogsView_module_css_default = {
|
|
5462
|
-
"
|
|
5463
|
-
"
|
|
5464
|
-
"
|
|
5471
|
+
"footPath": "_3j77BW_footPath",
|
|
5472
|
+
"catInstall": "_3j77BW_catInstall",
|
|
5473
|
+
"footActions": "_3j77BW_footActions",
|
|
5465
5474
|
"time": "_3j77BW_time",
|
|
5466
|
-
"entry": "_3j77BW_entry",
|
|
5467
|
-
"pathRow": "_3j77BW_pathRow",
|
|
5468
|
-
"pathDialogHint": "_3j77BW_pathDialogHint",
|
|
5469
5475
|
"message": "_3j77BW_message",
|
|
5470
|
-
"
|
|
5471
|
-
"
|
|
5472
|
-
"
|
|
5473
|
-
"
|
|
5476
|
+
"pathDialog": "_3j77BW_pathDialog",
|
|
5477
|
+
"catSystem": "_3j77BW_catSystem",
|
|
5478
|
+
"clearBtn": "_3j77BW_clearBtn",
|
|
5479
|
+
"pathDialogDesc": "_3j77BW_pathDialogDesc",
|
|
5480
|
+
"linkBtn": "_3j77BW_linkBtn",
|
|
5481
|
+
"filterBar": "_3j77BW_filterBar",
|
|
5482
|
+
"pathText": "_3j77BW_pathText",
|
|
5483
|
+
"pathDialogReset": "_3j77BW_pathDialogReset",
|
|
5484
|
+
"catUninstall": "_3j77BW_catUninstall",
|
|
5485
|
+
"searchInput": "_3j77BW_searchInput",
|
|
5474
5486
|
"list": "_3j77BW_list",
|
|
5487
|
+
"pathRow": "_3j77BW_pathRow",
|
|
5488
|
+
"event": "_3j77BW_event",
|
|
5489
|
+
"pathLabel": "_3j77BW_pathLabel",
|
|
5490
|
+
"previewRow": "_3j77BW_previewRow",
|
|
5491
|
+
"search": "_3j77BW_search",
|
|
5492
|
+
"headActions": "_3j77BW_headActions",
|
|
5475
5493
|
"more": "_3j77BW_more",
|
|
5494
|
+
"pathDialogRow": "_3j77BW_pathDialogRow",
|
|
5476
5495
|
"panel": "_3j77BW_panel",
|
|
5477
|
-
"
|
|
5478
|
-
"
|
|
5479
|
-
"
|
|
5480
|
-
"
|
|
5481
|
-
"
|
|
5482
|
-
"
|
|
5496
|
+
"badge": "_3j77BW_badge",
|
|
5497
|
+
"footFail": "_3j77BW_footFail",
|
|
5498
|
+
"footCount": "_3j77BW_footCount",
|
|
5499
|
+
"headHint": "_3j77BW_headHint",
|
|
5500
|
+
"entry": "_3j77BW_entry",
|
|
5501
|
+
"filterChip": "_3j77BW_filterChip",
|
|
5483
5502
|
"badgeSuccess": "_3j77BW_badgeSuccess",
|
|
5484
5503
|
"badgeWarn": "_3j77BW_badgeWarn",
|
|
5485
|
-
"pathDialog": "_3j77BW_pathDialog",
|
|
5486
|
-
"catInstall": "_3j77BW_catInstall",
|
|
5487
|
-
"headHint": "_3j77BW_headHint",
|
|
5488
|
-
"actions": "_3j77BW_actions",
|
|
5489
|
-
"catDiagnostics": "_3j77BW_catDiagnostics",
|
|
5490
|
-
"pathLabel": "_3j77BW_pathLabel",
|
|
5491
|
-
"moreEnd": "_3j77BW_moreEnd",
|
|
5492
|
-
"pathDialogFoot": "_3j77BW_pathDialogFoot",
|
|
5493
|
-
"footPath": "_3j77BW_footPath",
|
|
5494
5504
|
"catBadge": "_3j77BW_catBadge",
|
|
5495
|
-
"
|
|
5496
|
-
"
|
|
5497
|
-
"
|
|
5498
|
-
"
|
|
5499
|
-
"
|
|
5505
|
+
"pathDialogFoot": "_3j77BW_pathDialogFoot",
|
|
5506
|
+
"moreEnd": "_3j77BW_moreEnd",
|
|
5507
|
+
"actions": "_3j77BW_actions",
|
|
5508
|
+
"empty": "_3j77BW_empty",
|
|
5509
|
+
"catSettings": "_3j77BW_catSettings",
|
|
5510
|
+
"pathDialogHint": "_3j77BW_pathDialogHint",
|
|
5511
|
+
"pathDraft": "_3j77BW_pathDraft",
|
|
5512
|
+
"head": "_3j77BW_head",
|
|
5513
|
+
"filterChipActive": "_3j77BW_filterChipActive",
|
|
5514
|
+
"logList": "_3j77BW_logList",
|
|
5500
5515
|
"foot": "_3j77BW_foot",
|
|
5501
|
-
"
|
|
5516
|
+
"catUpdate": "_3j77BW_catUpdate",
|
|
5517
|
+
"catDiagnostics": "_3j77BW_catDiagnostics",
|
|
5502
5518
|
"btn": "_3j77BW_btn",
|
|
5503
|
-
"
|
|
5504
|
-
"
|
|
5505
|
-
"
|
|
5506
|
-
"searchInput": "_3j77BW_searchInput",
|
|
5507
|
-
"catSystem": "_3j77BW_catSystem",
|
|
5508
|
-
"previewRow": "_3j77BW_previewRow",
|
|
5509
|
-
"filterChip": "_3j77BW_filterChip",
|
|
5510
|
-
"badge": "_3j77BW_badge",
|
|
5511
|
-
"catSettings": "_3j77BW_catSettings",
|
|
5512
|
-
"empty": "_3j77BW_empty"
|
|
5519
|
+
"badgeError": "_3j77BW_badgeError",
|
|
5520
|
+
"badgeInfo": "_3j77BW_badgeInfo",
|
|
5521
|
+
"badgeDebug": "_3j77BW_badgeDebug"
|
|
5513
5522
|
};
|
|
5514
5523
|
//#endregion
|
|
5515
5524
|
//#region src/client/components/modals/LogsModal.tsx
|
|
@@ -6147,6 +6156,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6147
6156
|
onConsumedOpenSection?.();
|
|
6148
6157
|
}, [openSection, onConsumedOpenSection]);
|
|
6149
6158
|
const [proxyProbe, setProxyProbe] = (0, react.useState)("idle");
|
|
6159
|
+
const [proxyProbeReason, setProxyProbeReason] = (0, react.useState)(null);
|
|
6150
6160
|
const proxyProbeTimer = (0, react.useRef)(null);
|
|
6151
6161
|
const proxyProbeSeq = (0, react.useRef)(0);
|
|
6152
6162
|
(0, react.useEffect)(() => () => {
|
|
@@ -6154,16 +6164,21 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6154
6164
|
proxyProbeSeq.current += 1;
|
|
6155
6165
|
}, []);
|
|
6156
6166
|
(0, react.useEffect)(() => {
|
|
6157
|
-
if (settings.proxy === "")
|
|
6167
|
+
if (settings.proxy === "") {
|
|
6168
|
+
setProxyProbe("idle");
|
|
6169
|
+
setProxyProbeReason(null);
|
|
6170
|
+
}
|
|
6158
6171
|
}, [settings.proxy]);
|
|
6159
6172
|
const probeProxyNow = (value) => {
|
|
6160
6173
|
const v = value.trim();
|
|
6161
6174
|
if (v === "") {
|
|
6162
6175
|
setProxyProbe("idle");
|
|
6176
|
+
setProxyProbeReason(null);
|
|
6163
6177
|
return;
|
|
6164
6178
|
}
|
|
6165
6179
|
const seq = ++proxyProbeSeq.current;
|
|
6166
6180
|
setProxyProbe("checking");
|
|
6181
|
+
setProxyProbeReason(null);
|
|
6167
6182
|
fetch("/dsh-plugin-hub/proxy-check", {
|
|
6168
6183
|
method: "POST",
|
|
6169
6184
|
headers: { "content-type": "application/json" },
|
|
@@ -6172,8 +6187,11 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6172
6187
|
}).then((res) => res.json()).then((data) => {
|
|
6173
6188
|
if (seq !== proxyProbeSeq.current) return;
|
|
6174
6189
|
setProxyProbe(data.ok ? "ok" : "fail");
|
|
6190
|
+
setProxyProbeReason(typeof data.reason === "string" ? data.reason : null);
|
|
6175
6191
|
}).catch(() => {
|
|
6176
|
-
if (seq
|
|
6192
|
+
if (seq !== proxyProbeSeq.current) return;
|
|
6193
|
+
setProxyProbe("fail");
|
|
6194
|
+
setProxyProbeReason(null);
|
|
6177
6195
|
});
|
|
6178
6196
|
};
|
|
6179
6197
|
const onProxyChange = (e) => {
|
|
@@ -6225,7 +6243,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6225
6243
|
placeholder: "http://127.0.0.1:7890",
|
|
6226
6244
|
spellCheck: false,
|
|
6227
6245
|
onChange: onProxyChange
|
|
6228
|
-
}), proxyProbe === "checking" ? (0, react.createElement)("div", { className: SettingsView_module_css_default.proxyHint }, t("proxyCheckChecking")) : proxyProbe === "ok" ? (0, react.createElement)("div", { className: `${SettingsView_module_css_default.proxyHint} ${SettingsView_module_css_default.proxyHintOk}` }, t("proxyCheckOk")) : proxyProbe === "fail" ? (0, react.createElement)("div", { className: `${SettingsView_module_css_default.proxyHint} ${SettingsView_module_css_default.proxyHintFail}` }, t("proxyCheckFail")) : null)
|
|
6246
|
+
}), proxyProbe === "checking" ? (0, react.createElement)("div", { className: SettingsView_module_css_default.proxyHint }, t("proxyCheckChecking")) : proxyProbe === "ok" ? (0, react.createElement)("div", { className: `${SettingsView_module_css_default.proxyHint} ${SettingsView_module_css_default.proxyHintOk}` }, t("proxyCheckOk")) : proxyProbe === "fail" ? (0, react.createElement)("div", { className: `${SettingsView_module_css_default.proxyHint} ${SettingsView_module_css_default.proxyHintFail}` }, proxyProbeReason === "tlsRevocation" ? t("proxyCheckRevocation") : t("proxyCheckFail")) : null)
|
|
6229
6247
|
}));
|
|
6230
6248
|
const securityCard = (0, react.createElement)("div", { className: SettingsView_module_css_default.card }, (0, react.createElement)(SettingRow, {
|
|
6231
6249
|
title: t("settingsEnableNpm"),
|
|
@@ -6749,7 +6767,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6749
6767
|
openSection: settingsSection,
|
|
6750
6768
|
onConsumedOpenSection: () => setSettingsSection(null)
|
|
6751
6769
|
}), showHubUpdate && (0, react.createElement)(HubUpdateModal, {
|
|
6752
|
-
info: catalog.hubUpdateInfo ?? { version: "1.4.
|
|
6770
|
+
info: catalog.hubUpdateInfo ?? { version: "1.4.8" },
|
|
6753
6771
|
lang,
|
|
6754
6772
|
t,
|
|
6755
6773
|
hasUpdate: catalog.hubHasUpdate,
|