dsh-life-pack 0.3.62 → 0.3.63
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 +36 -15
- 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.3/node_modules/dsh-plugin-update/dist/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) + ")");
|
|
@@ -492,7 +492,7 @@ window.__ModuleLoader__.load({
|
|
|
492
492
|
return buildPhoneNames(prefix).logAppend;
|
|
493
493
|
}
|
|
494
494
|
//#endregion
|
|
495
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
495
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/redaction.js
|
|
496
496
|
const COPY_BUDGET_CHARS = 1500;
|
|
497
497
|
const REDACTED_PATH = "<路径>";
|
|
498
498
|
const REDACTED_SECRET = "<脱敏>";
|
|
@@ -556,7 +556,7 @@ window.__ModuleLoader__.load({
|
|
|
556
556
|
return truncateForCopy(scrubWithoutBudget(flat));
|
|
557
557
|
}
|
|
558
558
|
//#endregion
|
|
559
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
559
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/service.js
|
|
560
560
|
function updateError(code) {
|
|
561
561
|
return Object.assign(new Error(code), { code });
|
|
562
562
|
}
|
|
@@ -643,7 +643,7 @@ window.__ModuleLoader__.load({
|
|
|
643
643
|
return 0;
|
|
644
644
|
}
|
|
645
645
|
//#endregion
|
|
646
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
646
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/lang.js
|
|
647
647
|
function normalizeLangTag(tag) {
|
|
648
648
|
if (typeof tag !== "string") return "zh";
|
|
649
649
|
const s = tag.trim().toLowerCase().replace(/_/g, "-");
|
|
@@ -785,7 +785,7 @@ window.__ModuleLoader__.load({
|
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
787
|
//#endregion
|
|
788
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
788
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/bilingual.js
|
|
789
789
|
const BILINGUAL_STRINGS = {
|
|
790
790
|
"entry.label.idle": {
|
|
791
791
|
en: "Check for updates",
|
|
@@ -942,6 +942,16 @@ window.__ModuleLoader__.load({
|
|
|
942
942
|
zh: "重新执行安装;若持续,请按第 6 节排错",
|
|
943
943
|
draft: true
|
|
944
944
|
},
|
|
945
|
+
"panel.blocked.dev-source.title": {
|
|
946
|
+
en: "Dev-mode source link, update center unavailable",
|
|
947
|
+
zh: "开发态挂载(源码链接),更新中心不可用",
|
|
948
|
+
draft: true
|
|
949
|
+
},
|
|
950
|
+
"panel.blocked.dev-source.action": {
|
|
951
|
+
en: "Edit the repo and restart the host to take effect; the update center only serves version installs, no manual command is provided here.",
|
|
952
|
+
zh: "改完仓库代码后重启宿主生效;更新中心只服务按版本安装,此场景不提供手工命令",
|
|
953
|
+
draft: true
|
|
954
|
+
},
|
|
945
955
|
"panel.failure.check-failed.title": {
|
|
946
956
|
en: "Couldn’t check for updates (network, source, or rate limit)",
|
|
947
957
|
zh: "版本信息查询失败(网络 / 数据源 / 限流)",
|
|
@@ -2397,6 +2407,11 @@ window.__ModuleLoader__.load({
|
|
|
2397
2407
|
zh: "上次安装异常中断,存在未完成任务",
|
|
2398
2408
|
draft: true
|
|
2399
2409
|
},
|
|
2410
|
+
"diag.fallback.dev-source": {
|
|
2411
|
+
en: "Dev-mode source link; update center unavailable",
|
|
2412
|
+
zh: "开发态源码链接,更新中心不可用",
|
|
2413
|
+
draft: true
|
|
2414
|
+
},
|
|
2400
2415
|
"install-button.action.installed": {
|
|
2401
2416
|
en: "Installed",
|
|
2402
2417
|
zh: "已安装",
|
|
@@ -2432,7 +2447,7 @@ window.__ModuleLoader__.load({
|
|
|
2432
2447
|
}
|
|
2433
2448
|
const BILINGUAL_CSS = [".dsh-upd-bi{display:inline;overflow-wrap:anywhere}", ".dsh-upd-bi [lang]{overflow-wrap:anywhere}"].join("\n");
|
|
2434
2449
|
//#endregion
|
|
2435
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
2450
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/changelog.js
|
|
2436
2451
|
const CHANGELOG_MAX_CHARS = 65536;
|
|
2437
2452
|
const CHANGELOG_ALL_CATEGORIES = [
|
|
2438
2453
|
"Added",
|
|
@@ -3540,7 +3555,7 @@ ${note}${blocks.join("\n")}
|
|
|
3540
3555
|
}
|
|
3541
3556
|
}
|
|
3542
3557
|
//#endregion
|
|
3543
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3558
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/log-events.js
|
|
3544
3559
|
const LOG_EVENT_CALL = "host.call";
|
|
3545
3560
|
const LOG_EVENT_CALL_FAIL = "host.call.fail";
|
|
3546
3561
|
const LOG_EVENT_INSTALL_EXEC = "update.install.exec";
|
|
@@ -3791,7 +3806,7 @@ ${note}${blocks.join("\n")}
|
|
|
3791
3806
|
};
|
|
3792
3807
|
}
|
|
3793
3808
|
//#endregion
|
|
3794
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3809
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/codes.js
|
|
3795
3810
|
const BLOCKED_REASONS = [
|
|
3796
3811
|
"unknown-profile",
|
|
3797
3812
|
"channel-mismatch",
|
|
@@ -3801,7 +3816,8 @@ ${note}${blocks.join("\n")}
|
|
|
3801
3816
|
"pending-restart",
|
|
3802
3817
|
"registry-conflict",
|
|
3803
3818
|
"incompatible-node",
|
|
3804
|
-
"recovery-required"
|
|
3819
|
+
"recovery-required",
|
|
3820
|
+
"dev-source"
|
|
3805
3821
|
];
|
|
3806
3822
|
const PHONE_FAILURE_CODES = [
|
|
3807
3823
|
"check-failed",
|
|
@@ -3825,7 +3841,7 @@ ${note}${blocks.join("\n")}
|
|
|
3825
3841
|
return typeof code === "string" && isOneOf(CHECK_SIDE_FAILURE_CODES, code.trim());
|
|
3826
3842
|
}
|
|
3827
3843
|
//#endregion
|
|
3828
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
3844
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/panel.js
|
|
3829
3845
|
function normalizePanelTheme(value) {
|
|
3830
3846
|
return value === "archive" ? "archive" : "default";
|
|
3831
3847
|
}
|
|
@@ -3972,6 +3988,10 @@ ${note}${blocks.join("\n")}
|
|
|
3972
3988
|
"recovery-required": {
|
|
3973
3989
|
title: "panel.blocked.recovery-required.title",
|
|
3974
3990
|
action: "panel.blocked.recovery-required.action"
|
|
3991
|
+
},
|
|
3992
|
+
"dev-source": {
|
|
3993
|
+
title: "panel.blocked.dev-source.title",
|
|
3994
|
+
action: "panel.blocked.dev-source.action"
|
|
3975
3995
|
}
|
|
3976
3996
|
};
|
|
3977
3997
|
function blockedCopy(reason, lang) {
|
|
@@ -4918,7 +4938,8 @@ ${note}${blocks.join("\n")}
|
|
|
4918
4938
|
if (view.showManual && manual) actions.push(`<button type="button" data-action="copy-manual" title="${escapeHtml$3(copyText("panel.action.copy-manual-title", l))}">${escapeHtml$3(copyText("panel.action.copy-manual", l))}</button>`);
|
|
4919
4939
|
if (b.kind === "restart") actions.push(`<button type="button" data-action="restart-hint" title="${escapeHtml$3(copyText("panel.action.restart-host-title", l))}">${escapeHtml$3(copyText("panel.action.restart-host", l))}</button>`);
|
|
4920
4940
|
if (b.kind === "failed") actions.push(`<button type="button" data-action="dismiss-failure" title="${escapeHtml$3(copyText("panel.action.dismiss-title", l))}">${escapeHtml$3(copyText("panel.action.dismiss", l))}</button>`);
|
|
4921
|
-
|
|
4941
|
+
const failureRef = input.failure;
|
|
4942
|
+
if (snapshot || b.kind === "failed" || !!failureRef) actions.push(`<button type="button" data-action="copy-diag" title="${escapeHtml$3(copyText("panel.action.copy-diag-title", l))}">${escapeHtml$3(copyText("panel.action.copy-diag", l))}</button>`);
|
|
4922
4943
|
actions.push("</div>");
|
|
4923
4944
|
}
|
|
4924
4945
|
actions.push(progressBar(snapshot, l));
|
|
@@ -5060,7 +5081,7 @@ ${UPDATE_PANEL_ARCHIVE_CSS}` : UPDATE_PANEL_CSS}</style>
|
|
|
5060
5081
|
${body}`;
|
|
5061
5082
|
}
|
|
5062
5083
|
//#endregion
|
|
5063
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5084
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/entry.js
|
|
5064
5085
|
const UPDATE_ENTRY_CSS = [
|
|
5065
5086
|
".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)}",
|
|
5066
5087
|
".dsh-upd-entry-btn{font:inherit;border:1px solid var(--dsh-update-border,#d1d5db);border-radius:var(--dsh-update-entry-border-radius,6px);",
|
|
@@ -5174,7 +5195,7 @@ ${body}`;
|
|
|
5174
5195
|
}
|
|
5175
5196
|
}
|
|
5176
5197
|
//#endregion
|
|
5177
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
5198
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/panel-batch.js
|
|
5178
5199
|
const BATCH_PANEL_POLL = {
|
|
5179
5200
|
defaultMs: 1500,
|
|
5180
5201
|
minMs: 250
|
|
@@ -6700,7 +6721,7 @@ ${body}`;
|
|
|
6700
6721
|
};
|
|
6701
6722
|
}
|
|
6702
6723
|
//#endregion
|
|
6703
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.
|
|
6724
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.3/node_modules/dsh-plugin-update/dist/entry-batch.js
|
|
6704
6725
|
function isObject$1(value) {
|
|
6705
6726
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
6706
6727
|
}
|
|
@@ -10659,7 +10680,7 @@ ${body}`;
|
|
|
10659
10680
|
}, 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)))));
|
|
10660
10681
|
}
|
|
10661
10682
|
/** 版本胶囊那一行字:只在这里拼一次,屏上与用例读的是同一串。 */
|
|
10662
|
-
const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.
|
|
10683
|
+
const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.63";
|
|
10663
10684
|
/** 右下角那本书离面板两沿的距离:用户口径「一直处于面板右下角、不随列表滑动消失」
|
|
10664
10685
|
* ⇒ sticky 吸附(面板相对,视口多大都落在面板角上);INSET=右沿,BOTTOM=底沿。 */
|
|
10665
10686
|
const MANUAL_ENTRY_INSET = 16;
|