fix(ds-bot): 保留 DSH 原生设置页(M-02),不再整页消失
This commit is contained in:
parent
9442d9e251
commit
687cb3c9bd
|
|
@ -28,6 +28,23 @@ const rt = ctx.get('dsbot-runtime', false) // 未安装打过补丁的 ds-bot
|
||||||
影响面:只新增一个服务名 `dsbot-runtime`;不与上游已有服务冲突(全仓无同名)。
|
影响面:只新增一个服务名 `dsbot-runtime`;不与上游已有服务冲突(全仓无同名)。
|
||||||
行为、工具、页面、状态文件均未改动。
|
行为、工具、页面、状态文件均未改动。
|
||||||
|
|
||||||
|
## M-02:保留 DSH 原生设置页
|
||||||
|
|
||||||
|
```diff
|
||||||
|
- id: web
|
||||||
|
config:
|
||||||
|
searchProvider: auto
|
||||||
|
fetchProvider: http
|
||||||
|
-
|
||||||
|
-# DS Bot's settings shell holds the sidebar's settings seat ...
|
||||||
|
-- id: ui-settings-general
|
||||||
|
- disabled: true
|
||||||
|
```
|
||||||
|
|
||||||
|
原因:上游把 DSH 自己的设置页关掉,改由 DS Bot 的设置壳在 Bot 页面里绘制。
|
||||||
|
新装、还没有 Bot 时,侧栏就一个设置入口都没有,用户会以为设置页被删了。
|
||||||
|
本补丁保留宿主原生设置页;DS Bot 自己的设置仍可在其页面里使用。
|
||||||
|
|
||||||
## 升级步骤
|
## 升级步骤
|
||||||
|
|
||||||
1. 取新版本 npm tarball,解压覆盖本目录(保留本文件与 `NOTICE`)。
|
1. 取新版本 npm tarball,解压覆盖本目录(保留本文件与 `NOTICE`)。
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,9 @@
|
||||||
searchProvider: auto
|
searchProvider: auto
|
||||||
fetchProvider: http
|
fetchProvider: http
|
||||||
|
|
||||||
# DS Bot's settings shell holds the sidebar's settings seat (src/client/settings-shell.js)
|
# sansheng M-02: upstream disables DSH's own settings seat here, because DS Bot's
|
||||||
# and draws DSH's settings pages in DS Bot's Settings dialog. Only the entry that declares
|
# settings shell draws DSH's settings pages inside its Bot dialog. That leaves the
|
||||||
# the seat's child slots may render them, so DSH's own shell stays off.
|
# sidebar with no settings entry until a Bot is open, so a fresh install looks as
|
||||||
- id: ui-settings-general
|
# if the settings page disappeared. Keep DSH's native settings seat instead.
|
||||||
disabled: true
|
# See PATCHES.md.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue