phirepass-widgets 0.0.99 → 0.0.101
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/{index-W8Ah6QS2.js → index-CbZdPuPQ.js} +3 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/phirepass-rdp.cjs.entry.js +117 -18
- package/dist/cjs/phirepass-sftp-client.cjs.entry.js +2 -2
- package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
- package/dist/cjs/phirepass-widgets.cjs.js +3 -3
- package/dist/cjs/{protocol-Da4CPy8u.js → protocol-B45sQiET.js} +9 -15
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/phirepass-rdp/phirepass-rdp.js +158 -16
- package/dist/collection/components/phirepass-rdp/phirepass-rdp.viewport.js +12 -1
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-DFhjP92A.js +1 -0
- package/dist/components/phirepass-rdp.js +1 -1
- package/dist/components/phirepass-sftp-client.js +1 -1
- package/dist/components/phirepass-terminal.js +1 -1
- package/dist/esm/{index-DRwCfim8.js → index-AP5XjS35.js} +3 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/phirepass-rdp.entry.js +117 -18
- package/dist/esm/phirepass-sftp-client.entry.js +2 -2
- package/dist/esm/phirepass-terminal.entry.js +2 -2
- package/dist/esm/phirepass-widgets.js +4 -4
- package/dist/esm/{protocol-D0bkJ9BS.js → protocol-DFhjP92A.js} +8 -14
- package/dist/phirepass-widgets/{p-9d393c3d.entry.js → p-0e9afedb.entry.js} +1 -1
- package/dist/phirepass-widgets/{p-DRwCfim8.js → p-AP5XjS35.js} +1 -1
- package/dist/phirepass-widgets/p-DFhjP92A.js +1 -0
- package/dist/phirepass-widgets/{p-def42e4b.entry.js → p-c4a31b26.entry.js} +1 -1
- package/dist/phirepass-widgets/p-de23b6db.entry.js +1 -0
- package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/dist/types/components/phirepass-rdp/phirepass-rdp.d.ts +34 -3
- package/dist/types/components/phirepass-rdp/phirepass-rdp.viewport.d.ts +11 -1
- package/dist/types/components.d.ts +21 -2
- package/package.json +3 -3
- package/dist/components/p-D0bkJ9BS.js +0 -1
- package/dist/phirepass-widgets/p-D0bkJ9BS.js +0 -1
- package/dist/phirepass-widgets/p-c165bb58.entry.js +0 -1
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'phirepass-widgets';
|
|
|
4
4
|
const BUILD = /* phirepass-widgets */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.44.
|
|
7
|
+
Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1195,8 +1195,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
};
|
|
1198
|
-
|
|
1199
|
-
// src/runtime/proxy-component.ts
|
|
1200
1198
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1201
1199
|
var _a, _b;
|
|
1202
1200
|
const prototype = Cstr.prototype;
|
|
@@ -1329,7 +1327,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1329
1327
|
return;
|
|
1330
1328
|
}
|
|
1331
1329
|
const propFlags = members.find(([m]) => m === propName);
|
|
1332
|
-
const
|
|
1330
|
+
const propMemberFlags = propFlags ? propFlags[1][0] : 0;
|
|
1331
|
+
const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
|
|
1333
1332
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1334
1333
|
if (isBooleanTarget) {
|
|
1335
1334
|
newValue = newValue === null || newValue === "false" ? false : true;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CbZdPuPQ.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
9
|
+
return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var protocol = require('./protocol-
|
|
3
|
+
var index = require('./index-CbZdPuPQ.js');
|
|
4
|
+
var protocol = require('./protocol-B45sQiET.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* RDP's display-control PDU describes a monitor in whole, even pixels within
|
|
@@ -91,9 +91,20 @@ class ViewportSync {
|
|
|
91
91
|
/**
|
|
92
92
|
* Starts watching `element`. The current size is reported immediately, so a
|
|
93
93
|
* widget that was resized while disconnected catches up on reconnect.
|
|
94
|
+
*
|
|
95
|
+
* `openedAt` is the size the session was actually opened at, and passing it
|
|
96
|
+
* is what stops that immediate report from being a resize to the resolution
|
|
97
|
+
* the host is already showing. That redundant request is not free: a
|
|
98
|
+
* display-control PDU makes the host renegotiate capabilities and resend the
|
|
99
|
+
* screen, and arriving moments after the connection sequence it is the worst
|
|
100
|
+
* possible time to ask — the client can end up parsing a bitmap whose
|
|
101
|
+
* declared length no longer matches the stream. Seeded here rather than
|
|
102
|
+
* suppressed at the call site because "what has the host been told" is this
|
|
103
|
+
* class's state; the caller only knows what it asked for at connect.
|
|
94
104
|
*/
|
|
95
|
-
observe(element) {
|
|
105
|
+
observe(element, openedAt) {
|
|
96
106
|
this.disconnect();
|
|
107
|
+
this.reported = openedAt;
|
|
97
108
|
this.report(measure_desktop_size(element));
|
|
98
109
|
// Absent under the spec test environment, and on nothing else worth
|
|
99
110
|
// supporting — a missing observer costs the dynamic resize, not the
|
|
@@ -269,9 +280,11 @@ const PhirepassRdp = class {
|
|
|
269
280
|
* the widget is resized, so the desktop is rendered at native size rather
|
|
270
281
|
* than scaled.
|
|
271
282
|
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
283
|
+
* Turning this on is what registers the display-control extension, since
|
|
284
|
+
* the channel it opens is negotiated at connect time and never afterwards.
|
|
285
|
+
* The host still has the last word: one that does not offer the channel
|
|
286
|
+
* keeps the resolution it started with, which `scale` then fits into the
|
|
287
|
+
* widget, as before.
|
|
275
288
|
*/
|
|
276
289
|
dynamicResize = true;
|
|
277
290
|
/**
|
|
@@ -284,6 +297,16 @@ const PhirepassRdp = class {
|
|
|
284
297
|
* desktop has focus.
|
|
285
298
|
*/
|
|
286
299
|
captureKeyboard = true;
|
|
300
|
+
/**
|
|
301
|
+
* Share the clipboard with the remote host in both directions.
|
|
302
|
+
*
|
|
303
|
+
* On is the client's own default and needs nothing from us, so this exists
|
|
304
|
+
* to turn it **off**: a deployment that treats copy-out as exfiltration can
|
|
305
|
+
* take the clipboard away without giving up the session. Clipboard access
|
|
306
|
+
* additionally needs a secure context — over plain HTTP the browser refuses
|
|
307
|
+
* it whatever this says, and the client's warning is logged.
|
|
308
|
+
*/
|
|
309
|
+
clipboard = true;
|
|
287
310
|
onNodeIdChange(newValue, _oldValue) {
|
|
288
311
|
this.reset_session_state();
|
|
289
312
|
if (this.channel && this.channel.is_connected()) {
|
|
@@ -363,6 +386,39 @@ const PhirepassRdp = class {
|
|
|
363
386
|
async focusDesktop() {
|
|
364
387
|
this.focus_desktop();
|
|
365
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* Sends Ctrl+Alt+Del to the remote host.
|
|
391
|
+
*
|
|
392
|
+
* The host has to be told, because pressing it never reaches us: Ctrl+Alt+Del
|
|
393
|
+
* is a secure attention sequence the operating system takes before any
|
|
394
|
+
* browser sees it, and `captureKeyboard` cannot claim it either. Yet it is
|
|
395
|
+
* how a Windows session is unlocked and how the login screen is reached, so
|
|
396
|
+
* without this a locked desktop is a dead end.
|
|
397
|
+
*
|
|
398
|
+
* Answers whether it was sent — there is no session to send it to until the
|
|
399
|
+
* client has connected.
|
|
400
|
+
*/
|
|
401
|
+
async sendCtrlAltDel() {
|
|
402
|
+
if (!this.userInteraction) {
|
|
403
|
+
return false;
|
|
404
|
+
}
|
|
405
|
+
this.userInteraction.ctrlAltDel();
|
|
406
|
+
this.focus_desktop();
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Sends the Meta (Windows/Command) key to the remote host, which opens the
|
|
411
|
+
* Start menu. Outside fullscreen the browser and the desktop environment
|
|
412
|
+
* take this key first, so like Ctrl+Alt+Del it has to be sendable directly.
|
|
413
|
+
*/
|
|
414
|
+
async sendMetaKey() {
|
|
415
|
+
if (!this.userInteraction) {
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
this.userInteraction.metaKey();
|
|
419
|
+
this.focus_desktop();
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
366
422
|
try_connect() {
|
|
367
423
|
if (this.connected || !this.domReady || !this.runtimeReady) {
|
|
368
424
|
return;
|
|
@@ -484,9 +540,25 @@ const PhirepassRdp = class {
|
|
|
484
540
|
element.scale = this.scale;
|
|
485
541
|
element.flexcenter = true;
|
|
486
542
|
element.verbose = false;
|
|
543
|
+
// Extensions are how the client is configured, and neither
|
|
544
|
+
// `iron-remote-desktop` nor its RDP backend registers one on the app's
|
|
545
|
+
// behalf — both packages only expose the factories.
|
|
546
|
+
const extensions = [backend.enableCredssp(true)];
|
|
547
|
+
// The DisplayControl virtual channel is negotiated at connect time and
|
|
548
|
+
// never afterwards: it is how the client tells the host it can accept a
|
|
549
|
+
// resolution change at all. A client that did not ask for it fails
|
|
550
|
+
// every `resize()` with "Display Control Virtual Channel is not
|
|
551
|
+
// available", which reaches the widget as a host that silently refuses
|
|
552
|
+
// to resize — making the viewport sync, the initial desktop
|
|
553
|
+
// measurement and the `dynamicResize` prop all look like a host
|
|
554
|
+
// limitation. Asked for only when `dynamicResize` is on, so a caller
|
|
555
|
+
// that turned it off does not advertise a channel it will never use.
|
|
556
|
+
if (this.dynamicResize) {
|
|
557
|
+
extensions.push(backend.displayControl(true));
|
|
558
|
+
}
|
|
487
559
|
element.addEventListener('ready', (event) => {
|
|
488
560
|
const detail = event.detail;
|
|
489
|
-
void this.start_session(detail.irgUserInteraction, web.ticket,
|
|
561
|
+
void this.start_session(detail.irgUserInteraction, web.ticket, extensions);
|
|
490
562
|
});
|
|
491
563
|
this.ironEl = element;
|
|
492
564
|
this.mount_client(element);
|
|
@@ -507,26 +579,45 @@ const PhirepassRdp = class {
|
|
|
507
579
|
mount_client(element) {
|
|
508
580
|
this.el.appendChild(element);
|
|
509
581
|
}
|
|
510
|
-
async start_session(userInteraction, ticket,
|
|
582
|
+
async start_session(userInteraction, ticket, extensions) {
|
|
511
583
|
this.userInteraction = userInteraction;
|
|
584
|
+
// Both clipboard switches are on by default inside the client, and its
|
|
585
|
+
// element wires the browser side up on its own — so this only ever
|
|
586
|
+
// turns the clipboard off. It has to happen before `connect`, because
|
|
587
|
+
// that is when the client decides whether to register the clipboard
|
|
588
|
+
// callbacks with its backend at all.
|
|
589
|
+
if (!this.clipboard) {
|
|
590
|
+
userInteraction.setEnableClipboard(false);
|
|
591
|
+
}
|
|
592
|
+
// Clipboard problems are reported this way and no other: an insecure
|
|
593
|
+
// context, a browser too old for the async clipboard API, a read the
|
|
594
|
+
// user never granted. Without a callback the client's own warning is
|
|
595
|
+
// dropped, and a clipboard that does nothing looks identical to one
|
|
596
|
+
// that was never asked for.
|
|
597
|
+
userInteraction.onWarningCallback((warning) => {
|
|
598
|
+
console.warn('The remote desktop client reported a problem:', warning);
|
|
599
|
+
});
|
|
512
600
|
const builder = userInteraction
|
|
513
601
|
.configBuilder()
|
|
514
602
|
.withUsername(this.credentials?.username ?? '')
|
|
515
603
|
.withPassword(this.credentials?.password ?? '')
|
|
516
604
|
.withDestination(this.destination ?? this.nodeId)
|
|
517
605
|
.withProxyAddress(`${this.create_web_socket_endpoint()}/api/web/rdp/${this.nodeId}`)
|
|
518
|
-
.withAuthToken(ticket)
|
|
519
|
-
|
|
606
|
+
.withAuthToken(ticket);
|
|
607
|
+
for (const extension of extensions) {
|
|
608
|
+
builder.withExtension(extension);
|
|
609
|
+
}
|
|
520
610
|
// Asking for the widget's size up front saves the remote host a
|
|
521
611
|
// resolution change immediately after logon — but only when the widget
|
|
522
612
|
// has been laid out. An unmeasurable widget asks for nothing and lets
|
|
523
613
|
// `start_viewport_sync` correct the size once the client is visible;
|
|
524
614
|
// sending a size derived from a zero-sized box is how a host ends up
|
|
525
615
|
// refusing the connection outright.
|
|
616
|
+
let openedAt;
|
|
526
617
|
if (this.dynamicResize) {
|
|
527
|
-
|
|
528
|
-
if (
|
|
529
|
-
builder.withDesktopSize(
|
|
618
|
+
openedAt = measure_initial_desktop_size(this.el);
|
|
619
|
+
if (openedAt) {
|
|
620
|
+
builder.withDesktopSize(openedAt);
|
|
530
621
|
}
|
|
531
622
|
}
|
|
532
623
|
try {
|
|
@@ -544,9 +635,17 @@ const PhirepassRdp = class {
|
|
|
544
635
|
userInteraction.setVisibility(true);
|
|
545
636
|
this.statusMessage = undefined;
|
|
546
637
|
this.focus_desktop();
|
|
547
|
-
this.start_viewport_sync();
|
|
548
638
|
void this.sync_keyboard_lock();
|
|
549
|
-
|
|
639
|
+
// Started before the viewport sync, and kept unawaited until after
|
|
640
|
+
// it: `run` drives the stream, and the sync can emit a
|
|
641
|
+
// display-control PDU the moment it is attached. Asking the host to
|
|
642
|
+
// change resolution while the connection sequence is still being
|
|
643
|
+
// parsed is how a fast-path bitmap ends up truncated against its own
|
|
644
|
+
// declared length. Entering `run` first means anything the sync
|
|
645
|
+
// sends lands on a session that is already reading.
|
|
646
|
+
const running = session.run();
|
|
647
|
+
this.start_viewport_sync(openedAt);
|
|
648
|
+
const termination = await running;
|
|
550
649
|
this.statusMessage = termination.reason();
|
|
551
650
|
}
|
|
552
651
|
catch (err) {
|
|
@@ -562,12 +661,12 @@ const PhirepassRdp = class {
|
|
|
562
661
|
* measurement has to happen after it — measuring earlier reads a hidden,
|
|
563
662
|
* zero-sized box.
|
|
564
663
|
*/
|
|
565
|
-
start_viewport_sync() {
|
|
664
|
+
start_viewport_sync(openedAt) {
|
|
566
665
|
if (!this.dynamicResize) {
|
|
567
666
|
return;
|
|
568
667
|
}
|
|
569
668
|
this.viewport = new ViewportSync((size) => this.resize_desktop(size));
|
|
570
|
-
this.viewport.observe(this.el);
|
|
669
|
+
this.viewport.observe(this.el, openedAt);
|
|
571
670
|
}
|
|
572
671
|
stop_viewport_sync() {
|
|
573
672
|
this.viewport?.disconnect();
|
|
@@ -653,7 +752,7 @@ const PhirepassRdp = class {
|
|
|
653
752
|
this.request_tunnel();
|
|
654
753
|
}
|
|
655
754
|
render() {
|
|
656
|
-
return (index.h(index.Host, { key: '
|
|
755
|
+
return (index.h(index.Host, { key: '56354df7bd0d3f01fcd5ff65ca5618ceb6af1b91' }, index.h("div", { key: '446dc83e41a29c3bc2c341a26092ed3581565967', class: "screen", ref: (el) => (this.containerEl = el) }, index.h("slot", { key: '2beafc92d81662dfac5c7b41356f6c6c802643b9' })), this.credentialsPrompt && (index.h("form", { key: 'dcc29b21fba03bb97526ec3d1cf5a1fb51b483e9', class: "prompt", onSubmit: (event) => this.submit_credentials(event) }, index.h("label", { key: 'b5a3e302089b2282aedbdbefd4fb5eaca7c34455', htmlFor: "rdp-username" }, "Username"), index.h("input", { key: '3bd1c902a6bc41bc7e69c16258cac78035a949bd', id: "rdp-username", type: "text", autocomplete: "off", autofocus: true, onInput: (event) => (this.usernameBuffer = event.target.value) }), index.h("label", { key: '2defe12d73b609cbad27c06447c3c3221ff3e5aa', htmlFor: "rdp-password" }, "Password"), index.h("input", { key: '55935891f24f0c1db71a14c42b2fc7a96c0c0ba6', id: "rdp-password", type: "password", autocomplete: "off", onInput: (event) => (this.passwordBuffer = event.target.value) }), index.h("button", { key: '83439c0e8756001c7042fc3b6754889d62a8eada', type: "submit" }, "Connect"))), this.statusMessage && !this.credentialsPrompt && (index.h("div", { key: '294262625f44a3f45d54bcd492875a9b6fd03219', class: "status" }, this.statusMessage))));
|
|
657
756
|
}
|
|
658
757
|
static get watchers() { return {
|
|
659
758
|
"nodeId": [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var protocol = require('./protocol-
|
|
3
|
+
var index = require('./index-CbZdPuPQ.js');
|
|
4
|
+
var protocol = require('./protocol-B45sQiET.js');
|
|
5
5
|
|
|
6
6
|
const phirepassSftpClientLogoSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIgogICAgc3Ryb2tlPSJyZ2IoNDYsIDE4NCwgMTM4KSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiCiAgICBjbGFzcz0ibHVjaWRlIGx1Y2lkZS10ZXJtaW5hbCB3LTMuNSBoLTMuNSB0ZXh0LXByaW1hcnkiPgogICAgPHBvbHlsaW5lIHBvaW50cz0iNCAxNyAxMCAxMSA0IDUiPjwvcG9seWxpbmU+CiAgICA8bGluZSB4MT0iMTIiIHgyPSIyMCIgeTE9IjE5IiB5Mj0iMTkiPjwvbGluZT4KPC9zdmc+Cg==';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var protocol = require('./protocol-
|
|
3
|
+
var index = require('./index-CbZdPuPQ.js');
|
|
4
|
+
var protocol = require('./protocol-B45sQiET.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CbZdPuPQ.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.44.
|
|
8
|
+
Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -37,11 +37,10 @@ class Channel {
|
|
|
37
37
|
* @param {number} port
|
|
38
38
|
* @param {string | null} [username]
|
|
39
39
|
* @param {string | null} [password]
|
|
40
|
-
* @param {string | null} [visibility]
|
|
41
40
|
* @param {string | null} [scheme]
|
|
42
41
|
* @param {number | null} [msg_id]
|
|
43
42
|
*/
|
|
44
|
-
create_service(node_id, kind, name, host, port, username, password,
|
|
43
|
+
create_service(node_id, kind, name, host, port, username, password, scheme, msg_id) {
|
|
45
44
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
46
45
|
const len0 = WASM_VECTOR_LEN;
|
|
47
46
|
const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -54,11 +53,9 @@ class Channel {
|
|
|
54
53
|
var len4 = WASM_VECTOR_LEN;
|
|
55
54
|
var ptr5 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
56
55
|
var len5 = WASM_VECTOR_LEN;
|
|
57
|
-
var ptr6 = isLikeNone(
|
|
56
|
+
var ptr6 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
58
57
|
var len6 = WASM_VECTOR_LEN;
|
|
59
|
-
|
|
60
|
-
var len7 = WASM_VECTOR_LEN;
|
|
61
|
-
wasm.channel_create_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, port, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
58
|
+
wasm.channel_create_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, port, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
62
59
|
}
|
|
63
60
|
/**
|
|
64
61
|
* @param {string} node_id
|
|
@@ -356,11 +353,10 @@ class Channel {
|
|
|
356
353
|
* @param {number} port
|
|
357
354
|
* @param {string | null} [username]
|
|
358
355
|
* @param {string | null} [password]
|
|
359
|
-
* @param {string | null} [visibility]
|
|
360
356
|
* @param {string | null} [scheme]
|
|
361
357
|
* @param {number | null} [msg_id]
|
|
362
358
|
*/
|
|
363
|
-
update_service(node_id, service_id, kind, name, host, port, username, password,
|
|
359
|
+
update_service(node_id, service_id, kind, name, host, port, username, password, scheme, msg_id) {
|
|
364
360
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
365
361
|
const len0 = WASM_VECTOR_LEN;
|
|
366
362
|
const ptr1 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -375,11 +371,9 @@ class Channel {
|
|
|
375
371
|
var len5 = WASM_VECTOR_LEN;
|
|
376
372
|
var ptr6 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
377
373
|
var len6 = WASM_VECTOR_LEN;
|
|
378
|
-
var ptr7 = isLikeNone(
|
|
374
|
+
var ptr7 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
379
375
|
var len7 = WASM_VECTOR_LEN;
|
|
380
|
-
|
|
381
|
-
var len8 = WASM_VECTOR_LEN;
|
|
382
|
-
wasm.channel_update_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, port, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
376
|
+
wasm.channel_update_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, port, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
383
377
|
}
|
|
384
378
|
}
|
|
385
379
|
if (Symbol.dispose) Channel.prototype[Symbol.dispose] = Channel.prototype.free;
|
|
@@ -463,7 +457,7 @@ function __wbg_get_imports() {
|
|
|
463
457
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
464
458
|
return addHeapObject(ret);
|
|
465
459
|
}, arguments); },
|
|
466
|
-
|
|
460
|
+
__wbg_info_c401af4c728dfc5d: function(arg0, arg1) {
|
|
467
461
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
468
462
|
},
|
|
469
463
|
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
@@ -535,7 +529,7 @@ function __wbg_get_imports() {
|
|
|
535
529
|
__wbg_set_onopen_b28699f3431204cf: function(arg0, arg1) {
|
|
536
530
|
getObject(arg0).onopen = getObject(arg1);
|
|
537
531
|
},
|
|
538
|
-
|
|
532
|
+
__wbg_warn_68977fa8f7b50381: function(arg0, arg1) {
|
|
539
533
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
540
534
|
},
|
|
541
535
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
@@ -909,7 +903,7 @@ async function __wbg_init(module_or_path) {
|
|
|
909
903
|
}
|
|
910
904
|
|
|
911
905
|
if (module_or_path === undefined) {
|
|
912
|
-
module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-
|
|
906
|
+
module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-B45sQiET.js', document.baseURI).href)));
|
|
913
907
|
}
|
|
914
908
|
const imports = __wbg_get_imports();
|
|
915
909
|
|