dsh-mesh-access 1.4.1 → 1.4.3
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 +9 -0
- package/lib/client.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -164,3 +164,12 @@
|
|
|
164
164
|
渲染「入口登录」卡片即抛 `ReferenceError`,导致整个「组网访问」面板空白。
|
|
165
165
|
已补上 `const [authMsg, setAuthMsg] = react.useState('')`,
|
|
166
166
|
三种模式(密钥/账号密码/关闭)各完成组件树渲染冒烟验证。
|
|
167
|
+
|
|
168
|
+
## 1.4.2 — 面板支持滚动
|
|
169
|
+
|
|
170
|
+
- 面板根容器加 `height:100%; overflowY:auto`:内容超出可视区时可用滚轮上下滑。
|
|
171
|
+
|
|
172
|
+
## 1.4.3 — 修复「手机首次打开」地址不显示
|
|
173
|
+
|
|
174
|
+
- 1.4.0 面板读的是 tn.urlPlain(不存在),实际接口返回的是 tn.url,
|
|
175
|
+
导致密钥模式下「手机首次打开」链接整块不渲染。改为读 tn.url(公网地址)。
|
package/lib/client.js
CHANGED
|
@@ -17,7 +17,7 @@ window.__ModuleLoader__.load({
|
|
|
17
17
|
|
|
18
18
|
const PANEL_ID = 'mesh'
|
|
19
19
|
const S = {
|
|
20
|
-
wrap: { padding: '24px 28px', maxWidth: 860, color: 'inherit', font: 'inherit' },
|
|
20
|
+
wrap: { padding: '24px 28px', maxWidth: 860, color: 'inherit', font: 'inherit', height: '100%', boxSizing: 'border-box', overflowY: 'auto' },
|
|
21
21
|
h1: { fontSize: 20, fontWeight: 600, margin: '0 0 4px' },
|
|
22
22
|
sub: { opacity: 0.62, fontSize: 13, margin: '0 0 20px' },
|
|
23
23
|
card: { border: '1px solid rgba(127,127,127,.28)', borderRadius: 12, padding: '16px 18px', marginBottom: 14 },
|
|
@@ -386,7 +386,7 @@ window.__ModuleLoader__.load({
|
|
|
386
386
|
mode === 'key' ? '已切到密钥模式:手机打开下面带 meshkey 的地址一次,30 天内免登录、无弹窗'
|
|
387
387
|
: mode === 'basic' ? '已切到账号密码模式:弹窗登录一次,24 小时内该设备免登录'
|
|
388
388
|
: '已关闭入口登录:任何知道地址的人都能打开,请确认你接受')
|
|
389
|
-
const firstUrl = tn.urlPlain && a.key ? tn.urlPlain + '?meshkey=' + encodeURIComponent(a.key) : null
|
|
389
|
+
const firstUrl = (tn.url || tn.urlPlain) && a.key ? (tn.url || tn.urlPlain) + '?meshkey=' + encodeURIComponent(a.key) : null
|
|
390
390
|
const modeBtn = (m, label) => h('button', {
|
|
391
391
|
style: (a.mode === m ? S.btnPrimary : S.btn),
|
|
392
392
|
disabled: authBusy || a.mode === m, onClick: () => setMode(m),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mesh-access",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
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",
|