@linxin666/dsh-remote-web-ui 0.2.3 → 0.2.4
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 +8 -7
- package/lib/client.js.map +1 -1
- package/lib/index.js +9 -3
- package/lib/mobile.js +7 -6
- package/lib/mobile.js.map +1 -1
- package/lib/types/client/locales.js +4 -4
- package/lib/types/client/settings-form.d.ts.map +1 -1
- package/lib/types/client/settings-form.js +9 -6
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +10 -2
- package/package.json +12 -12
- package/src/client/locales.ts +4 -4
- package/src/client/settings-form.ts +8 -6
- package/src/update.ts +14 -1
package/lib/client.js
CHANGED
|
@@ -2917,7 +2917,8 @@ window.__ModuleLoader__.load({
|
|
|
2917
2917
|
const valid = plan.filter((item) => item.run !== void 0);
|
|
2918
2918
|
if (plan.length === 0 || this.saving || valid.length !== plan.length) return;
|
|
2919
2919
|
const plannedWrites = valid.map((item) => item.op);
|
|
2920
|
-
const
|
|
2920
|
+
const pending = /* @__PURE__ */ new Map();
|
|
2921
|
+
for (const item of plan) pending.set(item.field, this.staged.get(item.field));
|
|
2921
2922
|
this.saving = true;
|
|
2922
2923
|
this.failed = false;
|
|
2923
2924
|
this.failedReason = void 0;
|
|
@@ -2930,9 +2931,9 @@ window.__ModuleLoader__.load({
|
|
|
2930
2931
|
for (const field of result.fields) if (field.landed) landed.add(field.field);
|
|
2931
2932
|
} else this.failedReason = result.message;
|
|
2932
2933
|
} else for (const item of valid) if (await item.run()) landed.add(item.field);
|
|
2933
|
-
for (const field of
|
|
2934
|
+
for (const [field, before] of pending) if (landed.has(field) && this.staged.get(field) === before) this.staged.delete(field);
|
|
2934
2935
|
this.saving = false;
|
|
2935
|
-
this.failed = landed.size !==
|
|
2936
|
+
this.failed = landed.size !== pending.size;
|
|
2936
2937
|
this.publish();
|
|
2937
2938
|
}
|
|
2938
2939
|
/** The scope's batch surface when it supports one; undefined conservatively otherwise. */
|
|
@@ -3335,7 +3336,7 @@ window.__ModuleLoader__.load({
|
|
|
3335
3336
|
"update.doneDetail": "所有组件已更新到最新版本。",
|
|
3336
3337
|
"update.restartHint": "请重启 dsh web 使新版本生效:在终端按 Ctrl+C 停止后重新运行 dsh web。",
|
|
3337
3338
|
"update.linkMode": "当前为本地开发模式",
|
|
3338
|
-
"update.linkModeDetail": "dsh-web-ui
|
|
3339
|
+
"update.linkModeDetail": "dsh-web-ui 或其组件通过本地链接安装(开发模式),无法自动更新。npm 上最新版本:{version}。请同步本地仓库,或移除与全家桶重复的独立链接。",
|
|
3339
3340
|
"update.missing": "未找到 dsh-web-ui 安装",
|
|
3340
3341
|
"update.missingDetail": "无法定位已安装的 dsh-web-ui 聚合包。请先运行 dsh plugin --profile <profile> add @linxin666/dsh-web-ui-all。",
|
|
3341
3342
|
"update.offline": "无法连接更新源",
|
|
@@ -3349,7 +3350,7 @@ window.__ModuleLoader__.load({
|
|
|
3349
3350
|
"update.error.pnpmMissing": "未找到 pnpm,已尝试 pnpm / corepack / npx 仍不可用。请安装 pnpm 后重启应用(Windows: npm install -g pnpm 或 corepack enable;macOS: brew install pnpm 或 corepack enable)。",
|
|
3350
3351
|
"update.error.timeout": "更新超时,已终止安装进程,请重试。",
|
|
3351
3352
|
"update.error.notFound": "未找到 dsh-web-ui 聚合包安装,无法更新。",
|
|
3352
|
-
"update.error.link": "
|
|
3353
|
+
"update.error.link": "dsh-web-ui 或其组件使用本地链接,无法自动更新;请同步本地仓库,或移除与全家桶重复的独立链接。",
|
|
3353
3354
|
"update.error.pnpmFailed": "更新执行失败(pnpm 退出码 {code}),详见下方输出。",
|
|
3354
3355
|
"update.error.stale": "更新命令已执行,但安装版本未变化。常见原因:pnpm 11 的 minimumReleaseAge 门禁会静默跳过发布不足 24 小时的新版本。请在 profile 目录(~/.dsh/profiles/<profile>)的 pnpm-workspace.yaml 中配置 minimumReleaseAgeExclude(例如 \"@linxin666/*\")或 minimumReleaseAge: 0 后重新点击更新。",
|
|
3355
3356
|
"update.error.verifyFailed": "更新命令已执行,但无法核对安装后的版本(可能是 registry 探测失败或安装路径变化)。请查看下方输出,或稍后重试。",
|
|
@@ -3442,7 +3443,7 @@ window.__ModuleLoader__.load({
|
|
|
3442
3443
|
"update.doneDetail": "All components are up to date.",
|
|
3443
3444
|
"update.restartHint": "Restart dsh web for the new version to take effect: stop it with Ctrl+C in the terminal, then run dsh web again.",
|
|
3444
3445
|
"update.linkMode": "Local development mode",
|
|
3445
|
-
"update.linkModeDetail": "dsh-web-ui is installed via a local link
|
|
3446
|
+
"update.linkModeDetail": "dsh-web-ui or one of its components is installed via a local link and cannot be updated remotely. Latest npm release: {version}. Sync the local checkout, or remove a standalone link duplicated by the aggregate.",
|
|
3446
3447
|
"update.missing": "dsh-web-ui not found",
|
|
3447
3448
|
"update.missingDetail": "Could not locate the installed dsh-web-ui aggregate package. Install it with: dsh plugin --profile <profile> add @linxin666/dsh-web-ui-all",
|
|
3448
3449
|
"update.offline": "Cannot reach the update source",
|
|
@@ -3456,7 +3457,7 @@ window.__ModuleLoader__.load({
|
|
|
3456
3457
|
"update.error.pnpmMissing": "pnpm was not found (tried pnpm / corepack / npx). Install pnpm and restart the app (Windows: npm install -g pnpm or corepack enable; macOS: brew install pnpm or corepack enable).",
|
|
3457
3458
|
"update.error.timeout": "The update timed out and the install process was killed; try again.",
|
|
3458
3459
|
"update.error.notFound": "The dsh-web-ui aggregate package is not installed; nothing to update.",
|
|
3459
|
-
"update.error.link": "
|
|
3460
|
+
"update.error.link": "dsh-web-ui or one of its components uses a local link. Sync the checkout, or remove a standalone link duplicated by the aggregate.",
|
|
3460
3461
|
"update.error.pnpmFailed": "The update failed (pnpm exited with code {code}); see the output below.",
|
|
3461
3462
|
"update.error.stale": "The update command ran but the installed versions did not change. Likely cause: the pnpm 11 minimumReleaseAge gate silently skips releases published less than 24 hours ago. Add minimumReleaseAgeExclude (e.g. \"@linxin666/*\") or set minimumReleaseAge: 0 in pnpm-workspace.yaml under the profile directory (~/.dsh/profiles/<profile>), then run the update again.",
|
|
3462
3463
|
"update.error.verifyFailed": "The update command ran but the installed versions could not be verified afterwards (registry probe failed or the install path changed). Inspect the output below, or retry later.",
|