dsh-plugin 1.4.13 → 1.4.14
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 +11 -11
- package/README.md +11 -11
- package/client/client.js +351 -309
- package/client/client.js.map +1 -1
- package/lib/http/routes.js +17 -10
- package/lib/services/install/npm-resolve.js +29 -13
- package/lib/services/install/preflight.js +5 -0
- package/lib/services/install/release-target.js +38 -0
- package/lib/services/profile/profile.js +6 -0
- package/lib/types/services/install/npm-resolve.d.ts +22 -0
- package/lib/types/services/install/release-target.d.ts +28 -0
- package/package.json +1 -1
- package/src/client/components/modals/AboutModal.tsx +18 -2
- package/src/client/components/modals/NotificationsModal.tsx +1 -2
- package/src/client/components/modals/modals.tsx +1 -2
- package/src/client/logic/failures.ts +10 -12
- package/src/client/logic/install-command.ts +18 -8
- package/src/server/http/routes.ts +17 -10
- package/src/server/services/install/npm-resolve.ts +41 -13
- package/src/server/services/install/preflight.ts +4 -0
- package/src/server/services/install/release-target.ts +46 -0
- package/src/server/services/profile/profile.ts +5 -0
package/client/client.js
CHANGED
|
@@ -702,42 +702,42 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
702
702
|
css: css$11
|
|
703
703
|
});
|
|
704
704
|
var Header_module_css_default = {
|
|
705
|
-
"header": "qikqja_header",
|
|
706
|
-
"adBanner": "qikqja_adBanner",
|
|
707
|
-
"copyIcon": "qikqja_copyIcon",
|
|
708
|
-
"adBadge": "qikqja_adBadge",
|
|
709
|
-
"langBtn": "qikqja_langBtn",
|
|
710
|
-
"adArrow": "qikqja_adArrow",
|
|
711
|
-
"sortGroup": "qikqja_sortGroup",
|
|
712
705
|
"tab": "qikqja_tab",
|
|
713
|
-
"
|
|
714
|
-
"segLabel": "qikqja_segLabel",
|
|
715
|
-
"version": "qikqja_version",
|
|
716
|
-
"segGroup": "qikqja_segGroup",
|
|
717
|
-
"logoIcon": "qikqja_logoIcon",
|
|
718
|
-
"aboutBtn": "qikqja_aboutBtn",
|
|
719
|
-
"segBtnActive": "qikqja_segBtnActive",
|
|
720
|
-
"resultSeg": "qikqja_resultSeg",
|
|
721
|
-
"githubIcon": "qikqja_githubIcon",
|
|
722
|
-
"headerTitleRow": "qikqja_headerTitleRow",
|
|
723
|
-
"githubLink": "qikqja_githubLink",
|
|
724
|
-
"search": "qikqja_search",
|
|
725
|
-
"controls": "qikqja_controls",
|
|
726
|
-
"hubUpdateBadge": "qikqja_hubUpdateBadge",
|
|
727
|
-
"headerRight": "qikqja_headerRight",
|
|
706
|
+
"taglineLink": "qikqja_taglineLink",
|
|
728
707
|
"tabCount": "qikqja_tabCount",
|
|
729
|
-
"
|
|
708
|
+
"search": "qikqja_search",
|
|
709
|
+
"sortGroup": "qikqja_sortGroup",
|
|
730
710
|
"versionBtn": "qikqja_versionBtn",
|
|
731
|
-
"
|
|
732
|
-
"brandTitle": "qikqja_brandTitle",
|
|
711
|
+
"githubIcon": "qikqja_githubIcon",
|
|
733
712
|
"tabs": "qikqja_tabs",
|
|
713
|
+
"adBadge": "qikqja_adBadge",
|
|
714
|
+
"tagline": "qikqja_tagline",
|
|
715
|
+
"hubUpdateBadge": "qikqja_hubUpdateBadge",
|
|
716
|
+
"adText": "qikqja_adText",
|
|
717
|
+
"headerRight": "qikqja_headerRight",
|
|
718
|
+
"aboutBtn": "qikqja_aboutBtn",
|
|
719
|
+
"title": "qikqja_title",
|
|
734
720
|
"resultCount": "qikqja_resultCount",
|
|
721
|
+
"segLabel": "qikqja_segLabel",
|
|
722
|
+
"copyIcon": "qikqja_copyIcon",
|
|
723
|
+
"headerTitleRow": "qikqja_headerTitleRow",
|
|
724
|
+
"resultSeg": "qikqja_resultSeg",
|
|
725
|
+
"logoIcon": "qikqja_logoIcon",
|
|
735
726
|
"tabActive": "qikqja_tabActive",
|
|
736
|
-
"
|
|
727
|
+
"brandTitle": "qikqja_brandTitle",
|
|
728
|
+
"segGroup": "qikqja_segGroup",
|
|
737
729
|
"segBtn": "qikqja_segBtn",
|
|
738
|
-
"
|
|
730
|
+
"adBanner": "qikqja_adBanner",
|
|
731
|
+
"langBtn": "qikqja_langBtn",
|
|
732
|
+
"adArrow": "qikqja_adArrow",
|
|
733
|
+
"root": "qikqja_root",
|
|
734
|
+
"controls": "qikqja_controls",
|
|
735
|
+
"version": "qikqja_version",
|
|
736
|
+
"segBtnActive": "qikqja_segBtnActive",
|
|
737
|
+
"header": "qikqja_header",
|
|
738
|
+
"githubLink": "qikqja_githubLink",
|
|
739
739
|
"searchRow": "qikqja_searchRow",
|
|
740
|
-
"
|
|
740
|
+
"tabsRow": "qikqja_tabsRow"
|
|
741
741
|
};
|
|
742
742
|
//#endregion
|
|
743
743
|
//#region \0dsh-css:src/client/styles/Modal.module.css.mjs
|
|
@@ -756,143 +756,169 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
756
756
|
css: css$10
|
|
757
757
|
});
|
|
758
758
|
var Modal_module_css_default = {
|
|
759
|
-
"
|
|
760
|
-
"
|
|
761
|
-
"
|
|
762
|
-
"
|
|
763
|
-
"
|
|
764
|
-
"
|
|
765
|
-
"
|
|
766
|
-
"
|
|
767
|
-
"
|
|
768
|
-
"
|
|
769
|
-
"
|
|
770
|
-
"failRepo": "BiQ1zG_failRepo",
|
|
771
|
-
"logModal": "BiQ1zG_logModal",
|
|
772
|
-
"errorTitle": "BiQ1zG_errorTitle",
|
|
773
|
-
"detailPathActions": "BiQ1zG_detailPathActions",
|
|
774
|
-
"failRow": "BiQ1zG_failRow",
|
|
775
|
-
"failNetworkTarget": "BiQ1zG_failNetworkTarget",
|
|
759
|
+
"restartLater": "BiQ1zG_restartLater",
|
|
760
|
+
"detailPathBtn": "BiQ1zG_detailPathBtn",
|
|
761
|
+
"queueRowDesc": "BiQ1zG_queueRowDesc",
|
|
762
|
+
"queueRowBody": "BiQ1zG_queueRowBody",
|
|
763
|
+
"detailDim": "BiQ1zG_detailDim",
|
|
764
|
+
"confirmPrimary": "BiQ1zG_confirmPrimary",
|
|
765
|
+
"modalCancel": "BiQ1zG_modalCancel",
|
|
766
|
+
"noticeFoot": "BiQ1zG_noticeFoot",
|
|
767
|
+
"noticeRemove": "BiQ1zG_noticeRemove",
|
|
768
|
+
"queueRowStatus": "BiQ1zG_queueRowStatus",
|
|
769
|
+
"noticeMain": "BiQ1zG_noticeMain",
|
|
776
770
|
"confirmIconWrap": "BiQ1zG_confirmIconWrap",
|
|
777
|
-
"
|
|
771
|
+
"toastIn": "BiQ1zG_toastIn",
|
|
772
|
+
"confirmIcon": "BiQ1zG_confirmIcon",
|
|
773
|
+
"modalTitle": "BiQ1zG_modalTitle",
|
|
774
|
+
"resultRestarting": "BiQ1zG_resultRestarting",
|
|
775
|
+
"pendingRowActions": "BiQ1zG_pendingRowActions",
|
|
776
|
+
"modalCloseIcon": "BiQ1zG_modalCloseIcon",
|
|
777
|
+
"modalClose": "BiQ1zG_modalClose",
|
|
778
778
|
"noticeList": "BiQ1zG_noticeList",
|
|
779
|
-
"progressFill": "BiQ1zG_progressFill",
|
|
780
|
-
"modalCmd": "BiQ1zG_modalCmd",
|
|
781
|
-
"modalLink": "BiQ1zG_modalLink",
|
|
782
779
|
"aboutContent": "BiQ1zG_aboutContent",
|
|
783
|
-
"
|
|
780
|
+
"noticeRow": "BiQ1zG_noticeRow",
|
|
784
781
|
"modalCmdText": "BiQ1zG_modalCmdText",
|
|
785
|
-
"
|
|
786
|
-
"failKind": "BiQ1zG_failKind",
|
|
787
|
-
"restartNowWarning": "BiQ1zG_restartNowWarning",
|
|
788
|
-
"modalRow": "BiQ1zG_modalRow",
|
|
789
|
-
"result": "BiQ1zG_result",
|
|
790
|
-
"helpModal": "BiQ1zG_helpModal",
|
|
791
|
-
"failHead": "BiQ1zG_failHead",
|
|
792
|
-
"detailStars": "BiQ1zG_detailStars",
|
|
793
|
-
"modalCloseIcon": "BiQ1zG_modalCloseIcon",
|
|
794
|
-
"queueRow": "BiQ1zG_queueRow",
|
|
795
|
-
"detailStatusRunning": "BiQ1zG_detailStatusRunning",
|
|
796
|
-
"queueRowStatus": "BiQ1zG_queueRowStatus",
|
|
797
|
-
"errorBox": "BiQ1zG_errorBox",
|
|
798
|
-
"failKindUninstall": "BiQ1zG_failKindUninstall",
|
|
799
|
-
"toast": "BiQ1zG_toast",
|
|
800
|
-
"queuedHint": "BiQ1zG_queuedHint",
|
|
801
|
-
"modalActions": "BiQ1zG_modalActions",
|
|
802
|
-
"progressFillFail": "BiQ1zG_progressFillFail",
|
|
803
|
-
"queueRowHead": "BiQ1zG_queueRowHead",
|
|
804
|
-
"overlayIn": "BiQ1zG_overlayIn",
|
|
805
|
-
"aboutMeta": "BiQ1zG_aboutMeta",
|
|
806
|
-
"detailPathText": "BiQ1zG_detailPathText",
|
|
807
|
-
"detailValue": "BiQ1zG_detailValue",
|
|
808
|
-
"errorModal": "BiQ1zG_errorModal",
|
|
809
|
-
"modalTitleQueued": "BiQ1zG_modalTitleQueued",
|
|
782
|
+
"dangerConfirm": "BiQ1zG_dangerConfirm",
|
|
810
783
|
"hubUpdateMetaItem": "BiQ1zG_hubUpdateMetaItem",
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"errorHint": "BiQ1zG_errorHint",
|
|
814
|
-
"failCopy": "BiQ1zG_failCopy",
|
|
815
|
-
"failDiagBtn": "BiQ1zG_failDiagBtn",
|
|
816
|
-
"noticeTextFail": "BiQ1zG_noticeTextFail",
|
|
817
|
-
"linkIcon": "BiQ1zG_linkIcon",
|
|
818
|
-
"stripCancel": "BiQ1zG_stripCancel",
|
|
819
|
-
"modalLabel": "BiQ1zG_modalLabel",
|
|
820
|
-
"noticeRowOk": "BiQ1zG_noticeRowOk",
|
|
821
|
-
"queueRowBody": "BiQ1zG_queueRowBody",
|
|
822
|
-
"pendingRowActions": "BiQ1zG_pendingRowActions",
|
|
823
|
-
"uninstallConfirm": "BiQ1zG_uninstallConfirm",
|
|
824
|
-
"noticeHead": "BiQ1zG_noticeHead",
|
|
784
|
+
"detailArrow": "BiQ1zG_detailArrow",
|
|
785
|
+
"noticeIgnore": "BiQ1zG_noticeIgnore",
|
|
825
786
|
"failBigIssue": "BiQ1zG_failBigIssue",
|
|
826
|
-
"modalCmdCopy": "BiQ1zG_modalCmdCopy",
|
|
827
|
-
"detailUpdateHint": "BiQ1zG_detailUpdateHint",
|
|
828
|
-
"noticeTextOk": "BiQ1zG_noticeTextOk",
|
|
829
|
-
"overlay": "BiQ1zG_overlay",
|
|
830
|
-
"trustHint": "BiQ1zG_trustHint",
|
|
831
|
-
"progressTrack": "BiQ1zG_progressTrack",
|
|
832
|
-
"queueSection": "BiQ1zG_queueSection",
|
|
833
|
-
"noticeMain": "BiQ1zG_noticeMain",
|
|
834
787
|
"restartNow": "BiQ1zG_restartNow",
|
|
835
|
-
"
|
|
836
|
-
"modalTitle": "BiQ1zG_modalTitle",
|
|
837
|
-
"modalCancel": "BiQ1zG_modalCancel",
|
|
838
|
-
"noticeBadgeOk": "BiQ1zG_noticeBadgeOk",
|
|
839
|
-
"detailGrid": "BiQ1zG_detailGrid",
|
|
840
|
-
"confirmIconDanger": "BiQ1zG_confirmIconDanger",
|
|
788
|
+
"modalActions": "BiQ1zG_modalActions",
|
|
841
789
|
"detailLink": "BiQ1zG_detailLink",
|
|
842
|
-
"
|
|
843
|
-
"
|
|
844
|
-
"
|
|
845
|
-
"
|
|
790
|
+
"queueSectionTitle": "BiQ1zG_queueSectionTitle",
|
|
791
|
+
"stripCancel": "BiQ1zG_stripCancel",
|
|
792
|
+
"result": "BiQ1zG_result",
|
|
793
|
+
"detailPath": "BiQ1zG_detailPath",
|
|
794
|
+
"noticeRowMain": "BiQ1zG_noticeRowMain",
|
|
795
|
+
"failNetworkTarget": "BiQ1zG_failNetworkTarget",
|
|
796
|
+
"progress": "BiQ1zG_progress",
|
|
797
|
+
"failList": "BiQ1zG_failList",
|
|
798
|
+
"noticeVersion": "BiQ1zG_noticeVersion",
|
|
799
|
+
"detailStatusRunning": "BiQ1zG_detailStatusRunning",
|
|
800
|
+
"detailStatusPending": "BiQ1zG_detailStatusPending",
|
|
801
|
+
"resultDesc": "BiQ1zG_resultDesc",
|
|
802
|
+
"uninstallConfirm": "BiQ1zG_uninstallConfirm",
|
|
803
|
+
"resultCheckIcon": "BiQ1zG_resultCheckIcon",
|
|
846
804
|
"queueRowPct": "BiQ1zG_queueRowPct",
|
|
847
|
-
"
|
|
805
|
+
"detailModal": "BiQ1zG_detailModal",
|
|
806
|
+
"queueRow": "BiQ1zG_queueRow",
|
|
807
|
+
"hubUpdateModal": "BiQ1zG_hubUpdateModal",
|
|
808
|
+
"failedCopyHint": "BiQ1zG_failedCopyHint",
|
|
809
|
+
"failClear": "BiQ1zG_failClear",
|
|
810
|
+
"failEmpty": "BiQ1zG_failEmpty",
|
|
848
811
|
"modalBody": "BiQ1zG_modalBody",
|
|
812
|
+
"failKind": "BiQ1zG_failKind",
|
|
813
|
+
"noticeTime": "BiQ1zG_noticeTime",
|
|
814
|
+
"progressHead": "BiQ1zG_progressHead",
|
|
815
|
+
"noticeBadgeIcon": "BiQ1zG_noticeBadgeIcon",
|
|
816
|
+
"queueSection": "BiQ1zG_queueSection",
|
|
817
|
+
"progressFill": "BiQ1zG_progressFill",
|
|
818
|
+
"detailLabel": "BiQ1zG_detailLabel",
|
|
849
819
|
"errorCopySoft": "BiQ1zG_errorCopySoft",
|
|
820
|
+
"progressTrack": "BiQ1zG_progressTrack",
|
|
821
|
+
"noticeUpdateGo": "BiQ1zG_noticeUpdateGo",
|
|
822
|
+
"resultCheck": "BiQ1zG_resultCheck",
|
|
823
|
+
"modalTitleQueued": "BiQ1zG_modalTitleQueued",
|
|
824
|
+
"toastFail": "BiQ1zG_toastFail",
|
|
825
|
+
"modalCopy": "BiQ1zG_modalCopy",
|
|
826
|
+
"detailPathActions": "BiQ1zG_detailPathActions",
|
|
827
|
+
"modalHead": "BiQ1zG_modalHead",
|
|
828
|
+
"failRepo": "BiQ1zG_failRepo",
|
|
829
|
+
"queuedHint": "BiQ1zG_queuedHint",
|
|
830
|
+
"noticeBadgeOk": "BiQ1zG_noticeBadgeOk",
|
|
831
|
+
"detailPathText": "BiQ1zG_detailPathText",
|
|
832
|
+
"overlayIn": "BiQ1zG_overlayIn",
|
|
850
833
|
"noticeBadgeFail": "BiQ1zG_noticeBadgeFail",
|
|
851
|
-
"
|
|
852
|
-
"
|
|
834
|
+
"failDiagBtn": "BiQ1zG_failDiagBtn",
|
|
835
|
+
"cliOnlyHint": "BiQ1zG_cliOnlyHint",
|
|
836
|
+
"modalDesc": "BiQ1zG_modalDesc",
|
|
837
|
+
"detailGrid": "BiQ1zG_detailGrid",
|
|
838
|
+
"failPrepareHint": "BiQ1zG_failPrepareHint",
|
|
839
|
+
"failHead": "BiQ1zG_failHead",
|
|
840
|
+
"failKindInstall": "BiQ1zG_failKindInstall",
|
|
841
|
+
"progressFillFail": "BiQ1zG_progressFillFail",
|
|
842
|
+
"failCopy": "BiQ1zG_failCopy",
|
|
843
|
+
"queueRowTarget": "BiQ1zG_queueRowTarget",
|
|
853
844
|
"detailStatusText": "BiQ1zG_detailStatusText",
|
|
854
|
-
"
|
|
855
|
-
"
|
|
856
|
-
"
|
|
857
|
-
"
|
|
858
|
-
"
|
|
859
|
-
"
|
|
860
|
-
"
|
|
861
|
-
"
|
|
862
|
-
"
|
|
845
|
+
"helpModal": "BiQ1zG_helpModal",
|
|
846
|
+
"queueRowTrack": "BiQ1zG_queueRowTrack",
|
|
847
|
+
"noticeHead": "BiQ1zG_noticeHead",
|
|
848
|
+
"pendingRowStatus": "BiQ1zG_pendingRowStatus",
|
|
849
|
+
"failKindUninstall": "BiQ1zG_failKindUninstall",
|
|
850
|
+
"errorBox": "BiQ1zG_errorBox",
|
|
851
|
+
"restartNowWarning": "BiQ1zG_restartNowWarning",
|
|
852
|
+
"queueRowHead": "BiQ1zG_queueRowHead",
|
|
853
|
+
"noticeTextFail": "BiQ1zG_noticeTextFail",
|
|
854
|
+
"detailUpdateHint": "BiQ1zG_detailUpdateHint",
|
|
855
|
+
"modalCmdCopy": "BiQ1zG_modalCmdCopy",
|
|
856
|
+
"noticeRowOk": "BiQ1zG_noticeRowOk",
|
|
857
|
+
"aboutMeta": "BiQ1zG_aboutMeta",
|
|
858
|
+
"detailValue": "BiQ1zG_detailValue",
|
|
859
|
+
"modalLink": "BiQ1zG_modalLink",
|
|
860
|
+
"detailMono": "BiQ1zG_detailMono",
|
|
861
|
+
"modalRow": "BiQ1zG_modalRow",
|
|
863
862
|
"hubUpdateNotes": "BiQ1zG_hubUpdateNotes",
|
|
864
|
-
"
|
|
865
|
-
"modalWide": "BiQ1zG_modalWide",
|
|
863
|
+
"modalIn": "BiQ1zG_modalIn",
|
|
866
864
|
"modalInstall": "BiQ1zG_modalInstall",
|
|
865
|
+
"toast": "BiQ1zG_toast",
|
|
866
|
+
"errorHint": "BiQ1zG_errorHint",
|
|
867
|
+
"modalLabel": "BiQ1zG_modalLabel",
|
|
868
|
+
"trustHint": "BiQ1zG_trustHint",
|
|
869
|
+
"logModal": "BiQ1zG_logModal",
|
|
867
870
|
"aboutModal": "BiQ1zG_aboutModal",
|
|
868
|
-
"
|
|
871
|
+
"linkIcon": "BiQ1zG_linkIcon",
|
|
872
|
+
"noticeTextOk": "BiQ1zG_noticeTextOk",
|
|
873
|
+
"errorModal": "BiQ1zG_errorModal",
|
|
874
|
+
"modalWide": "BiQ1zG_modalWide",
|
|
869
875
|
"modalValue": "BiQ1zG_modalValue",
|
|
876
|
+
"failRow": "BiQ1zG_failRow",
|
|
877
|
+
"resultTitle": "BiQ1zG_resultTitle",
|
|
878
|
+
"overlay": "BiQ1zG_overlay",
|
|
879
|
+
"errorTitle": "BiQ1zG_errorTitle",
|
|
880
|
+
"hubUpdateMeta": "BiQ1zG_hubUpdateMeta",
|
|
870
881
|
"detailRow": "BiQ1zG_detailRow",
|
|
871
|
-
"
|
|
872
|
-
"
|
|
873
|
-
"
|
|
874
|
-
"
|
|
875
|
-
"
|
|
876
|
-
"
|
|
877
|
-
"
|
|
878
|
-
"progress": "BiQ1zG_progress",
|
|
879
|
-
"detailPath": "BiQ1zG_detailPath",
|
|
880
|
-
"cliOnlyHint": "BiQ1zG_cliOnlyHint",
|
|
881
|
-
"noticeRowMain": "BiQ1zG_noticeRowMain",
|
|
882
|
-
"resultRestarting": "BiQ1zG_resultRestarting",
|
|
883
|
-
"resultCheckIcon": "BiQ1zG_resultCheckIcon",
|
|
884
|
-
"queueRowTrack": "BiQ1zG_queueRowTrack",
|
|
885
|
-
"dangerConfirm": "BiQ1zG_dangerConfirm",
|
|
886
|
-
"noticeUpdateGo": "BiQ1zG_noticeUpdateGo",
|
|
887
|
-
"noticeIgnore": "BiQ1zG_noticeIgnore",
|
|
888
|
-
"failClear": "BiQ1zG_failClear"
|
|
882
|
+
"modalCmd": "BiQ1zG_modalCmd",
|
|
883
|
+
"progressText": "BiQ1zG_progressText",
|
|
884
|
+
"modalTitleBusy": "BiQ1zG_modalTitleBusy",
|
|
885
|
+
"detailStars": "BiQ1zG_detailStars",
|
|
886
|
+
"confirmIconDanger": "BiQ1zG_confirmIconDanger",
|
|
887
|
+
"noticeRowUpdate": "BiQ1zG_noticeRowUpdate",
|
|
888
|
+
"modal": "BiQ1zG_modal"
|
|
889
889
|
};
|
|
890
890
|
//#endregion
|
|
891
|
+
//#region src/server/services/install/release-target.ts
|
|
892
|
+
/** 目录权威命令:`dsh plugin --profile <p> add|update <target>`(与 profile.ts installTargetOf 同口径)。 */
|
|
893
|
+
const DSH_PLUGIN_CMD_RE$1 = /^dsh[ \t]+plugin[ \t]+--profile(?:[ \t]+|=)[A-Za-z0-9_-]+[ \t]+(?:add|update)[ \t]+(.+)$/i;
|
|
894
|
+
/** 固定形态的 release .tgz 直链:主机、路径段与扩展名全部锁死。 */
|
|
895
|
+
const RELEASE_URL_RE = /^https:\/\/github\.com\/([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+)\/releases\/download\/([A-Za-z0-9._+-]+)\/([A-Za-z0-9._+-]+\.tgz)$/;
|
|
896
|
+
/**
|
|
897
|
+
* 解析一个 release 安装目标。
|
|
898
|
+
* @param value - 目录命令(`dsh plugin --profile web add <url>`)或裸直链。
|
|
899
|
+
* @returns 命中返回 `{ target, repo }`,否则 null。
|
|
900
|
+
*/
|
|
901
|
+
function githubReleaseTarget(value) {
|
|
902
|
+
const input = typeof value === "string" ? value.trim() : "";
|
|
903
|
+
if (input === "") return null;
|
|
904
|
+
const command = DSH_PLUGIN_CMD_RE$1.exec(input);
|
|
905
|
+
const raw = command !== null ? command[1].trim() : input;
|
|
906
|
+
const match = RELEASE_URL_RE.exec(raw);
|
|
907
|
+
if (match === null) return null;
|
|
908
|
+
if (match.slice(1).some((part) => part === "." || part === "..")) return null;
|
|
909
|
+
return {
|
|
910
|
+
target: raw,
|
|
911
|
+
repo: `${match[1]}/${match[2]}`
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
//#endregion
|
|
891
915
|
//#region src/client/logic/install-command.ts
|
|
892
916
|
/**
|
|
893
917
|
* 安装通道决策(用户无感知):目录探测到 npm 包名 → 用 npm 包名安装
|
|
894
|
-
* (走 npm registry tarball,更快、与 GitHub
|
|
895
|
-
*
|
|
918
|
+
* (走 npm registry tarball,更快、与 GitHub 网络无关);其次用「同仓库」的权威
|
|
919
|
+
* release 包直链(仓库 HEAD 往往是 monorepo 根、装不上,release .tgz 才是完整产物);
|
|
920
|
+
* 都没有 → git 直装。
|
|
921
|
+
* 返回值 target 即传给后端 /install 的安装目标(npm 包名 / release URL / owner/repo)。
|
|
896
922
|
*/
|
|
897
923
|
function installTargetOf(p) {
|
|
898
924
|
const pkg = (p.source?.npmPackage ?? "").trim();
|
|
@@ -901,6 +927,11 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
901
927
|
target: pkg,
|
|
902
928
|
via: "npm"
|
|
903
929
|
};
|
|
930
|
+
const release = githubReleaseTarget(p.install?.githubCommand ?? "");
|
|
931
|
+
if (release !== null && repo !== "" && release.repo.toLowerCase() === repo.toLowerCase()) return {
|
|
932
|
+
target: release.target,
|
|
933
|
+
via: "release"
|
|
934
|
+
};
|
|
904
935
|
return {
|
|
905
936
|
target: repo,
|
|
906
937
|
via: "github"
|
|
@@ -918,7 +949,9 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
918
949
|
const cmd = p.install?.githubCommand;
|
|
919
950
|
if (cmd) return cmd;
|
|
920
951
|
}
|
|
921
|
-
|
|
952
|
+
const prefix = `dsh plugin${withProfile ? " --profile web" : ""} add `;
|
|
953
|
+
if (via === "npm" || via === "release") return `${prefix}${target}`;
|
|
954
|
+
return `${prefix}git+https://github.com/${target}.git`;
|
|
922
955
|
}
|
|
923
956
|
/** Normalize a task/install target to its owner/repo display identity. */
|
|
924
957
|
function repoFromInstallTarget(value) {
|
|
@@ -955,7 +988,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
955
988
|
* tsdown 构建时用 define 把 __PLUGIN_VERSION__ 替换成 package.json 的版本号;
|
|
956
989
|
* node --test 直接 import 本模块时该标识符不存在,typeof 守卫兜底为空串。
|
|
957
990
|
*/
|
|
958
|
-
const PLUGIN_VERSION = "1.4.
|
|
991
|
+
const PLUGIN_VERSION = "1.4.14";
|
|
959
992
|
const CATEGORY_ORDER = [
|
|
960
993
|
"interface",
|
|
961
994
|
"session",
|
|
@@ -1592,7 +1625,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
1592
1625
|
*/
|
|
1593
1626
|
const hubHasUpdate = (() => {
|
|
1594
1627
|
if (!hubUpdateInfo) return false;
|
|
1595
|
-
if (hubUpdateInfo.version === "1.4.
|
|
1628
|
+
if (hubUpdateInfo.version === "1.4.14") return false;
|
|
1596
1629
|
const publishedAt = hubUpdateInfo.publishedAt;
|
|
1597
1630
|
if (publishedAt) {
|
|
1598
1631
|
const publishedMs = Date.parse(publishedAt);
|
|
@@ -1917,15 +1950,14 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
1917
1950
|
return out.length > maxChars ? `${out.slice(0, maxChars)}\n… (truncated)` : out;
|
|
1918
1951
|
}
|
|
1919
1952
|
/** 提取首个错误代码(如 ERR_PNPM_PREPARE_PACKAGE),无则 null。
|
|
1920
|
-
* 代码里可能含数字(ERR_PNPM_FETCH_404 / ERR_PNPM_EBADPLATFORM_
|
|
1921
|
-
*
|
|
1953
|
+
* 代码里可能含数字(ERR_PNPM_FETCH_404 / ERR_PNPM_EBADPLATFORM_...),字符类需带上 0-9,
|
|
1954
|
+
* 否则会被截断成 `ERR_PNPM_FETCH_`。 */
|
|
1922
1955
|
function coreErrorCode(message) {
|
|
1923
1956
|
const m = message.match(/\[?ERR_[A-Z0-9_]+\]?/);
|
|
1924
1957
|
return m ? m[0].replace(/^\[|\]$/g, "") : null;
|
|
1925
1958
|
}
|
|
1926
1959
|
/** 提取「registry 上不存在的包名」:从 404 行(`ERR_PNPM_FETCH_404 GET <registry>/<pkg>: Not Found - 404`)
|
|
1927
|
-
* 里取请求路径中的包名(含 scope,如 `@scope/name`);非 404 或提取不到返回 null。
|
|
1928
|
-
* 调用方据此在提示里点名具体是哪个依赖缺失 —— 光说「有个包 404 了」用户无从下手。 */
|
|
1960
|
+
* 里取请求路径中的包名(含 scope,如 `@scope/name`);非 404 或提取不到返回 null。 */
|
|
1929
1961
|
function missingRegistryPackageOf(message) {
|
|
1930
1962
|
for (const line of message.split(/\r?\n/)) {
|
|
1931
1963
|
if (!/ERR_PNPM_FETCH_404|404/.test(line)) continue;
|
|
@@ -3594,9 +3626,19 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
3594
3626
|
* 客户端按接口返回渲染,不内置固定文案。
|
|
3595
3627
|
* 图片(反馈群二维码)经 renderMarkdown 的  语法嵌入,居中、最大高度受控。
|
|
3596
3628
|
*/
|
|
3629
|
+
/**
|
|
3630
|
+
* 反馈群二维码 URL 恒定(每次换码都是同名覆盖,文件名不变),浏览器 / CDN 会按
|
|
3631
|
+
* URL 缓存旧图。这里在渲染前给二维码 URL 实时拼一个新的时间戳,强制每次打开
|
|
3632
|
+
* 「关注我们」都回源拉取最新图片,无需重新构建 / 部署接口中心。
|
|
3633
|
+
* 匹配规则与 renderMarkdown 的二维码识别保持一致(dsh-plugin-user-group-qr 前缀)。
|
|
3634
|
+
*/
|
|
3635
|
+
function bustQrCache(md, ts) {
|
|
3636
|
+
return md.replace(/(!\[[^\]]*\]\()([^)\s]*dsh-plugin-user-group-qr[^)\s]*)/g, (_m, pre, url) => `${pre}${String(url).split("?")[0]}?v=${ts}`);
|
|
3637
|
+
}
|
|
3597
3638
|
function AboutModal({ info, lang, t, onClose }) {
|
|
3598
3639
|
const contentRaw = info ? typeof info.content === "string" ? info.content : info.content && typeof info.content === "object" ? lang === "en" ? info.content.en ?? info.content.zh ?? "" : info.content.zh ?? info.content.en ?? "" : "" : "";
|
|
3599
|
-
const
|
|
3640
|
+
const qrTs = (0, react.useMemo)(() => Date.now(), []);
|
|
3641
|
+
const contentHtml = contentRaw.trim() ? renderMarkdown(bustQrCache(contentRaw, qrTs)) : null;
|
|
3600
3642
|
let updated = null;
|
|
3601
3643
|
if (info?.updatedAt) {
|
|
3602
3644
|
const d = new Date(info.updatedAt);
|
|
@@ -4196,40 +4238,40 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4196
4238
|
css: css$9
|
|
4197
4239
|
});
|
|
4198
4240
|
var List_module_css_default = {
|
|
4199
|
-
"card": "_3XaZHa_card",
|
|
4200
|
-
"actions": "_3XaZHa_actions",
|
|
4201
|
-
"stats": "_3XaZHa_stats",
|
|
4202
|
-
"categoryBadge": "_3XaZHa_categoryBadge",
|
|
4203
|
-
"body": "_3XaZHa_body",
|
|
4204
|
-
"list": "_3XaZHa_list",
|
|
4205
|
-
"topic": "_3XaZHa_topic",
|
|
4206
|
-
"cardTitle": "_3XaZHa_cardTitle",
|
|
4207
|
-
"date": "_3XaZHa_date",
|
|
4208
|
-
"detailBtn": "_3XaZHa_detailBtn",
|
|
4209
|
-
"stateDesc": "_3XaZHa_stateDesc",
|
|
4210
|
-
"footLink": "_3XaZHa_footLink",
|
|
4211
|
-
"verified": "_3XaZHa_verified",
|
|
4212
4241
|
"moreSentinel": "_3XaZHa_moreSentinel",
|
|
4213
|
-
"
|
|
4214
|
-
"
|
|
4215
|
-
"star": "_3XaZHa_star",
|
|
4216
|
-
"stateActions": "_3XaZHa_stateActions",
|
|
4242
|
+
"uninstallBtn": "_3XaZHa_uninstallBtn",
|
|
4243
|
+
"topic": "_3XaZHa_topic",
|
|
4217
4244
|
"diagBtn": "_3XaZHa_diagBtn",
|
|
4218
4245
|
"installBtnCopied": "_3XaZHa_installBtnCopied",
|
|
4219
|
-
"cardMain": "_3XaZHa_cardMain",
|
|
4220
|
-
"topics": "_3XaZHa_topics",
|
|
4221
4246
|
"installBtnUpdate": "_3XaZHa_installBtnUpdate",
|
|
4222
|
-
"
|
|
4223
|
-
"
|
|
4224
|
-
"
|
|
4247
|
+
"detailBtn": "_3XaZHa_detailBtn",
|
|
4248
|
+
"cardHead": "_3XaZHa_cardHead",
|
|
4249
|
+
"stateTitle": "_3XaZHa_stateTitle",
|
|
4250
|
+
"updateBadge": "_3XaZHa_updateBadge",
|
|
4251
|
+
"stateDesc": "_3XaZHa_stateDesc",
|
|
4252
|
+
"cardMain": "_3XaZHa_cardMain",
|
|
4225
4253
|
"fork": "_3XaZHa_fork",
|
|
4254
|
+
"categoryBadge": "_3XaZHa_categoryBadge",
|
|
4255
|
+
"state": "_3XaZHa_state",
|
|
4256
|
+
"stateActions": "_3XaZHa_stateActions",
|
|
4257
|
+
"footer": "_3XaZHa_footer",
|
|
4258
|
+
"footLink": "_3XaZHa_footLink",
|
|
4226
4259
|
"retryBtn": "_3XaZHa_retryBtn",
|
|
4260
|
+
"cardTitle": "_3XaZHa_cardTitle",
|
|
4261
|
+
"actions": "_3XaZHa_actions",
|
|
4262
|
+
"stats": "_3XaZHa_stats",
|
|
4263
|
+
"list": "_3XaZHa_list",
|
|
4264
|
+
"star": "_3XaZHa_star",
|
|
4265
|
+
"verified": "_3XaZHa_verified",
|
|
4266
|
+
"card": "_3XaZHa_card",
|
|
4267
|
+
"cardSide": "_3XaZHa_cardSide",
|
|
4268
|
+
"body": "_3XaZHa_body",
|
|
4269
|
+
"versionBadge": "_3XaZHa_versionBadge",
|
|
4270
|
+
"installBtn": "_3XaZHa_installBtn",
|
|
4227
4271
|
"desc": "_3XaZHa_desc",
|
|
4272
|
+
"date": "_3XaZHa_date",
|
|
4228
4273
|
"installBtnInstalled": "_3XaZHa_installBtnInstalled",
|
|
4229
|
-
"
|
|
4230
|
-
"installBtn": "_3XaZHa_installBtn",
|
|
4231
|
-
"updateBadge": "_3XaZHa_updateBadge",
|
|
4232
|
-
"cardSide": "_3XaZHa_cardSide"
|
|
4274
|
+
"topics": "_3XaZHa_topics"
|
|
4233
4275
|
};
|
|
4234
4276
|
//#endregion
|
|
4235
4277
|
//#region src/client/hooks/useIncrementalList.ts
|
|
@@ -4436,15 +4478,15 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4436
4478
|
css: css$8
|
|
4437
4479
|
});
|
|
4438
4480
|
var SectionTabs_module_css_default = {
|
|
4481
|
+
"tab": "_7tvizq_tab",
|
|
4482
|
+
"noticeIcon": "_7tvizq_noticeIcon",
|
|
4439
4483
|
"root": "_7tvizq_root",
|
|
4440
4484
|
"tabCount": "_7tvizq_tabCount",
|
|
4441
|
-
"tab": "_7tvizq_tab",
|
|
4442
|
-
"tabActive": "_7tvizq_tabActive",
|
|
4443
|
-
"noticeCount": "_7tvizq_noticeCount",
|
|
4444
|
-
"tabCountActive": "_7tvizq_tabCountActive",
|
|
4445
4485
|
"noticeBtn": "_7tvizq_noticeBtn",
|
|
4446
|
-
"
|
|
4447
|
-
"
|
|
4486
|
+
"tabCountActive": "_7tvizq_tabCountActive",
|
|
4487
|
+
"noticeCount": "_7tvizq_noticeCount",
|
|
4488
|
+
"tabIcon": "_7tvizq_tabIcon",
|
|
4489
|
+
"tabActive": "_7tvizq_tabActive"
|
|
4448
4490
|
};
|
|
4449
4491
|
//#endregion
|
|
4450
4492
|
//#region src/client/components/layout/SectionTabs.tsx
|
|
@@ -4521,42 +4563,42 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4521
4563
|
css: css$7
|
|
4522
4564
|
});
|
|
4523
4565
|
var InstalledView_module_css_default = {
|
|
4524
|
-
"
|
|
4525
|
-
"
|
|
4566
|
+
"list": "_1nXeGW_list",
|
|
4567
|
+
"updateBadge": "_1nXeGW_updateBadge",
|
|
4568
|
+
"statusDot": "_1nXeGW_statusDot",
|
|
4569
|
+
"rowSourceTagHub": "_1nXeGW_rowSourceTagHub",
|
|
4526
4570
|
"rowMain": "_1nXeGW_rowMain",
|
|
4527
|
-
"rowUpdate": "_1nXeGW_rowUpdate",
|
|
4528
4571
|
"segBtn": "_1nXeGW_segBtn",
|
|
4529
|
-
"
|
|
4572
|
+
"rowMeta": "_1nXeGW_rowMeta",
|
|
4530
4573
|
"rowRestart": "_1nXeGW_rowRestart",
|
|
4531
|
-
"
|
|
4532
|
-
"
|
|
4533
|
-
"
|
|
4534
|
-
"
|
|
4574
|
+
"searchInput": "_1nXeGW_searchInput",
|
|
4575
|
+
"exampleRow": "_1nXeGW_exampleRow",
|
|
4576
|
+
"rowSourceTagManual": "_1nXeGW_rowSourceTagManual",
|
|
4577
|
+
"rowTitle": "_1nXeGW_rowTitle",
|
|
4578
|
+
"statusPending": "_1nXeGW_statusPending",
|
|
4579
|
+
"searchWrap": "_1nXeGW_searchWrap",
|
|
4580
|
+
"emptyDesc": "_1nXeGW_emptyDesc",
|
|
4581
|
+
"rowTitleLine": "_1nXeGW_rowTitleLine",
|
|
4582
|
+
"rowCategory": "_1nXeGW_rowCategory",
|
|
4535
4583
|
"rowDetail": "_1nXeGW_rowDetail",
|
|
4536
|
-
"
|
|
4584
|
+
"rowUninstall": "_1nXeGW_rowUninstall",
|
|
4537
4585
|
"segGroup": "_1nXeGW_segGroup",
|
|
4538
|
-
"rowDesc": "_1nXeGW_rowDesc",
|
|
4539
|
-
"list": "_1nXeGW_list",
|
|
4540
|
-
"rowTitleLine": "_1nXeGW_rowTitleLine",
|
|
4541
|
-
"root": "_1nXeGW_root",
|
|
4542
4586
|
"rowSourceTag": "_1nXeGW_rowSourceTag",
|
|
4543
|
-
"
|
|
4544
|
-
"
|
|
4545
|
-
"
|
|
4587
|
+
"statusInactive": "_1nXeGW_statusInactive",
|
|
4588
|
+
"rowUpdate": "_1nXeGW_rowUpdate",
|
|
4589
|
+
"rowActions": "_1nXeGW_rowActions",
|
|
4590
|
+
"rowDesc": "_1nXeGW_rowDesc",
|
|
4546
4591
|
"segLabel": "_1nXeGW_segLabel",
|
|
4547
|
-
"
|
|
4548
|
-
"emptyDesc": "_1nXeGW_emptyDesc",
|
|
4549
|
-
"statusDot": "_1nXeGW_statusDot",
|
|
4592
|
+
"segRow": "_1nXeGW_segRow",
|
|
4550
4593
|
"exampleBadge": "_1nXeGW_exampleBadge",
|
|
4551
|
-
"
|
|
4552
|
-
"
|
|
4553
|
-
"
|
|
4554
|
-
"
|
|
4555
|
-
"
|
|
4594
|
+
"rowRepo": "_1nXeGW_rowRepo",
|
|
4595
|
+
"root": "_1nXeGW_root",
|
|
4596
|
+
"segBtnActive": "_1nXeGW_segBtnActive",
|
|
4597
|
+
"empty": "_1nXeGW_empty",
|
|
4598
|
+
"emptyTitle": "_1nXeGW_emptyTitle",
|
|
4556
4599
|
"toolbar": "_1nXeGW_toolbar",
|
|
4557
|
-
"rowTitle": "_1nXeGW_rowTitle",
|
|
4558
4600
|
"versionBadge": "_1nXeGW_versionBadge",
|
|
4559
|
-
"
|
|
4601
|
+
"row": "_1nXeGW_row"
|
|
4560
4602
|
};
|
|
4561
4603
|
//#endregion
|
|
4562
4604
|
//#region src/client/components/views/InstalledView.tsx
|
|
@@ -4803,27 +4845,27 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4803
4845
|
});
|
|
4804
4846
|
var CustomInstallView_module_css_default = {
|
|
4805
4847
|
"helpCmd": "zISxCG_helpCmd",
|
|
4848
|
+
"installBtn": "zISxCG_installBtn",
|
|
4849
|
+
"helpNote": "zISxCG_helpNote",
|
|
4850
|
+
"installInput": "zISxCG_installInput",
|
|
4851
|
+
"installInputError": "zISxCG_installInputError",
|
|
4852
|
+
"helpBody": "zISxCG_helpBody",
|
|
4853
|
+
"installExample": "zISxCG_installExample",
|
|
4854
|
+
"desc": "zISxCG_desc",
|
|
4806
4855
|
"installRow": "zISxCG_installRow",
|
|
4807
|
-
"
|
|
4808
|
-
"
|
|
4809
|
-
"installCardDisabled": "zISxCG_installCardDisabled",
|
|
4856
|
+
"installLabel": "zISxCG_installLabel",
|
|
4857
|
+
"installHelpBtn": "zISxCG_installHelpBtn",
|
|
4810
4858
|
"root": "zISxCG_root",
|
|
4859
|
+
"channelOff": "zISxCG_channelOff",
|
|
4860
|
+
"channelOffText": "zISxCG_channelOffText",
|
|
4811
4861
|
"installCards": "zISxCG_installCards",
|
|
4862
|
+
"installCard": "zISxCG_installCard",
|
|
4812
4863
|
"installCardHead": "zISxCG_installCardHead",
|
|
4813
|
-
"
|
|
4814
|
-
"installHelpBtn": "zISxCG_installHelpBtn",
|
|
4864
|
+
"installInsertBtn": "zISxCG_installInsertBtn",
|
|
4815
4865
|
"channelOffBtn": "zISxCG_channelOffBtn",
|
|
4816
|
-
"installInputError": "zISxCG_installInputError",
|
|
4817
4866
|
"installError": "zISxCG_installError",
|
|
4818
|
-
"
|
|
4819
|
-
"
|
|
4820
|
-
"channelOff": "zISxCG_channelOff",
|
|
4821
|
-
"installInput": "zISxCG_installInput",
|
|
4822
|
-
"installLabel": "zISxCG_installLabel",
|
|
4823
|
-
"helpBody": "zISxCG_helpBody",
|
|
4824
|
-
"installExample": "zISxCG_installExample",
|
|
4825
|
-
"helpNote": "zISxCG_helpNote",
|
|
4826
|
-
"installBtn": "zISxCG_installBtn"
|
|
4867
|
+
"installCardDisabled": "zISxCG_installCardDisabled",
|
|
4868
|
+
"helpLine": "zISxCG_helpLine"
|
|
4827
4869
|
};
|
|
4828
4870
|
//#endregion
|
|
4829
4871
|
//#region src/client/components/views/CustomInstallView.tsx
|
|
@@ -5113,30 +5155,30 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5113
5155
|
css: css$5
|
|
5114
5156
|
});
|
|
5115
5157
|
var SettingsView_module_css_default = {
|
|
5116
|
-
"textInput": "_506LLG_textInput",
|
|
5117
|
-
"pageTitle": "_506LLG_pageTitle",
|
|
5118
|
-
"controlDropdown": "_506LLG_controlDropdown",
|
|
5119
|
-
"settingTitle": "_506LLG_settingTitle",
|
|
5120
|
-
"navIcon": "_506LLG_navIcon",
|
|
5121
|
-
"proxyHint": "_506LLG_proxyHint",
|
|
5122
|
-
"resetBtn": "_506LLG_resetBtn",
|
|
5123
5158
|
"navItemActive": "_506LLG_navItemActive",
|
|
5124
|
-
"
|
|
5125
|
-
"settingRow": "_506LLG_settingRow",
|
|
5126
|
-
"proxyHintOk": "_506LLG_proxyHintOk",
|
|
5127
|
-
"root": "_506LLG_root",
|
|
5128
|
-
"proxyControl": "_506LLG_proxyControl",
|
|
5129
|
-
"settingControlStack": "_506LLG_settingControlStack",
|
|
5159
|
+
"navIcon": "_506LLG_navIcon",
|
|
5130
5160
|
"navItem": "_506LLG_navItem",
|
|
5131
|
-
"proxyHintFail": "_506LLG_proxyHintFail",
|
|
5132
|
-
"pageDesc": "_506LLG_pageDesc",
|
|
5133
|
-
"pageHeader": "_506LLG_pageHeader",
|
|
5134
|
-
"card": "_506LLG_card",
|
|
5135
|
-
"settingDesc": "_506LLG_settingDesc",
|
|
5136
5161
|
"content": "_506LLG_content",
|
|
5137
5162
|
"settingControl": "_506LLG_settingControl",
|
|
5138
5163
|
"sidebar": "_506LLG_sidebar",
|
|
5139
|
-
"
|
|
5164
|
+
"proxyControl": "_506LLG_proxyControl",
|
|
5165
|
+
"settingTitle": "_506LLG_settingTitle",
|
|
5166
|
+
"textInput": "_506LLG_textInput",
|
|
5167
|
+
"proxyHintFail": "_506LLG_proxyHintFail",
|
|
5168
|
+
"root": "_506LLG_root",
|
|
5169
|
+
"settingRow": "_506LLG_settingRow",
|
|
5170
|
+
"settingRowStack": "_506LLG_settingRowStack",
|
|
5171
|
+
"pageDesc": "_506LLG_pageDesc",
|
|
5172
|
+
"settingDesc": "_506LLG_settingDesc",
|
|
5173
|
+
"settingControlStack": "_506LLG_settingControlStack",
|
|
5174
|
+
"controlDropdown": "_506LLG_controlDropdown",
|
|
5175
|
+
"proxyHintOk": "_506LLG_proxyHintOk",
|
|
5176
|
+
"card": "_506LLG_card",
|
|
5177
|
+
"settingLabel": "_506LLG_settingLabel",
|
|
5178
|
+
"proxyHint": "_506LLG_proxyHint",
|
|
5179
|
+
"pageTitle": "_506LLG_pageTitle",
|
|
5180
|
+
"pageHeader": "_506LLG_pageHeader",
|
|
5181
|
+
"resetBtn": "_506LLG_resetBtn"
|
|
5140
5182
|
};
|
|
5141
5183
|
//#endregion
|
|
5142
5184
|
//#region \0dsh-css:src/client/styles/Dropdown.module.css.mjs
|
|
@@ -5155,17 +5197,17 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5155
5197
|
css: css$4
|
|
5156
5198
|
});
|
|
5157
5199
|
var Dropdown_module_css_default = {
|
|
5200
|
+
"dropdownBtn": "B_Gxsq_dropdownBtn",
|
|
5201
|
+
"dropdownCount": "B_Gxsq_dropdownCount",
|
|
5202
|
+
"dropdownPanel": "B_Gxsq_dropdownPanel",
|
|
5158
5203
|
"dropdownArrowOpen": "B_Gxsq_dropdownArrowOpen",
|
|
5159
5204
|
"dropdownItemActive": "B_Gxsq_dropdownItemActive",
|
|
5160
|
-
"dropdownFill": "B_Gxsq_dropdownFill",
|
|
5161
|
-
"dropdownArrow": "B_Gxsq_dropdownArrow",
|
|
5162
|
-
"dropdownPanel": "B_Gxsq_dropdownPanel",
|
|
5163
|
-
"dropdownItem": "B_Gxsq_dropdownItem",
|
|
5164
|
-
"dropdownCount": "B_Gxsq_dropdownCount",
|
|
5165
5205
|
"dropdownItemLabel": "B_Gxsq_dropdownItemLabel",
|
|
5166
5206
|
"dropdownCountActive": "B_Gxsq_dropdownCountActive",
|
|
5167
|
-
"
|
|
5207
|
+
"dropdownItem": "B_Gxsq_dropdownItem",
|
|
5168
5208
|
"dropdownLabel": "B_Gxsq_dropdownLabel",
|
|
5209
|
+
"dropdownArrow": "B_Gxsq_dropdownArrow",
|
|
5210
|
+
"dropdownFill": "B_Gxsq_dropdownFill",
|
|
5169
5211
|
"dropdown": "B_Gxsq_dropdown"
|
|
5170
5212
|
};
|
|
5171
5213
|
//#endregion
|
|
@@ -5186,8 +5228,8 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5186
5228
|
});
|
|
5187
5229
|
var Toggle_module_css_default = {
|
|
5188
5230
|
"toggle": "k-cD4G_toggle",
|
|
5189
|
-
"
|
|
5190
|
-
"
|
|
5231
|
+
"toggleOn": "k-cD4G_toggleOn",
|
|
5232
|
+
"knob": "k-cD4G_knob"
|
|
5191
5233
|
};
|
|
5192
5234
|
//#endregion
|
|
5193
5235
|
//#region src/client/components/ui/Toggle.tsx
|
|
@@ -5287,29 +5329,29 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5287
5329
|
css: css$2
|
|
5288
5330
|
});
|
|
5289
5331
|
var DiagnosticsView_module_css_default = {
|
|
5290
|
-
"envLabel": "k9eRya_envLabel",
|
|
5291
|
-
"name": "k9eRya_name",
|
|
5292
|
-
"meta": "k9eRya_meta",
|
|
5293
|
-
"badge": "k9eRya_badge",
|
|
5294
|
-
"badgeIdle": "k9eRya_badgeIdle",
|
|
5295
5332
|
"head": "k9eRya_head",
|
|
5296
|
-
"
|
|
5297
|
-
"
|
|
5298
|
-
"
|
|
5299
|
-
"
|
|
5333
|
+
"display": "k9eRya_display",
|
|
5334
|
+
"badgeOk": "k9eRya_badgeOk",
|
|
5335
|
+
"row": "k9eRya_row",
|
|
5336
|
+
"envCopyBtn": "k9eRya_envCopyBtn",
|
|
5337
|
+
"envDesc": "k9eRya_envDesc",
|
|
5300
5338
|
"badgeFail": "k9eRya_badgeFail",
|
|
5301
|
-
"
|
|
5339
|
+
"badge": "k9eRya_badge",
|
|
5302
5340
|
"diagPulse": "k9eRya_diagPulse",
|
|
5303
|
-
"
|
|
5304
|
-
"
|
|
5305
|
-
"
|
|
5306
|
-
"badgeOk": "k9eRya_badgeOk",
|
|
5341
|
+
"badgeIdle": "k9eRya_badgeIdle",
|
|
5342
|
+
"runBtn": "k9eRya_runBtn",
|
|
5343
|
+
"panel": "k9eRya_panel",
|
|
5307
5344
|
"summary": "k9eRya_summary",
|
|
5308
|
-
"
|
|
5309
|
-
"
|
|
5345
|
+
"meta": "k9eRya_meta",
|
|
5346
|
+
"envLabel": "k9eRya_envLabel",
|
|
5347
|
+
"badgeRunning": "k9eRya_badgeRunning",
|
|
5310
5348
|
"summaryOk": "k9eRya_summaryOk",
|
|
5311
|
-
"
|
|
5312
|
-
"summaryRunning": "k9eRya_summaryRunning"
|
|
5349
|
+
"summaryFail": "k9eRya_summaryFail",
|
|
5350
|
+
"summaryRunning": "k9eRya_summaryRunning",
|
|
5351
|
+
"envTitle": "k9eRya_envTitle",
|
|
5352
|
+
"envRow": "k9eRya_envRow",
|
|
5353
|
+
"name": "k9eRya_name",
|
|
5354
|
+
"headHint": "k9eRya_headHint"
|
|
5313
5355
|
};
|
|
5314
5356
|
//#endregion
|
|
5315
5357
|
//#region src/client/components/views/DiagnosticsView.tsx
|
|
@@ -5487,57 +5529,57 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5487
5529
|
css: css$1
|
|
5488
5530
|
});
|
|
5489
5531
|
var LogsView_module_css_default = {
|
|
5490
|
-
"
|
|
5491
|
-
"
|
|
5492
|
-
"
|
|
5493
|
-
"pathDialogDesc": "_3j77BW_pathDialogDesc",
|
|
5494
|
-
"pathDialogRow": "_3j77BW_pathDialogRow",
|
|
5532
|
+
"moreEnd": "_3j77BW_moreEnd",
|
|
5533
|
+
"pathDialogHint": "_3j77BW_pathDialogHint",
|
|
5534
|
+
"entry": "_3j77BW_entry",
|
|
5495
5535
|
"pathDialog": "_3j77BW_pathDialog",
|
|
5496
|
-
"
|
|
5497
|
-
"headHint": "_3j77BW_headHint",
|
|
5498
|
-
"logList": "_3j77BW_logList",
|
|
5536
|
+
"catBadge": "_3j77BW_catBadge",
|
|
5499
5537
|
"pathText": "_3j77BW_pathText",
|
|
5500
5538
|
"footActions": "_3j77BW_footActions",
|
|
5501
|
-
"message": "_3j77BW_message",
|
|
5502
|
-
"badgeWarn": "_3j77BW_badgeWarn",
|
|
5503
|
-
"pathRow": "_3j77BW_pathRow",
|
|
5504
5539
|
"badgeInfo": "_3j77BW_badgeInfo",
|
|
5505
|
-
"
|
|
5506
|
-
"badgeDebug": "_3j77BW_badgeDebug",
|
|
5507
|
-
"linkBtn": "_3j77BW_linkBtn",
|
|
5508
|
-
"moreEnd": "_3j77BW_moreEnd",
|
|
5509
|
-
"pathDialogHint": "_3j77BW_pathDialogHint",
|
|
5510
|
-
"time": "_3j77BW_time",
|
|
5540
|
+
"catSettings": "_3j77BW_catSettings",
|
|
5511
5541
|
"filterChipActive": "_3j77BW_filterChipActive",
|
|
5512
|
-
"search": "_3j77BW_search",
|
|
5513
5542
|
"actions": "_3j77BW_actions",
|
|
5543
|
+
"logList": "_3j77BW_logList",
|
|
5544
|
+
"foot": "_3j77BW_foot",
|
|
5545
|
+
"badgeError": "_3j77BW_badgeError",
|
|
5546
|
+
"catSystem": "_3j77BW_catSystem",
|
|
5514
5547
|
"list": "_3j77BW_list",
|
|
5515
|
-
"
|
|
5516
|
-
"
|
|
5517
|
-
"
|
|
5518
|
-
"
|
|
5519
|
-
"
|
|
5548
|
+
"pathLabel": "_3j77BW_pathLabel",
|
|
5549
|
+
"pathDraft": "_3j77BW_pathDraft",
|
|
5550
|
+
"pathDialogReset": "_3j77BW_pathDialogReset",
|
|
5551
|
+
"previewRow": "_3j77BW_previewRow",
|
|
5552
|
+
"pathRow": "_3j77BW_pathRow",
|
|
5553
|
+
"btn": "_3j77BW_btn",
|
|
5554
|
+
"pathDialogFoot": "_3j77BW_pathDialogFoot",
|
|
5555
|
+
"footCount": "_3j77BW_footCount",
|
|
5520
5556
|
"catInstall": "_3j77BW_catInstall",
|
|
5521
|
-
"
|
|
5522
|
-
"
|
|
5523
|
-
"
|
|
5524
|
-
"
|
|
5525
|
-
"
|
|
5526
|
-
"
|
|
5557
|
+
"clearBtn": "_3j77BW_clearBtn",
|
|
5558
|
+
"message": "_3j77BW_message",
|
|
5559
|
+
"footPath": "_3j77BW_footPath",
|
|
5560
|
+
"badgeWarn": "_3j77BW_badgeWarn",
|
|
5561
|
+
"headHint": "_3j77BW_headHint",
|
|
5562
|
+
"footFail": "_3j77BW_footFail",
|
|
5563
|
+
"badge": "_3j77BW_badge",
|
|
5564
|
+
"pathDialogRow": "_3j77BW_pathDialogRow",
|
|
5527
5565
|
"catUpdate": "_3j77BW_catUpdate",
|
|
5528
|
-
"
|
|
5566
|
+
"panel": "_3j77BW_panel",
|
|
5567
|
+
"pathDialogDesc": "_3j77BW_pathDialogDesc",
|
|
5529
5568
|
"searchInput": "_3j77BW_searchInput",
|
|
5530
|
-
"
|
|
5531
|
-
"
|
|
5532
|
-
"
|
|
5533
|
-
"pathLabel": "_3j77BW_pathLabel",
|
|
5569
|
+
"head": "_3j77BW_head",
|
|
5570
|
+
"filterChip": "_3j77BW_filterChip",
|
|
5571
|
+
"search": "_3j77BW_search",
|
|
5534
5572
|
"catDiagnostics": "_3j77BW_catDiagnostics",
|
|
5535
|
-
"
|
|
5536
|
-
"
|
|
5537
|
-
"
|
|
5538
|
-
"
|
|
5539
|
-
"
|
|
5540
|
-
"
|
|
5573
|
+
"time": "_3j77BW_time",
|
|
5574
|
+
"linkBtn": "_3j77BW_linkBtn",
|
|
5575
|
+
"badgeSuccess": "_3j77BW_badgeSuccess",
|
|
5576
|
+
"more": "_3j77BW_more",
|
|
5577
|
+
"catUninstall": "_3j77BW_catUninstall",
|
|
5578
|
+
"event": "_3j77BW_event",
|
|
5579
|
+
"filterBar": "_3j77BW_filterBar",
|
|
5580
|
+
"headActions": "_3j77BW_headActions",
|
|
5581
|
+
"empty": "_3j77BW_empty",
|
|
5582
|
+
"badgeDebug": "_3j77BW_badgeDebug"
|
|
5541
5583
|
};
|
|
5542
5584
|
//#endregion
|
|
5543
5585
|
//#region src/client/components/modals/LogsModal.tsx
|
|
@@ -6786,7 +6828,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6786
6828
|
openSection: settingsSection,
|
|
6787
6829
|
onConsumedOpenSection: () => setSettingsSection(null)
|
|
6788
6830
|
}), showHubUpdate && (0, react.createElement)(HubUpdateModal, {
|
|
6789
|
-
info: catalog.hubUpdateInfo ?? { version: "1.4.
|
|
6831
|
+
info: catalog.hubUpdateInfo ?? { version: "1.4.14" },
|
|
6790
6832
|
lang,
|
|
6791
6833
|
t,
|
|
6792
6834
|
hasUpdate: catalog.hubHasUpdate,
|