dsh-browser-cdp 0.17.23 → 0.17.25
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.md +29 -0
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/bin/cdp-cast-worker.mjs +93 -11
- package/dsh-plugin.json +1 -1
- package/lib/client.js +171 -15
- package/lib/index.js +300 -59
- package/lib/{launcher-DBaxfIsF.js → launcher-BadIUjAx.js} +160 -28
- package/lib/launcher-h0Ca5NV1.js +3 -0
- package/package.json +1 -1
- package/lib/launcher-CQyI8-By.js +0 -3
package/lib/client.js
CHANGED
|
@@ -28,6 +28,7 @@ const zh = {
|
|
|
28
28
|
"pinned": "已固定查看",
|
|
29
29
|
"realtime": "正在实时浏览",
|
|
30
30
|
"noScreenshot": "(暂无截图 — about:blank 或浏览器未渲染)",
|
|
31
|
+
"engineUnsupportedBanner": "(当前引擎不支持实时画面 — Lightpanda 为文本渲染,可用 bcdp_snapshot / bcdp_screenshot 查看)",
|
|
31
32
|
"noActivePages": "暂无活跃浏览器页",
|
|
32
33
|
"noActiveHint": "当 agent 开始用 bcdp_* 操作网页时,这里会实时显示",
|
|
33
34
|
"openExternal": "⧉ 打开真实页",
|
|
@@ -38,6 +39,7 @@ const zh = {
|
|
|
38
39
|
"picking": "点选中…请点击页面里的元素",
|
|
39
40
|
"picked": "已捕获元素",
|
|
40
41
|
"pickFailed": "点选失败",
|
|
42
|
+
"engineUnsupportedPick": "当前引擎不支持面板点选(无 Overlay/无实时画面)— 请用 bcdp_snapshot 定位元素",
|
|
41
43
|
"pickQuoted": "✓ 已引用到输入框",
|
|
42
44
|
"pickDeliverFailed": "投递失败",
|
|
43
45
|
"noUrl": "无可打开的地址",
|
|
@@ -146,6 +148,11 @@ const zh = {
|
|
|
146
148
|
"linksAddCdp": "添加 CDP 端点",
|
|
147
149
|
"linksAddCli": "添加本机 ego CLI",
|
|
148
150
|
"linksAddCliExists": "本机 ego CLI 连接已存在——仅限本机,一台机器只允许一条",
|
|
151
|
+
"linksAddLp": "添加 Lightpanda(受管)",
|
|
152
|
+
"linksAddLpExists": "Lightpanda 连接已存在——仅限本机,一台机器只允许一条",
|
|
153
|
+
"linksLpPathHint": "留空 = 自动检测(PATH → ~/.local/bin;Windows 经 WSL2)",
|
|
154
|
+
"linksLpHeadlessHint": "无头快速试验引擎:无法人工兜底(登录/验证码)。排前面 = 快速场景优先用它;排在有头类型(CDP/本机 Chrome/ego CLI)后 = 兜底优先。",
|
|
155
|
+
"linksLpRemoteWarn": "cdpMode=remote 时激活 Lightpanda 行会报 mode-kind-mismatch",
|
|
149
156
|
"linksEndpoint": "端点",
|
|
150
157
|
"linksEndpointHint": "http(s)://主机:端口 或 ws(s)://…",
|
|
151
158
|
"linksEndpointInvalid": "端点无效,未保存",
|
|
@@ -179,6 +186,7 @@ const en = {
|
|
|
179
186
|
"pinned": "Pinned",
|
|
180
187
|
"realtime": "Live",
|
|
181
188
|
"noScreenshot": "(no screenshot — about:blank or browser not rendering)",
|
|
189
|
+
"engineUnsupportedBanner": "(live view unsupported on this engine — Lightpanda renders text; use bcdp_snapshot / bcdp_screenshot instead)",
|
|
182
190
|
"noActivePages": "No active browser pages",
|
|
183
191
|
"noActiveHint": "Pages will appear here as the agent browses with bcdp_*",
|
|
184
192
|
"openExternal": "Open real page",
|
|
@@ -189,6 +197,7 @@ const en = {
|
|
|
189
197
|
"picking": "Picking… click an element in the page",
|
|
190
198
|
"picked": "Element captured",
|
|
191
199
|
"pickFailed": "Pick failed",
|
|
200
|
+
"engineUnsupportedPick": "picking is unsupported on this engine (no Overlay / no live view) — use bcdp_snapshot to locate elements",
|
|
192
201
|
"pickQuoted": "✓ Quoted to composer",
|
|
193
202
|
"pickDeliverFailed": "Delivery failed",
|
|
194
203
|
"noUrl": "No URL to open",
|
|
@@ -297,6 +306,11 @@ const en = {
|
|
|
297
306
|
"linksAddCdp": "Add CDP endpoint",
|
|
298
307
|
"linksAddCli": "Add local ego CLI",
|
|
299
308
|
"linksAddCliExists": "The local ego CLI link already exists — local-only, one per machine",
|
|
309
|
+
"linksAddLp": "Add Lightpanda (managed)",
|
|
310
|
+
"linksAddLpExists": "The Lightpanda link already exists — local-only, one per machine",
|
|
311
|
+
"linksLpPathHint": "Empty = auto (PATH → ~/.local/bin; Windows runs it inside WSL2)",
|
|
312
|
+
"linksLpHeadlessHint": "Headless quick-trial engine — no manual fallback (login/captcha). Early in the order = quick trials use it; after the headed kinds (CDP / local Chrome / ego CLI) = backstop first.",
|
|
313
|
+
"linksLpRemoteWarn": "Activating a Lightpanda link under cdpMode=remote fails with mode-kind-mismatch",
|
|
300
314
|
"linksEndpoint": "Endpoint",
|
|
301
315
|
"linksEndpointHint": "http(s)://host:port or ws(s)://…",
|
|
302
316
|
"linksEndpointInvalid": "Invalid endpoint — not saved",
|
|
@@ -330,6 +344,7 @@ const ja = {
|
|
|
330
344
|
"pinned": "固定表示中",
|
|
331
345
|
"realtime": "ライブ閲覧中",
|
|
332
346
|
"noScreenshot": "(スクリーンショットなし — about:blank またはブラウザが描画していません)",
|
|
347
|
+
"engineUnsupportedBanner": "(このエンジンはライブ映像に対応していません — Lightpanda はテキスト描画です。bcdp_snapshot / bcdp_screenshot を利用してください)",
|
|
333
348
|
"noActivePages": "アクティブなブラウザページはありません",
|
|
334
349
|
"noActiveHint": "エージェントが bcdp_* でページを操作し始めると、ここにライブ表示されます",
|
|
335
350
|
"openExternal": "実際のページを開く",
|
|
@@ -340,6 +355,7 @@ const ja = {
|
|
|
340
355
|
"picking": "選択中…ページ内の要素をクリックしてください",
|
|
341
356
|
"picked": "要素をキャプチャしました",
|
|
342
357
|
"pickFailed": "選択に失敗しました",
|
|
358
|
+
"engineUnsupportedPick": "このエンジンは要素ピックに対応していません(Overlay/ライブ表示なし)— bcdp_snapshot で要素を特定してください",
|
|
343
359
|
"pickQuoted": "✓ 入力欄に引用しました",
|
|
344
360
|
"pickDeliverFailed": "配送に失敗しました",
|
|
345
361
|
"noUrl": "開ける URL がありません",
|
|
@@ -448,6 +464,11 @@ const ja = {
|
|
|
448
464
|
"linksAddCdp": "CDP エンドポイントを追加",
|
|
449
465
|
"linksAddCli": "ローカル ego CLI を追加",
|
|
450
466
|
"linksAddCliExists": "ローカル ego CLI 接続は既に存在します — 1 台につき 1 件のみ",
|
|
467
|
+
"linksAddLp": "Lightpanda(管理)を追加",
|
|
468
|
+
"linksAddLpExists": "Lightpanda 接続は既に存在します——ローカル専用、1 台につき 1 件",
|
|
469
|
+
"linksLpPathHint": "空欄 = 自動検出(PATH → ~/.local/bin、Windows は WSL2 経由)",
|
|
470
|
+
"linksLpHeadlessHint": "ヘッドレスのクイック試行エンジン——手動フォールバック不可(ログイン/CAPTCHA)。順序の先頭 = 高速試行で優先使用、ヘッドあり種別(CDP/ローカル Chrome/ego CLI)の後ろ = バックストップ優先。",
|
|
471
|
+
"linksLpRemoteWarn": "cdpMode=remote で Lightpanda 行を有効化すると mode-kind-mismatch になります",
|
|
451
472
|
"linksEndpoint": "エンドポイント",
|
|
452
473
|
"linksEndpointHint": "http(s)://ホスト:ポート または ws(s)://…",
|
|
453
474
|
"linksEndpointInvalid": "エンドポイントが無効 — 保存していません",
|
|
@@ -481,6 +502,7 @@ const ko = {
|
|
|
481
502
|
"pinned": "고정 보기 중",
|
|
482
503
|
"realtime": "실시간 탐색 중",
|
|
483
504
|
"noScreenshot": "(스크린샷 없음 — about:blank 또는 브라우저가 렌더링하지 않음)",
|
|
505
|
+
"engineUnsupportedBanner": "(이 엔진은 실시간 화면을 지원하지 않습니다 — Lightpanda는 텍스트 렌더링입니다. bcdp_snapshot / bcdp_screenshot을 사용하세요)",
|
|
484
506
|
"noActivePages": "활성 브라우저 페이지 없음",
|
|
485
507
|
"noActiveHint": "agent가 bcdp_*로 웹 페이지를 조작하기 시작하면 여기에 실시간으로 표시됩니다",
|
|
486
508
|
"openExternal": "실제 페이지 열기",
|
|
@@ -491,6 +513,7 @@ const ko = {
|
|
|
491
513
|
"picking": "선택 중… 페이지의 요소를 클릭하세요",
|
|
492
514
|
"picked": "요소 캡처됨",
|
|
493
515
|
"pickFailed": "선택 실패",
|
|
516
|
+
"engineUnsupportedPick": "이 엔진은 요소 선택을 지원하지 않습니다(Overlay/실시간 화면 없음) — bcdp_snapshot으로 요소를 찾으세요",
|
|
494
517
|
"pickQuoted": "✓ 입력창에 인용됨",
|
|
495
518
|
"pickDeliverFailed": "전달 실패",
|
|
496
519
|
"noUrl": "열 수 있는 주소가 없습니다",
|
|
@@ -599,6 +622,11 @@ const ko = {
|
|
|
599
622
|
"linksAddCdp": "CDP 엔드포인트 추가",
|
|
600
623
|
"linksAddCli": "로컬 ego CLI 추가",
|
|
601
624
|
"linksAddCliExists": "로컬 ego CLI 연결이 이미 있습니다 — 머신당 하나만 허용됩니다",
|
|
625
|
+
"linksAddLp": "Lightpanda(관리) 추가",
|
|
626
|
+
"linksAddLpExists": "Lightpanda 연결이 이미 있습니다——로컬 전용, 머신당 1개",
|
|
627
|
+
"linksLpPathHint": "비워 두면 자동 감지(PATH → ~/.local/bin, Windows는 WSL2 경유)",
|
|
628
|
+
"linksLpHeadlessHint": "헤드리스 빠른 시험 엔진——수동 폴백 불가(로그인/CAPTCHA). 순서 앞쪽 = 빠른 시나리오에서 우선 사용, 헤드 있는 종류(CDP/로컬 Chrome/ego CLI) 뒤 = 백스톱 우선.",
|
|
629
|
+
"linksLpRemoteWarn": "cdpMode=remote에서 Lightpanda 행을 활성화하면 mode-kind-mismatch가 발생합니다",
|
|
602
630
|
"linksEndpoint": "엔드포인트",
|
|
603
631
|
"linksEndpointHint": "http(s)://호스트:포트 또는 ws(s)://…",
|
|
604
632
|
"linksEndpointInvalid": "엔드포인트가 잘못되었습니다 — 저장하지 않았습니다",
|
|
@@ -632,6 +660,7 @@ const fr = {
|
|
|
632
660
|
"pinned": "Vue épinglée",
|
|
633
661
|
"realtime": "Navigation en direct",
|
|
634
662
|
"noScreenshot": "(pas de capture — about:blank ou navigateur inactif)",
|
|
663
|
+
"engineUnsupportedBanner": "(le flux en direct n'est pas pris en charge par ce moteur — Lightpanda rend du texte ; utilisez bcdp_snapshot / bcdp_screenshot)",
|
|
635
664
|
"noActivePages": "Aucune page de navigateur active",
|
|
636
665
|
"noActiveHint": "Les pages apparaîtront ici dès que l'agent naviguera avec bcdp_*",
|
|
637
666
|
"openExternal": "Ouvrir la vraie page",
|
|
@@ -642,6 +671,7 @@ const fr = {
|
|
|
642
671
|
"picking": "Sélection… cliquez un élément dans la page",
|
|
643
672
|
"picked": "Élément capturé",
|
|
644
673
|
"pickFailed": "Échec de la sélection",
|
|
674
|
+
"engineUnsupportedPick": "la sélection d'éléments n'est pas prise en charge sur ce moteur (pas d'Overlay / pas de flux en direct) — utilisez bcdp_snapshot",
|
|
645
675
|
"pickQuoted": "✓ Cité dans la zone de saisie",
|
|
646
676
|
"pickDeliverFailed": "Échec de l'envoi",
|
|
647
677
|
"noUrl": "Aucune URL à ouvrir",
|
|
@@ -750,6 +780,11 @@ const fr = {
|
|
|
750
780
|
"linksAddCdp": "Ajouter un point de terminaison CDP",
|
|
751
781
|
"linksAddCli": "Ajouter un ego CLI local",
|
|
752
782
|
"linksAddCliExists": "La connexion ego CLI locale existe déjà — une seule par machine",
|
|
783
|
+
"linksAddLp": "Ajouter Lightpanda (géré)",
|
|
784
|
+
"linksAddLpExists": "La connexion Lightpanda existe déjà — local uniquement, une seule par machine",
|
|
785
|
+
"linksLpPathHint": "Vide = détection auto (PATH → ~/.local/bin ; Windows passe par WSL2)",
|
|
786
|
+
"linksLpHeadlessHint": "Moteur headless d'essai rapide — aucun repli manuel (connexion/captcha). En début d'ordre = essais rapides en priorité ; après les types headful (CDP / Chrome local / ego CLI) = repli prioritaire.",
|
|
787
|
+
"linksLpRemoteWarn": "Activer une ligne Lightpanda sous cdpMode=remote échoue avec mode-kind-mismatch",
|
|
753
788
|
"linksEndpoint": "Point de terminaison",
|
|
754
789
|
"linksEndpointHint": "http(s)://hôte:port ou ws(s)://…",
|
|
755
790
|
"linksEndpointInvalid": "Point de terminaison invalide — non enregistré",
|
|
@@ -783,6 +818,7 @@ const de = {
|
|
|
783
818
|
"pinned": "Angepinnt",
|
|
784
819
|
"realtime": "Live-Browsing",
|
|
785
820
|
"noScreenshot": "(kein Screenshot — about:blank oder Browser rendert nicht)",
|
|
821
|
+
"engineUnsupportedBanner": "(Live-Ansicht wird von dieser Engine nicht unterstützt — Lightpanda rendert Text; bitte bcdp_snapshot / bcdp_screenshot verwenden)",
|
|
786
822
|
"noActivePages": "Keine aktiven Browser-Seiten",
|
|
787
823
|
"noActiveHint": "Seiten erscheinen hier, sobald der Agent mit bcdp_* surft",
|
|
788
824
|
"openExternal": "Echte Seite öffnen",
|
|
@@ -793,6 +829,7 @@ const de = {
|
|
|
793
829
|
"picking": "Auswahl… klicke ein Element auf der Seite",
|
|
794
830
|
"picked": "Element erfasst",
|
|
795
831
|
"pickFailed": "Auswahl fehlgeschlagen",
|
|
832
|
+
"engineUnsupportedPick": "Elementauswahl wird von dieser Engine nicht unterstützt (kein Overlay / keine Live-Ansicht) — bitte bcdp_snapshot verwenden",
|
|
796
833
|
"pickQuoted": "✓ In Eingabefeld zitiert",
|
|
797
834
|
"pickDeliverFailed": "Zustellung fehlgeschlagen",
|
|
798
835
|
"noUrl": "Keine URL zum Öffnen",
|
|
@@ -901,6 +938,11 @@ const de = {
|
|
|
901
938
|
"linksAddCdp": "CDP-Endpunkt hinzufügen",
|
|
902
939
|
"linksAddCli": "Lokalen ego CLI hinzufügen",
|
|
903
940
|
"linksAddCliExists": "Die lokale ego-CLI-Verbindung existiert bereits — eine pro Maschine",
|
|
941
|
+
"linksAddLp": "Lightpanda (verwaltet) hinzufügen",
|
|
942
|
+
"linksAddLpExists": "Die Lightpanda-Verbindung existiert bereits — nur lokal, eine pro Maschine",
|
|
943
|
+
"linksLpPathHint": "Leer = automatische Erkennung (PATH → ~/.local/bin; Windows über WSL2)",
|
|
944
|
+
"linksLpHeadlessHint": "Headless-Schnelltest-Engine — keine manuelle Rückfalllösung (Login/Captcha). Am Anfang der Reihenfolge = Schnelltests zuerst; nach den headful-Arten (CDP / lokales Chrome / ego CLI) = Backstop zuerst.",
|
|
945
|
+
"linksLpRemoteWarn": "Aktivieren einer Lightpanda-Zeile unter cdpMode=remote schlägt mit mode-kind-mismatch fehl",
|
|
904
946
|
"linksEndpoint": "Endpunkt",
|
|
905
947
|
"linksEndpointHint": "http(s)://Host:Port oder ws(s)://…",
|
|
906
948
|
"linksEndpointInvalid": "Ungültiger Endpunkt — nicht gespeichert",
|
|
@@ -934,6 +976,7 @@ const it = {
|
|
|
934
976
|
"pinned": "Vista bloccata",
|
|
935
977
|
"realtime": "Navigazione in diretta",
|
|
936
978
|
"noScreenshot": "(nessuno screenshot — about:blank o browser inattivo)",
|
|
979
|
+
"engineUnsupportedBanner": "(la vista live non è supportata da questo motore — Lightpanda renderizza testo; usa bcdp_snapshot / bcdp_screenshot)",
|
|
937
980
|
"noActivePages": "Nessuna pagina del browser attiva",
|
|
938
981
|
"noActiveHint": "Le pagine appaiono qui quando l'agente naviga con bcdp_*",
|
|
939
982
|
"openExternal": "Apri pagina reale",
|
|
@@ -944,6 +987,7 @@ const it = {
|
|
|
944
987
|
"picking": "Selezione… clicca un elemento nella pagina",
|
|
945
988
|
"picked": "Elemento acquisito",
|
|
946
989
|
"pickFailed": "Selezione fallita",
|
|
990
|
+
"engineUnsupportedPick": "la selezione elementi non è supportata su questo motore (nessun Overlay / nessuna vista live) — usa bcdp_snapshot",
|
|
947
991
|
"pickQuoted": "✓ Citato nel campo di inserimento",
|
|
948
992
|
"pickDeliverFailed": "Consegna fallita",
|
|
949
993
|
"noUrl": "Nessun URL da aprire",
|
|
@@ -1052,6 +1096,11 @@ const it = {
|
|
|
1052
1096
|
"linksAddCdp": "Aggiungi endpoint CDP",
|
|
1053
1097
|
"linksAddCli": "Aggiungi ego CLI locale",
|
|
1054
1098
|
"linksAddCliExists": "La connessione ego CLI locale esiste già — una sola per macchina",
|
|
1099
|
+
"linksAddLp": "Aggiungi Lightpanda (gestito)",
|
|
1100
|
+
"linksAddLpExists": "La connessione Lightpanda esiste già — solo locale, una per macchina",
|
|
1101
|
+
"linksLpPathHint": "Vuoto = rilevamento automatico (PATH → ~/.local/bin; Windows via WSL2)",
|
|
1102
|
+
"linksLpHeadlessHint": "Motore headless per prove rapide — nessun fallback manuale (login/captcha). All’inizio dell’ordine = prove rapide in priorità; dopo i tipi headful (CDP / Chrome locale / ego CLI) = backstop prioritario.",
|
|
1103
|
+
"linksLpRemoteWarn": "Attivare una riga Lightpanda con cdpMode=remote fallisce con mode-kind-mismatch",
|
|
1055
1104
|
"linksEndpoint": "Endpoint",
|
|
1056
1105
|
"linksEndpointHint": "http(s)://host:porta oppure ws(s)://…",
|
|
1057
1106
|
"linksEndpointInvalid": "Endpoint non valido — non salvato",
|
|
@@ -1085,6 +1134,7 @@ const ru = {
|
|
|
1085
1134
|
"pinned": "Закреплено",
|
|
1086
1135
|
"realtime": "Смотрит вживую",
|
|
1087
1136
|
"noScreenshot": "(нет скриншота — about:blank или браузер не рендерит)",
|
|
1137
|
+
"engineUnsupportedBanner": "(живой просмотр не поддерживается этим движком — Lightpanda рендерит текст; используйте bcdp_snapshot / bcdp_screenshot)",
|
|
1088
1138
|
"noActivePages": "Нет активных страниц браузера",
|
|
1089
1139
|
"noActiveHint": "Страницы появятся здесь, когда агент начнёт работать через bcdp_*",
|
|
1090
1140
|
"openExternal": "Открыть реальную страницу",
|
|
@@ -1095,6 +1145,7 @@ const ru = {
|
|
|
1095
1145
|
"picking": "Выбор… кликните элемент на странице",
|
|
1096
1146
|
"picked": "Элемент захвачен",
|
|
1097
1147
|
"pickFailed": "Не удалось выбрать",
|
|
1148
|
+
"engineUnsupportedPick": "выбор элементов не поддерживается этим движком (нет Overlay / живого просмотра) — используйте bcdp_snapshot",
|
|
1098
1149
|
"pickQuoted": "✓ Процитировано в поле ввода",
|
|
1099
1150
|
"pickDeliverFailed": "Не удалось доставить",
|
|
1100
1151
|
"noUrl": "Нет URL для открытия",
|
|
@@ -1203,6 +1254,11 @@ const ru = {
|
|
|
1203
1254
|
"linksAddCdp": "Добавить CDP-эндпоинт",
|
|
1204
1255
|
"linksAddCli": "Добавить локальный ego CLI",
|
|
1205
1256
|
"linksAddCliExists": "Локальное подключение ego CLI уже существует — не более одного на машину",
|
|
1257
|
+
"linksAddLp": "Добавить Lightpanda (управляемый)",
|
|
1258
|
+
"linksAddLpExists": "Подключение Lightpanda уже существует — только локально, одно на машину",
|
|
1259
|
+
"linksLpPathHint": "Пусто = автопоиск (PATH → ~/.local/bin; Windows — через WSL2)",
|
|
1260
|
+
"linksLpHeadlessHint": "Headless-движок быстрых проб — ручной откат невозможен (логин/капча). В начале порядка = быстрые сценарии используют его; после headful-типов (CDP / локальный Chrome / ego CLI) = приоритет у отката.",
|
|
1261
|
+
"linksLpRemoteWarn": "Активация строки Lightpanda при cdpMode=remote завершится ошибкой mode-kind-mismatch",
|
|
1206
1262
|
"linksEndpoint": "Эндпоинт",
|
|
1207
1263
|
"linksEndpointHint": "http(s)://хост:порт или ws(s)://…",
|
|
1208
1264
|
"linksEndpointInvalid": "Неверный эндпоинт — не сохранено",
|
|
@@ -1236,6 +1292,7 @@ const es = {
|
|
|
1236
1292
|
"pinned": "Fijada",
|
|
1237
1293
|
"realtime": "Navegando en vivo",
|
|
1238
1294
|
"noScreenshot": "(sin captura — about:blank o el navegador no renderiza)",
|
|
1295
|
+
"engineUnsupportedBanner": "(la vista en vivo no es compatible con este motor — Lightpanda renderiza texto; usa bcdp_snapshot / bcdp_screenshot)",
|
|
1239
1296
|
"noActivePages": "No hay páginas activas del navegador",
|
|
1240
1297
|
"noActiveHint": "Las páginas aparecerán aquí cuando el agente navegue con bcdp_*",
|
|
1241
1298
|
"openExternal": "Abrir página real",
|
|
@@ -1246,6 +1303,7 @@ const es = {
|
|
|
1246
1303
|
"picking": "Selección… haz clic en un elemento de la página",
|
|
1247
1304
|
"picked": "Elemento capturado",
|
|
1248
1305
|
"pickFailed": "Selección fallida",
|
|
1306
|
+
"engineUnsupportedPick": "la selección de elementos no es compatible con este motor (sin Overlay / sin vista en vivo) — usa bcdp_snapshot",
|
|
1249
1307
|
"pickQuoted": "✓ Citado en el campo de entrada",
|
|
1250
1308
|
"pickDeliverFailed": "Error al entregar",
|
|
1251
1309
|
"noUrl": "No hay URL que abrir",
|
|
@@ -1354,6 +1412,11 @@ const es = {
|
|
|
1354
1412
|
"linksAddCdp": "Añadir endpoint CDP",
|
|
1355
1413
|
"linksAddCli": "Añadir ego CLI local",
|
|
1356
1414
|
"linksAddCliExists": "La conexión ego CLI local ya existe — una por máquina",
|
|
1415
|
+
"linksAddLp": "Añadir Lightpanda (gestionado)",
|
|
1416
|
+
"linksAddLpExists": "La conexión Lightpanda ya existe — solo local, una por máquina",
|
|
1417
|
+
"linksLpPathHint": "Vacío = detección automática (PATH → ~/.local/bin; Windows vía WSL2)",
|
|
1418
|
+
"linksLpHeadlessHint": "Motor headless de prueba rápida — sin respaldo manual (login/captcha). Al principio del orden = pruebas rápidas primero; tras los tipos con cabeza (CDP / Chrome local / ego CLI) = respaldo primero.",
|
|
1419
|
+
"linksLpRemoteWarn": "Activar una fila Lightpanda con cdpMode=remote falla con mode-kind-mismatch",
|
|
1357
1420
|
"linksEndpoint": "Endpoint",
|
|
1358
1421
|
"linksEndpointHint": "http(s)://host:puerto o ws(s)://…",
|
|
1359
1422
|
"linksEndpointInvalid": "Endpoint no válido — no se guardó",
|
|
@@ -1423,6 +1486,8 @@ const dictionaries = {
|
|
|
1423
1486
|
const MAX_LINKS = 32;
|
|
1424
1487
|
/** Local ego CLI singleton default label — mirrors host `EGO_CLI_LABEL`. */
|
|
1425
1488
|
const EGO_CLI_LABEL = "本机 ego CLI";
|
|
1489
|
+
/** Lightpanda managed-serve singleton default label — mirrors host `LP_LABEL`. */
|
|
1490
|
+
const LP_LABEL = "Lightpanda(受管)";
|
|
1426
1491
|
/** Fresh id, same shape as the host `newTargetId()` (uuid, `t-` fallback). */
|
|
1427
1492
|
function newLinkId() {
|
|
1428
1493
|
const cryptoObj = globalThis.crypto;
|
|
@@ -1478,12 +1543,35 @@ function buildCliRow(input) {
|
|
|
1478
1543
|
probeAt: 0
|
|
1479
1544
|
};
|
|
1480
1545
|
}
|
|
1546
|
+
/** Full-field lightpanda row (`servePath` '' = host auto-resolve chain). */
|
|
1547
|
+
function buildLpRow(input) {
|
|
1548
|
+
const servePath = trimmed(input.servePath);
|
|
1549
|
+
return {
|
|
1550
|
+
kind: "lightpanda",
|
|
1551
|
+
id: newLinkId(),
|
|
1552
|
+
label: trimmed(input.label) || LP_LABEL,
|
|
1553
|
+
servePath,
|
|
1554
|
+
enabled: true,
|
|
1555
|
+
note: "",
|
|
1556
|
+
probeStatus: "unknown",
|
|
1557
|
+
probeLatencyMs: 0,
|
|
1558
|
+
probeError: "",
|
|
1559
|
+
probeCode: "",
|
|
1560
|
+
probeAt: 0
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1481
1563
|
/** Second ego-cli anywhere in the array would be silently dropped on read. */
|
|
1482
1564
|
function hasCliLink(links) {
|
|
1483
1565
|
return links.some(function(row) {
|
|
1484
1566
|
return row.kind === "ego-cli";
|
|
1485
1567
|
});
|
|
1486
1568
|
}
|
|
1569
|
+
/** Second lightpanda anywhere in the array would be silently dropped on read. */
|
|
1570
|
+
function hasLpLink(links) {
|
|
1571
|
+
return links.some(function(row) {
|
|
1572
|
+
return row.kind === "lightpanda";
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1487
1575
|
function isFull(links) {
|
|
1488
1576
|
return links.length >= MAX_LINKS;
|
|
1489
1577
|
}
|
|
@@ -1497,6 +1585,10 @@ function addRow(links, row) {
|
|
|
1497
1585
|
links,
|
|
1498
1586
|
code: "ego-cli-already-exists"
|
|
1499
1587
|
};
|
|
1588
|
+
if (row.kind === "lightpanda" && hasLpLink(links)) return {
|
|
1589
|
+
links,
|
|
1590
|
+
code: "lightpanda-already-exists"
|
|
1591
|
+
};
|
|
1500
1592
|
if (links.length >= MAX_LINKS) return {
|
|
1501
1593
|
links,
|
|
1502
1594
|
code: "link-limit-reached"
|
|
@@ -1554,7 +1646,8 @@ function applyProbe(links, id, outcome, at) {
|
|
|
1554
1646
|
probeLatencyMs: typeof outcome.latencyMs === "number" ? outcome.latencyMs : 0,
|
|
1555
1647
|
probeError: outcome.ok ? "" : outcome.message || "",
|
|
1556
1648
|
probeCode: outcome.ok ? "" : outcome.code || "",
|
|
1557
|
-
probeAt: at
|
|
1649
|
+
probeAt: at,
|
|
1650
|
+
...outcome.engine === void 0 ? {} : { probeEngine: outcome.engine }
|
|
1558
1651
|
});
|
|
1559
1652
|
}
|
|
1560
1653
|
|
|
@@ -2703,6 +2796,8 @@ function FamLinks(props) {
|
|
|
2703
2796
|
var addEndpoint = addEndpointState[0], setAddEndpoint = addEndpointState[1];
|
|
2704
2797
|
var addCliPathState = React.useState("");
|
|
2705
2798
|
var addCliPath = addCliPathState[0], setAddCliPath = addCliPathState[1];
|
|
2799
|
+
var addLpPathState = React.useState("");
|
|
2800
|
+
var addLpPath = addLpPathState[0], setAddLpPath = addLpPathState[1];
|
|
2706
2801
|
var btnStyle = {
|
|
2707
2802
|
font: "inherit",
|
|
2708
2803
|
fontSize: "12px",
|
|
@@ -2777,6 +2872,20 @@ function FamLinks(props) {
|
|
|
2777
2872
|
setAddCliPath("");
|
|
2778
2873
|
setErrText("");
|
|
2779
2874
|
}
|
|
2875
|
+
function addLp() {
|
|
2876
|
+
var res = addRow(links, buildLpRow({
|
|
2877
|
+
label: "",
|
|
2878
|
+
servePath: addLpPath
|
|
2879
|
+
}));
|
|
2880
|
+
if (res.code) {
|
|
2881
|
+
setErrText(res.code === "link-limit-reached" ? limitText() : wt("linksAddLpExists"));
|
|
2882
|
+
return;
|
|
2883
|
+
}
|
|
2884
|
+
writeLinks(res.links);
|
|
2885
|
+
if (activeId === "") scope.set("activeTargetId", res.links[res.links.length - 1].id);
|
|
2886
|
+
setAddLpPath("");
|
|
2887
|
+
setErrText("");
|
|
2888
|
+
}
|
|
2780
2889
|
function removeOne(row) {
|
|
2781
2890
|
var res = removeRow(links, row.id);
|
|
2782
2891
|
writeLinks(res.links);
|
|
@@ -2792,6 +2901,7 @@ function FamLinks(props) {
|
|
|
2792
2901
|
code: "probe-failed",
|
|
2793
2902
|
message: "no outcome"
|
|
2794
2903
|
};
|
|
2904
|
+
if (outcome && outcome.engine === void 0 && outcome.ok === true) outcome.engine = "chrome";
|
|
2795
2905
|
writeLinks(applyProbe(links, row.id, outcome, Date.now()));
|
|
2796
2906
|
}).catch(function(error) {
|
|
2797
2907
|
writeLinks(applyProbe(links, row.id, {
|
|
@@ -2860,6 +2970,7 @@ function FamLinks(props) {
|
|
|
2860
2970
|
padding: "2px 0"
|
|
2861
2971
|
} }, wt("linksEmpty")) : links.map(function(row, idx) {
|
|
2862
2972
|
var isCli = row.kind === "ego-cli";
|
|
2973
|
+
var isLp = row.kind === "lightpanda";
|
|
2863
2974
|
var isActive = row.id !== void 0 && row.id === activeId;
|
|
2864
2975
|
var probeBadge = null;
|
|
2865
2976
|
if (row.probeStatus === "ok" || row.probeStatus === "error") probeBadge = h("span", {
|
|
@@ -2891,7 +3002,7 @@ function FamLinks(props) {
|
|
|
2891
3002
|
onChange: function(e) {
|
|
2892
3003
|
writeLinks(updateRow(links, row.id, { enabled: e.target.checked }));
|
|
2893
3004
|
}
|
|
2894
|
-
}), h("span", { style: badgeStyle }, isCli ? "CLI" : "CDP"), h(FamRowInput, {
|
|
3005
|
+
}), h("span", { style: badgeStyle }, isCli ? "CLI" : isLp ? "LP·无头" : "CDP"), h(FamRowInput, {
|
|
2895
3006
|
v: row.label || "",
|
|
2896
3007
|
writable,
|
|
2897
3008
|
placeholder: wt("linksLabel"),
|
|
@@ -2917,14 +3028,18 @@ function FamLinks(props) {
|
|
|
2917
3028
|
gap: "8px",
|
|
2918
3029
|
flexWrap: "wrap"
|
|
2919
3030
|
} }, h(FamRowInput, {
|
|
2920
|
-
v: (isCli ? row.cliPath : row.endpoint) || "",
|
|
3031
|
+
v: (isCli ? row.cliPath : isLp ? row.servePath : row.endpoint) || "",
|
|
2921
3032
|
writable,
|
|
2922
|
-
placeholder: isCli ? wt("linksCliPathHint") : wt("linksEndpointHint"),
|
|
3033
|
+
placeholder: isCli ? wt("linksCliPathHint") : isLp ? wt("linksLpPathHint") : wt("linksEndpointHint"),
|
|
2923
3034
|
onCommit: function(v) {
|
|
2924
3035
|
if (isCli) {
|
|
2925
3036
|
writeLinks(updateRow(links, row.id, { cliPath: v }));
|
|
2926
3037
|
return;
|
|
2927
3038
|
}
|
|
3039
|
+
if (isLp) {
|
|
3040
|
+
writeLinks(updateRow(links, row.id, { servePath: v }));
|
|
3041
|
+
return;
|
|
3042
|
+
}
|
|
2928
3043
|
if (!isValidEndpoint(v)) {
|
|
2929
3044
|
setErrText(wt("linksEndpointInvalid"));
|
|
2930
3045
|
return;
|
|
@@ -2946,7 +3061,7 @@ function FamLinks(props) {
|
|
|
2946
3061
|
onChange: function(e) {
|
|
2947
3062
|
writeLinks(updateRow(links, row.id, { useSdkPath: e.target.checked }));
|
|
2948
3063
|
}
|
|
2949
|
-
}), wt("linksCliSdk")) : null, !isCli ? h("button", {
|
|
3064
|
+
}), wt("linksCliSdk")) : null, !isCli && !isLp ? h("button", {
|
|
2950
3065
|
type: "button",
|
|
2951
3066
|
disabled: !writable || probingId === row.id,
|
|
2952
3067
|
style: btnStyle,
|
|
@@ -2977,11 +3092,15 @@ function FamLinks(props) {
|
|
|
2977
3092
|
onClick: function() {
|
|
2978
3093
|
removeOne(row);
|
|
2979
3094
|
}
|
|
2980
|
-
}, "✕"), isCli && cdpMode === "remote" ? h("span", { style: {
|
|
3095
|
+
}, "✕"), (isCli || isLp) && cdpMode === "remote" ? h("span", { style: {
|
|
2981
3096
|
fontSize: "11px",
|
|
2982
3097
|
color: "#ff9f0a",
|
|
2983
3098
|
flex: "1 1 100%"
|
|
2984
|
-
} }, wt("linksCliRemoteWarn")) : null
|
|
3099
|
+
} }, wt(isCli ? "linksCliRemoteWarn" : "linksLpRemoteWarn")) : null, isLp ? h("span", { style: {
|
|
3100
|
+
fontSize: "11px",
|
|
3101
|
+
color: "var(--dsw-alias-label-tertiary, rgba(127,127,127,.7))",
|
|
3102
|
+
flex: "1 1 100%"
|
|
3103
|
+
} }, wt("linksLpHeadlessHint")) : null));
|
|
2985
3104
|
}), localRow, h("div", { style: {
|
|
2986
3105
|
display: "grid",
|
|
2987
3106
|
gap: "6px",
|
|
@@ -3047,7 +3166,33 @@ function FamLinks(props) {
|
|
|
3047
3166
|
title: hasCliLink(links) ? wt("linksAddCliExists") : isFull(links) ? limitText() : void 0,
|
|
3048
3167
|
style: btnStyle,
|
|
3049
3168
|
onClick: addCli
|
|
3050
|
-
}, wt("linksAddCli"))),
|
|
3169
|
+
}, wt("linksAddCli"))), h("div", { style: {
|
|
3170
|
+
display: "flex",
|
|
3171
|
+
gap: "8px",
|
|
3172
|
+
alignItems: "center",
|
|
3173
|
+
flexWrap: "wrap"
|
|
3174
|
+
} }, h("input", {
|
|
3175
|
+
type: "text",
|
|
3176
|
+
value: addLpPath,
|
|
3177
|
+
disabled: !writable || isFull(links) || hasLpLink(links),
|
|
3178
|
+
placeholder: wt("linksLpPathHint"),
|
|
3179
|
+
style: Object.assign({
|
|
3180
|
+
flex: "1 1 160px",
|
|
3181
|
+
minWidth: 0
|
|
3182
|
+
}, inputStyle),
|
|
3183
|
+
onChange: function(e) {
|
|
3184
|
+
setAddLpPath(e.target.value);
|
|
3185
|
+
},
|
|
3186
|
+
onKeyDown: function(e) {
|
|
3187
|
+
if (e.key === "Enter") addLp();
|
|
3188
|
+
}
|
|
3189
|
+
}), h("button", {
|
|
3190
|
+
type: "button",
|
|
3191
|
+
disabled: !writable || isFull(links) || hasLpLink(links),
|
|
3192
|
+
title: hasLpLink(links) ? wt("linksAddLpExists") : isFull(links) ? limitText() : void 0,
|
|
3193
|
+
style: btnStyle,
|
|
3194
|
+
onClick: addLp
|
|
3195
|
+
}, wt("linksAddLp"))), errText ? h("div", { style: {
|
|
3051
3196
|
fontSize: "11px",
|
|
3052
3197
|
color: "#ff453a"
|
|
3053
3198
|
} }, errText) : null));
|
|
@@ -3244,6 +3389,7 @@ function mountFloatingWatch(ctx) {
|
|
|
3244
3389
|
const pageMeta = /* @__PURE__ */ new Map();
|
|
3245
3390
|
const watchClientId = "floating-" + Math.random().toString(36).slice(2);
|
|
3246
3391
|
let watchStarted = false, watchTargetId = null, watchRenewTimer = null, watchStopTimer = null, watchRequest = null, captureBackend = "cdp", streamGeneration = 0, streamState = "idle", streamMime = "video/mp4; codecs=\"avc1.42E01E\"", videoCleanup = null;
|
|
3392
|
+
let streamEngineUnsupported = false;
|
|
3247
3393
|
const effectiveVisible = () => !panel.hidden;
|
|
3248
3394
|
const stopVideo = () => {
|
|
3249
3395
|
if (videoCleanup) try {
|
|
@@ -3259,12 +3405,14 @@ function mountFloatingWatch(ctx) {
|
|
|
3259
3405
|
const nextGeneration = status.generation ?? streamGeneration;
|
|
3260
3406
|
const nextState = status.state || streamState;
|
|
3261
3407
|
const nextMime = status.mime || streamMime;
|
|
3262
|
-
const
|
|
3408
|
+
const nextUnsupported = status.engineUnsupported === true;
|
|
3409
|
+
const changed = captureBackend !== nextBackend || streamGeneration !== nextGeneration || streamState !== nextState || streamMime !== nextMime || streamEngineUnsupported !== nextUnsupported;
|
|
3263
3410
|
captureBackend = nextBackend;
|
|
3264
3411
|
streamGeneration = nextGeneration;
|
|
3265
3412
|
streamState = nextState;
|
|
3266
3413
|
status.message || status.code;
|
|
3267
3414
|
streamMime = nextMime;
|
|
3415
|
+
streamEngineUnsupported = nextUnsupported;
|
|
3268
3416
|
if (changed) {
|
|
3269
3417
|
stopVideo();
|
|
3270
3418
|
const current = lastList.find((s) => s.targetId === (selectedTabId || currentActiveId));
|
|
@@ -3657,7 +3805,7 @@ function mountFloatingWatch(ctx) {
|
|
|
3657
3805
|
} else {
|
|
3658
3806
|
const n = document.createElement("div");
|
|
3659
3807
|
n.className = "dsh-ego-liveurl";
|
|
3660
|
-
n.textContent = wt("noScreenshot");
|
|
3808
|
+
n.textContent = streamEngineUnsupported ? wt("engineUnsupportedBanner") : wt("noScreenshot");
|
|
3661
3809
|
view.appendChild(n);
|
|
3662
3810
|
}
|
|
3663
3811
|
view.appendChild(t);
|
|
@@ -3784,7 +3932,7 @@ function mountFloatingWatch(ctx) {
|
|
|
3784
3932
|
} else {
|
|
3785
3933
|
const n = document.createElement("div");
|
|
3786
3934
|
n.className = "dsh-ego-liveurl";
|
|
3787
|
-
n.textContent = wt("noScreenshot");
|
|
3935
|
+
n.textContent = streamEngineUnsupported ? wt("engineUnsupportedBanner") : wt("noScreenshot");
|
|
3788
3936
|
view.appendChild(n);
|
|
3789
3937
|
}
|
|
3790
3938
|
view.appendChild(t);
|
|
@@ -3891,7 +4039,7 @@ function mountFloatingWatch(ctx) {
|
|
|
3891
4039
|
vh: m.vh
|
|
3892
4040
|
});
|
|
3893
4041
|
}
|
|
3894
|
-
applyFrame(m.targetId, `data:image
|
|
4042
|
+
applyFrame(m.targetId, `data:image/${m.fmt === "png" ? "png" : "jpeg"};base64,${m.data}`, m.vw, m.vh);
|
|
3895
4043
|
} catch {}
|
|
3896
4044
|
});
|
|
3897
4045
|
sse.addEventListener("spaces", (ev) => {
|
|
@@ -4831,6 +4979,10 @@ function createPickControl(onState, deliver) {
|
|
|
4831
4979
|
post(true, targetId).then(function(res) {
|
|
4832
4980
|
var state = res && res.ok !== false ? res.state : null;
|
|
4833
4981
|
if (!state || state.enabled !== true) {
|
|
4982
|
+
if (res && res.code === "engine-unsupported") {
|
|
4983
|
+
emit("failed", wt("engineUnsupportedPick"));
|
|
4984
|
+
return;
|
|
4985
|
+
}
|
|
4834
4986
|
emit("failed", state && state.message || res && res.error || wt("pickFailed"));
|
|
4835
4987
|
return;
|
|
4836
4988
|
}
|
|
@@ -4907,6 +5059,7 @@ function LivePreviewController(ctx) {
|
|
|
4907
5059
|
this.streamGeneration = 0;
|
|
4908
5060
|
this.streamState = "idle";
|
|
4909
5061
|
this.streamMessage = "";
|
|
5062
|
+
this.engineUnsupported = false;
|
|
4910
5063
|
this.streamMime = "video/mp4; codecs=\"avc1.42E01E\"";
|
|
4911
5064
|
this.liveVideo = null;
|
|
4912
5065
|
this.videoCleanup = null;
|
|
@@ -4964,6 +5117,7 @@ LivePreviewController.prototype._initialState = function() {
|
|
|
4964
5117
|
streamMessage: "",
|
|
4965
5118
|
streamGeneration: 0,
|
|
4966
5119
|
streamMime: "video/mp4; codecs=\"avc1.42E01E\"",
|
|
5120
|
+
engineUnsupported: false,
|
|
4967
5121
|
pick: "off",
|
|
4968
5122
|
pickMessage: ""
|
|
4969
5123
|
};
|
|
@@ -5044,6 +5198,7 @@ LivePreviewController.prototype._recompute = function() {
|
|
|
5044
5198
|
s.streamMessage = self.streamMessage;
|
|
5045
5199
|
s.streamGeneration = self.streamGeneration;
|
|
5046
5200
|
s.streamMime = self.streamMime;
|
|
5201
|
+
s.engineUnsupported = self.engineUnsupported;
|
|
5047
5202
|
s.pick = self._pick;
|
|
5048
5203
|
s.pickMessage = self._pickMessage;
|
|
5049
5204
|
});
|
|
@@ -5128,6 +5283,7 @@ LivePreviewController.prototype._applyCaptureStatus = function(status) {
|
|
|
5128
5283
|
this.streamMessage = status.message || status.code || "";
|
|
5129
5284
|
this.streamGeneration = nextGeneration;
|
|
5130
5285
|
this.streamMime = status.mime || this.streamMime;
|
|
5286
|
+
this.engineUnsupported = status.engineUnsupported === true;
|
|
5131
5287
|
if (generationChanged || this.backend !== "ffmpeg") this._destroyVideo();
|
|
5132
5288
|
this._recompute();
|
|
5133
5289
|
};
|
|
@@ -5309,7 +5465,7 @@ LivePreviewController.prototype.openStream = function() {
|
|
|
5309
5465
|
vh: m.vh
|
|
5310
5466
|
}));
|
|
5311
5467
|
}
|
|
5312
|
-
self.applyFrame(m.targetId, "data:image/jpeg;base64," + m.data, m.vw, m.vh);
|
|
5468
|
+
self.applyFrame(m.targetId, "data:image/" + (m.fmt === "png" ? "png" : "jpeg") + ";base64," + m.data, m.vw, m.vh);
|
|
5313
5469
|
} catch (e) {}
|
|
5314
5470
|
});
|
|
5315
5471
|
this.sse.addEventListener("spaces", function(ev) {
|
|
@@ -5817,8 +5973,8 @@ function EgoBrowserTab(props) {
|
|
|
5817
5973
|
onDoubleClick: function(e) {
|
|
5818
5974
|
controller.handleDoubleClick(e);
|
|
5819
5975
|
}
|
|
5820
|
-
}) : h("div", { className: "dsh-ego-side-liveurl" }, state.streamMessage || wt("noScreenshot"));
|
|
5821
|
-
body = h("div", { className: "dsh-ego-side-body" }, h("div", { className: "dsh-ego-side-liveview" }, h("div", { className: "dsh-ego-side-livebadge" }, h("span", { className: "dsh-ego-side-state-dot" + (state.pinned ? " pin" : state.busy ? " busy" : "") }), h("span", { style: { flex: 1 } }, (state.backend === "ffmpeg" ? "FFmpeg · H.264" : "CDP") + " · " + (state.streamState === "failed" ? state.streamMessage || wt("failed") : state.streamState) + (state.currentTargetId ? state.wiringStale ? " · " + wt("stale") : " · " + wt("captured") : "")), state.pinned ? h("button", {
|
|
5976
|
+
}) : h("div", { className: "dsh-ego-side-liveurl" }, state.engineUnsupported ? wt("engineUnsupportedBanner") : state.streamMessage || wt("noScreenshot"));
|
|
5977
|
+
body = h("div", { className: "dsh-ego-side-body" }, h("div", { className: "dsh-ego-side-liveview" }, h("div", { className: "dsh-ego-side-livebadge" }, h("span", { className: "dsh-ego-side-state-dot" + (state.pinned ? " pin" : state.busy ? " busy" : "") }), h("span", { style: { flex: 1 } }, (state.backend === "ffmpeg" ? "FFmpeg · H.264" : "CDP") + " · " + (state.streamState === "failed" ? state.streamMessage || wt("failed") : state.streamState === "unsupported" ? wt("engineUnsupportedBanner") : state.streamState) + (state.currentTargetId ? state.wiringStale ? " · " + wt("stale") : " · " + wt("captured") : "")), state.pinned ? h("button", {
|
|
5822
5978
|
className: "dsh-ego-side-back",
|
|
5823
5979
|
type: "button",
|
|
5824
5980
|
onClick: function() {
|