dsh-mobile-plugin 0.5.65 → 0.5.66

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.
@@ -621,6 +621,7 @@ function registerControlPlaneRoutes(deps) {
621
621
  // /api/relay/panel/settings 强制进主页(演示 / 排查时跳过引导)
622
622
  // /api/relay/panel/debug 强制进调试页(桌面端那颗手机图标点开的就是它)
623
623
  // /api/relay/panel/console 强制进控制台那一窗(桌面端那颗手机图标的第一屏,见 React/src/Console.tsx)
624
+ // /api/relay/panel/remote 强制进远程电脑独立页(桌面侧边栏那颗电脑图标点开的那一窗,见 React/src/Remote.tsx)
624
625
  // 整页 HTML 不需要 token,但这几条仍然走 localOnly —— 它读的是本机运维界面,
625
626
  // 而局域网与中转那两条链路本来就不该看到它(它们带 dsh_pair/dsh_lan 凭据,会被挡掉)。
626
627
  const servePanel = (req, res) => {
@@ -656,6 +657,9 @@ function registerControlPlaneRoutes(deps) {
656
657
  // 控制台那一窗(点手机图标进来的第一屏)与上面几条吐同一份 HTML,分流同样在 React 侧。
657
658
  // 它同样放开 `allowDocumentNavigation`:入口就是桌面端弹的那一窗(同源 iframe)。
658
659
  registerRoute({ kind: 'exact', path: '/api/relay/panel/console', handler: localOnly('GET', async (req, res) => servePanel(req, res), { allowDocumentNavigation: true }) })
660
+ // 远程电脑独立页与上面几条吐同一份 HTML,分流在 React 侧(`Root.tsx` 认 `/remote`)。
661
+ // 入口是桌面侧边栏那颗电脑图标弹的窗(同源 iframe),与控制台同一条 `allowDocumentNavigation` 理由。
662
+ registerRoute({ kind: 'exact', path: '/api/relay/panel/remote', handler: localOnly('GET', async (req, res) => servePanel(req, res), { allowDocumentNavigation: true }) })
659
663
  // 手机端「已读回执」的下发口:客户端半边每 2s GET 一次,拿 sessionId → readAt 水位,
660
664
  // 对水位前进过的会话在桌面页面里就地清掉 completionUnread(见 lib/client.js)。
661
665
  // 台账由 /api/mobile/v1/session/read 写(lib/mobile/session-send.js)。
@@ -1276,6 +1280,8 @@ const WEB_ACCESS_ROUTES = new Set([
1276
1280
  '/api/relay/panel/debug',
1277
1281
  // 控制台那一窗:与上面几条同一张管理面,漏了就等于远程浏览器能绕过窗口读它。
1278
1282
  '/api/relay/panel/console',
1283
+ // 远程电脑独立页:同一张管理面,窗口门漏了它等于远程浏览器绕过窗口读这一页。
1284
+ '/api/relay/panel/remote',
1279
1285
  '/api/relay/faults',
1280
1286
  // 配对二维码含一次性票据,同时受 LOCAL_OPERATOR_ROUTES 限制;本机及局域网直连可取,公网窗口不放行。
1281
1287
  '/api/relay/pairing',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mobile-plugin",
3
- "version": "0.5.65",
3
+ "version": "0.5.66",
4
4
  "description": "Mobile API (/api/mobile/v1) and relay client for the DSH mobile app — desktop profile build (dsh 0.2.x, peers resolved by the host)",
5
5
  "license": "MIT",
6
6
  "icon": "./icon.png",