@andy.ian/dsh-homing 2.1.6 → 2.1.7

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.
@@ -14472,6 +14472,18 @@ function setupToolbar() {
14472
14472
  autoBtn,
14473
14473
  button("\u5173\u95ED\u7A97\u53E3", () => pickWindowAction("close")),
14474
14474
  button("\u9000\u51FA\u7A0B\u5E8F", () => pickWindowAction("kill")),
14475
+ button("Ctrl+Alt+Del", () => {
14476
+ try {
14477
+ if (rfb && typeof rfb.sendCtrlAltDel === "function") {
14478
+ rfb.sendCtrlAltDel();
14479
+ setStatus("\u5DF2\u53D1\u9001 Ctrl+Alt+Del\uFF0C\u8BF7\u5728\u9501\u5C4F\u8F93\u5165 PIN", "ok");
14480
+ } else {
14481
+ setStatus("\u5F53\u524D\u8FDE\u63A5\u4E0D\u652F\u6301\u53D1\u9001 Ctrl+Alt+Del", "bad");
14482
+ }
14483
+ } catch (error) {
14484
+ setStatus("\u53D1\u9001\u5931\u8D25\uFF1A" + (error?.message ?? error), "bad");
14485
+ }
14486
+ }),
14475
14487
  button("Alt+F4", () => sendCombo("alt", "f4")),
14476
14488
  button("\u5207\u6362\u7A97\u53E3", () => sendCombo("alt", "tab")),
14477
14489
  button("\u7535\u8111\u7AD6\u5C4F", () => rotateDesktop("portrait")),
package/lib/vnc-app.js CHANGED
@@ -444,6 +444,18 @@ function setupToolbar() {
444
444
  autoBtn,
445
445
  button('关闭窗口', () => pickWindowAction('close')),
446
446
  button('退出程序', () => pickWindowAction('kill')),
447
+ button('Ctrl+Alt+Del', () => {
448
+ try {
449
+ if (rfb && typeof rfb.sendCtrlAltDel === 'function') {
450
+ rfb.sendCtrlAltDel()
451
+ setStatus('已发送 Ctrl+Alt+Del,请在锁屏输入 PIN', 'ok')
452
+ } else {
453
+ setStatus('当前连接不支持发送 Ctrl+Alt+Del', 'bad')
454
+ }
455
+ } catch (error) {
456
+ setStatus('发送失败:' + (error?.message ?? error), 'bad')
457
+ }
458
+ }),
447
459
  button('Alt+F4', () => sendCombo('alt', 'f4')),
448
460
  button('切换窗口', () => sendCombo('alt', 'tab')),
449
461
  button('电脑竖屏', () => rotateDesktop('portrait')),
package/lib/vnc-boot.js CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  const script = document.createElement('script')
34
34
  script.type = 'module'
35
- script.src = '/vnc/bundle.js?v=40'
35
+ script.src = '/vnc/bundle.js?v=41'
36
36
  script.onload = () => {
37
37
  boot('就绪,点连接')
38
38
  report('bundle-loaded', 'ok')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andy.ian/dsh-homing",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "type": "module",
5
5
  "description": "把本机 DSH 通过 SSH 反向隧道安全开放到手机浏览器:TLS 端到端(服务器只透传)、账号 + TOTP、局域网与公网双入口,随 DSH 启动。",
6
6
  "keywords": [