dsh-config-manager 0.1.52 → 0.1.53
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/lib/client.js +123 -130
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/client/market/MyConfigsView.tsx +15 -13
- package/src/index.ts +1 -1
package/lib/client.js
CHANGED
|
@@ -3073,130 +3073,130 @@ if (typeof document !== "undefined" && document.querySelector("style[data-tag=\"
|
|
|
3073
3073
|
document.head.appendChild(tag);
|
|
3074
3074
|
}
|
|
3075
3075
|
var config_manager_module_css_default = {
|
|
3076
|
-
"
|
|
3076
|
+
"reportFooter": "_367UGW_reportFooter",
|
|
3077
|
+
"optionsHeader": "_367UGW_optionsHeader",
|
|
3078
|
+
"empty": "_367UGW_empty",
|
|
3079
|
+
"hint": "_367UGW_hint",
|
|
3080
|
+
"dialogMask": "_367UGW_dialogMask",
|
|
3081
|
+
"kindTag": "_367UGW_kindTag",
|
|
3082
|
+
"dialogHeaderRow": "_367UGW_dialogHeaderRow",
|
|
3077
3083
|
"pathIssueKind": "_367UGW_pathIssueKind",
|
|
3078
|
-
"
|
|
3079
|
-
"
|
|
3084
|
+
"badgeOk": "_367UGW_badgeOk",
|
|
3085
|
+
"errorAction": "_367UGW_errorAction",
|
|
3086
|
+
"pathOld": "_367UGW_pathOld",
|
|
3087
|
+
"hiddenFile": "_367UGW_hiddenFile",
|
|
3088
|
+
"backupFileName": "_367UGW_backupFileName",
|
|
3089
|
+
"fieldLabel": "_367UGW_fieldLabel",
|
|
3090
|
+
"conflictDetail": "_367UGW_conflictDetail",
|
|
3091
|
+
"snapshotList": "_367UGW_snapshotList",
|
|
3092
|
+
"modeHint": "_367UGW_modeHint",
|
|
3093
|
+
"warnText": "_367UGW_warnText",
|
|
3094
|
+
"planScroll": "_367UGW_planScroll",
|
|
3095
|
+
"pullScroll": "_367UGW_pullScroll",
|
|
3096
|
+
"conflictOptions": "_367UGW_conflictOptions",
|
|
3097
|
+
"section": "_367UGW_section",
|
|
3098
|
+
"reportText": "_367UGW_reportText",
|
|
3099
|
+
"badgeInfo": "_367UGW_badgeInfo",
|
|
3100
|
+
"errorReason": "_367UGW_errorReason",
|
|
3101
|
+
"pathValue": "_367UGW_pathValue",
|
|
3102
|
+
"progressLabel": "_367UGW_progressLabel",
|
|
3103
|
+
"viewBody": "_367UGW_viewBody",
|
|
3104
|
+
"progressBarDone": "_367UGW_progressBarDone",
|
|
3080
3105
|
"conflictList": "_367UGW_conflictList",
|
|
3081
|
-
"
|
|
3106
|
+
"logEmpty": "_367UGW_logEmpty",
|
|
3107
|
+
"sectionTitleBlock": "_367UGW_sectionTitleBlock",
|
|
3108
|
+
"aboutAuthor": "_367UGW_aboutAuthor",
|
|
3109
|
+
"errorItem": "_367UGW_errorItem",
|
|
3110
|
+
"select": "_367UGW_select",
|
|
3111
|
+
"groupHeader": "_367UGW_groupHeader",
|
|
3112
|
+
"rollbackBox": "_367UGW_rollbackBox",
|
|
3082
3113
|
"sectionHeader": "_367UGW_sectionHeader",
|
|
3114
|
+
"backupFileList": "_367UGW_backupFileList",
|
|
3115
|
+
"categoryItem": "_367UGW_categoryItem",
|
|
3116
|
+
"progressBar": "_367UGW_progressBar",
|
|
3117
|
+
"reportView": "_367UGW_reportView",
|
|
3118
|
+
"conflictId": "_367UGW_conflictId",
|
|
3119
|
+
"conflictHead": "_367UGW_conflictHead",
|
|
3120
|
+
"logHeader": "_367UGW_logHeader",
|
|
3083
3121
|
"wizardCard": "_367UGW_wizardCard",
|
|
3084
|
-
"
|
|
3085
|
-
"
|
|
3086
|
-
"
|
|
3122
|
+
"input": "_367UGW_input",
|
|
3123
|
+
"progressIndeterminate": "_367UGW_progressIndeterminate",
|
|
3124
|
+
"card": "_367UGW_card",
|
|
3125
|
+
"progressMeta": "_367UGW_progressMeta",
|
|
3126
|
+
"spinnerWrap": "_367UGW_spinnerWrap",
|
|
3127
|
+
"dialogWide": "_367UGW_dialogWide",
|
|
3128
|
+
"dialogCard": "_367UGW_dialogCard",
|
|
3087
3129
|
"sectionTitle": "_367UGW_sectionTitle",
|
|
3088
|
-
"
|
|
3089
|
-
"logJumpButton": "_367UGW_logJumpButton",
|
|
3090
|
-
"hiddenFile": "_367UGW_hiddenFile",
|
|
3091
|
-
"groupList": "_367UGW_groupList",
|
|
3092
|
-
"dshCmIndeterminate": "_367UGW_dshCmIndeterminate",
|
|
3093
|
-
"logLine": "_367UGW_logLine",
|
|
3130
|
+
"viewTabs": "_367UGW_viewTabs",
|
|
3094
3131
|
"dshCmSpin": "_367UGW_dshCmSpin",
|
|
3095
|
-
"
|
|
3096
|
-
"
|
|
3132
|
+
"dangerButton": "_367UGW_dangerButton",
|
|
3133
|
+
"reportList": "_367UGW_reportList",
|
|
3134
|
+
"progressBadgeCount": "_367UGW_progressBadgeCount",
|
|
3135
|
+
"dshCmIndeterminate": "_367UGW_dshCmIndeterminate",
|
|
3097
3136
|
"viewTab": "_367UGW_viewTab",
|
|
3137
|
+
"modeTab": "_367UGW_modeTab",
|
|
3138
|
+
"modeTabs": "_367UGW_modeTabs",
|
|
3139
|
+
"rowActions": "_367UGW_rowActions",
|
|
3140
|
+
"errorBanner": "_367UGW_errorBanner",
|
|
3141
|
+
"statRow": "_367UGW_statRow",
|
|
3098
3142
|
"confirmScroll": "_367UGW_confirmScroll",
|
|
3099
|
-
"aboutLinkRow": "_367UGW_aboutLinkRow",
|
|
3100
|
-
"dialogClose": "_367UGW_dialogClose",
|
|
3101
|
-
"fieldLabel": "_367UGW_fieldLabel",
|
|
3102
|
-
"card": "_367UGW_card",
|
|
3103
|
-
"reportText": "_367UGW_reportText",
|
|
3104
|
-
"backupFileName": "_367UGW_backupFileName",
|
|
3105
|
-
"aboutAuthor": "_367UGW_aboutAuthor",
|
|
3106
|
-
"errorAction": "_367UGW_errorAction",
|
|
3107
|
-
"errorItem": "_367UGW_errorItem",
|
|
3108
3143
|
"badgeError": "_367UGW_badgeError",
|
|
3109
|
-
"conflictItem": "_367UGW_conflictItem",
|
|
3110
|
-
"progressPercent": "_367UGW_progressPercent",
|
|
3111
|
-
"progressBadgeCount": "_367UGW_progressBadgeCount",
|
|
3112
|
-
"reportFooter": "_367UGW_reportFooter",
|
|
3113
|
-
"groupLabel": "_367UGW_groupLabel",
|
|
3114
|
-
"backupFileRow": "_367UGW_backupFileRow",
|
|
3115
|
-
"dialogMask": "_367UGW_dialogMask",
|
|
3116
|
-
"errorActionLabel": "_367UGW_errorActionLabel",
|
|
3117
|
-
"progressMeta": "_367UGW_progressMeta",
|
|
3118
|
-
"checkboxRow": "_367UGW_checkboxRow",
|
|
3119
|
-
"pathOld": "_367UGW_pathOld",
|
|
3120
|
-
"conflictHead": "_367UGW_conflictHead",
|
|
3121
|
-
"severityError": "_367UGW_severityError",
|
|
3122
|
-
"ghostButton": "_367UGW_ghostButton",
|
|
3123
|
-
"hint": "_367UGW_hint",
|
|
3124
|
-
"secretsList": "_367UGW_secretsList",
|
|
3125
|
-
"errorFooter": "_367UGW_errorFooter",
|
|
3126
|
-
"pathValue": "_367UGW_pathValue",
|
|
3127
|
-
"sectionBody": "_367UGW_sectionBody",
|
|
3128
|
-
"empty": "_367UGW_empty",
|
|
3129
|
-
"badgeWarn": "_367UGW_badgeWarn",
|
|
3130
|
-
"reportView": "_367UGW_reportView",
|
|
3131
|
-
"dangerButton": "_367UGW_dangerButton",
|
|
3132
|
-
"progressLabel": "_367UGW_progressLabel",
|
|
3133
|
-
"errorReason": "_367UGW_errorReason",
|
|
3134
3144
|
"pathMappingList": "_367UGW_pathMappingList",
|
|
3135
|
-
"warnText": "_367UGW_warnText",
|
|
3136
|
-
"viewTabs": "_367UGW_viewTabs",
|
|
3137
|
-
"rowActions": "_367UGW_rowActions",
|
|
3138
|
-
"diffScroll": "_367UGW_diffScroll",
|
|
3139
|
-
"progressIndeterminate": "_367UGW_progressIndeterminate",
|
|
3140
|
-
"progressTrack": "_367UGW_progressTrack",
|
|
3141
3145
|
"sectionSubtitle": "_367UGW_sectionSubtitle",
|
|
3142
|
-
"
|
|
3143
|
-
"
|
|
3144
|
-
"
|
|
3146
|
+
"secretFields": "_367UGW_secretFields",
|
|
3147
|
+
"errorActionLabel": "_367UGW_errorActionLabel",
|
|
3148
|
+
"sectionBody": "_367UGW_sectionBody",
|
|
3149
|
+
"formError": "_367UGW_formError",
|
|
3150
|
+
"progressBlock": "_367UGW_progressBlock",
|
|
3151
|
+
"pathRow": "_367UGW_pathRow",
|
|
3152
|
+
"snapshotRowHeader": "_367UGW_snapshotRowHeader",
|
|
3153
|
+
"primaryButton": "_367UGW_primaryButton",
|
|
3154
|
+
"groupLabel": "_367UGW_groupLabel",
|
|
3155
|
+
"dialogBodyScroll": "_367UGW_dialogBodyScroll",
|
|
3145
3156
|
"optionsCard": "_367UGW_optionsCard",
|
|
3146
|
-
"section": "_367UGW_section",
|
|
3147
|
-
"actionRow": "_367UGW_actionRow",
|
|
3148
|
-
"categoryDesc": "_367UGW_categoryDesc",
|
|
3149
|
-
"spinner": "_367UGW_spinner",
|
|
3150
|
-
"modeHint": "_367UGW_modeHint",
|
|
3151
3157
|
"badge": "_367UGW_badge",
|
|
3152
|
-
"badgeOk": "_367UGW_badgeOk",
|
|
3153
|
-
"pathRow": "_367UGW_pathRow",
|
|
3154
|
-
"reportScroll": "_367UGW_reportScroll",
|
|
3155
|
-
"groupCard": "_367UGW_groupCard",
|
|
3156
3158
|
"groupNote": "_367UGW_groupNote",
|
|
3157
|
-
"
|
|
3158
|
-
"
|
|
3159
|
-
"
|
|
3160
|
-
"
|
|
3161
|
-
"
|
|
3159
|
+
"errorLine": "_367UGW_errorLine",
|
|
3160
|
+
"spinner": "_367UGW_spinner",
|
|
3161
|
+
"severityError": "_367UGW_severityError",
|
|
3162
|
+
"reportScroll": "_367UGW_reportScroll",
|
|
3163
|
+
"groupItems": "_367UGW_groupItems",
|
|
3164
|
+
"progressBadge": "_367UGW_progressBadge",
|
|
3165
|
+
"ghostButton": "_367UGW_ghostButton",
|
|
3166
|
+
"groupList": "_367UGW_groupList",
|
|
3162
3167
|
"errorList": "_367UGW_errorList",
|
|
3168
|
+
"dialogHeader": "_367UGW_dialogHeader",
|
|
3169
|
+
"badgeWarn": "_367UGW_badgeWarn",
|
|
3170
|
+
"radioLabel": "_367UGW_radioLabel",
|
|
3171
|
+
"diffScroll": "_367UGW_diffScroll",
|
|
3172
|
+
"errorFooter": "_367UGW_errorFooter",
|
|
3173
|
+
"conflictItem": "_367UGW_conflictItem",
|
|
3163
3174
|
"spinnerLabel": "_367UGW_spinnerLabel",
|
|
3164
|
-
"
|
|
3175
|
+
"snapshotRow": "_367UGW_snapshotRow",
|
|
3176
|
+
"progressDetail": "_367UGW_progressDetail",
|
|
3165
3177
|
"progressBadgeSection": "_367UGW_progressBadgeSection",
|
|
3166
|
-
"
|
|
3167
|
-
"
|
|
3168
|
-
"
|
|
3169
|
-
"
|
|
3178
|
+
"backupFileRow": "_367UGW_backupFileRow",
|
|
3179
|
+
"field": "_367UGW_field",
|
|
3180
|
+
"dialogBody": "_367UGW_dialogBody",
|
|
3181
|
+
"logScroll": "_367UGW_logScroll",
|
|
3182
|
+
"groupCard": "_367UGW_groupCard",
|
|
3183
|
+
"actionRow": "_367UGW_actionRow",
|
|
3170
3184
|
"errorTitle": "_367UGW_errorTitle",
|
|
3171
|
-
"
|
|
3172
|
-
"spinnerWrap": "_367UGW_spinnerWrap",
|
|
3173
|
-
"errorLine": "_367UGW_errorLine",
|
|
3174
|
-
"statRow": "_367UGW_statRow",
|
|
3175
|
-
"categoryItem": "_367UGW_categoryItem",
|
|
3185
|
+
"pathNew": "_367UGW_pathNew",
|
|
3176
3186
|
"categoryName": "_367UGW_categoryName",
|
|
3177
|
-
"progressBar": "_367UGW_progressBar",
|
|
3178
|
-
"dialogBodyScroll": "_367UGW_dialogBodyScroll",
|
|
3179
|
-
"banner": "_367UGW_banner",
|
|
3180
|
-
"optionsHeader": "_367UGW_optionsHeader",
|
|
3181
|
-
"conflictId": "_367UGW_conflictId",
|
|
3182
|
-
"input": "_367UGW_input",
|
|
3183
|
-
"dialogBody": "_367UGW_dialogBody",
|
|
3184
|
-
"badgeInfo": "_367UGW_badgeInfo",
|
|
3185
3187
|
"logPanel": "_367UGW_logPanel",
|
|
3186
|
-
"
|
|
3187
|
-
"
|
|
3188
|
-
"
|
|
3189
|
-
"
|
|
3190
|
-
"
|
|
3191
|
-
"
|
|
3192
|
-
"
|
|
3193
|
-
"
|
|
3194
|
-
"
|
|
3195
|
-
"
|
|
3196
|
-
"
|
|
3197
|
-
"
|
|
3198
|
-
"errorBanner": "_367UGW_errorBanner",
|
|
3199
|
-
"dialogHeaderRow": "_367UGW_dialogHeaderRow"
|
|
3188
|
+
"aboutLinkRow": "_367UGW_aboutLinkRow",
|
|
3189
|
+
"warnList": "_367UGW_warnList",
|
|
3190
|
+
"dialogClose": "_367UGW_dialogClose",
|
|
3191
|
+
"categoryDesc": "_367UGW_categoryDesc",
|
|
3192
|
+
"logLine": "_367UGW_logLine",
|
|
3193
|
+
"logJumpButton": "_367UGW_logJumpButton",
|
|
3194
|
+
"banner": "_367UGW_banner",
|
|
3195
|
+
"progressPercent": "_367UGW_progressPercent",
|
|
3196
|
+
"checkboxRow": "_367UGW_checkboxRow",
|
|
3197
|
+
"progressTrack": "_367UGW_progressTrack",
|
|
3198
|
+
"backupFileMeta": "_367UGW_backupFileMeta",
|
|
3199
|
+
"secretsList": "_367UGW_secretsList"
|
|
3200
3200
|
};
|
|
3201
3201
|
//#endregion
|
|
3202
3202
|
//#region src/client/common/ui.tsx
|
|
@@ -9174,8 +9174,9 @@ function MyConfigsView({ meApi, api, importApi, syncApi, t, myItems, myItemsErro
|
|
|
9174
9174
|
await syncApi.githubCancel(flowId);
|
|
9175
9175
|
} catch {}
|
|
9176
9176
|
};
|
|
9177
|
-
/** 选 zip → upload 受控临时区;upload 模式预填 name 为 zip
|
|
9178
|
-
*
|
|
9177
|
+
/** 选 zip → upload 受控临时区;upload 模式预填 name 为 zip 文件名(可改)。
|
|
9178
|
+
* 两种模式选完 zip 均**自动**跑校验(analyzeImport dry-run)——通过即直接进表单,
|
|
9179
|
+
* 用户无需再手动点「校验」按钮;失败留在校验步骤展示错误(可重选 zip)。 */
|
|
9179
9180
|
const onPickFile = async (file) => {
|
|
9180
9181
|
if (file === void 0) return;
|
|
9181
9182
|
patchWizard({
|
|
@@ -9195,24 +9196,22 @@ function MyConfigsView({ meApi, api, importApi, syncApi, t, myItems, myItemsErro
|
|
|
9195
9196
|
validated: false
|
|
9196
9197
|
});
|
|
9197
9198
|
await runValidateWith(uploaded.zipPath);
|
|
9198
|
-
} else
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9199
|
+
} else {
|
|
9200
|
+
patchWizard({
|
|
9201
|
+
...base,
|
|
9202
|
+
step: "validate",
|
|
9203
|
+
form: {
|
|
9204
|
+
...wizardRef.current.form,
|
|
9205
|
+
name: file.name.replace(/\.zip$/i, "")
|
|
9206
|
+
}
|
|
9207
|
+
});
|
|
9208
|
+
await runValidateWith(uploaded.zipPath);
|
|
9209
|
+
}
|
|
9206
9210
|
} catch (err) {
|
|
9207
9211
|
patchWizard({ error: err instanceof Error ? err.message : String(err) });
|
|
9208
9212
|
}
|
|
9209
9213
|
};
|
|
9210
|
-
/**
|
|
9211
|
-
const runValidate = async () => {
|
|
9212
|
-
if (wizard.zipPath === null) return;
|
|
9213
|
-
await runValidateWith(wizard.zipPath);
|
|
9214
|
-
};
|
|
9215
|
-
/** 校验指定 zipPath(update 模式选新 zip 后自动调用;任何异常都落到 validationError 展示,不静默) */
|
|
9214
|
+
/** 校验指定 zipPath(选完 zip 自动调用;任何异常都落到 validationError 展示,不静默) */
|
|
9216
9215
|
const runValidateWith = async (zipPath) => {
|
|
9217
9216
|
try {
|
|
9218
9217
|
patchWizard({
|
|
@@ -9654,20 +9653,14 @@ function MyConfigsView({ meApi, api, importApi, syncApi, t, myItems, myItemsErro
|
|
|
9654
9653
|
children: t("myconfigs.upload.selected", { name: wizard.fileName })
|
|
9655
9654
|
})
|
|
9656
9655
|
}),
|
|
9657
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
9656
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9658
9657
|
className: config_manager_module_css_default.actionRow,
|
|
9659
|
-
children:
|
|
9658
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9660
9659
|
variant: "primary",
|
|
9661
|
-
disabled: wizard.zipPath === null || wizard.validating,
|
|
9662
|
-
onClick: () => {
|
|
9663
|
-
runValidate();
|
|
9664
|
-
},
|
|
9665
|
-
children: wizard.validating ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, { label: t("myconfigs.upload.validating") }) : t("myconfigs.upload.validate")
|
|
9666
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
9667
9660
|
disabled: wizard.validating,
|
|
9668
9661
|
onClick: reset,
|
|
9669
|
-
children: t("myconfigs.upload.reselect")
|
|
9670
|
-
})
|
|
9662
|
+
children: wizard.validating ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, { label: t("myconfigs.upload.validating") }) : t("myconfigs.upload.reselect")
|
|
9663
|
+
})
|
|
9671
9664
|
}),
|
|
9672
9665
|
wizard.validationError !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Banner, {
|
|
9673
9666
|
kind: "error",
|