dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Mobile UI optimizer for the DeepSeek Harness Web GUI — drawer sidebar, full-screen settings, safe areas, touch-friendly targets.
English | 中文
DeepSeek Harness Web GUI 的移动端 / 小平板 UI 优化器。
原生 Web 外壳是三栏桌面布局。在手机宽度下,侧边栏导轨、188px 的设置导航、以及仅 hover 才显示的工具行控件会变得拥挤或不可达。本插件在 max-width: 820px 断点下重排外壳,不修改任何上游代码——它是一个纯客户端(浏览器)插件:一个 <style> 块加一个小的 React overlay。
prefers-reduced-motion 约束。data-details-collapsed 状态驱动。env(safe-area-inset-*)、输入框 16px 字号、touch-action: manipulation、更紧凑的输入栏间距。[role="dialog"][aria-modal="true"]:has(>nav)、[data-shell-overlay])与 CSS module 局部名后缀([class*="_options"])而非哈希类名匹配,能在 DSH 前端重构建后继续生效。关于右侧栏: 0.1.5 移除了详情列并引入右侧栏。手机宽度下本插件把该列(
[data-rightbar-col])停靠为底部抽屉,点击官方右侧栏按钮时它会覆盖在对话之上,而不是挤压对话列。设置与抽屉功能现在已完全可用。
0.1.5-rc.2(package.json 的 dshTarget);此前声明为 0.1.3-alpha.2。[data-rightbar-col],折叠/全屏/即时态由 frame 上的 data-rightbar-collapsed / data-rightbar-fullscreen / data-rightbar-instant 记录);中栏没有 data 属性,故用其 CSS-module 后缀 [class*="_centerCol"] 匹配。旧的位置选择器(*:nth-child(2) / *:nth-child(3))与 data-details-collapsed 标记均已不存在。ctx.layout.closeDetails(),对应调用已删除;ctx.slots、ctx.layout.toggleSidebar、ctx.timeout、ctx.effect 已在本机 0.1.5-rc.2 运行时重新核实在位。纯 ESM,无构建步骤,无安装脚本——安装时不执行任何代码。
dsh plugin --profile web add github:raomaiping-hash/dsh-client-ui-mobile
# 锁定 commit 以便复现:
dsh plugin --profile web add github:raomaiping-hash/dsh-client-ui-mobile#<sha>
然后重启 DSH Web 进程,在手机宽度视口(或将浏览器缩到 ≤820px)打开 GUI。
dsh plugin --profile web add ./dsh-client-ui-mobile-0.1.0.tgz # 来自 pnpm pack
dsh plugin --profile web remove dsh-client-ui-mobile
然后重启 DSH。
index.js)是空的 apply()——只为让 loader 挂载本包。client.js)通过 package.json 的 dsh.client(exports["./client"])加载。它注入一个 <style> 标签,并把一个 MobileChrome 组件注册到 shell.overlay 插槽(悬浮入口 + 遮罩),再把一张小卡片注册到 settings.general.item("已安装"提示)。@media (max-width: 820px);桌面布局不受影响。ctx.layout(侧栏/详情开关)与 ctx.slots;只写入 DOM 节点和一个 <style> 标签,停止/更新时全部拆除。git clone https://github.com/raomaiping-hash/dsh-client-ui-mobile
cd dsh-client-ui-mobile
node --check client.js # 语法
node tests/smoke.mjs # 打包完整性
由于本插件是由 DSH client-module host 直接服务的纯 JS,在已安装 profile 里编辑 client.js 并刷新页面即可通过 client-HMR 轮询生效——无需重新构建。
MIT © raomaiping-hash