@huanlin/dsh-plugin-sidebar-brand-text 0.6.1 → 0.7.0
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 +3 -3
- package/lib/client.js +993 -1066
- package/lib/client.js.map +1 -1
- package/lib/index.js +199 -233
- package/lib/types/client/BrandTextCard.d.ts +6 -7
- package/lib/types/client/controller.d.ts +60 -66
- package/lib/types/client/index.d.ts +39 -38
- package/lib/types/client/titleWriter.d.ts +34 -29
- package/lib/types/config.d.ts +12 -2
- package/lib/types/index.d.ts +3 -3
- package/lib/types/settings.d.ts +37 -31
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +16 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# dsh-plugin-sidebar-brand-text
|
|
6
6
|
|
|
7
|
-
替换侧边栏左上角的品牌名、构建徽标文案,以及浏览器标签页标题(`document.title`)。默认情况下,DSH 侧边栏在左上角显示 `DSH Local Build` 文字和 7 位 commit hash 徽标(构建期 `DSH_CLIENT_COMMIT_HASH`),浏览器标签页标题格式为 `<会话标题> — DSH Local Build`;本插件通过注册 `sidebar.brand.name` slot 占位者替换侧边栏文案,并订阅 `sessions.list` 覆写 `document.title` 让浏览器标签页也使用配置的品牌名,同时在 WebUI
|
|
7
|
+
替换侧边栏左上角的品牌名、构建徽标文案,以及浏览器标签页标题(`document.title`)。默认情况下,DSH 侧边栏在左上角显示 `DSH Local Build` 文字和 7 位 commit hash 徽标(构建期 `DSH_CLIENT_COMMIT_HASH`),浏览器标签页标题格式为 `<会话标题> — DSH Local Build`;本插件通过注册 `sidebar.brand.name` slot 占位者替换侧边栏文案,并订阅 `sessions.list` 覆写 `document.title` 让浏览器标签页也使用配置的品牌名,同时在 WebUI Plugins 页本插件独享的行详情页提供配置表单(恒展开)。
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
替换前: 替换后(name="My Build", revision="v1.0"):
|
|
@@ -43,7 +43,7 @@ DSH 的 `document.title` 由 `packages/client/ui-layout/src/client/DocumentTitle
|
|
|
43
43
|
|
|
44
44
|
### WebUI 插件配置页(推荐)
|
|
45
45
|
|
|
46
|
-
安装插件后,在 DSH WebUI
|
|
46
|
+
安装插件后,在 DSH WebUI 的 Plugins 页打开本插件独享的行详情页,「侧边栏品牌文案」配置卡即页面内容(编辑体恒展开,无卡片级折叠),含两个输入框:
|
|
47
47
|
|
|
48
48
|
| 字段 | 说明 |
|
|
49
49
|
|------|------|
|
|
@@ -69,7 +69,7 @@ DSH 的 `document.title` 由 `packages/client/ui-layout/src/client/DocumentTitle
|
|
|
69
69
|
|
|
70
70
|
## 开发
|
|
71
71
|
|
|
72
|
-
前置:本插件适配 DSH `v0.1.
|
|
72
|
+
前置:本插件适配 DSH `v0.1.7-rc.1`。`@deepseek-ai/dsh-*` 只作 peerDependencies 声明(`^0.1.7-rc.1`,不安装);dev 期类型用 tsconfig `paths` 指向本地 DSH 源码树(需已 `pnpm run build`),并在 `node_modules/@deepseek-ai/` 下建 junction 指向对应包目录(同 `dsh-plugin-interpreters` 的做法)。仅 `@deepseek-ai/cordis`(`^4.0.1`)与 `@deepseek-ai/schemastery`(`^3.18.1`)已发 npm、保留在 devDependencies。
|
|
73
73
|
|
|
74
74
|
```sh
|
|
75
75
|
pnpm install # 安装 registry 依赖(@deepseek-ai/dsh-* peers 不拉取)
|