dsh-hello 0.1.1 → 0.1.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/LICENSE +21 -21
- package/README.md +8 -7
- package/cordis.patch.yml +3 -3
- package/lib/client.js +144 -81
- package/lib/config.d.ts +9 -7
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +104 -22
- package/lib/index.js.map +3 -3
- package/lib/interactions.d.ts +4 -0
- package/lib/interactions.d.ts.map +1 -1
- package/lib/interactions.js +20 -9
- package/lib/interactions.js.map +1 -1
- package/lib/routes.d.ts +4 -0
- package/lib/routes.d.ts.map +1 -1
- package/lib/routes.js +94 -14
- package/lib/routes.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 xdnote
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 xdnote
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -248,7 +248,7 @@ the app probes `/dsh-hello/health`, and pairings live under `dsh-hello/*`.
|
|
|
248
248
|
pairingTtlMs: 300000
|
|
249
249
|
pairingCodeLength: 4
|
|
250
250
|
pairingMaxAttempts: 8
|
|
251
|
-
interactionTarget: browser-
|
|
251
|
+
interactionTarget: browser-only # browser-only | browser-first | phone-first (Default | DSH first | Device first)
|
|
252
252
|
approvalWaitTimeoutMs: 120000
|
|
253
253
|
questionWaitTimeoutMs: 120000
|
|
254
254
|
allowSessionWideGrants: true
|
|
@@ -378,13 +378,14 @@ watermarks are shared across paired devices.
|
|
|
378
378
|
### Approval policy
|
|
379
379
|
|
|
380
380
|
dsh hands an approval or a question to **one** answerer: the first listener that
|
|
381
|
-
does not call `next()`. `interactionTarget` decides who that is
|
|
381
|
+
does not call `next()`. `interactionTarget` decides who that is; the admin page
|
|
382
|
+
calls the same three choices Default, DSH first and Device first.
|
|
382
383
|
|
|
383
|
-
| Value | Who answers |
|
|
384
|
-
|
|
385
|
-
|
|
|
386
|
-
| `
|
|
387
|
-
| `
|
|
384
|
+
| Admin label | Value | Who answers |
|
|
385
|
+
|---|---|---|
|
|
386
|
+
| Default (default) | `browser-only` | Nobody here: the plugin registers no listener, so dsh behaves exactly as if it were not installed. The app shows a read-only prompt and hands the decision to the Web UI. |
|
|
387
|
+
| DSH first | `browser-first` | A live web UI always answers. With no browser connected the app holds the request, even in the background. |
|
|
388
|
+
| Device first | `phone-first` | A foreground app answers, even when a browser is connected; otherwise dsh's own listeners do. |
|
|
388
389
|
|
|
389
390
|
The plugin registers unscoped (`global`) waterfall listeners ahead of the
|
|
390
391
|
browser's answerer, so the policy rather than listener order decides. dsh 0.2.2
|
package/cordis.patch.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
- insert:
|
|
2
|
-
- id: dsh-hello
|
|
3
|
-
name: dsh-hello
|
|
1
|
+
- insert:
|
|
2
|
+
- id: dsh-hello
|
|
3
|
+
name: dsh-hello
|
package/lib/client.js
CHANGED
|
@@ -36,15 +36,20 @@ window.__ModuleLoader__.load({
|
|
|
36
36
|
.dd-head{padding:0 0 18px}
|
|
37
37
|
.dd-title{font-size:18px;font-weight:600;margin:0 0 4px;color:var(--dsw-alias-label-primary)}
|
|
38
38
|
.dd-desc{margin:0;font-size:13px;line-height:1.5;color:var(--dsw-alias-label-tertiary)}
|
|
39
|
+
.dd-oneLine{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
39
40
|
.dd-row{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:0.5px solid var(--dsw-alias-border-l3,rgba(127,127,127,.22))}
|
|
41
|
+
.dd-rowTop{flex-wrap:wrap;row-gap:10px}
|
|
42
|
+
.dd-rowTop .dd-rowText{flex:1 1 240px}
|
|
43
|
+
.dd-rowTop .dd-control{margin-left:auto}
|
|
44
|
+
.dd-rowHead{border-bottom:none;padding-bottom:0}
|
|
40
45
|
.dd-row:last-child{border-bottom:none}
|
|
41
46
|
.dd-rowText{display:flex;flex-direction:column;gap:4px;min-width:0}
|
|
42
47
|
.dd-label{font-size:14px;color:var(--dsw-alias-label-primary)}
|
|
43
|
-
.dd-control{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
|
|
48
|
+
.dd-control{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
|
|
44
49
|
.dd-block{display:flex;flex-direction:column;gap:8px;padding:16px 0;border-bottom:0.5px solid var(--dsw-alias-border-l3,rgba(127,127,127,.22))}
|
|
45
50
|
.dd-code{font:600 20px ui-monospace,monospace;letter-spacing:3px;color:var(--dsw-alias-brand-primary,#3d7bfd)}
|
|
46
51
|
.dd-segment{display:inline-flex;gap:2px;padding:2px;border-radius:9px;background:var(--dsw-alias-interactive-bg-hover,rgba(127,127,127,.12))}
|
|
47
|
-
.dd-segmentButton{height:28px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--dsw-alias-label-tertiary,#888);font:inherit;font-size:13px;cursor:pointer}
|
|
52
|
+
.dd-segmentButton{height:28px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--dsw-alias-label-tertiary,#888);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
|
|
48
53
|
.dd-segmentButton.is-active{background:var(--dsw-alias-surface-primary,#fff);color:var(--dsw-alias-label-primary,#111);box-shadow:0 1px 2px rgba(0,0,0,.12)}
|
|
49
54
|
.dd-countdown{font-size:12px;color:var(--dsw-alias-label-tertiary,#888);white-space:nowrap}
|
|
50
55
|
.dd-modalBackdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35)}
|
|
@@ -86,15 +91,17 @@ window.__ModuleLoader__.load({
|
|
|
86
91
|
nav: 'DSH Hello',
|
|
87
92
|
title: 'DSH Hello',
|
|
88
93
|
pairingCode: '配对码',
|
|
89
|
-
|
|
90
|
-
lockHintOff: '关闭后不再接受新设备配对;已连接的设备不受影响',
|
|
94
|
+
lockMode: '锁定',
|
|
91
95
|
lockHintOn: '已锁定:新设备无法配对,已连接的设备照常使用',
|
|
92
|
-
lockAction: '锁定',
|
|
93
|
-
unlockAction: '解除锁定',
|
|
94
96
|
oneTimeMode: '一次性',
|
|
95
97
|
fixedMode: '永久性',
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
interactionTitle: '审批与提问',
|
|
99
|
+
interactionDefault: '默认',
|
|
100
|
+
interactionDshFirst: 'DSH 优先',
|
|
101
|
+
interactionDeviceFirst: '设备优先',
|
|
102
|
+
interactionHintDefault: '不发给手机,只在网页处理',
|
|
103
|
+
interactionHintDshFirst: '网页开着时由网页作答',
|
|
104
|
+
interactionHintDeviceFirst: '优先发给正在使用的设备',
|
|
98
105
|
remaining: '剩余 {time}',
|
|
99
106
|
reset: '重置',
|
|
100
107
|
modify: '修改',
|
|
@@ -106,8 +113,6 @@ window.__ModuleLoader__.load({
|
|
|
106
113
|
passwordInvalid: '请输入 4 位数字',
|
|
107
114
|
confirm: '确定',
|
|
108
115
|
cancel: '取消',
|
|
109
|
-
resetTitle: '恢复为一次性配对码?',
|
|
110
|
-
resetDesc: '当前永久码会立即失效,并生成新的一次性码。',
|
|
111
116
|
qrTitle: '扫码/输入',
|
|
112
117
|
qrLoading: '二维码加载中…',
|
|
113
118
|
qrHint: '请用手机打开 DSH Hello,连接 → 添加服务器 → 使用插件配对 → 扫描二维码。',
|
|
@@ -132,15 +137,17 @@ window.__ModuleLoader__.load({
|
|
|
132
137
|
nav: 'DSH Hello',
|
|
133
138
|
title: 'DSH Hello',
|
|
134
139
|
pairingCode: 'Pairing code',
|
|
135
|
-
|
|
136
|
-
lockHintOff: 'Turn this off to stop accepting new devices; paired devices keep working',
|
|
140
|
+
lockMode: 'Lock',
|
|
137
141
|
lockHintOn: 'Locked: new devices cannot pair, while paired devices keep working',
|
|
138
|
-
lockAction: 'Lock',
|
|
139
|
-
unlockAction: 'Unlock',
|
|
140
142
|
oneTimeMode: 'One-time',
|
|
141
143
|
fixedMode: 'Permanent',
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
interactionTitle: 'Approvals & questions',
|
|
145
|
+
interactionDefault: 'Default',
|
|
146
|
+
interactionDshFirst: 'DSH first',
|
|
147
|
+
interactionDeviceFirst: 'Device first',
|
|
148
|
+
interactionHintDefault: 'Web UI only; nothing reaches devices',
|
|
149
|
+
interactionHintDshFirst: 'The open web UI answers first',
|
|
150
|
+
interactionHintDeviceFirst: 'The device in use answers first',
|
|
144
151
|
remaining: '{time} left',
|
|
145
152
|
reset: 'Reset',
|
|
146
153
|
modify: 'Change',
|
|
@@ -152,8 +159,6 @@ window.__ModuleLoader__.load({
|
|
|
152
159
|
passwordInvalid: 'Enter four digits',
|
|
153
160
|
confirm: 'Confirm',
|
|
154
161
|
cancel: 'Cancel',
|
|
155
|
-
resetTitle: 'Restore one-time pairing?',
|
|
156
|
-
resetDesc: 'The permanent code stops working immediately and a fresh one-time code is generated.',
|
|
157
162
|
qrTitle: 'Scan or type',
|
|
158
163
|
qrLoading: 'Loading QR…',
|
|
159
164
|
qrHint: 'Open DSH Hello on your phone, then Connection → Add server → Plugin pairing → Scan QR code.',
|
|
@@ -274,6 +279,9 @@ window.__ModuleLoader__.load({
|
|
|
274
279
|
|
|
275
280
|
const fixed = data?.fixed === true
|
|
276
281
|
const locked = data?.locked === true
|
|
282
|
+
const interaction = data?.interactionTarget === 'phone-first' || data?.interactionTarget === 'browser-only'
|
|
283
|
+
? data.interactionTarget
|
|
284
|
+
: 'browser-first'
|
|
277
285
|
const remaining = !fixed && data ? Math.max(0, data.expiresAt - now) : null
|
|
278
286
|
const left = remaining === null
|
|
279
287
|
? ''
|
|
@@ -301,14 +309,49 @@ window.__ModuleLoader__.load({
|
|
|
301
309
|
}
|
|
302
310
|
}
|
|
303
311
|
|
|
312
|
+
async function setInteractionTarget(target) {
|
|
313
|
+
setBusy(true)
|
|
314
|
+
setError(null)
|
|
315
|
+
try {
|
|
316
|
+
const response = await fetch(BASE + '/admin/interaction' + adminBaseQuery(), {
|
|
317
|
+
method: 'POST',
|
|
318
|
+
credentials: 'same-origin',
|
|
319
|
+
headers: { 'content-type': 'application/json' },
|
|
320
|
+
body: JSON.stringify({ target }),
|
|
321
|
+
})
|
|
322
|
+
if (!response.ok) {
|
|
323
|
+
const body = await response.json().catch(() => null)
|
|
324
|
+
throw new Error(body?.error?.message || t('operationFailed'))
|
|
325
|
+
}
|
|
326
|
+
setData(await response.json())
|
|
327
|
+
} catch (failure) {
|
|
328
|
+
setError(failure instanceof Error ? failure.message : String(failure))
|
|
329
|
+
} finally {
|
|
330
|
+
setBusy(false)
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
304
334
|
const openPermanent = () => {
|
|
305
335
|
setPassword('')
|
|
306
336
|
setDialogError(null)
|
|
307
337
|
setDialog('permanent')
|
|
308
338
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
339
|
+
/**
|
|
340
|
+
* One three-way switch: Lock, One-time, Permanent. Unlocking restores
|
|
341
|
+
* whichever code mode was in force, so switching from Lock to another
|
|
342
|
+
* mode continues into that mode's dialog when it needs input.
|
|
343
|
+
*/
|
|
344
|
+
const chooseMode = async (next) => {
|
|
345
|
+
if (busy || data === null) return
|
|
346
|
+
if (next === 'lock') {
|
|
347
|
+
if (!locked) await setLocked(true)
|
|
348
|
+
return
|
|
349
|
+
}
|
|
350
|
+
if (locked) await setLocked(false)
|
|
351
|
+
// Picking One-time drops the permanent code on the spot: the switch
|
|
352
|
+
// states the intent, so it must not ask a second time.
|
|
353
|
+
if (next === 'one-time' && fixed) { await perform({ action: 'auto' }); return }
|
|
354
|
+
if (next === 'permanent' && !fixed) openPermanent()
|
|
312
355
|
}
|
|
313
356
|
const confirmPermanent = async () => {
|
|
314
357
|
const code = password.trim()
|
|
@@ -324,14 +367,6 @@ window.__ModuleLoader__.load({
|
|
|
324
367
|
setDialog(null)
|
|
325
368
|
setPassword('')
|
|
326
369
|
}
|
|
327
|
-
const confirmReset = async () => {
|
|
328
|
-
const failure = await perform({ action: 'auto' })
|
|
329
|
-
if (failure !== null) {
|
|
330
|
-
setDialogError(failure)
|
|
331
|
-
return
|
|
332
|
-
}
|
|
333
|
-
setDialog(null)
|
|
334
|
-
}
|
|
335
370
|
|
|
336
371
|
const revokeDevice = async (device) => {
|
|
337
372
|
const name = device.deviceName || String(device.deviceId || '').slice(0, 12)
|
|
@@ -398,61 +433,95 @@ window.__ModuleLoader__.load({
|
|
|
398
433
|
h('h2', { className: 'dd-title' }, t('title'))),
|
|
399
434
|
error === null ? null : h('p', { className: 'dd-error' }, error),
|
|
400
435
|
|
|
401
|
-
h('div', { className: 'dd-row' },
|
|
436
|
+
h('div', { className: 'dd-row dd-rowTop dd-rowHead' },
|
|
402
437
|
h('div', { className: 'dd-rowText' },
|
|
403
|
-
h('span', { className: 'dd-label' }, t('
|
|
404
|
-
h('span', { className: 'dd-desc' }, locked ? t('lockHintOn') : t('lockHintOff')),
|
|
438
|
+
h('span', { className: 'dd-label' }, t('pairingCode')),
|
|
405
439
|
),
|
|
406
440
|
h('div', { className: 'dd-control' },
|
|
407
|
-
h(
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
441
|
+
h('div', { className: 'dd-segment' },
|
|
442
|
+
h('button', {
|
|
443
|
+
type: 'button',
|
|
444
|
+
className: 'dd-segmentButton' + (locked ? ' is-active' : ''),
|
|
445
|
+
disabled: busy || data === null,
|
|
446
|
+
onClick: () => { void chooseMode('lock') },
|
|
447
|
+
}, t('lockMode')),
|
|
448
|
+
h('button', {
|
|
449
|
+
type: 'button',
|
|
450
|
+
className: 'dd-segmentButton' + (!locked && !fixed ? ' is-active' : ''),
|
|
451
|
+
disabled: busy || data === null,
|
|
452
|
+
onClick: () => { void chooseMode('one-time') },
|
|
453
|
+
}, t('oneTimeMode')),
|
|
454
|
+
h('button', {
|
|
455
|
+
type: 'button',
|
|
456
|
+
className: 'dd-segmentButton' + (!locked && fixed ? ' is-active' : ''),
|
|
457
|
+
disabled: busy || data === null,
|
|
458
|
+
onClick: () => { void chooseMode('permanent') },
|
|
459
|
+
}, t('fixedMode')),
|
|
460
|
+
),
|
|
413
461
|
),
|
|
414
462
|
),
|
|
415
463
|
|
|
416
|
-
|
|
464
|
+
locked
|
|
465
|
+
? h('div', { className: 'dd-row' },
|
|
466
|
+
h('span', { className: 'dd-desc' }, t('lockHintOn')),
|
|
467
|
+
)
|
|
468
|
+
: [
|
|
469
|
+
h('div', { className: 'dd-row', key: 'code' },
|
|
470
|
+
h('span', { className: 'dd-code' }, data?.formatted ?? '…'),
|
|
471
|
+
h('div', { className: 'dd-control' },
|
|
472
|
+
fixed
|
|
473
|
+
? h(Button, {
|
|
474
|
+
variant: 'primary',
|
|
475
|
+
size: 'sm',
|
|
476
|
+
disabled: busy,
|
|
477
|
+
onClick: openPermanent,
|
|
478
|
+
}, t('modify'))
|
|
479
|
+
: h('span', { className: 'dd-countdown' }, left.length > 0 ? t('remaining', { time: left }) : ''),
|
|
480
|
+
),
|
|
481
|
+
),
|
|
482
|
+
h('div', { className: 'dd-block', key: 'qr' },
|
|
483
|
+
h('span', { className: 'dd-label' }, t('qrTitle')),
|
|
484
|
+
typeof data?.qrSvg === 'string' && data.qrSvg.startsWith('<svg')
|
|
485
|
+
? h('div', { className: 'dd-qr-img', dangerouslySetInnerHTML: { __html: data.qrSvg } })
|
|
486
|
+
: h('span', { className: 'dd-desc' }, t('qrFailed')),
|
|
487
|
+
h('span', { className: 'dd-desc' }, t('qrHint')),
|
|
488
|
+
),
|
|
489
|
+
],
|
|
490
|
+
|
|
491
|
+
h('div', { className: 'dd-row dd-rowTop' },
|
|
417
492
|
h('div', { className: 'dd-rowText' },
|
|
418
|
-
h('span', { className: 'dd-label' }, t('
|
|
419
|
-
h('span', { className: 'dd-desc' },
|
|
493
|
+
h('span', { className: 'dd-label' }, t('interactionTitle')),
|
|
494
|
+
h('span', { className: 'dd-desc dd-oneLine' },
|
|
495
|
+
interaction === 'phone-first'
|
|
496
|
+
? t('interactionHintDeviceFirst')
|
|
497
|
+
: interaction === 'browser-first'
|
|
498
|
+
? t('interactionHintDshFirst')
|
|
499
|
+
: t('interactionHintDefault')),
|
|
420
500
|
),
|
|
421
501
|
h('div', { className: 'dd-control' },
|
|
422
502
|
h('div', { className: 'dd-segment' },
|
|
423
503
|
h('button', {
|
|
424
504
|
type: 'button',
|
|
425
|
-
className: 'dd-segmentButton' + (
|
|
505
|
+
className: 'dd-segmentButton' + (interaction === 'browser-only' ? ' is-active' : ''),
|
|
426
506
|
disabled: busy || data === null,
|
|
427
|
-
onClick: () => {
|
|
428
|
-
}, t('
|
|
507
|
+
onClick: () => { void setInteractionTarget('browser-only') },
|
|
508
|
+
}, t('interactionDefault')),
|
|
429
509
|
h('button', {
|
|
430
510
|
type: 'button',
|
|
431
|
-
className: 'dd-segmentButton' + (
|
|
511
|
+
className: 'dd-segmentButton' + (interaction === 'browser-first' ? ' is-active' : ''),
|
|
432
512
|
disabled: busy || data === null,
|
|
433
|
-
onClick: () => {
|
|
434
|
-
}, t('
|
|
513
|
+
onClick: () => { void setInteractionTarget('browser-first') },
|
|
514
|
+
}, t('interactionDshFirst')),
|
|
515
|
+
h('button', {
|
|
516
|
+
type: 'button',
|
|
517
|
+
className: 'dd-segmentButton' + (interaction === 'phone-first' ? ' is-active' : ''),
|
|
518
|
+
disabled: busy || data === null,
|
|
519
|
+
onClick: () => { void setInteractionTarget('phone-first') },
|
|
520
|
+
}, t('interactionDeviceFirst')),
|
|
435
521
|
),
|
|
436
|
-
h('span', { className: 'dd-code' }, data?.formatted ?? '…'),
|
|
437
|
-
fixed
|
|
438
|
-
? h(Button, {
|
|
439
|
-
variant: 'outline',
|
|
440
|
-
size: 'sm',
|
|
441
|
-
disabled: busy,
|
|
442
|
-
onClick: openPermanent,
|
|
443
|
-
}, t('modify'))
|
|
444
|
-
: h('span', { className: 'dd-countdown' }, left.length > 0 ? t('remaining', { time: left }) : ''),
|
|
445
522
|
),
|
|
446
523
|
),
|
|
447
524
|
|
|
448
|
-
h('div', { className: 'dd-block' },
|
|
449
|
-
h('span', { className: 'dd-label' }, t('qrTitle')),
|
|
450
|
-
data?.qrSvg
|
|
451
|
-
? h('div', { className: 'dd-qr-img', dangerouslySetInnerHTML: { __html: data.qrSvg } })
|
|
452
|
-
: h('span', { className: 'dd-desc' }, t('qrFailed')),
|
|
453
|
-
h('span', { className: 'dd-desc' }, t('qrHint')),
|
|
454
|
-
),
|
|
455
|
-
|
|
456
525
|
h('div', { className: 'dd-block' },
|
|
457
526
|
h('span', { className: 'dd-label' }, t('devices')),
|
|
458
527
|
h('div', { className: 'dd-devices' },
|
|
@@ -497,23 +566,17 @@ window.__ModuleLoader__.load({
|
|
|
497
566
|
},
|
|
498
567
|
h('div', { className: 'dd-modal', role: 'dialog', 'aria-modal': 'true' },
|
|
499
568
|
h('h3', { className: 'dd-modalTitle' },
|
|
500
|
-
|
|
501
|
-
? (fixed ? t('modifyTitle') : t('setPermanentTitle'))
|
|
502
|
-
: t('resetTitle')),
|
|
569
|
+
fixed ? t('modifyTitle') : t('setPermanentTitle')),
|
|
503
570
|
h('p', { className: 'dd-desc' },
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
autoComplete: 'off',
|
|
514
|
-
onChange: event => setPassword(event.target.value.replace(/\D/g, '').slice(0, 4)),
|
|
515
|
-
})
|
|
516
|
-
: null,
|
|
571
|
+
fixed ? t('modifyDesc') : t('setPermanentDesc')),
|
|
572
|
+
h(Input, {
|
|
573
|
+
className: 'dd-modalInput',
|
|
574
|
+
value: password,
|
|
575
|
+
placeholder: t('passwordPlaceholder'),
|
|
576
|
+
autoFocus: true,
|
|
577
|
+
autoComplete: 'off',
|
|
578
|
+
onChange: event => setPassword(event.target.value.replace(/\D/g, '').slice(0, 4)),
|
|
579
|
+
}),
|
|
517
580
|
dialogError === null ? null : h('p', { className: 'dd-error' }, dialogError),
|
|
518
581
|
h('div', { className: 'dd-modalActions' },
|
|
519
582
|
h(Button, {
|
|
@@ -526,7 +589,7 @@ window.__ModuleLoader__.load({
|
|
|
526
589
|
variant: 'primary',
|
|
527
590
|
size: 'sm',
|
|
528
591
|
disabled: busy,
|
|
529
|
-
onClick: () => { void
|
|
592
|
+
onClick: () => { void confirmPermanent() },
|
|
530
593
|
}, t('confirm')),
|
|
531
594
|
),
|
|
532
595
|
)),
|
package/lib/config.d.ts
CHANGED
|
@@ -68,13 +68,15 @@ export interface Config {
|
|
|
68
68
|
*
|
|
69
69
|
* dsh dispatches both through one agent-scoped waterfall, so exactly one
|
|
70
70
|
* answerer sees a request: whoever holds it first. This switch decides who
|
|
71
|
-
* that is.
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* - `browser-
|
|
77
|
-
*
|
|
71
|
+
* that is. The admin page offers the same three choices as Default, DSH
|
|
72
|
+
* first and Device first.
|
|
73
|
+
* - `browser-only` (Default): this plugin never answers - dsh behaves as if
|
|
74
|
+
* it were not installed - and the app only shows a prompt that opens the
|
|
75
|
+
* Web UI.
|
|
76
|
+
* - `browser-first` (DSH first): a live web UI always answers; the app holds
|
|
77
|
+
* only when no browser is connected (phone-only, on the go).
|
|
78
|
+
* - `phone-first` (Device first): the app holds requests while it is in the
|
|
79
|
+
* foreground; anything else falls through to dsh's own listeners.
|
|
78
80
|
*/
|
|
79
81
|
interactionTarget: InteractionTarget;
|
|
80
82
|
/** How long an approval request is held for the app before delegation. */
|
package/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAE7C,MAAM,WAAW,UAAU;IACzB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;IAC3C,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,yEAAyE;IACzE,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,eAAe,EAAE,SAAS,GAAG,YAAY,CAAA;IACzC,+CAA+C;IAC/C,aAAa,EAAE,OAAO,CAAA;IACtB,4CAA4C;IAC5C,cAAc,EAAE,OAAO,CAAA;IACvB,yCAAyC;IACzC,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,CAAA;AAEhF,MAAM,WAAW,MAAM;IACrB,0EAA0E;IAC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,CAAA"}
|
package/lib/config.js
CHANGED
|
@@ -13,7 +13,7 @@ export const Config = Schema.object({
|
|
|
13
13
|
pairingMaxAttempts: Schema.number().default(8),
|
|
14
14
|
pairingCode: Schema.string(),
|
|
15
15
|
logPairingCode: Schema.boolean().default(true),
|
|
16
|
-
interactionTarget: Schema.union(['phone-first', 'browser-first', 'browser-only']).default('browser-
|
|
16
|
+
interactionTarget: Schema.union(['phone-first', 'browser-first', 'browser-only']).default('browser-only'),
|
|
17
17
|
approvalWaitTimeoutMs: Schema.number().default(2 * 60 * 1000),
|
|
18
18
|
questionWaitTimeoutMs: Schema.number().default(2 * 60 * 1000),
|
|
19
19
|
allowSessionWideGrants: Schema.boolean().default(true),
|
|
@@ -55,7 +55,7 @@ export function normalizeConfig(input) {
|
|
|
55
55
|
pairingCodeLength: raw.pairingCodeLength ?? 4,
|
|
56
56
|
pairingMaxAttempts: raw.pairingMaxAttempts ?? 8,
|
|
57
57
|
logPairingCode: raw.logPairingCode ?? true,
|
|
58
|
-
interactionTarget: raw.interactionTarget ?? 'browser-
|
|
58
|
+
interactionTarget: raw.interactionTarget ?? 'browser-only',
|
|
59
59
|
approvalWaitTimeoutMs: raw.approvalWaitTimeoutMs ?? 2 * 60 * 1000,
|
|
60
60
|
questionWaitTimeoutMs: raw.questionWaitTimeoutMs ?? 2 * 60 * 1000,
|
|
61
61
|
allowSessionWideGrants: raw.allowSessionWideGrants ?? true,
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,MAAM,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,MAAM,MAAM,0BAA0B,CAAA;AA4G7C,MAAM,CAAC,MAAM,MAAM,GAAmB,MAAM,CAAC,MAAM,CAAC;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EAAE,MAAM,IAAI,YAAY,EAAE,CAAA;AACtC,eAAO,MAAM,IAAI,cAAc,CAAA;AAE/B;;;;GAIG;AACH,eAAO,MAAM,MAAM,UAAoD,CAAA;AAIvE;;;;GAIG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAmB,KAAK,MAAM,IAAI,YAAY,EAAE,MAAM,aAAa,CAAA;AAGlF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAK5C,OAAO,EAAuB,eAAe,EAAE,MAAM,eAAe,CAAA;AAMpE,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,YAAY,EAAE,MAAM,IAAI,YAAY,EAAE,CAAA;AACtC,eAAO,MAAM,IAAI,cAAc,CAAA;AAE/B;;;;GAIG;AACH,eAAO,MAAM,MAAM,UAAoD,CAAA;AAIvE;;;;GAIG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAmJ9F;AAmGD,OAAO,EAAE,eAAe,EAAE,CAAA"}
|