deleteuser886/dsh-mobile-mode ↗★ 0
dsh-mobile-mode
> 给 dsh-termux 这种场景的 dsh web 移动端适配插件。 > A mobile-layout adapter for dsh web, made for setups like dsh-termux.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗📱 dsh-mobile-mode
给 dsh-termux 这种场景的 dsh web 移动端适配插件。 A mobile-layout adapter for dsh web, made for setups like dsh-termux.
不重写任何东西,只做简单的适配:默认仍是桌面布局,需要时点一下侧边栏底部的按钮切到移动端。
Nothing is rewritten — just a simple adaptation. Desktop layout stays the default; tap the button at the bottom of the sidebar to switch to mobile.
✨ 特性 / Features
| 中文 | English |
|---|---|
| 默认保持桌面布局,不打扰原有体验 | Desktop layout by default, no interference |
| 侧边栏底部按钮一键切换「移动端 / 桌面端」 | One-tap toggle “Mobile / Desktop” from the sidebar footer |
| 即时生效、不刷新页面 | Instant switch, no page reload |
状态记忆在浏览器 localStorage | State kept in browser localStorage |
| 三栏单列、侧边栏变抽屉、details 全屏 | Single column, drawer sidebar, full-screen details |
| 设置界面全屏单栏 + 顶部横滚导航 | Full-screen single-column settings with top scrollable nav |
| 输入条、聊天内容、弹层的基础触控与 safe-area 适配 | Basic touch & safe-area adaptations for composer, chat and popovers |
| 纯 JS、零依赖、零构建 | Pure JS, zero dependencies, no build step |
🚀 安装 / Install
以下任选一种方式。装完浏览器硬刷新即生效,无需重启
dsh web。
1. GitHub(推荐 / Recommended)
dsh plugin --profile web add github:deleteuser886/dsh-mobile-mode
2. tarball
dsh plugin --profile web add ./dsh-mobile-mode-1.0.0.tgz
3. npm(发布后可用 / If published)
dsh plugin --profile web add dsh-mobile-mode
启用 / Enable
当前是非 bundle 插件,安装后在 profile 的
cordis.patch.yml加一行引用即可启用:
- insert:
- id: dsh-mobile-mode
name: dsh-mobile-mode
📁 文件结构 / Files
dsh-mobile-mode/
├── client.js # 客户端 bundle:模式存储 / 样式 / 槽位注册
├── index.mjs # 宿主入口(空 apply)
├── package.json # dsh.client manifest
├── README.md
├── LICENSE
└── dsh-mobile-mode-1.0.0.tgz