dsh-remote-plugin 0.8.8 → 0.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/README.en.md +16 -5
- package/README.md +15 -4
- package/apk/dsh-remote.apk +0 -0
- package/gateway.cjs +583 -84
- package/index.mjs +1 -0
- package/package.json +8 -3
- package/public/activity.js +97 -10
- package/public/admin.html +34 -33
- package/public/admin.js +10 -2
- package/public/announcements.json +36 -0
- package/public/app.js +1564 -226
- package/public/bc-integration.css +81 -0
- package/public/build.json +2 -2
- package/public/composer-tools.css +184 -0
- package/public/composer-tools.js +888 -0
- package/public/desktop/desktop.html +94 -73
- package/public/desktop/desktop.js +726 -83
- package/public/e2ee-config.js +5 -0
- package/public/e2ee-transport.js +23 -4
- package/public/file-inbox.js +77 -18
- package/public/genui.css +10 -0
- package/public/genui.js +22 -4
- package/public/history.js +114 -17
- package/public/host-queue.js +232 -0
- package/public/host-schedule.js +301 -0
- package/public/host-state.css +19 -0
- package/public/index.html +332 -140
- package/public/md.js +21 -1
- package/public/network.js +33 -1
- package/public/onboarding.js +3 -3
- package/public/operations.js +4 -3
- package/public/plan-review.css +297 -0
- package/public/plan-review.js +642 -0
- package/public/plugin.html +29 -28
- package/public/relay-autopair.js +30 -10
- package/public/relay-devices.js +7 -3
- package/public/relay-settings.css +11 -0
- package/public/relay-settings.js +372 -30
- package/public/session-cache.js +85 -0
- package/public/session-management.css +61 -0
- package/public/session-management.js +742 -0
- package/public/session-search.css +137 -0
- package/public/session-search.js +977 -0
- package/public/skins/blue-fish/preview.html +3 -3
- package/public/skins/bocchi/preview.html +5 -5
- package/public/skins/kita/preview.html +6 -6
- package/public/skins/miku/SOURCES.json +10 -0
- package/public/skins/miku/chibi.png +0 -0
- package/public/skins/miku/preview.html +33 -0
- package/public/skins/miku/skin.css +82 -0
- package/public/skins/nijika/preview.html +6 -6
- package/public/skins/penguin/preview.html +3 -3
- package/public/skins/ryo/preview.html +6 -6
- package/public/slash-suggestions.js +15 -3
- package/public/sponsor-entry.js +11 -3
- package/public/styles.css +141 -21
- package/public/subagents.css +5 -0
- package/public/subagents.js +52 -0
- package/public/theme-vars.css +65 -1
- package/public/theme.js +4 -3
- package/public/turn-diff.css +323 -0
- package/public/turn-diff.js +778 -0
- package/public/update.json +12 -12
- package/public/version.json +1 -1
- package/public/workflow.css +305 -34
- package/public/workflow.js +141 -41
package/public/plugin.html
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="zh-CN">
|
|
3
3
|
<head>
|
|
4
|
-
<meta name="dsh-remote-build" content="
|
|
4
|
+
<meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
7
7
|
<title>DSH Remote</title>
|
|
8
|
-
<script>(function(){try{var t=localStorage.getItem('dshTheme');if(t!=='default'&&t!=='dark'&&t!=='light'&&t!=='neutral'&&t!=='mono'&&t!=='fish'&&t!=='penguin'&&t!=='penguin-night'&&t!=='bocchi'&&t!=='nijika'&&t!=='ryo'&&t!=='kita'&&t!=='penguin-logistics'){t='fish'}}catch(e){t='fish'}document.documentElement.setAttribute('data-theme',t)})()</script>
|
|
9
|
-
<link rel="stylesheet" href="theme-vars.css?dsr-build=
|
|
10
|
-
<link rel="stylesheet" href="setup.css?dsr-build=
|
|
11
|
-
<link rel="stylesheet" href="insights.css?dsr-build=
|
|
12
|
-
<link rel="stylesheet" href="remote-ui.css?dsr-build=
|
|
13
|
-
<link rel="stylesheet" href="doctor.css?dsr-build=
|
|
14
|
-
<link rel="stylesheet" href="skins/blue-fish/skin.css?dsr-build=
|
|
15
|
-
<link rel="stylesheet" href="skins/penguin/skin.css?dsr-build=
|
|
16
|
-
<link rel="stylesheet" href="skins/bocchi/skin.css?dsr-build=
|
|
17
|
-
<link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=
|
|
18
|
-
<link rel="stylesheet" href="skins/nijika/skin.css?dsr-build=
|
|
19
|
-
<link rel="stylesheet" href="skins/ryo/skin.css?dsr-build=
|
|
20
|
-
<link rel="stylesheet" href="skins/kita/skin.css?dsr-build=
|
|
21
|
-
<link rel="stylesheet" href="skins/penguin-logistics/skin.css?dsr-build=
|
|
22
|
-
<
|
|
8
|
+
<script>(function(){try{var t=localStorage.getItem('dshTheme');if(t!=='default'&&t!=='dark'&&t!=='light'&&t!=='neutral'&&t!=='mono'&&t!=='fish'&&t!=='penguin'&&t!=='penguin-night'&&t!=='bocchi'&&t!=='nijika'&&t!=='ryo'&&t!=='kita'&&t!=='penguin-logistics'&&t!=='miku'){t='fish'}}catch(e){t='fish'}document.documentElement.setAttribute('data-theme',t)})()</script>
|
|
9
|
+
<link rel="stylesheet" href="theme-vars.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
10
|
+
<link rel="stylesheet" href="setup.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
11
|
+
<link rel="stylesheet" href="insights.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
12
|
+
<link rel="stylesheet" href="remote-ui.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
13
|
+
<link rel="stylesheet" href="doctor.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
14
|
+
<link rel="stylesheet" href="skins/blue-fish/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
15
|
+
<link rel="stylesheet" href="skins/penguin/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
16
|
+
<link rel="stylesheet" href="skins/bocchi/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
17
|
+
<link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
18
|
+
<link rel="stylesheet" href="skins/nijika/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
19
|
+
<link rel="stylesheet" href="skins/ryo/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
20
|
+
<link rel="stylesheet" href="skins/kita/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
21
|
+
<link rel="stylesheet" href="skins/penguin-logistics/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
22
|
+
<link rel="stylesheet" href="skins/miku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
|
|
23
|
+
<style>html[data-theme="light"],html[data-theme="neutral"],html[data-theme="fish"],html[data-theme="penguin"],html[data-theme="bocchi"],html[data-theme="nijika"],html[data-theme="ryo"],html[data-theme="kita"],html[data-theme="miku"]{color-scheme:light}</style>
|
|
23
24
|
</head>
|
|
24
25
|
<body class="remote-panel-body">
|
|
25
26
|
<main class="plugin-shell" data-motion-view>
|
|
@@ -53,17 +54,17 @@
|
|
|
53
54
|
</section>
|
|
54
55
|
<footer class="plugin-foot"><span id="plugin-version">—</span><a id="plugin-about" href="/remote/admin/#remote/settings" target="_blank" rel="noopener">关于与支持</a></footer>
|
|
55
56
|
</main>
|
|
56
|
-
<script src="i18n.js?dsr-build=
|
|
57
|
-
<script src="vendor/gsap/gsap.min.js?dsr-build=
|
|
58
|
-
<script src="motion.js?dsr-build=
|
|
59
|
-
<script type="module" src="morphicons-init.js?dsr-build=
|
|
60
|
-
<script src="qrcode.min.js?dsr-build=
|
|
61
|
-
<script src="remote-state.js?dsr-build=
|
|
62
|
-
<script src="remote-ui.js?dsr-build=
|
|
63
|
-
<script src="setup.js?dsr-build=
|
|
64
|
-
<script src="insights.js?dsr-build=
|
|
65
|
-
<script src="plugin.js?dsr-build=
|
|
66
|
-
<script src="doctor.js?dsr-build=
|
|
67
|
-
<script src="doctor-entry.js?dsr-build=
|
|
57
|
+
<script src="i18n.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
58
|
+
<script src="vendor/gsap/gsap.min.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
59
|
+
<script src="motion.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
60
|
+
<script type="module" src="morphicons-init.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
61
|
+
<script src="qrcode.min.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
62
|
+
<script src="remote-state.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
63
|
+
<script src="remote-ui.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
64
|
+
<script src="setup.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
65
|
+
<script src="insights.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
66
|
+
<script src="plugin.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
67
|
+
<script src="doctor.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
68
|
+
<script src="doctor-entry.js?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></script>
|
|
68
69
|
</body>
|
|
69
70
|
</html>
|
package/public/relay-autopair.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* Bootstrap a device pairing through an authenticated, user-confirmed LAN host. */
|
|
2
2
|
;(function(root) {
|
|
3
3
|
'use strict'
|
|
4
|
+
if (root.DSH_REMOTE_E2EE_DISABLED === true) {
|
|
5
|
+
const disabled = async () => ({ ok: false, code: 'E2EE_DISABLED' })
|
|
6
|
+
root.DshRelayAutoPair = { offer: disabled, localUrl: () => '', logText: () => '', clearLog() {}, progress: () => undefined, pairedOrigin: () => '' }
|
|
7
|
+
return
|
|
8
|
+
}
|
|
4
9
|
const bridge = root.NativeE2ee, attempts = new Set(), pairedOrigins = new Map(), progress = new Map()
|
|
5
10
|
let busy = false
|
|
6
11
|
const text = (zh, en) => root.I18N?.lang === 'en' ? en : zh
|
|
@@ -112,11 +117,11 @@
|
|
|
112
117
|
}
|
|
113
118
|
return false
|
|
114
119
|
}
|
|
115
|
-
async function verifyIdentity(c, origin, pin) {
|
|
120
|
+
async function verifyIdentity(c, origin, pin, plain = false) {
|
|
116
121
|
for (let attempt = 1; attempt <= 4 && c.valid(); attempt++) {
|
|
117
122
|
try {
|
|
118
123
|
const remote = await read(c, origin + '/relay')
|
|
119
|
-
if (remote?.e2ee?.fingerprint !== pin || new URL(remote.publicUrl).origin !== origin) throw fail('E2EE_HOST_MISMATCH')
|
|
124
|
+
if ((plain ? remote?.fingerprint : remote?.e2ee?.fingerprint) !== pin || new URL(remote.publicUrl).origin !== origin) throw fail('E2EE_HOST_MISMATCH')
|
|
120
125
|
record('verify', { attempt, ok: true })
|
|
121
126
|
return true
|
|
122
127
|
} catch (error) {
|
|
@@ -140,9 +145,9 @@
|
|
|
140
145
|
function contextKey(c) {
|
|
141
146
|
return JSON.stringify([new URL(c.url('/relay'), root.location.href).origin, c.headers?.authorization || ''])
|
|
142
147
|
}
|
|
143
|
-
async function finish(c, endpoint, origin, pin, onPaired, notify) {
|
|
148
|
+
async function finish(c, endpoint, origin, pin, onPaired, notify, plain = false) {
|
|
144
149
|
notify(text('公网通道已在线,正在验证主机身份…', 'Relay channel is online. Verifying the host…'))
|
|
145
|
-
if (!await verifyIdentity(c, origin, pin)) throw fail('E2EE_VERIFY_FAILED')
|
|
150
|
+
if (!await verifyIdentity(c, origin, pin, plain)) throw fail('E2EE_VERIFY_FAILED')
|
|
146
151
|
if (!c.valid()) throw fail('E2EE_CONNECTION_INVALID')
|
|
147
152
|
notify(text('公网主机身份已验证,正在读取会话列表…', 'Public host identity verified. Reading the session list…'))
|
|
148
153
|
if (!await verifySessions(c, origin)) throw fail('E2EE_SESSION_VERIFY_FAILED')
|
|
@@ -151,7 +156,7 @@
|
|
|
151
156
|
onPaired?.(origin, c)
|
|
152
157
|
notify(text('电脑已确认配对,公网会话读取已验证。局域网连接保留。', 'The computer confirmed pairing and the session list was read over the relay. The LAN connection is kept.'), false, 'ready')
|
|
153
158
|
}
|
|
154
|
-
async function offer({ connection, onPaired, onStatus = () => {}, force = false }) {
|
|
159
|
+
async function offer({ connection, onPaired, onStatus = () => {}, force = false, activationId = '' }) {
|
|
155
160
|
const manual = force === true
|
|
156
161
|
let key = ''
|
|
157
162
|
const notify = (message, error, phase = error ? 'error' : 'working') => {
|
|
@@ -162,7 +167,7 @@
|
|
|
162
167
|
if (manual) { record('skipped', { reason: 'native-unavailable' }); notify(reason('E2EE_NATIVE_UNAVAILABLE')) }
|
|
163
168
|
return { ok: false, code: 'E2EE_NATIVE_UNAVAILABLE' }
|
|
164
169
|
}
|
|
165
|
-
if (bridge.supported?.() === false) {
|
|
170
|
+
if (!activationId && bridge.supported?.() === false) {
|
|
166
171
|
if (manual) { record('skipped', { reason: 'tls13-unavailable' }); notify(reason('E2EE_TLS_UNAVAILABLE')) }
|
|
167
172
|
return { ok: false, code: 'E2EE_TLS_UNAVAILABLE' }
|
|
168
173
|
}
|
|
@@ -182,7 +187,7 @@
|
|
|
182
187
|
return { ok: false, code: 'E2EE_CONNECTION_INVALID' }
|
|
183
188
|
}
|
|
184
189
|
key = contextKey(c)
|
|
185
|
-
const attempt = JSON.stringify([key, c.setupId || ''])
|
|
190
|
+
const attempt = JSON.stringify([key, c.setupId || '', activationId])
|
|
186
191
|
if (!force && attempts.has(attempt)) return { ok: false, code: 'E2EE_ALREADY_ATTEMPTED' }
|
|
187
192
|
attempts.add(attempt); busy = true
|
|
188
193
|
const started = Date.now()
|
|
@@ -192,11 +197,26 @@
|
|
|
192
197
|
const host = await read(c, endpoint.href)
|
|
193
198
|
record('host', { enabled: !!host?.enabled, canPairLocally: !!host?.canPairLocally, phase: host?.phase, e2ee: !!host?.e2ee?.enabled })
|
|
194
199
|
if (!host?.canPairLocally) throw fail('E2EE_LOCAL_ONLY')
|
|
195
|
-
if (
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
if (activationId && host.activationId !== activationId) throw fail('E2EE_CONNECTION_INVALID')
|
|
201
|
+
if (!host.enabled) throw fail('E2EE_HOST_NOT_ENCRYPTED')
|
|
202
|
+
const publicUrl = new URL(host.publicUrl)
|
|
203
|
+
const origin = publicUrl.origin
|
|
204
|
+
const plain = !!activationId && host.e2ee?.enabled === false
|
|
205
|
+
const pin = plain ? host.fingerprint : host.e2ee?.fingerprint
|
|
206
|
+
if (publicUrl.protocol !== 'https:' || publicUrl.href !== origin + '/' || !/^[a-f0-9]{64}$/.test(pin || '')) throw fail('E2EE_HOST_INVALID')
|
|
198
207
|
let old = {}
|
|
199
208
|
try { old = JSON.parse(bridge.info(origin) || '{}') } catch { throw fail('E2EE_STORAGE_UNAVAILABLE') }
|
|
209
|
+
if (plain) {
|
|
210
|
+
if (old.configured || old.required || old.error) throw fail('E2EE_PAIRING_CHANGED')
|
|
211
|
+
if (!root.confirm(text('通过普通 HTTPS 连接这台主机?中转方在技术上可读取转发内容和访问令牌。\n主机:','Connect to this host over HTTPS? The relay can technically read forwarded content and your access token.\nHost: ') + origin) || !c.valid()) {
|
|
212
|
+
return { ok: false, code: 'E2EE_CANCELLED' }
|
|
213
|
+
}
|
|
214
|
+
if (host.phase !== 'online' && !await waitOnline(c, endpoint)) throw fail('E2EE_RELAY_OFFLINE')
|
|
215
|
+
await finish(c, endpoint, origin, pin, onPaired, notify, true)
|
|
216
|
+
return { ok: true, mode: 'https' }
|
|
217
|
+
}
|
|
218
|
+
if (!host.e2ee?.configured || !host.e2ee.enabled) throw fail('E2EE_HOST_NOT_ENCRYPTED')
|
|
219
|
+
if (bridge.supported?.() === false) throw fail('E2EE_TLS_UNAVAILABLE')
|
|
200
220
|
if (old.configured && old.fingerprint === pin && !old.error && old.deviceId && old.expiresAt > Date.now()) {
|
|
201
221
|
record('existing', { deviceId: old.deviceId })
|
|
202
222
|
notify(text('已保留配对,正在等待公网通道就绪…', 'Saved pairing found. Waiting for the relay channel…'))
|
package/public/relay-devices.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* Host-local device administration. Pairing secrets live only in this page's memory. */
|
|
2
2
|
;(function(root) {
|
|
3
3
|
'use strict'
|
|
4
|
+
if (root.DSH_REMOTE_E2EE_DISABLED === true) {
|
|
5
|
+
root.DshRelayDevices = { mount: () => null }
|
|
6
|
+
return
|
|
7
|
+
}
|
|
4
8
|
const text=(zh,en)=>root.I18N?.lang==='en'?en:zh
|
|
5
9
|
const make=(tag,value)=>{const e=document.createElement(tag);if(value)e.textContent=value;return e}
|
|
6
10
|
root.DshRelayDevices={mount(target,{connection,path,credentials}){
|
|
@@ -29,8 +33,8 @@
|
|
|
29
33
|
}
|
|
30
34
|
function valid(c){return !disposed&&c.valid()&&identity===JSON.stringify([c.endpoint,c.headers?.authorization||''])}
|
|
31
35
|
function render(){
|
|
32
|
-
panel.hidden=host?.canManageDevices!==true
|
|
33
|
-
enable.hidden=host?.e2ee?.enabled===true;manual.hidden
|
|
36
|
+
panel.hidden=host?.canManageDevices!==true||host?.e2ee?.allowed===false
|
|
37
|
+
enable.hidden=host?.e2ee?.allowed===false||host?.e2ee?.enabled===true;manual.hidden=host?.e2ee?.allowed===false||host?.e2ee?.enabled!==true;rotate.hidden=host?.e2ee?.allowed===false||!host?.configured
|
|
34
38
|
for(const b of [enable,refresh,rotate,create,label,days])b.disabled=busy
|
|
35
39
|
download.hidden=!pairing;list.replaceChildren()
|
|
36
40
|
for(const d of data?.devices||[]){
|
|
@@ -57,7 +61,7 @@
|
|
|
57
61
|
data=result;host={...host,...result};pairing=result.pairing||null
|
|
58
62
|
if(pairing)notice.textContent=text('配对已创建。请立即保存文件并安全传到对应设备;文件包含访问凭据,不能公开。创建或撤销会短暂断开其他中转连接。','Pairing created. Save it now and transfer it securely to the intended device. It contains access credentials. Creating or revoking a device briefly disconnects other relay clients.')
|
|
59
63
|
else if(value)notice.textContent=text('已保存。中转连接会重新建立;已受理任务继续运行。','Saved. Relay connections will reconnect; accepted tasks continue.')
|
|
60
|
-
}catch(error){if(valid(c))notice.textContent=error.message==='E2EE_DISABLED_BY_POLICY'?text('主机环境已明确关闭加密,请先在主机取消 DSH_REMOTE_RELAY_E2EE=0 并重启网关。','The host environment disables encryption. Remove DSH_REMOTE_RELAY_E2EE=0 and restart the gateway first.'):text('未能确认结果,请刷新设备列表后再决定是否重试。错误:','Result unconfirmed. Refresh the device list before deciding whether to retry. Error: ')+error.message}
|
|
64
|
+
}catch(error){if(valid(c))notice.textContent=error.message==='E2EE_DISABLED_BY_POLICY'?text('主机环境已明确关闭加密,请先在主机取消 DSH_REMOTE_RELAY_E2EE=0 并重启网关。','The host environment disables encryption. Remove DSH_REMOTE_RELAY_E2EE=0 and restart the gateway first.'):error.message==='E2EE_PLAN_REQUIRED'?text('当前套餐不含端到端加密;请开通或续费时选择流量包。','The current plan does not include end-to-end encryption. Choose a data pack when opening or renewing.'):text('未能确认结果,请刷新设备列表后再决定是否重试。错误:','Result unconfirmed. Refresh the device list before deciding whether to retry. Error: ')+error.message}
|
|
61
65
|
finally{clearTimeout(timer);if(valid(c)){busy=false;render()}}
|
|
62
66
|
}
|
|
63
67
|
form.addEventListener('submit',e=>{e.preventDefault();if(!label.value.trim())return;void run({action:'create-device',label:label.value.trim(),days:Number(days.value)})})
|
|
@@ -22,3 +22,14 @@
|
|
|
22
22
|
.relay-pair-progress[data-phase=error]{color:var(--warning,#9d4b27)}
|
|
23
23
|
.relay-phone-code:not(:empty){display:block;width:min(220px,100%);padding:8px;margin:8px 0;background:#fff;border-radius:8px}
|
|
24
24
|
.relay-phone-code svg{display:block;width:100%;height:auto}
|
|
25
|
+
|
|
26
|
+
#settings-page-cloud-relay .relay-settings{margin:12px 0 0;border-radius:var(--dsr-radius,12px);padding:16px}
|
|
27
|
+
#settings-page-cloud-relay :is(.relay-status,.relay-muted):empty{display:none}
|
|
28
|
+
.relay-registration{border-block-end:1px solid var(--dsr-line);margin-block-end:16px;padding-block-end:12px}
|
|
29
|
+
.relay-registration h3{font-size:15px;margin:0}
|
|
30
|
+
.relay-registration .relay-actions{gap:8px}
|
|
31
|
+
.relay-registration .mini-btn{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;padding-inline:12px}
|
|
32
|
+
.relay-bind-options{margin:10px 0;font-size:13px}
|
|
33
|
+
.relay-bind-options summary{padding:10px 0;cursor:pointer;color:var(--dsr-accent-strong,var(--accent));min-height:24px}
|
|
34
|
+
.relay-operation-auth{display:grid;gap:6px;margin:8px 0;font-size:13px}
|
|
35
|
+
.relay-operation-auth input{min-height:44px;max-width:100%;box-sizing:border-box;padding:8px 10px;background:transparent;color:inherit;border:1px solid var(--dsr-line);border-radius:9px;font:inherit}
|