dsh-mesh-access 1.4.4 → 1.4.5

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/CHANGELOG.md CHANGED
@@ -178,3 +178,7 @@
178
178
 
179
179
  - 「入口登录」三个模式按钮改为分段滑块(segmented toggle):胶囊容器内
180
180
  密钥 / 账号密码 / 关闭 三段,当前模式高亮滑块样式,点其它段即切换。
181
+
182
+ ## 1.4.5 — 滑块加模式说明
183
+
184
+ - 滑块上方加标签「门锁模式(三选一…当前:xx)」,下方加一行三种模式含义说明。
package/lib/client.js CHANGED
@@ -402,7 +402,9 @@ window.__ModuleLoader__.load({
402
402
  },
403
403
  onClick: () => { if (!authBusy && !active) setMode(m) },
404
404
  }, label)
405
+ const modeNames = { key: '密钥', basic: '账号密码', off: '已关闭' }
405
406
  return h('div', null,
407
+ h('div', { style: S.hint }, '门锁模式(三选一,点选切换;同一时间只有一种生效,当前:' + (modeNames[a.mode] || a.mode) + '):'),
406
408
  h('div', {
407
409
  style: {
408
410
  display: 'inline-flex', gap: 4, padding: 4, borderRadius: 999,
@@ -412,6 +414,11 @@ window.__ModuleLoader__.load({
412
414
  },
413
415
  modes.map(x => segItem(x.m, x.label, a.mode === x.m)),
414
416
  ),
417
+ h('div', { style: { ...S.hint, marginTop: 6 } },
418
+ '密钥=无弹窗(手机用带密钥的地址认证一次,30 天免登录) · ',
419
+ '账号密码=浏览器弹窗(登录一次 24 小时内仅该设备免登录) · ',
420
+ '关闭=无门锁(任何拿到地址的人都能进,不建议)',
421
+ ),
415
422
  authMsg ? h('div', { style: { ...S.hint, color: '#7ee787', marginTop: 8 } }, authMsg) : null,
416
423
  a.mode === 'key'
417
424
  ? h('div', { style: { marginTop: 10 } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mesh-access",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Control your DSH from your phone: opens a port on the mesh/VPN interface from inside the running server process, so a phone browser gets the same instance and the same session list — no SSH, no second dsh. Also reachable from another PC, a GUI NAS, or a TV box.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",