dsh-life-pack 0.3.81 → 0.3.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +92 -38
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
package/dist/client.js
CHANGED
|
@@ -471,7 +471,7 @@ window.__ModuleLoader__.load({
|
|
|
471
471
|
path: "/api/ilife-manager"
|
|
472
472
|
};
|
|
473
473
|
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
474
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/config.js
|
|
475
475
|
const DEFAULT_PANEL_POLL_MS = 1e3;
|
|
476
476
|
function assertPrefix(value, role) {
|
|
477
477
|
if (typeof value !== "string" || value.length === 0) throw new Error("[dsh-plugin-update] " + role + " 非法:须为非空字符串(收到 " + JSON.stringify(value) + ")");
|
|
@@ -493,7 +493,7 @@ window.__ModuleLoader__.load({
|
|
|
493
493
|
return buildPhoneNames(prefix).logAppend;
|
|
494
494
|
}
|
|
495
495
|
//#endregion
|
|
496
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
496
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/codes.js
|
|
497
497
|
const BLOCKED_REASONS = [
|
|
498
498
|
"unknown-profile",
|
|
499
499
|
"channel-mismatch",
|
|
@@ -530,7 +530,7 @@ window.__ModuleLoader__.load({
|
|
|
530
530
|
return typeof code === "string" && isOneOf(CHECK_SIDE_FAILURE_CODES, code.trim());
|
|
531
531
|
}
|
|
532
532
|
//#endregion
|
|
533
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
533
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/lang.js
|
|
534
534
|
function normalizeLangTag(tag) {
|
|
535
535
|
if (typeof tag !== "string") return "zh";
|
|
536
536
|
const s = tag.trim().toLowerCase().replace(/_/g, "-");
|
|
@@ -672,7 +672,7 @@ window.__ModuleLoader__.load({
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
//#endregion
|
|
675
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
675
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/i18n/dictionary.js
|
|
676
676
|
const BILINGUAL_STRINGS = {
|
|
677
677
|
"entry.label.idle": {
|
|
678
678
|
en: "Check for updates",
|
|
@@ -2064,6 +2064,16 @@ window.__ModuleLoader__.load({
|
|
|
2064
2064
|
zh: "已自动继续上次未完成的更新(剩余 {count} 个)。",
|
|
2065
2065
|
draft: true
|
|
2066
2066
|
},
|
|
2067
|
+
"batch.notice.auto-resuming": {
|
|
2068
|
+
en: "Found an unfinished update. Continuing it now…",
|
|
2069
|
+
zh: "发现上次未完成的更新,正在继续…",
|
|
2070
|
+
draft: true
|
|
2071
|
+
},
|
|
2072
|
+
"batch.notice.auto-finished": {
|
|
2073
|
+
en: "Finished the unfinished batch.",
|
|
2074
|
+
zh: "上次未完成的更新已全部完成。",
|
|
2075
|
+
draft: true
|
|
2076
|
+
},
|
|
2067
2077
|
"batch.notice.resumed": {
|
|
2068
2078
|
en: "Continued the unfinished batch ({count} left).",
|
|
2069
2079
|
zh: "已继续上次未完成的更新(剩余 {count} 个)。",
|
|
@@ -2741,7 +2751,7 @@ window.__ModuleLoader__.load({
|
|
|
2741
2751
|
}
|
|
2742
2752
|
};
|
|
2743
2753
|
//#endregion
|
|
2744
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2754
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/i18n/text.js
|
|
2745
2755
|
function escapeHtml$4(value) {
|
|
2746
2756
|
return String(value ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
2747
2757
|
}
|
|
@@ -2770,7 +2780,7 @@ window.__ModuleLoader__.load({
|
|
|
2770
2780
|
return "<span class=\"dsh-upd-bi\"><span lang=\"" + l + "\">" + text + "</span></span>";
|
|
2771
2781
|
}
|
|
2772
2782
|
//#endregion
|
|
2773
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2783
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/cause.js
|
|
2774
2784
|
const CAUSE_KINDS = ["minimum-release-age"];
|
|
2775
2785
|
const CAUSE_SIGNATURES = [{
|
|
2776
2786
|
kind: "minimum-release-age",
|
|
@@ -2890,7 +2900,7 @@ window.__ModuleLoader__.load({
|
|
|
2890
2900
|
}
|
|
2891
2901
|
}
|
|
2892
2902
|
//#endregion
|
|
2893
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2903
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/redaction.js
|
|
2894
2904
|
const COPY_BUDGET_CHARS = 1500;
|
|
2895
2905
|
const REDACTED_PATH = "<路径>";
|
|
2896
2906
|
const REDACTED_SECRET = "<脱敏>";
|
|
@@ -2970,7 +2980,7 @@ window.__ModuleLoader__.load({
|
|
|
2970
2980
|
return userinfo.masked ? truncateWithMaskNote(scrubbed, COPY_BUDGET_CHARS) : truncateForCopy(scrubbed);
|
|
2971
2981
|
}
|
|
2972
2982
|
//#endregion
|
|
2973
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2983
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/copy.js
|
|
2974
2984
|
const BLOCKED_KEYS = {
|
|
2975
2985
|
"unknown-profile": {
|
|
2976
2986
|
title: "panel.blocked.unknown-profile.title",
|
|
@@ -3388,7 +3398,7 @@ window.__ModuleLoader__.load({
|
|
|
3388
3398
|
return blockLines.join("\n");
|
|
3389
3399
|
}
|
|
3390
3400
|
//#endregion
|
|
3391
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3401
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/theme.js
|
|
3392
3402
|
function normalizePanelTheme(value) {
|
|
3393
3403
|
return value === "archive" ? "archive" : "default";
|
|
3394
3404
|
}
|
|
@@ -3500,7 +3510,7 @@ window.__ModuleLoader__.load({
|
|
|
3500
3510
|
return parts.join(";");
|
|
3501
3511
|
}
|
|
3502
3512
|
//#endregion
|
|
3503
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3513
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/judgment.js
|
|
3504
3514
|
function updateError(code) {
|
|
3505
3515
|
return Object.assign(new Error(code), { code });
|
|
3506
3516
|
}
|
|
@@ -3587,7 +3597,7 @@ window.__ModuleLoader__.load({
|
|
|
3587
3597
|
return 0;
|
|
3588
3598
|
}
|
|
3589
3599
|
//#endregion
|
|
3590
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3600
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/hash.js
|
|
3591
3601
|
function hash8(value) {
|
|
3592
3602
|
try {
|
|
3593
3603
|
const text = String(value ?? "");
|
|
@@ -3600,7 +3610,7 @@ window.__ModuleLoader__.load({
|
|
|
3600
3610
|
}
|
|
3601
3611
|
[...CORE_ERROR_CODES];
|
|
3602
3612
|
//#endregion
|
|
3603
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3613
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/skip-store.js
|
|
3604
3614
|
const PANEL_SKIPPED_MAX = 50;
|
|
3605
3615
|
function panelSkipKey(pluginId) {
|
|
3606
3616
|
return `dsh-upd-skipped/${String(pluginId)}`;
|
|
@@ -3703,7 +3713,7 @@ window.__ModuleLoader__.load({
|
|
|
3703
3713
|
};
|
|
3704
3714
|
}
|
|
3705
3715
|
//#endregion
|
|
3706
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3716
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/view-model.js
|
|
3707
3717
|
const SEAL_KEYS = {
|
|
3708
3718
|
loading: {
|
|
3709
3719
|
text: "panel.seal.loading.text",
|
|
@@ -4017,7 +4027,7 @@ window.__ModuleLoader__.load({
|
|
|
4017
4027
|
}
|
|
4018
4028
|
}
|
|
4019
4029
|
//#endregion
|
|
4020
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
4030
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/changelog/parse.js
|
|
4021
4031
|
const CHANGELOG_MAX_CHARS = 65536;
|
|
4022
4032
|
const CHANGELOG_ALL_CATEGORIES = [
|
|
4023
4033
|
"Added",
|
|
@@ -4617,7 +4627,7 @@ window.__ModuleLoader__.load({
|
|
|
4617
4627
|
return String(text ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
4618
4628
|
}
|
|
4619
4629
|
//#endregion
|
|
4620
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
4630
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/changelog/render-model.js
|
|
4621
4631
|
const MD_URL_MAX = 2048;
|
|
4622
4632
|
const MD_MAX_DEPTH = 2;
|
|
4623
4633
|
function isHttpUrl(u) {
|
|
@@ -5138,7 +5148,7 @@ ${note}${blocks.join("\n")}
|
|
|
5138
5148
|
}
|
|
5139
5149
|
}
|
|
5140
5150
|
//#endregion
|
|
5141
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5151
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/last-resort.js
|
|
5142
5152
|
const STAGES = [
|
|
5143
5153
|
"install",
|
|
5144
5154
|
"check",
|
|
@@ -5238,12 +5248,12 @@ ${note}${blocks.join("\n")}
|
|
|
5238
5248
|
return verdict("unknown");
|
|
5239
5249
|
}
|
|
5240
5250
|
//#endregion
|
|
5241
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5251
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/log-events.js
|
|
5242
5252
|
const LOG_EVENT_CALL = "host.call";
|
|
5243
5253
|
const LOG_EVENT_CALL_FAIL = "host.call.fail";
|
|
5244
5254
|
const LOG_EVENT_INSTALL_EXEC = "update.install.exec";
|
|
5245
5255
|
//#endregion
|
|
5246
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5256
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/commands.js
|
|
5247
5257
|
const MANUAL_SUPPRESSING_REASONS = [
|
|
5248
5258
|
"source-install",
|
|
5249
5259
|
"unknown-profile",
|
|
@@ -5253,7 +5263,7 @@ ${note}${blocks.join("\n")}
|
|
|
5253
5263
|
return reason !== null && reason !== void 0 && MANUAL_SUPPRESSING_REASONS.includes(reason);
|
|
5254
5264
|
}
|
|
5255
5265
|
//#endregion
|
|
5256
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5266
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/manual-absent.js
|
|
5257
5267
|
const REASON_KEYS = {
|
|
5258
5268
|
"unknown-profile": "panel.manual.absent.unknown-profile",
|
|
5259
5269
|
"source-install": "panel.manual.absent.source-install",
|
|
@@ -5289,7 +5299,7 @@ ${note}${blocks.join("\n")}
|
|
|
5289
5299
|
return manualAbsentReasonTextOf(null, lang) + joiner + manualAbsentReasonTextOf(reason, lang);
|
|
5290
5300
|
}
|
|
5291
5301
|
//#endregion
|
|
5292
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5302
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/archive-theme.js
|
|
5293
5303
|
const UPDATE_PANEL_ARCHIVE_CSS = [
|
|
5294
5304
|
"/* Archive 档案卷可选主题:只换颜色/字体/间距;内核 DOM 顺序一字不动,不断复制诊断。 */",
|
|
5295
5305
|
".dsh-upd[data-theme=\"archive\"]{--dsh-update-bg-soft:#f7f3ea;--dsh-update-bg:#fffdf6;--dsh-update-text:#1a1a1a;--dsh-update-text-muted:#6f675a;",
|
|
@@ -5428,7 +5438,7 @@ ${note}${blocks.join("\n")}
|
|
|
5428
5438
|
"@media (prefers-reduced-motion: reduce){.dsh-upd[data-theme=\"archive\"] *{transition:none !important;animation:none !important}}"
|
|
5429
5439
|
].join("\n");
|
|
5430
5440
|
//#endregion
|
|
5431
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5441
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/failure-latch.js
|
|
5432
5442
|
function formatLatchTime(atMs, lang) {
|
|
5433
5443
|
if (typeof atMs !== "number" || !Number.isFinite(atMs) || atMs <= 0) return null;
|
|
5434
5444
|
const raw = typeof lang === "string" ? lang.trim().replace(/_/g, "-") : "";
|
|
@@ -5445,7 +5455,7 @@ ${note}${blocks.join("\n")}
|
|
|
5445
5455
|
return null;
|
|
5446
5456
|
}
|
|
5447
5457
|
//#endregion
|
|
5448
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5458
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/render.js
|
|
5449
5459
|
const UPDATE_PANEL_CSS = [
|
|
5450
5460
|
".dsh-upd{font:var(--dsh-update-panel-font-size,14px)/1.75 system-ui,\"Microsoft YaHei\",sans-serif;color:var(--dsh-update-text,#1f2937);",
|
|
5451
5461
|
"background:var(--dsh-update-bg,#ffffff);border:1px solid var(--dsh-update-border,#e5e7eb);border-radius:8px;padding:12px 14px;max-width:560px;",
|
|
@@ -6302,7 +6312,7 @@ ${body}`;
|
|
|
6302
6312
|
};
|
|
6303
6313
|
}
|
|
6304
6314
|
//#endregion
|
|
6305
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6315
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/log/panel-client.js
|
|
6306
6316
|
const RENDER_FAIL_DEDUPE_MS = 6e4;
|
|
6307
6317
|
function createPanelClientLogShell(options) {
|
|
6308
6318
|
const option = options.clientLog;
|
|
@@ -6522,10 +6532,10 @@ ${body}`;
|
|
|
6522
6532
|
}
|
|
6523
6533
|
}
|
|
6524
6534
|
//#endregion
|
|
6525
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6535
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/i18n/styles.js
|
|
6526
6536
|
const BILINGUAL_CSS = [".dsh-upd-bi{display:inline;overflow-wrap:anywhere}", ".dsh-upd-bi [lang]{overflow-wrap:anywhere}"].join("\n");
|
|
6527
6537
|
//#endregion
|
|
6528
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6538
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/entry.js
|
|
6529
6539
|
const UPDATE_ENTRY_CSS = [
|
|
6530
6540
|
".dsh-upd-entry{display:inline-flex;align-items:center;gap:8px;font:13px/1.6 var(--dsh-update-font-sans,system-ui,\"Microsoft YaHei\",sans-serif);font-size:var(--dsh-update-entry-font-size,13px);color:var(--dsh-update-text,#1f2937)}",
|
|
6531
6541
|
".dsh-upd-entry-btn{font:inherit;border:1px solid var(--dsh-update-border,#d1d5db);border-radius:var(--dsh-update-entry-border-radius,6px);",
|
|
@@ -6560,7 +6570,7 @@ ${body}`;
|
|
|
6560
6570
|
".dsh-upd-entry-btn{--dsh-update-button-bg:#1f2937;--dsh-update-border:#374151}}"
|
|
6561
6571
|
].join("\n");
|
|
6562
6572
|
//#endregion
|
|
6563
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6573
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/helpers.js
|
|
6564
6574
|
const BATCH_PANEL_POLL = {
|
|
6565
6575
|
defaultMs: 1500,
|
|
6566
6576
|
minMs: 250
|
|
@@ -6746,7 +6756,7 @@ ${body}`;
|
|
|
6746
6756
|
};
|
|
6747
6757
|
}
|
|
6748
6758
|
//#endregion
|
|
6749
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6759
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/ledger.js
|
|
6750
6760
|
function noteRestart(counts, row) {
|
|
6751
6761
|
if (restartUnregistered(row)) counts.restartUnregistered += 1;
|
|
6752
6762
|
else counts.restart += 1;
|
|
@@ -6993,7 +7003,7 @@ ${body}`;
|
|
|
6993
7003
|
return null;
|
|
6994
7004
|
}
|
|
6995
7005
|
//#endregion
|
|
6996
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7006
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/styles.js
|
|
6997
7007
|
const UPDATE_BATCH_PANEL_CSS = [
|
|
6998
7008
|
"/* 批量面板(#25):类名沿用 dsh-upd-* 前缀;默认(最小)主题,Archive 皮肤见 UPDATE_BATCH_PANEL_ARCHIVE_CSS。 */",
|
|
6999
7009
|
".dsh-upd-overlay .dsh-upd.dsh-upd-batch{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}",
|
|
@@ -7105,7 +7115,7 @@ ${body}`;
|
|
|
7105
7115
|
".dsh-upd[data-theme=\"archive\"] .dsh-upd-banner>.dsh-upd-browline button:not([data-primary=\"1\"]):not([data-busy=\"1\"]){background:transparent}"
|
|
7106
7116
|
].join(String.fromCharCode(10));
|
|
7107
7117
|
//#endregion
|
|
7108
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7118
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/render.js
|
|
7109
7119
|
function renderBatchPanelHTML(input) {
|
|
7110
7120
|
const rows = Array.isArray(input.rows) ? input.rows : [];
|
|
7111
7121
|
const theme = normalizePanelTheme(input.theme);
|
|
@@ -7561,7 +7571,7 @@ ${body}`;
|
|
|
7561
7571
|
};
|
|
7562
7572
|
}
|
|
7563
7573
|
//#endregion
|
|
7564
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
7574
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/mount.js
|
|
7565
7575
|
function singleInstallPhoneOf(row) {
|
|
7566
7576
|
const phones = isObject$2(row.phoneNames) ? row.phoneNames : null;
|
|
7567
7577
|
if (!phones) return null;
|
|
@@ -8836,15 +8846,20 @@ ${body}`;
|
|
|
8836
8846
|
if (autoResumeOption && !autoResumeDone) {
|
|
8837
8847
|
autoResumeDone = true;
|
|
8838
8848
|
if (hasUnfinishedRows(rows, lastSession ?? void 0) && !inFlight && !refreshing) {
|
|
8849
|
+
const pending = unfinishedCount(rows, lastSession ?? void 0);
|
|
8839
8850
|
const before = lastError;
|
|
8840
8851
|
const latchBefore = failureLatch;
|
|
8852
|
+
say(batchText("batch.notice.auto-resuming", currentLang(), { count: String(pending) }));
|
|
8853
|
+
render();
|
|
8841
8854
|
try {
|
|
8842
8855
|
const reply = await call(phones.resume, {});
|
|
8843
8856
|
if (!mounted) return;
|
|
8844
8857
|
if (isObject$2(reply) && reply["ok"] === true) {
|
|
8845
8858
|
applyReply(reply);
|
|
8846
8859
|
if (reply["resumed"] !== false) {
|
|
8847
|
-
|
|
8860
|
+
const left = remainingCount();
|
|
8861
|
+
if (left > 0) say(batchText("batch.notice.auto-resumed", currentLang(), { count: String(left) }));
|
|
8862
|
+
else say(batchText("batch.notice.auto-finished", currentLang()));
|
|
8848
8863
|
rowFailedAt.clear();
|
|
8849
8864
|
}
|
|
8850
8865
|
autoCheckOutcome = "recent";
|
|
@@ -8852,11 +8867,15 @@ ${body}`;
|
|
|
8852
8867
|
maybeAutoRowChangelog(expandedKey);
|
|
8853
8868
|
return;
|
|
8854
8869
|
}
|
|
8870
|
+
clearNotice();
|
|
8855
8871
|
lastError = before;
|
|
8856
8872
|
failureLatch = latchBefore;
|
|
8857
8873
|
render();
|
|
8858
8874
|
} catch {
|
|
8859
|
-
if (mounted)
|
|
8875
|
+
if (mounted) {
|
|
8876
|
+
clearNotice();
|
|
8877
|
+
render();
|
|
8878
|
+
}
|
|
8860
8879
|
}
|
|
8861
8880
|
}
|
|
8862
8881
|
}
|
|
@@ -8949,7 +8968,8 @@ ${body}`;
|
|
|
8949
8968
|
};
|
|
8950
8969
|
}
|
|
8951
8970
|
//#endregion
|
|
8952
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
8971
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/entry-batch.js
|
|
8972
|
+
const ENTRY_WATCH_MAX_MS = 6e5;
|
|
8953
8973
|
function isObject$1(value) {
|
|
8954
8974
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
8955
8975
|
}
|
|
@@ -9090,6 +9110,8 @@ ${body}`;
|
|
|
9090
9110
|
let mounted = true;
|
|
9091
9111
|
let panel = null;
|
|
9092
9112
|
let panelMode = null;
|
|
9113
|
+
let watchTimer = null;
|
|
9114
|
+
let watchUntil = 0;
|
|
9093
9115
|
const panelHost = {
|
|
9094
9116
|
get innerHTML() {
|
|
9095
9117
|
return container.innerHTML;
|
|
@@ -9142,6 +9164,36 @@ ${body}`;
|
|
|
9142
9164
|
if (!mounted) return;
|
|
9143
9165
|
if (panelMode !== null) return;
|
|
9144
9166
|
container.innerHTML = entryHTML();
|
|
9167
|
+
scheduleBackgroundWatch();
|
|
9168
|
+
}
|
|
9169
|
+
function stopBackgroundWatch() {
|
|
9170
|
+
if (watchTimer !== null) {
|
|
9171
|
+
clearTimeout(watchTimer);
|
|
9172
|
+
watchTimer = null;
|
|
9173
|
+
}
|
|
9174
|
+
watchUntil = 0;
|
|
9175
|
+
}
|
|
9176
|
+
function scheduleBackgroundWatch() {
|
|
9177
|
+
if (!mounted || panelMode !== null) {
|
|
9178
|
+
stopBackgroundWatch();
|
|
9179
|
+
return;
|
|
9180
|
+
}
|
|
9181
|
+
if (!hasUnfinishedRows(rows ?? [], session ?? void 0)) {
|
|
9182
|
+
stopBackgroundWatch();
|
|
9183
|
+
return;
|
|
9184
|
+
}
|
|
9185
|
+
const now = Date.now();
|
|
9186
|
+
if (watchUntil === 0) watchUntil = now + ENTRY_WATCH_MAX_MS;
|
|
9187
|
+
if (now >= watchUntil) {
|
|
9188
|
+
stopBackgroundWatch();
|
|
9189
|
+
return;
|
|
9190
|
+
}
|
|
9191
|
+
if (watchTimer !== null) return;
|
|
9192
|
+
const base = pollMs === void 0 ? BATCH_PANEL_POLL.defaultMs : pollMs;
|
|
9193
|
+
watchTimer = setTimeout(() => {
|
|
9194
|
+
watchTimer = null;
|
|
9195
|
+
refresh();
|
|
9196
|
+
}, Math.max(250, Math.min(base, 5e3)));
|
|
9145
9197
|
}
|
|
9146
9198
|
function applyReply(reply) {
|
|
9147
9199
|
if (!isObject$1(reply) || reply["ok"] !== true) {
|
|
@@ -9179,6 +9231,7 @@ ${body}`;
|
|
|
9179
9231
|
}
|
|
9180
9232
|
function mountPanel(mode) {
|
|
9181
9233
|
if (!mounted || panelMode !== null) return;
|
|
9234
|
+
stopBackgroundWatch();
|
|
9182
9235
|
panel = mountUpdateBatchPanel(panelHost, {
|
|
9183
9236
|
prefix: options.prefix,
|
|
9184
9237
|
mode,
|
|
@@ -9289,6 +9342,7 @@ ${body}`;
|
|
|
9289
9342
|
function unmount() {
|
|
9290
9343
|
if (!mounted) return;
|
|
9291
9344
|
mounted = false;
|
|
9345
|
+
stopBackgroundWatch();
|
|
9292
9346
|
try {
|
|
9293
9347
|
unsubLang();
|
|
9294
9348
|
} catch {}
|
|
@@ -9329,7 +9383,7 @@ ${body}`;
|
|
|
9329
9383
|
};
|
|
9330
9384
|
}
|
|
9331
9385
|
//#endregion
|
|
9332
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9386
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/styles.js
|
|
9333
9387
|
const INSTALL_BUTTON_CSS = [
|
|
9334
9388
|
".dsh-upd-ib{display:flex;flex-direction:column;gap:8px;font:inherit}",
|
|
9335
9389
|
".dsh-upd-ib-status{font-weight:600;overflow-wrap:anywhere}",
|
|
@@ -9353,7 +9407,7 @@ ${body}`;
|
|
|
9353
9407
|
".dsh-upd-ib[data-theme=\"archive\"] .dsh-upd-ib-status{font-family:serif}"
|
|
9354
9408
|
].join("\n");
|
|
9355
9409
|
//#endregion
|
|
9356
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9410
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/widgets.js
|
|
9357
9411
|
function isObject(value) {
|
|
9358
9412
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9359
9413
|
}
|
|
@@ -9422,7 +9476,7 @@ ${body}`;
|
|
|
9422
9476
|
} catch {}
|
|
9423
9477
|
}
|
|
9424
9478
|
//#endregion
|
|
9425
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9479
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/view.js
|
|
9426
9480
|
function installButtonFallbackOf(input, bannerKind) {
|
|
9427
9481
|
try {
|
|
9428
9482
|
if (bannerKind !== "failed") return null;
|
|
@@ -9553,7 +9607,7 @@ ${body}`;
|
|
|
9553
9607
|
};
|
|
9554
9608
|
}
|
|
9555
9609
|
//#endregion
|
|
9556
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
9610
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/render.js
|
|
9557
9611
|
function renderInstallButtonHTML(view, opts) {
|
|
9558
9612
|
const l = opts.lang;
|
|
9559
9613
|
const manualSource = opts.manualSource === "carried-over" ? "carried-over" : opts.manualSource === null ? null : "frame";
|
|
@@ -13408,7 +13462,7 @@ ${body}`;
|
|
|
13408
13462
|
}, react.createElement("span", { style: S.morePkg }, row.pkg), react.createElement("span", { style: S.moreDesc }, row.desc), react.createElement("span", { style: S.moreIcon }, react.createElement(ExternalIcon, null)))));
|
|
13409
13463
|
}
|
|
13410
13464
|
/** 版本胶囊那一行字:只在这里拼一次,屏上与用例读的是同一串。 */
|
|
13411
|
-
const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.
|
|
13465
|
+
const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.83";
|
|
13412
13466
|
/** 右下角那本书离面板两沿的距离:用户口径「一直处于面板右下角、不随列表滑动消失」
|
|
13413
13467
|
* ⇒ sticky 吸附(面板相对,视口多大都落在面板角上);INSET=右沿,BOTTOM=底沿。 */
|
|
13414
13468
|
const MANUAL_ENTRY_INSET = 16;
|