xchannel1987/dsh-mobile-xc0

dsh-mobile-xc

DSH Web 移动端 UI 适配集大成插件:overlay 抽屉、安全区、canary 防升级失效;<=1023px 生效,桌面零影响。

包名
dsh-mobile-xc
版本
0.6.3
许可证
MIT
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xchannel1987/dsh-mobile-xc

使用 DSH CLI

dsh plugin --profile web add dsh-mobile-xc

或使用 npm

npm install dsh-mobile-xc


安装后重启 DSH 即可生效。

## ⚙️ 配置

插件可通过 DSH 设置 → 「移动端 UI」分区进行配置:

| 选项 | 类型 | 默认值 | 说明 |
|------|------|--------|------|
| swipeEnabled | boolean | true | 从屏幕左边缘右滑打开工作区抽屉 |
| dshmarketNavFix | boolean | true | 窄屏保留设置导航,防止市场页死路 |
| pwaEnabled | boolean | true | PWA 离线缓存 |
| drawerRefresh | boolean | false | 侧栏底部刷新入口(PWA 无下拉刷新时的手动刷新) |
| headerScroll | boolean | true | 页头标题与 PTC/用量徽标保持单行,溢出左右滑动 |
| turnRail | boolean | true | 对话右侧轮次刻度条:平时淡显,点击预览轮次、再点同一刻度跳转 |

## 🔗 兼容性矩阵

| 包 | 验证版本 | 状态 |
|---|---|---|
| DSH (vendor) | 0.1.1-rc.2 | ✅ 18 条 selector 映射 |
| dshmarket | 1.20.x | ✅ 导航死路修复 |
| dsh-better-sidebar | 0.15.2 | ✅ 和平共存 |
| dsh-token-usage | 0.2.16 | ✅ 已注册兼容 |

## 🛠️ 开发

```bash
pnpm install
pnpm verify        # 类型检查 + lib 漂移检查
pnpm test          # 单元测试
pnpm build         # 构建产物

📄 许可证

MIT

🔗 链接

⚙️ 配置

插件可通过 DSH 设置 → 「移动端 UI」分区进行配置:

选项类型默认值说明
swipeEnabledbooleantrue从屏幕左边缘右滑打开工作区抽屉
dshmarketNavFixbooleantrue窄屏保留设置导航,防止市场页死路
pwaEnabledbooleantruePWA 离线缓存
drawerRefreshbooleanfalse侧栏底部刷新入口(PWA 无下拉刷新时的手动刷新)
headerScrollbooleantrue页头标题与 PTC/用量徽标保持单行,溢出左右滑动
turnRailbooleantrue对话右侧轮次刻度条:平时淡显,点击预览轮次、再点同一刻度跳转