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. 核心用途是优化手机浏览器访问 DSH 时的界面排版。适合在手机 Termux 或移动端浏览器上使用 DSH 的用户,支持无刷切换。

Package
dsh-mobile-mode
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Aug 14, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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
状态记忆在浏览器 localStorageState 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

📄 License

MIT