phirepass-widgets 0.0.31 → 0.0.33
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/dist/cjs/phirepass-terminal.cjs.entry.js +63 -57
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.css +8 -10
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +14 -8
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/phirepass-terminal.js +1 -1
- package/dist/esm/phirepass-terminal.entry.js +63 -57
- package/dist/phirepass-widgets/{p-54a61021.entry.js → p-57c38d54.entry.js} +1 -1
- package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/package.json +2 -2
|
@@ -476,7 +476,7 @@ const ErrorType = Object.freeze({
|
|
|
476
476
|
function __wbg_get_imports() {
|
|
477
477
|
const import0 = {
|
|
478
478
|
__proto__: null,
|
|
479
|
-
|
|
479
|
+
__wbg_Error_55538483de6e3abe: function(arg0, arg1) {
|
|
480
480
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
481
481
|
return addHeapObject(ret);
|
|
482
482
|
},
|
|
@@ -487,14 +487,14 @@ function __wbg_get_imports() {
|
|
|
487
487
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
488
488
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
489
489
|
},
|
|
490
|
-
|
|
490
|
+
__wbg___wbindgen_debug_string_d89627202d0155b7: function(arg0, arg1) {
|
|
491
491
|
const ret = debugString(getObject(arg1));
|
|
492
492
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
493
493
|
const len1 = WASM_VECTOR_LEN;
|
|
494
494
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
495
495
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
496
496
|
},
|
|
497
|
-
|
|
497
|
+
__wbg___wbindgen_string_get_f1161390414f9b59: function(arg0, arg1) {
|
|
498
498
|
const obj = getObject(arg1);
|
|
499
499
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
500
500
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -502,36 +502,36 @@ function __wbg_get_imports() {
|
|
|
502
502
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
503
503
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
504
504
|
},
|
|
505
|
-
|
|
505
|
+
__wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
|
|
506
506
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
507
507
|
},
|
|
508
|
-
|
|
508
|
+
__wbg__wbg_cb_unref_fbe69bb076c16bad: function(arg0) {
|
|
509
509
|
getObject(arg0)._wbg_cb_unref();
|
|
510
510
|
},
|
|
511
|
-
|
|
512
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
511
|
+
__wbg_call_6ae20895a60069a2: function() { return handleError(function (arg0, arg1) {
|
|
512
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
513
513
|
return addHeapObject(ret);
|
|
514
514
|
}, arguments); },
|
|
515
|
-
|
|
516
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
515
|
+
__wbg_call_8f5d7bb070283508: function() { return handleError(function (arg0, arg1, arg2) {
|
|
516
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
517
517
|
return addHeapObject(ret);
|
|
518
518
|
}, arguments); },
|
|
519
519
|
__wbg_clearInterval_26ba580547547579: function(arg0) {
|
|
520
520
|
const ret = clearInterval(takeObject(arg0));
|
|
521
521
|
return addHeapObject(ret);
|
|
522
522
|
},
|
|
523
|
-
|
|
523
|
+
__wbg_close_1bf0654059764e94: function() { return handleError(function (arg0) {
|
|
524
524
|
getObject(arg0).close();
|
|
525
525
|
}, arguments); },
|
|
526
|
-
|
|
526
|
+
__wbg_data_7de671a92a650aba: function(arg0) {
|
|
527
527
|
const ret = getObject(arg0).data;
|
|
528
528
|
return addHeapObject(ret);
|
|
529
529
|
},
|
|
530
|
-
|
|
530
|
+
__wbg_from_45cebbf5e49a6ac6: function(arg0) {
|
|
531
531
|
const ret = Array.from(getObject(arg0));
|
|
532
532
|
return addHeapObject(ret);
|
|
533
533
|
},
|
|
534
|
-
|
|
534
|
+
__wbg_instanceof_ArrayBuffer_8d855993947fc3a2: function(arg0) {
|
|
535
535
|
let result;
|
|
536
536
|
try {
|
|
537
537
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -541,82 +541,82 @@ function __wbg_get_imports() {
|
|
|
541
541
|
const ret = result;
|
|
542
542
|
return ret;
|
|
543
543
|
},
|
|
544
|
-
|
|
544
|
+
__wbg_length_e6e1633fbea6cfa9: function(arg0) {
|
|
545
545
|
const ret = getObject(arg0).length;
|
|
546
546
|
return ret;
|
|
547
547
|
},
|
|
548
|
-
|
|
548
|
+
__wbg_new_1d96678aaacca32e: function(arg0) {
|
|
549
549
|
const ret = new Uint8Array(getObject(arg0));
|
|
550
550
|
return addHeapObject(ret);
|
|
551
551
|
},
|
|
552
|
-
|
|
552
|
+
__wbg_new_4370be21fa2b2f80: function() {
|
|
553
553
|
const ret = new Array();
|
|
554
554
|
return addHeapObject(ret);
|
|
555
555
|
},
|
|
556
|
-
|
|
556
|
+
__wbg_new_48e1d86cfd30c8e7: function() {
|
|
557
557
|
const ret = new Object();
|
|
558
558
|
return addHeapObject(ret);
|
|
559
559
|
},
|
|
560
|
-
|
|
560
|
+
__wbg_new_with_str_53b505a6bb7f12f6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
561
561
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
562
562
|
return addHeapObject(ret);
|
|
563
563
|
}, arguments); },
|
|
564
|
-
|
|
564
|
+
__wbg_prototypesetcall_3875d54d12ef2eec: function(arg0, arg1, arg2) {
|
|
565
565
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
566
566
|
},
|
|
567
|
-
|
|
567
|
+
__wbg_readyState_a08d25cc57214030: function(arg0) {
|
|
568
568
|
const ret = getObject(arg0).readyState;
|
|
569
569
|
return ret;
|
|
570
570
|
},
|
|
571
|
-
|
|
571
|
+
__wbg_send_da543a379e952bc6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
572
572
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
573
573
|
}, arguments); },
|
|
574
574
|
__wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
|
|
575
575
|
const ret = setInterval(getObject(arg0), arg1);
|
|
576
576
|
return addHeapObject(ret);
|
|
577
577
|
}, arguments); },
|
|
578
|
-
|
|
578
|
+
__wbg_set_4702dfa37c77f492: function(arg0, arg1, arg2) {
|
|
579
579
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
580
580
|
},
|
|
581
581
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
582
582
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
583
583
|
},
|
|
584
|
-
|
|
584
|
+
__wbg_set_binaryType_0675f0e51c055ca8: function(arg0, arg1) {
|
|
585
585
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
586
586
|
},
|
|
587
|
-
|
|
587
|
+
__wbg_set_onclose_f791ef701be808a0: function(arg0, arg1) {
|
|
588
588
|
getObject(arg0).onclose = getObject(arg1);
|
|
589
589
|
},
|
|
590
|
-
|
|
590
|
+
__wbg_set_onerror_e23002e9224d353b: function(arg0, arg1) {
|
|
591
591
|
getObject(arg0).onerror = getObject(arg1);
|
|
592
592
|
},
|
|
593
|
-
|
|
593
|
+
__wbg_set_onmessage_d2fe701a9ce80846: function(arg0, arg1) {
|
|
594
594
|
getObject(arg0).onmessage = getObject(arg1);
|
|
595
595
|
},
|
|
596
|
-
|
|
596
|
+
__wbg_set_onopen_0556381d0db30cbb: function(arg0, arg1) {
|
|
597
597
|
getObject(arg0).onopen = getObject(arg1);
|
|
598
598
|
},
|
|
599
|
-
|
|
599
|
+
__wbg_warn_7e545c047609d0b6: function(arg0, arg1) {
|
|
600
600
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
601
601
|
},
|
|
602
602
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
603
|
-
// Cast intrinsic for `Closure(Closure {
|
|
604
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
603
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
604
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37);
|
|
605
605
|
return addHeapObject(ret);
|
|
606
606
|
},
|
|
607
607
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
608
|
-
// Cast intrinsic for `Closure(Closure {
|
|
609
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
608
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
609
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37_1);
|
|
610
610
|
return addHeapObject(ret);
|
|
611
611
|
},
|
|
612
612
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
613
|
-
// Cast intrinsic for `Closure(Closure {
|
|
614
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
613
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
614
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37_2);
|
|
615
615
|
return addHeapObject(ret);
|
|
616
616
|
},
|
|
617
617
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
618
|
-
// Cast intrinsic for `Closure(Closure {
|
|
619
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
618
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
619
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41);
|
|
620
620
|
return addHeapObject(ret);
|
|
621
621
|
},
|
|
622
622
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -653,20 +653,20 @@ function __wbg_get_imports() {
|
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
function
|
|
657
|
-
wasm.
|
|
656
|
+
function __wasm_bindgen_func_elem_41(arg0, arg1) {
|
|
657
|
+
wasm.__wasm_bindgen_func_elem_41(arg0, arg1);
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
function
|
|
661
|
-
wasm.
|
|
660
|
+
function __wasm_bindgen_func_elem_37(arg0, arg1, arg2) {
|
|
661
|
+
wasm.__wasm_bindgen_func_elem_37(arg0, arg1, addHeapObject(arg2));
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
function
|
|
665
|
-
wasm.
|
|
664
|
+
function __wasm_bindgen_func_elem_37_1(arg0, arg1, arg2) {
|
|
665
|
+
wasm.__wasm_bindgen_func_elem_37_1(arg0, arg1, addHeapObject(arg2));
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
function
|
|
669
|
-
wasm.
|
|
668
|
+
function __wasm_bindgen_func_elem_37_2(arg0, arg1, arg2) {
|
|
669
|
+
wasm.__wasm_bindgen_func_elem_37_2(arg0, arg1, addHeapObject(arg2));
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
|
|
@@ -686,7 +686,7 @@ function addHeapObject(obj) {
|
|
|
686
686
|
|
|
687
687
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
688
688
|
? { register: () => {}, unregister: () => {} }
|
|
689
|
-
: new FinalizationRegistry(state =>
|
|
689
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_export4(state.a, state.b));
|
|
690
690
|
|
|
691
691
|
function debugString(val) {
|
|
692
692
|
// primitive types
|
|
@@ -804,8 +804,8 @@ function isLikeNone(x) {
|
|
|
804
804
|
return x === undefined || x === null;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
function makeMutClosure(arg0, arg1,
|
|
808
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
807
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
808
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
809
809
|
const real = (...args) => {
|
|
810
810
|
|
|
811
811
|
// First up with a closure we increment the internal reference
|
|
@@ -823,7 +823,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
823
823
|
};
|
|
824
824
|
real._wbg_cb_unref = () => {
|
|
825
825
|
if (--state.cnt === 0) {
|
|
826
|
-
|
|
826
|
+
wasm.__wbindgen_export4(state.a, state.b);
|
|
827
827
|
state.a = 0;
|
|
828
828
|
CLOSURE_DTORS.unregister(state);
|
|
829
829
|
}
|
|
@@ -980,7 +980,7 @@ async function __wbg_init(module_or_path) {
|
|
|
980
980
|
return __wbg_finalize_init(instance);
|
|
981
981
|
}
|
|
982
982
|
|
|
983
|
-
const phirepassTerminalCss = () => `.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#FFF;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1 !important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px !important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity 100ms linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity 800ms linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:host{display:block;width:100%;height:100
|
|
983
|
+
const phirepassTerminalCss = () => `.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#FFF;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1 !important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px !important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity 100ms linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity 800ms linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:host{display:block;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}:host #ccc{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}`;
|
|
984
984
|
|
|
985
985
|
var InputMode;
|
|
986
986
|
(function (InputMode) {
|
|
@@ -1161,7 +1161,11 @@ const PhirepassTerminal = class {
|
|
|
1161
1161
|
catch (e) {
|
|
1162
1162
|
console.warn('WebGL addon not available or failed to load:', e);
|
|
1163
1163
|
}
|
|
1164
|
-
this.
|
|
1164
|
+
if (typeof this.terminal.onResize === 'function') {
|
|
1165
|
+
this.terminal.onResize(() => {
|
|
1166
|
+
this.send_ssh_terminal_resize();
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1165
1169
|
}
|
|
1166
1170
|
destroy_terminal() {
|
|
1167
1171
|
if (this.terminal) {
|
|
@@ -1224,10 +1228,6 @@ const PhirepassTerminal = class {
|
|
|
1224
1228
|
console.warn('Cannot send terminal resize: node_id is missing');
|
|
1225
1229
|
return;
|
|
1226
1230
|
}
|
|
1227
|
-
if (!this.session_id) {
|
|
1228
|
-
console.warn('Cannot send terminal resize: session_id is missing');
|
|
1229
|
-
return;
|
|
1230
|
-
}
|
|
1231
1231
|
if (!this.channel) {
|
|
1232
1232
|
console.warn('Cannot send terminal resize: channel is not initialized');
|
|
1233
1233
|
return;
|
|
@@ -1236,6 +1236,11 @@ const PhirepassTerminal = class {
|
|
|
1236
1236
|
console.warn('Cannot send terminal resize: channel not connected');
|
|
1237
1237
|
return;
|
|
1238
1238
|
}
|
|
1239
|
+
if (!this.session_id) {
|
|
1240
|
+
console.warn('Cannot send terminal resize: session_id is missing');
|
|
1241
|
+
return;
|
|
1242
|
+
}
|
|
1243
|
+
this.fitAddon.fit();
|
|
1239
1244
|
const cols = this.terminal?.cols ?? 0;
|
|
1240
1245
|
const rows = this.terminal?.rows ?? 0;
|
|
1241
1246
|
const px_width = this.containerEl.clientWidth ?? 0;
|
|
@@ -1253,7 +1258,7 @@ const PhirepassTerminal = class {
|
|
|
1253
1258
|
}
|
|
1254
1259
|
}
|
|
1255
1260
|
send_ssh_data(data) {
|
|
1256
|
-
if (this.channel.is_connected() && this.session_id) {
|
|
1261
|
+
if (this.channel.is_connected() && !!this.session_id) {
|
|
1257
1262
|
this.channel.send_ssh_tunnel_data(this.nodeId, this.session_id, data);
|
|
1258
1263
|
}
|
|
1259
1264
|
}
|
|
@@ -1310,6 +1315,7 @@ const PhirepassTerminal = class {
|
|
|
1310
1315
|
handle_tunnel_opened(web) {
|
|
1311
1316
|
this.session_id = web.sid;
|
|
1312
1317
|
this.terminal.reset();
|
|
1318
|
+
this.fitAddon.fit();
|
|
1313
1319
|
this.send_ssh_terminal_resize();
|
|
1314
1320
|
}
|
|
1315
1321
|
handle_tunnel_data(web) {
|
|
@@ -1349,7 +1355,7 @@ const PhirepassTerminal = class {
|
|
|
1349
1355
|
this.send_ssh_terminal_resize();
|
|
1350
1356
|
}, 100);
|
|
1351
1357
|
});
|
|
1352
|
-
this.resizeObserver.observe(this.el);
|
|
1358
|
+
this.resizeObserver.observe(this.containerEl ?? this.el);
|
|
1353
1359
|
}
|
|
1354
1360
|
handle_terminal_data(data) {
|
|
1355
1361
|
switch (this.inputMode) {
|
|
@@ -1444,7 +1450,7 @@ const PhirepassTerminal = class {
|
|
|
1444
1450
|
this.usernameBuffer = "";
|
|
1445
1451
|
}
|
|
1446
1452
|
render() {
|
|
1447
|
-
return (index.h(index.Host, { key: '
|
|
1453
|
+
return (index.h(index.Host, { key: '71243a4c9c9468091e5ab830857f91b9b57812b0' }, index.h("div", { key: '0dd9ae1e44cbf78f8a6ede6604c35d7d441cea93', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
1448
1454
|
}
|
|
1449
1455
|
static get watchers() { return {
|
|
1450
1456
|
"nodeId": [{
|
|
@@ -289,17 +289,15 @@
|
|
|
289
289
|
display: block;
|
|
290
290
|
width: 100%;
|
|
291
291
|
height: 100%;
|
|
292
|
+
min-width: 0;
|
|
293
|
+
min-height: 0;
|
|
294
|
+
overflow: hidden;
|
|
292
295
|
}
|
|
293
296
|
|
|
294
297
|
:host #ccc {
|
|
295
|
-
width:
|
|
296
|
-
height:
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
:
|
|
300
|
-
height: inherit;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
:host #ccc .terminal .xterm-scrollable-element {
|
|
304
|
-
height: inherit;
|
|
298
|
+
width: 100%;
|
|
299
|
+
height: 100%;
|
|
300
|
+
min-width: 0;
|
|
301
|
+
min-height: 0;
|
|
302
|
+
overflow: hidden;
|
|
305
303
|
}
|
|
@@ -183,7 +183,11 @@ export class PhirepassTerminal {
|
|
|
183
183
|
catch (e) {
|
|
184
184
|
console.warn('WebGL addon not available or failed to load:', e);
|
|
185
185
|
}
|
|
186
|
-
this.
|
|
186
|
+
if (typeof this.terminal.onResize === 'function') {
|
|
187
|
+
this.terminal.onResize(() => {
|
|
188
|
+
this.send_ssh_terminal_resize();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
187
191
|
}
|
|
188
192
|
destroy_terminal() {
|
|
189
193
|
if (this.terminal) {
|
|
@@ -246,10 +250,6 @@ export class PhirepassTerminal {
|
|
|
246
250
|
console.warn('Cannot send terminal resize: node_id is missing');
|
|
247
251
|
return;
|
|
248
252
|
}
|
|
249
|
-
if (!this.session_id) {
|
|
250
|
-
console.warn('Cannot send terminal resize: session_id is missing');
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
253
|
if (!this.channel) {
|
|
254
254
|
console.warn('Cannot send terminal resize: channel is not initialized');
|
|
255
255
|
return;
|
|
@@ -258,6 +258,11 @@ export class PhirepassTerminal {
|
|
|
258
258
|
console.warn('Cannot send terminal resize: channel not connected');
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
+
if (!this.session_id) {
|
|
262
|
+
console.warn('Cannot send terminal resize: session_id is missing');
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
this.fitAddon.fit();
|
|
261
266
|
const cols = this.terminal?.cols ?? 0;
|
|
262
267
|
const rows = this.terminal?.rows ?? 0;
|
|
263
268
|
const px_width = this.containerEl.clientWidth ?? 0;
|
|
@@ -275,7 +280,7 @@ export class PhirepassTerminal {
|
|
|
275
280
|
}
|
|
276
281
|
}
|
|
277
282
|
send_ssh_data(data) {
|
|
278
|
-
if (this.channel.is_connected() && this.session_id) {
|
|
283
|
+
if (this.channel.is_connected() && !!this.session_id) {
|
|
279
284
|
this.channel.send_ssh_tunnel_data(this.nodeId, this.session_id, data);
|
|
280
285
|
}
|
|
281
286
|
}
|
|
@@ -332,6 +337,7 @@ export class PhirepassTerminal {
|
|
|
332
337
|
handle_tunnel_opened(web) {
|
|
333
338
|
this.session_id = web.sid;
|
|
334
339
|
this.terminal.reset();
|
|
340
|
+
this.fitAddon.fit();
|
|
335
341
|
this.send_ssh_terminal_resize();
|
|
336
342
|
}
|
|
337
343
|
handle_tunnel_data(web) {
|
|
@@ -371,7 +377,7 @@ export class PhirepassTerminal {
|
|
|
371
377
|
this.send_ssh_terminal_resize();
|
|
372
378
|
}, 100);
|
|
373
379
|
});
|
|
374
|
-
this.resizeObserver.observe(this.el);
|
|
380
|
+
this.resizeObserver.observe(this.containerEl ?? this.el);
|
|
375
381
|
}
|
|
376
382
|
handle_terminal_data(data) {
|
|
377
383
|
switch (this.inputMode) {
|
|
@@ -466,7 +472,7 @@ export class PhirepassTerminal {
|
|
|
466
472
|
this.usernameBuffer = "";
|
|
467
473
|
}
|
|
468
474
|
render() {
|
|
469
|
-
return (h(Host, { key: '
|
|
475
|
+
return (h(Host, { key: '71243a4c9c9468091e5ab830857f91b9b57812b0' }, h("div", { key: '0dd9ae1e44cbf78f8a6ede6604c35d7d441cea93', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
470
476
|
}
|
|
471
477
|
static get is() { return "phirepass-terminal"; }
|
|
472
478
|
static get encapsulation() { return "shadow"; }
|
|
Binary file
|