dsh-pocket 1.9.0 → 1.9.1
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/client/client.js +3 -3
- package/client/index.jsx +3 -3
- package/package.json +1 -1
package/client/client.js
CHANGED
|
@@ -1520,11 +1520,11 @@ function PocketSettingsTab({ rpcCall }) {
|
|
|
1520
1520
|
{ style: { display: "flex", alignItems: "center", gap: 8, marginTop: 8 } },
|
|
1521
1521
|
(0, import_react2.createElement)("span", { style: { fontSize: 12, color: "var(--dsw-alias-label-secondary,#6b7280)" } }, "\u5C40\u57DF\u7F51\u8BBF\u95EE\u5BC6\u7801 | LAN access PIN"),
|
|
1522
1522
|
(0, import_react2.createElement)("button", {
|
|
1523
|
-
style: { ...styles.btn, height: 28, padding: "0 12px", fontSize: 12, fontWeight: status
|
|
1523
|
+
style: { ...styles.btn, height: 28, padding: "0 12px", fontSize: 12, fontWeight: status?.lanAuthEnabled !== false ? 600 : 400, background: status?.lanAuthEnabled !== false ? "var(--dsw-alias-button-primary-fill, var(--dsw-alias-brand-primary,#4f6ef7))" : "var(--dsw-alias-bg-layer-1,#fff)", color: status?.lanAuthEnabled !== false ? "var(--dsw-alias-label-primary-foreground, #fff)" : "var(--dsw-alias-label-primary,inherit)" },
|
|
1524
1524
|
onClick: () => setLanAuth(true)
|
|
1525
1525
|
}, "\u5F00 | On"),
|
|
1526
1526
|
(0, import_react2.createElement)("button", {
|
|
1527
|
-
style: { ...styles.btn, height: 28, padding: "0 12px", fontSize: 12, fontWeight: status
|
|
1527
|
+
style: { ...styles.btn, height: 28, padding: "0 12px", fontSize: 12, fontWeight: status?.lanAuthEnabled === false ? 600 : 400, background: status?.lanAuthEnabled === false ? "var(--dsw-alias-state-error-primary,#dc2626)" : "var(--dsw-alias-bg-layer-1,#fff)", color: status?.lanAuthEnabled === false ? "#fff" : "var(--dsw-alias-label-primary,inherit)" },
|
|
1528
1528
|
onClick: () => setLanAuth(false)
|
|
1529
1529
|
}, "\u5173 | Off")
|
|
1530
1530
|
),
|
|
@@ -1534,7 +1534,7 @@ function PocketSettingsTab({ rpcCall }) {
|
|
|
1534
1534
|
(0, import_react2.createElement)("img", { src: status.lanQr, alt: "LAN QR", style: styles.qr }),
|
|
1535
1535
|
(0, import_react2.createElement)("div", { style: styles.code }, lanUrl),
|
|
1536
1536
|
(0, import_react2.createElement)("div", { style: styles.muted }, "\u624B\u673A\u8FDE\u63A5\u540C\u4E00 WiFi \u540E\u626B\u7801\u5373\u53EF\u6253\u5F00"),
|
|
1537
|
-
status
|
|
1537
|
+
status?.lanAuthEnabled !== false ? (0, import_react2.createElement)(
|
|
1538
1538
|
"div",
|
|
1539
1539
|
{ style: { marginTop: 6, fontSize: 12, color: "var(--dsw-alias-label-secondary,#6b7280)", lineHeight: 1.5 } },
|
|
1540
1540
|
"\u{1F510} \u8BBF\u95EE\u5BC6\u7801\uFF1A",
|
package/client/index.jsx
CHANGED
|
@@ -250,11 +250,11 @@ function PocketSettingsTab({ rpcCall }) {
|
|
|
250
250
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginTop: 8 } },
|
|
251
251
|
h('span', { style: { fontSize: 12, color: 'var(--dsw-alias-label-secondary,#6b7280)' } }, '局域网访问密码 | LAN access PIN'),
|
|
252
252
|
h('button', {
|
|
253
|
-
style: { ...styles.btn, height: 28, padding: '0 12px', fontSize: 12, fontWeight: status
|
|
253
|
+
style: { ...styles.btn, height: 28, padding: '0 12px', fontSize: 12, fontWeight: status?.lanAuthEnabled !== false ? 600 : 400, background: status?.lanAuthEnabled !== false ? 'var(--dsw-alias-button-primary-fill, var(--dsw-alias-brand-primary,#4f6ef7))' : 'var(--dsw-alias-bg-layer-1,#fff)', color: status?.lanAuthEnabled !== false ? 'var(--dsw-alias-label-primary-foreground, #fff)' : 'var(--dsw-alias-label-primary,inherit)' },
|
|
254
254
|
onClick: () => setLanAuth(true),
|
|
255
255
|
}, '开 | On'),
|
|
256
256
|
h('button', {
|
|
257
|
-
style: { ...styles.btn, height: 28, padding: '0 12px', fontSize: 12, fontWeight: status
|
|
257
|
+
style: { ...styles.btn, height: 28, padding: '0 12px', fontSize: 12, fontWeight: status?.lanAuthEnabled === false ? 600 : 400, background: status?.lanAuthEnabled === false ? 'var(--dsw-alias-state-error-primary,#dc2626)' : 'var(--dsw-alias-bg-layer-1,#fff)', color: status?.lanAuthEnabled === false ? '#fff' : 'var(--dsw-alias-label-primary,inherit)' },
|
|
258
258
|
onClick: () => setLanAuth(false),
|
|
259
259
|
}, '关 | Off'),
|
|
260
260
|
),
|
|
@@ -263,7 +263,7 @@ function PocketSettingsTab({ rpcCall }) {
|
|
|
263
263
|
h('img', { src: status.lanQr, alt: 'LAN QR', style: styles.qr }),
|
|
264
264
|
h('div', { style: styles.code }, lanUrl),
|
|
265
265
|
h('div', { style: styles.muted }, '手机连接同一 WiFi 后扫码即可打开'),
|
|
266
|
-
status
|
|
266
|
+
status?.lanAuthEnabled !== false
|
|
267
267
|
? h('div', { style: { marginTop: 6, fontSize: 12, color: 'var(--dsw-alias-label-secondary,#6b7280)', lineHeight: 1.5 } },
|
|
268
268
|
'🔐 访问密码:',
|
|
269
269
|
status.lanToken,
|
package/package.json
CHANGED