@feiyang666/dsh-mobile-remote 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cordis.patch.yml CHANGED
@@ -1,19 +1,15 @@
1
- # dsh-mobile-remote bundle patch: 手机端远程控制插件。
2
- # 在 dsh-base / dsh-web-app 基础层之后挂载。
1
+ # dsh-mobile-remote 插件 bundle 补丁层。
2
+ # 通过 `dsh plugin --profile web add dsh-mobile-remote`(或桌面端「插件管理 → 自定义安装」)
3
+ # 安装后,本文件会在 dsh web 启动时被挂载,把下面的插件行插入到宿主组合中。
3
4
  #
4
- # `inject` 列表为必需项:让 Cordis loader 等待 webServer / tools /
5
- # sessionPersistence 服务就绪后再激活插件。否则 apply 可能早于服务
6
- # 创建就运行,/api/dsh-mobile-remote 路由注册不上,设置页会报 not found。
7
- #
8
- # Host 半提供 /api/dsh-mobile-remote JSON API(状态 / 心跳)与
9
- # mobile_remote_status 模型工具;浏览器半通过 exports["./client"] 与
10
- # package.json 的 dsh.client 声明被 dsh-client-modules 自动发现,注入
11
- # 「远程控制」设置页与移动端浮动控制条。
12
-
5
+ # 插件是 host + client 双面插件:
6
+ # - host 侧(lib/index.js,inject [webServer]):
7
+ # * 通过 ctx.webServer.tapIndex 注入移动端响应式 CSS / JS;
8
+ # * 通过 ctx.webServer.register 提供 /__dsh_remote/* API
9
+ # (status / toggle / heartbeat / qr),支持设置页远程控制开关、二维码、设备数。
10
+ # - client 侧(lib/client.js,package.json 的 dsh.client 声明):
11
+ # * 由 dsh-client-modules 扫描加载,注册「设置 → 远程控制」section。
13
12
  - insert:
14
13
  - id: dsh-mobile-remote
15
- name: '@feiyang666/dsh-mobile-remote'
16
- inject:
17
- - webServer
18
- - tools
19
- - sessionPersistence
14
+ name: 'dsh-mobile-remote'
15
+ inject: [webServer]