dsh-mobile-ui
界面增强 活跃维护

dsh-mobile-ui

Perederey/dsh-mobile-ui

为Web界面提供移动端适配能力,支持视口自动检测、触控控件优化、底部导航栏添加及会话界面自适应缩放,开箱即用,让后台管理界面在移动设备上获得流畅原生操作体验。

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

dsh-mobile-ui

A responsive mobile-UI plugin for DeepSeek Harness.

GitHub: github.com/Perederey/dsh-mobile-ui

Makes the DSH Web GUI touch-friendly on phones and tablets by:

  • Detecting viewport size — publishes a mobile-viewport/change Event
  • Injecting responsive CSS — larger touch targets, full-width conversation, bottom-safe padding
  • Adding a bottom navigation bar — compact nav overlay for phone screens
  • Providing a mobileViewport Service — other plugins can read or subscribe to the current viewport state

Installation

dsh plugin --profile web add git+https://github.com/Perederey/dsh-mobile-ui.git
dsh web

Usage

Once installed and loaded, open the DSH Web GUI. The plugin activates automatically when the viewport is ≤ 768 px wide. Resize your browser or use Chrome DevTools device mode to test.

Other plugins can subscribe to viewport changes:

ctx.on('mobile-viewport/change', (state) => {
  if (state.size === 'compact') {
    // Adapt your UI for small screens
  }
})

Structure

src/
├── index.ts        # Host-side entry (minimal — just logs startup)
├── invariant.ts    # Type-level guards (stripped at build)
└── client/
    └── index.ts    # Client bundle: service, CSS, slot registration

TUTORIAL.md         # Full walkthrough for plugin developers

Requirements

  • DeepSeek Harness v0.1.0-rc.7 or later
  • React 18 (bundled with the DSH web frontend)

License

MIT