dsh-plugin-weapp-gateway 0.8.55 → 0.8.56

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/README.md CHANGED
@@ -11,6 +11,11 @@
11
11
  - 「兼容 App(备用)」的连接方式下拉与下方「配对入口」摘要卡片之间增加间距(16px),下拉不再紧贴提示卡片。
12
12
  - 摘要卡片的内边距、下方「配对入口地址」输入框与其余配对布局保持不变。
13
13
  - 全量测试通过。
14
+ ### v0.8.56 · 修复「点击插件弹窗空白」
15
+
16
+ - 修复 v0.8.54 整合时丢失的两个 fork 派生值:`visibleDevices` 与 `showAllDevices` 状态。有已配对设备时,设备列表渲染直接抛 `ReferenceError: visibleDevices is not defined`,整块弹窗白屏(设备为 0 时走另一分支才没暴露)。
17
+ - 已用真实 `/mgw/status` + 23 台已配对设备的真实数据跑通完整面板渲染(97 节点),并核对全部 onClick/onChange 处理器与组件辅助函数均已定义。
18
+ - 全量测试通过。
14
19
  ### v0.8.55 · 修复设置页无法加载(locale 注入缺失)
15
20
 
16
21
  - 修复 v0.8.54 引入的客户端加载失败:上游的语言同步 effect 引用了 `ctx.locale`,但 fork 未在 `inject` 里声明该服务,DSH 直接抛出 `cannot get property "locale" without inject`,整个客户端模块加载失败,设置页空白。
package/lib/client.js CHANGED
@@ -607,6 +607,8 @@ window.__ModuleLoader__.load({
607
607
  const [statusLoadError, setStatusLoadError] = React.useState(null)
608
608
  const refreshRequests = React.useRef(new Map())
609
609
  const manualRefreshRef = React.useRef(false)
610
+ // fork:离线设备折叠开关(上游整合时该状态丢失)。
611
+ const [showAllDevices, setShowAllDevices] = React.useState(false)
610
612
  const [permissionSaving, setPermissionSaving] = React.useState(null)
611
613
  const permissionLock = React.useRef(false)
612
614
  const deviceRevision = React.useRef(0)
@@ -1222,6 +1224,8 @@ window.__ModuleLoader__.load({
1222
1224
  const onlineDevices = (devices || []).filter((device) => device.online)
1223
1225
  const offlineDevices = (devices || []).filter((device) => !device.online)
1224
1226
  const orderedDevices = [...onlineDevices, ...offlineDevices]
1227
+ // fork:默认只列在线设备,展开后列全部(上游整合时该派生值丢失)。
1228
+ const visibleDevices = showAllDevices ? orderedDevices : onlineDevices
1225
1229
  const selectedCount = orderedDevices.filter(device => selectedDeviceIds.has(device.id)).length
1226
1230
  const deletingDevices = revokingIds.size > 0
1227
1231
  const deviceActionsDisabled = deletingDevices || permissionSaving !== null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-weapp-gateway",
3
- "version": "0.8.55",
3
+ "version": "0.8.56",
4
4
  "description": "鲸尾网关助手:DeepSeek Harness 移动客户端连接与会话同步,支持安全配对、远程访问、上下文、编队、额度和语音输入",
5
5
  "main": "lib/index.mjs",
6
6
  "files": [