@moonsand/dsh-ui-optimize 0.9.30 → 0.11.1
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.md +11 -3
- package/README.zh.md +11 -3
- package/client.js +1289 -32
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -24,8 +24,8 @@ Celadon, Linen, Cream, Graphite, Indigo, Slate, Sage, Rose. Picking a card recol
|
|
|
24
24
|
|
|
25
25
|
Two switches control the sidebar-foot buttons:
|
|
26
26
|
|
|
27
|
-
- **Reload UI** — reloads the page and client plugins only; the Host and running tasks keep going
|
|
28
|
-
- **Restart app** — restarts the whole app including its Host; interrupts the current conversation. **Desktop app only
|
|
27
|
+
- **Reload UI** — reloads the page and client plugins only; the Host and running tasks keep going. **Desktop app only**: browser shells such as fnOS already ship their own refresh entry, so this switch stays off there and cannot be turned on
|
|
28
|
+
- **Restart app** — restarts the whole app including its Host; interrupts the current conversation. **Desktop app only**: a browser session does not own the process that would have to be restarted
|
|
29
29
|
|
|
30
30
|
### Sidebar
|
|
31
31
|
|
|
@@ -37,10 +37,18 @@ The **More** row keeps its own line. Folding it in was tried and dropped: the sh
|
|
|
37
37
|
|
|
38
38
|
The launcher follows the pattern of the community plugin [dsh-sidebar-shelf](https://github.com/wumouren114/dsh-sidebar-shelf): register a real rail row, hide the rest with one scoped CSS rule, enumerate entries through the slot API, and select a panel through the shell's own API rather than by faking clicks.
|
|
39
39
|
|
|
40
|
+
### Updates
|
|
41
|
+
|
|
42
|
+
The plugin page gets an **Updates** tab. It reads what is installed from the host's own plugin manager and each package's newest release and publish time from the npm registry — no marketplace plugin involved — then updates the whole eligible set with one click through that same host service.
|
|
43
|
+
|
|
44
|
+
Only releases **published at least 24 hours ago** are installed. Anything younger is listed and skipped: a release published hours ago can still be withdrawn or patched, and the market's own fresh-release wait already encodes that. A release whose publish time cannot be read is skipped too — the rule cannot be confirmed, so it is not claimed. Progress, failure codes and per-package state come from the market's operation records, so an update this tab starts is the same operation the market itself would run, rollback included. Reload the page afterwards: the new client half only loads on a fresh page.
|
|
45
|
+
|
|
46
|
+
Without the market (or when the host answers 401/404), the tab says so and stays inert rather than pretending to check.
|
|
47
|
+
|
|
40
48
|
## Known limitations
|
|
41
49
|
|
|
42
50
|
- The theme choice lives in browser `localStorage`; it is lost with the browser profile or site data
|
|
43
|
-
- Restart
|
|
51
|
+
- Reload and Restart are **desktop-app only**: in a browser both switches are disabled and the sidebar-foot buttons are not rendered at all — the fnOS shell already provides its own refresh and restart entries
|
|
44
52
|
- The restart action is a process-level operation that cannot be verified automatically
|
|
45
53
|
- The **More** row is not folded; it stays in the native rail
|
|
46
54
|
- The launcher keeps the shell's own panel order — it does not sort, pin or reorder
|
package/README.zh.md
CHANGED
|
@@ -39,8 +39,8 @@ dsh plugin 或 GUI 插件管理:安装 @moonsand/dsh-ui-optimize
|
|
|
39
39
|
|
|
40
40
|
两个开关分别控制侧栏底部的「刷新界面」与「重启应用」按钮:
|
|
41
41
|
|
|
42
|
-
- **刷新界面**:只重新加载页面与客户端插件,Host
|
|
43
|
-
- **重启应用**:重启整个应用(含 Host
|
|
42
|
+
- **刷新界面**:只重新加载页面与客户端插件,Host 与正在跑的任务不受影响。**仅桌面端**:飞牛这类网页外壳自带刷新入口,网页端这个开关保持关闭且无法开启
|
|
43
|
+
- **重启应用**:重启整个应用(含 Host),会中断当前对话。**仅桌面端**:网页会话没有可重启的进程
|
|
44
44
|
|
|
45
45
|
### 侧栏
|
|
46
46
|
|
|
@@ -52,10 +52,18 @@ dsh plugin 或 GUI 插件管理:安装 @moonsand/dsh-ui-optimize
|
|
|
52
52
|
|
|
53
53
|
启动面板的做法参考社区插件 [dsh-sidebar-shelf](https://github.com/wumouren114/dsh-sidebar-shelf):注册一根真实的竖栏行、用一条 scoped CSS 规则隐藏其余行、通过槽位 API 枚举条目,并用宿主自己的接口选中面板,而不是伪造点击。
|
|
54
54
|
|
|
55
|
+
### 更新
|
|
56
|
+
|
|
57
|
+
插件页多一个「更新」页签。已装清单取自宿主自带的插件管理服务,最新版与发布时间直接从 npm registry 读——不依赖任何插件市场——再通过同一个宿主服务一键更新整批够格的版本。
|
|
58
|
+
|
|
59
|
+
只装**发布满 24 小时**的版本;更年轻的一律列出但跳过——刚发几小时的版本还可能被撤回或补丁,市场自己的「新版本等待期」也是这个意思。读不到发布时间的同样跳过:规则无法确认,就不假装确认过。进度、失败码与每个包的状态都来自市场的 operation 记录,所以这里发起的更新和市场自己跑的是同一个操作,连回滚都一样。更新完刷新页面:新的客户端代码只在重新加载时生效。
|
|
60
|
+
|
|
61
|
+
没装市场(或接口回 401/404)时,页签直接说明查不了,不会假装在检查。
|
|
62
|
+
|
|
55
63
|
## 已知限制
|
|
56
64
|
|
|
57
65
|
- 主题选择保存在浏览器 `localStorage`,换机器或清站点数据会丢失
|
|
58
|
-
-
|
|
66
|
+
- 刷新与重启都是**桌面端专属**:网页端两个开关都会被禁用,侧栏底部也不会渲染这组按钮——飞牛外壳本身就带刷新与重启入口
|
|
59
67
|
- 重启动作为进程级操作,无法在自动化测试中验证,只能人工点一次确认
|
|
60
68
|
- 「更多」没有收进弹层,仍在原生竖栏里
|
|
61
69
|
- 弹层沿用宿主自己的面板顺序,不排序、不置顶、不重排
|