@linxin666/dsh-remote-web-ui 0.1.13 → 0.1.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.i18n.yaml +2 -2
- package/README.md +5 -2
- package/README.zh.md +1 -1
- package/lib/client.js +2 -2
- package/lib/client.js.map +1 -1
- package/lib/index.js +114 -27
- package/lib/types/client/locales.js +2 -2
- package/lib/types/update.d.ts +5 -1
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +122 -26
- package/package.json +1 -1
- package/src/client/locales.ts +2 -2
- package/src/update.ts +116 -26
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 97f5f6b000e12fd89ad8723fd25306075a10df06
|
|
6
|
+
README.zh.md: 30c7d55a4f31e914091318c3205d23f3b9979f60
|
package/README.md
CHANGED
|
@@ -39,8 +39,11 @@ actions, and the update panel that probes and runs the update.
|
|
|
39
39
|
phone icon) opens the update panel, which probes the npm registry for the
|
|
40
40
|
installed `@linxin666/dsh-*` family releases. When a newer release exists
|
|
41
41
|
the panel runs the update automatically (`pnpm update` inside the owning
|
|
42
|
-
dsh profile;
|
|
43
|
-
|
|
42
|
+
dsh profile; when pnpm is missing it falls back to `corepack pnpm` and
|
|
43
|
+
then `npx --yes pnpm`, and on Windows the command runs through `cmd.exe`
|
|
44
|
+
so npm-installed `.cmd` shims resolve; the loopback-only
|
|
45
|
+
`/api/update/status` + `/api/update/run` endpoints drive it) and asks for
|
|
46
|
+
a dsh web restart to pick it up. Local
|
|
44
47
|
link installs (development mode) are detected and report the npm state
|
|
45
48
|
without updating.
|
|
46
49
|
|
package/README.zh.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- **手机侧**:扫码将手机与一次性、限时令牌绑定,并落地到 **`/m` 独立移动端界面**——一款专为小屏设计的轻客户端(见[截图](#截图)),而不是把桌面 UI 塞进手机。链接携带 `workspace` 参数,手机落地到桌面正在查看的同一工作区。
|
|
14
14
|
- **安全**:一个有效的一次性令牌(刷新会使旧链接失效;已接受的令牌不可复用;令牌会过期)。停止会撤销每一台已配对设备与当前令牌——已配对设备在下一次请求时被切断。当插件 `requirePairingForLan` 门开启(默认)时,每个非 loopback 的 `/api` 请求必须携带有效的已配对设备 cookie,因此二维码是进入暴露在局域网上的 dsh web 的唯一途径。
|
|
15
15
|
- **实时状态**:桌面面板经 SSE 流实时镜像配对状态(等待 → 已连接 → 已断开)。
|
|
16
|
-
- **远程更新**:侧边栏底部的下载触发按钮(手机图标左侧)打开更新面板,它探测 npm registry 上已安装的 `@linxin666/dsh-*` 全家桶版本。当存在较新版本时,面板自动执行更新(在所属 dsh profile 内 `pnpm update
|
|
16
|
+
- **远程更新**:侧边栏底部的下载触发按钮(手机图标左侧)打开更新面板,它探测 npm registry 上已安装的 `@linxin666/dsh-*` 全家桶版本。当存在较新版本时,面板自动执行更新(在所属 dsh profile 内 `pnpm update`;pnpm 缺失时依次回退 `corepack pnpm`、`npx --yes pnpm`,Windows 上经 `cmd.exe` 执行以解析 npm 安装的 `.cmd` shim;由仅 loopback 的 `/api/update/status` + `/api/update/run` 端点驱动)并请求重启 dsh web 以生效。本地 link 安装(开发模式)会被探测到,只报告 npm 状态而不更新。
|
|
17
17
|
|
|
18
18
|
## 截图
|
|
19
19
|
|
package/lib/client.js
CHANGED
|
@@ -3022,7 +3022,7 @@ window.__ModuleLoader__.load({
|
|
|
3022
3022
|
"update.packages": "组件版本",
|
|
3023
3023
|
"update.retry": "重新检查",
|
|
3024
3024
|
"update.close": "关闭更新面板",
|
|
3025
|
-
"update.error.pnpmMissing": "未找到 pnpm
|
|
3025
|
+
"update.error.pnpmMissing": "未找到 pnpm,已尝试 pnpm / corepack / npx 仍不可用。请安装 pnpm 后重启应用(Windows: npm install -g pnpm 或 corepack enable;macOS: brew install pnpm 或 corepack enable)。",
|
|
3026
3026
|
"update.error.timeout": "更新超时,已终止安装进程,请重试。",
|
|
3027
3027
|
"update.error.notFound": "未找到 dsh-web-ui 聚合包安装,无法更新。",
|
|
3028
3028
|
"update.error.link": "当前为本地开发模式(链接安装),无法自动更新。",
|
|
@@ -3124,7 +3124,7 @@ window.__ModuleLoader__.load({
|
|
|
3124
3124
|
"update.packages": "Component versions",
|
|
3125
3125
|
"update.retry": "Check again",
|
|
3126
3126
|
"update.close": "Close update panel",
|
|
3127
|
-
"update.error.pnpmMissing": "pnpm was not found. Install
|
|
3127
|
+
"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).",
|
|
3128
3128
|
"update.error.timeout": "The update timed out and the install process was killed; try again.",
|
|
3129
3129
|
"update.error.notFound": "The dsh-web-ui aggregate package is not installed; nothing to update.",
|
|
3130
3130
|
"update.error.link": "Local development mode (link install) — automatic update is unavailable.",
|