kelai141/dsh-client-ui-responsive
Mobile-responsive AppFrame for the DeepSeek Harness web UI. A drop-in replacement for the upstream ui-layout that adds a proper Mobile form (<640px): drawer sidebar, bottom-sheet details, top bar with hamburger, and safe-area insets — while keeping the Wide/Narrow behavior byte-identical to upstream.
これは DeepSeek Harness(DSH)プラグインです。当サイトは GitHub README、インストール情報、メンテナンス状況、公開セキュリティシグナルをまとめています。
dsh-client-ui-responsive
dsh-mobile 生态 · dsh-mobile-apk(壳 APK)· dsh-shell-termux(shell)· dsh-host-web-compat(浏览器兼容)· dsh-mobile(协调仓库,private)
DeepSeek Harness Web UI 的移动响应式 AppFrame:
上游 ui-layout 的即插即用替代品,新增 Mobile 形态(<640px)——抽屉侧栏、底部 sheet、带汉堡的顶栏、安全区;
Wide/Narrow 行为与上游逐字节一致。
快速开始
1. 安装(放入 web profile 的 node_modules,模式见 dsh-shell-termux)。
2. 挂载(profile 的 cordis.patch.yml):
- id: ui-layout
disabled: true
- insert:
- id: ui-responsive
name: '@dsh-android/dsh-client-ui-responsive'
3. 重启,验证浏览器名册(window.__DSH_BOOT__ 含 @dsh-android/dsh-client-ui-responsive,ui-layout 消失)。
断点体系
| 档位 | 宽度 | 形态 |
|---|---|---|
| Wide | ≥1024px | 三栏,上游行为 |
| Narrow | 640–1024px | 上游自动折叠 rail + 手动展开 |
| Mobile | <640px | 单栏:sidebar→左抽屉、details→底部 sheet、顶栏+汉堡、安全区 |
横屏手机(≥640 逻辑像素)原样复用 Wide/Narrow 界面。
行为说明
- 槽位与服务不变:
sidebar/conversation/details/shell.overlay与ctx.layout与 ui-layout 完全一致——消费方(ui-sidebar、ui-conversation)零改动; - 移动形态语义:汉堡切换抽屉(点遮罩关闭);
ctx.layout.openDetails()弹出底部 sheet;shell.overlay保持最顶层(z 20); - 旋转即时切换:同一套 rAF 节流 ResizeObserver 驱动;
prefers-reduced-motion关闭过渡。
构建
npm install # 基线钉 @deepseek-ai/* 0.1.0-rc.6
npm run build # tsc(lib/types)+ tsdown(lib/client.js 浏览器包)
npm run typecheck
浏览器包遵循 __ModuleLoader__.load 契约;改动后先重建再探测线上服务(registry 提供的是 lib/client.js 产物)。
测试
- 宿主 CDP 组件级:412px(抽屉开合/遮罩)与 1280px(三栏回归)——见协调仓库验证日志;
- 旧内核浏览器(ES2024 前 WebView)无法加载客户端包:请用较新 WebView(系统 WebView 即可), 浏览器兼容插件可作兜底。
License
MIT。派生自 @deepseek-ai/dsh-client-ui-layout(MIT, © 2026 DeepSeek),见 NOTICE。
设计文档:docs/design.md。
セキュリティとインストールエビデンス
このスコアは公開リポジトリメタデータと当サイトに登録されたインストールエビデンスのみに基づくもので、コードセキュリティ監査とは異なります。
公開プラグインカタログから取得し、公開 GitHub リポジトリにリンクしています。
リポジトリは MIT ライセンスを宣言しています。
過去180日以内にコードの更新があります。
再現可能な正確なインストールメタデータはまだ登録されていません。リポジトリの説明に従って手動で確認してください。
確認したパッケージメタデータにインストールライフサイクルスクリプトは宣言されていません。