dsh-uiskin-theme
界面增强 活跃维护

dsh-uiskin-theme

chouxiaohuai/dsh-uiskin-theme

支持为DeepSeek Harness网页端替换海洋幻想主题皮肤,内置海洋动态背景、玻璃气泡效果、海洋风格侧边栏、鲸鱼形设置按钮、炫彩模型文字样式,支持插件命令一键安装。

2
Stars 标星
0
Forks 分支
2
Watchers 关注
0
Open Issues
JavaScript
主要语言
NOASSERTION
开源协议
2.7 MB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:chouxiaohuai/dsh-uiskin-theme
git clone https://github.com/chouxiaohuai/dsh-uiskin-theme.git
git clone git@github.com:chouxiaohuai/dsh-uiskin-theme.git
README.md main

uiskin-theme — Blue Glass Theme(海洋幻想主题)

DeepSeek Harness Web 的静态插件包(profile bundle):清澈的海洋背景、玻璃气泡、海洋侧边栏(含金色渐变「HARNESS」字标与底部卡通角色)、鲸鱼设置按钮、渐变模型文字。

与动态插件(cordis_define 现场定义、重启即丢)不同,本包以 npm 包形式装进 profile,每次启动自动加载,重启不丢,无需人工批准。

Blue Glass Theme 主题预览

许可证:本主题为原创作品,保留所有权利(All Rights Reserved),非开源协议。
未经作者书面许可,不得复制、修改、再分发、二次创作或用于商业用途;仅允许按原样安装与个人使用。

安装

需要已安装 Node.js 与 pnpm,并已能运行 dsh CLI(npx @deepseek-ai/dsh 亦可)。

# 从 GitHub 安装(把 USERNAME 换成你的 GitHub 用户名)
dsh plugin --profile web add github:USERNAME/dsh-uiskin-theme

# 或指定分支 / 提交
dsh plugin --profile web add github:USERNAME/dsh-uiskin-theme#main

装完后重启 dsh web(或下次启动时)即自动生效。

安装做了什么:dsh plugin 会在 ~/.dsh/profiles/web/ 里执行 pnpm 安装,识别到包的 dsh.bundle.patch 声明后把它加入 dsh.profile.bundles,启动时由 boot 加载。

卸载

dsh plugin --profile web remove uiskin-theme

仓库名与包名:GitHub 仓库为 dsh-uiskin-theme(曾用名 uiskin-theme),而安装后的插件包名是 uiskin-theme(取自 package.json 的 name)。因此安装用 github:USERNAME/dsh-uiskin-theme,卸载用 remove uiskin-theme,两者不冲突。

工作原理

package.json        dsh.bundle.patch → cordis.patch.yml(注册启动行)
                    dsh.client        → 声明浏览器半 /plugins/uiskin-theme/client.js
cordis.patch.yml    - insert: [{ id: uiskin-theme, name: uiskin-theme }]
lib/index.js        Host 半:空实现(皮肤全在浏览器侧)
lib/client.js       浏览器半:注入 CSS + 内联 data URI 素材 + 槽位组件
assets/             原始图片(构建时内联为 base64,运行时不读磁盘、无绝对路径)

本地开发 / 重新构建

npm install        # 仅安装 scripts 运行所需(本包无运行时依赖)
npm run build      # 把 assets/ 内联成 data URI,重新生成 lib/client.js

修改皮肤请编辑 scripts/client.template.js 里的 CSS / 组件,或替换 assets/ 下的图片后重新构建。改完记得把 lib/client.js 一起提交——别人从 git 安装时不会(也不需要)执行构建脚本。

注意事项

  • 素材以 base64 内联在 lib/client.js(约 1.1 MB),加载一次即可,适合皮肤类小图片。若想更小,可先把 assets/ 里的图压缩再构建。
  • DSH 目前是 0.1.1-rc 预发布版本,插件 API(dsh.bundle / dsh.client / slots / theme 服务)可能随版本调整;升级 DSH 后如遇兼容问题,关注本仓库的更新。
  • 本包只依赖 @deepseek-ai/cordis(peer)与 react(peer),无需 allowBuilds 放行构建脚本。

其他

  • 制作不易,您的支持才是我们开发的动力。如果喜欢,欢迎点一个 star;如需提建议或反馈 Bug,请联系 shutiaochou@gmail.com。