phirepass-widgets 0.0.21 → 0.0.23
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 +4 -1
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +4 -1
- package/dist/components/phirepass-terminal.js +3 -3
- package/dist/esm/phirepass-terminal.entry.js +4 -1
- package/dist/phirepass-widgets/{p-13e452ab.entry.js → p-bbb96b8f.entry.js} +4 -4
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1211,14 +1211,17 @@ const PhirepassTerminal = class {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
send_ssh_terminal_resize() {
|
|
1213
1213
|
if (!this.channel || !this.channel.is_connected() || !this.session_id) {
|
|
1214
|
+
console.warn('Cannot send terminal resize: channel not connected or session_id missing');
|
|
1214
1215
|
return;
|
|
1215
1216
|
}
|
|
1216
1217
|
const cols = this.terminal?.cols ?? 0;
|
|
1217
1218
|
const rows = this.terminal?.rows ?? 0;
|
|
1218
1219
|
if (cols <= 0 || rows <= 0) {
|
|
1220
|
+
console.warn('Cannot send terminal resize: invalid terminal dimensions (cols:', cols, 'rows:', rows, ') ');
|
|
1219
1221
|
return;
|
|
1220
1222
|
}
|
|
1221
1223
|
try {
|
|
1224
|
+
console.log(`Sending terminal resize: cols=${cols}, rows=${rows}`);
|
|
1222
1225
|
this.channel.send_ssh_terminal_resize(this.nodeId, this.session_id, cols, rows);
|
|
1223
1226
|
}
|
|
1224
1227
|
catch (err) {
|
|
@@ -1406,7 +1409,7 @@ const PhirepassTerminal = class {
|
|
|
1406
1409
|
this.usernameBuffer = "";
|
|
1407
1410
|
}
|
|
1408
1411
|
render() {
|
|
1409
|
-
return (index.h(index.Host, { key: '
|
|
1412
|
+
return (index.h(index.Host, { key: 'c892f299e0b57b862a370ae1628bb7ca2097fa34' }, index.h("div", { key: '9b17270ecb3a66cf0db9b07ffaf2c87ec80d6770', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
1410
1413
|
}
|
|
1411
1414
|
static get watchers() { return {
|
|
1412
1415
|
"nodeId": [{
|
|
@@ -236,14 +236,17 @@ export class PhirepassTerminal {
|
|
|
236
236
|
}
|
|
237
237
|
send_ssh_terminal_resize() {
|
|
238
238
|
if (!this.channel || !this.channel.is_connected() || !this.session_id) {
|
|
239
|
+
console.warn('Cannot send terminal resize: channel not connected or session_id missing');
|
|
239
240
|
return;
|
|
240
241
|
}
|
|
241
242
|
const cols = this.terminal?.cols ?? 0;
|
|
242
243
|
const rows = this.terminal?.rows ?? 0;
|
|
243
244
|
if (cols <= 0 || rows <= 0) {
|
|
245
|
+
console.warn('Cannot send terminal resize: invalid terminal dimensions (cols:', cols, 'rows:', rows, ') ');
|
|
244
246
|
return;
|
|
245
247
|
}
|
|
246
248
|
try {
|
|
249
|
+
console.log(`Sending terminal resize: cols=${cols}, rows=${rows}`);
|
|
247
250
|
this.channel.send_ssh_terminal_resize(this.nodeId, this.session_id, cols, rows);
|
|
248
251
|
}
|
|
249
252
|
catch (err) {
|
|
@@ -431,7 +434,7 @@ export class PhirepassTerminal {
|
|
|
431
434
|
this.usernameBuffer = "";
|
|
432
435
|
}
|
|
433
436
|
render() {
|
|
434
|
-
return (h(Host, { key: '
|
|
437
|
+
return (h(Host, { key: 'c892f299e0b57b862a370ae1628bb7ca2097fa34' }, h("div", { key: '9b17270ecb3a66cf0db9b07ffaf2c87ec80d6770', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
435
438
|
}
|
|
436
439
|
static get is() { return "phirepass-terminal"; }
|
|
437
440
|
static get encapsulation() { return "shadow"; }
|