D
@kongxiangyiren/dhs-theme-plugin
v0.0.3 · 3 天前发布
主题管理插件:设置-主题大分类,内置森林绿/海洋蓝,支持上传 __ModuleLoader__.load 格式的 JS 主题(overrideTokens + CSS + slots UI),点击切换,磁盘持久化。
README
@kongxiangyiren/dhs-theme-plugin
DSH 主题管理插件(静态版):在 设置 → 主题 提供主题大分类,内置两套主题,
支持上传自定义 JS 主题并一键切换,数据持久化在磁盘上(换浏览器不丢)。
功能
__ModuleLoader__.load 格式单文件,支持 overrideTokens 改色、注入 CSS、slots 注册 UI 组件、require("react"),无文件大小限制webServer 路由 GET/POST /api/theme-plugin,数据存放在 DSH home(~/.dsh/dhs-theme-plugin.json),浏览器无关安装
```bash
从 npm 安装(首选)
dsh plugin --profile web add @kongxiangyiren/dhs-theme-plugin
或从 git 直装(纯 JS 无 prepare,无需 allowBuilds 授权)
dsh plugin --profile web add git+https://github.com/kongxiangyiren/dhs-theme-plugin
或本地目录(开发/验证)
dsh plugin --profile web add ./
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @kongxiangyiren/dhs-theme-plugin
- Repo
- git+https://github.com/kongxiangyiren/dhs-theme-plugin.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"client":{"platform":"web","immediately":true},"bundle":{"patch":"./cordis.patch.yml"}}