Repository navigation
Releases: G57651/dsh-diy-layout
Releases · G57651/dsh-diy-layout
Release list
v0.2.0 · 覆盖底部插件区 / Footer plugin row coverage
侧边栏 DIY 布局 v0.2.0 —— 新增覆盖底部账号/设置区上方的插件行(sidebar.footer.action:chat-import、dsh-context、one-click-restart 等注册的位置),与其他区域共用同一套 DIY 控件。
新增 / What's new
- 底部插件区(设置 → 侧边栏 DIY 布局 → 底部插件区):
- 排列方式:默认横向 / 单列 / 双列
- 名称显示:跟随插件 / 仅图标(36×36 圆钮 + 悬浮 500ms 名称气泡;自带
title提示的条目沿用其原生提示,不出现双重气泡) - 逐条目排序(↑↓)与显示/隐藏
- 全局面板的全部能力保持不变;持久化 key 升级为
dsh.diy-layout.v2(v1 配置不迁移,如需保留请在升级前记录)。
健壮性 / Robustness
实测发现并修复:footer 条目共享 data-slot 渲染锚点、按钮自带内联样式(隐藏需 !important)、条件性条目可能渲染为空导致位次错位(改用 React fiber 打 data-diy-entry 标记按 id 定位)、打标调度不再依赖 rAF。
安装 / Install
dsh plugin --profile <你的 profile> add \
https://github.com/G57651/dsh-diy-layout/releases/latest/download/dsh-diy-layout-0.2.0.tgz
# 或仓库直装(已含构建产物):
dsh plugin --profile <你的 profile> add github:G57651/dsh-diy-layout桌面版请经应用内 设置 → Built-in plugins → Add plugin 选择 tgz,安装后重启 Harness 生效。
兼容性:需要 dsh >= 0.2.0-rc.1(在 0.2.0-rc.2 上开发并完整测试);纯增量实现,零 Harness 源码修改,卸载即完全还原。
Full Changelog: v0.1.0...v0.2.0
v0.1.0 · 侧边栏 DIY 布局 / Sidebar DIY Layout
DeepSeek Harness 主页侧边栏 DIY 布局插件 —— 无需修改任何 Harness 源码。
功能 / Features
- 单栏 / 双栏排列侧边栏插件入口,按侧边栏宽度自动适配,名称超长省略号
- 名称显示:图标+名称 / 仅图标;仅图标时鼠标悬浮 500ms 显示名称 Tooltip(样式与官方 Tooltip 一致,键盘聚焦立即显示)
- 逐条目排序(上移/下移)与 显示/隐藏,新装插件自动纳入
- 设置页:设置 → 侧边栏 DIY 布局(控件全部来自 ui-primitives)
- 持久化:localStorage(
dsh.diy-layout.v1),应用重启后保留 - 主题:明暗主题自动适配(全部使用官方
--dsw-alias-*设计令牌) - 折叠 rail(56px 图标栏)保持官方交互,隐藏/排序在其中一致生效
安装 / Install
Release 安装包(推荐):
dsh plugin --profile <你的 profile> add \
https://github.com/G57651/dsh-diy-layout/releases/latest/download/dsh-diy-layout-0.1.0.tgzGitHub 仓库直接安装(已含构建产物,无需构建授权):
dsh plugin --profile <你的 profile> add github:G57651/dsh-diy-layout桌面版请用应用内 设置 → Built-in plugins → Add plugin 选择上述 tgz(desktop profile 由 Electron 应用独占管理)。安装后重启 Harness 生效。
兼容性 / Compatibility
- 需要
dsh >= 0.2.0-rc.1(在 0.2.0-rc.2 上开发并完整测试) - 纯增量实现:官方 slots 增量注册 + 注入式样式 + 设置页 slot,不遮蔽任何已有条目,不改 DOM 结构
- 卸载即完全还原:
dsh plugin --profile <profile> remove dsh-diy-layout
Full Changelog: 初始发布 / Initial release