phirepass-widgets 0.0.117 → 0.0.118
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 +1 -12
- package/dist/cjs/{index-DehquNXP.js → index-C3v5xmUo.js} +2 -74
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/phirepass-rdp.cjs.entry.js +5 -16
- package/dist/cjs/phirepass-sftp-client.cjs.entry.js +1470 -0
- package/dist/cjs/phirepass-terminal.cjs.entry.js +4 -4
- package/dist/cjs/phirepass-widgets.cjs.js +2 -2
- package/dist/cjs/{protocol-BjOgJZ9-.js → protocol-DCBMfc2u.js} +21 -277
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/common/channel.js +1 -21
- package/dist/collection/components/phirepass-rdp/phirepass-rdp.js +13 -36
- package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.css +0 -122
- package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.js +31 -181
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +2 -2
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-CsYQJXY2.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 +5 -5
- package/dist/esm/{index-BinptKL7.js → index-BVOulYtW.js} +2 -74
- package/dist/esm/loader.js +3 -3
- package/dist/esm/phirepass-rdp.entry.js +5 -16
- package/dist/esm/phirepass-sftp-client.entry.js +1468 -0
- package/dist/esm/phirepass-terminal.entry.js +4 -4
- package/dist/esm/phirepass-widgets.js +3 -3
- package/dist/esm/{protocol-BekUePpu.js → protocol-CsYQJXY2.js} +20 -276
- package/dist/phirepass-widgets/{p-9e6f9220.entry.js → p-7ea2fdbc.entry.js} +5 -5
- package/dist/phirepass-widgets/p-BVOulYtW.js +3 -0
- package/dist/phirepass-widgets/p-CsYQJXY2.js +1 -0
- package/dist/phirepass-widgets/p-c1c616ca.entry.js +1 -0
- package/dist/phirepass-widgets/p-f1bc04a8.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/common/channel.d.ts +0 -30
- package/dist/types/components/phirepass-rdp/phirepass-rdp.d.ts +0 -10
- package/dist/types/components/phirepass-sftp-client/phirepass-sftp-client.d.ts +0 -30
- package/dist/types/components.d.ts +34 -434
- package/package.json +4 -18
- package/dist/cjs/phirepass-downloader_3.cjs.entry.js +0 -3823
- package/dist/collection/common/fetch.js +0 -44
- package/dist/collection/components/phirepass-downloader/form.js +0 -69
- package/dist/collection/components/phirepass-downloader/format.js +0 -105
- package/dist/collection/components/phirepass-downloader/jobs.js +0 -393
- package/dist/collection/components/phirepass-downloader/phirepass-downloader.css +0 -1109
- package/dist/collection/components/phirepass-downloader/phirepass-downloader.js +0 -1466
- package/dist/collection/components/phirepass-downloader/source.js +0 -120
- package/dist/collection/components/phirepass-downloader/views/dialogs.js +0 -34
- package/dist/collection/components/phirepass-downloader/views/fetch-form.js +0 -65
- package/dist/collection/components/phirepass-downloader/views/icons.js +0 -34
- package/dist/collection/components/phirepass-downloader/views/job-row.js +0 -91
- package/dist/collection/components/phirepass-downloader/views/notices.js +0 -15
- package/dist/collection/components/phirepass-downloader/views/states.js +0 -19
- package/dist/collection/components/phirepass-media-player/phirepass-media-player.css +0 -225
- package/dist/collection/components/phirepass-media-player/phirepass-media-player.js +0 -549
- package/dist/collection/components/phirepass-media-player/player.js +0 -118
- package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.fetch.js +0 -35
- package/dist/collection/testing/fixtures.js +0 -219
- package/dist/collection/testing/mock-channel.js +0 -410
- package/dist/components/p-B4kFfbHE.js +0 -1
- package/dist/components/p-BekUePpu.js +0 -1
- package/dist/components/p-DIf-Ru26.js +0 -1
- package/dist/components/phirepass-downloader.d.ts +0 -11
- package/dist/components/phirepass-downloader.js +0 -1
- package/dist/components/phirepass-media-player.d.ts +0 -11
- package/dist/components/phirepass-media-player.js +0 -1
- package/dist/esm/phirepass-downloader_3.entry.js +0 -3819
- package/dist/phirepass-widgets/p-6a192c8d.entry.js +0 -1
- package/dist/phirepass-widgets/p-BekUePpu.js +0 -1
- package/dist/phirepass-widgets/p-BinptKL7.js +0 -3
- package/dist/phirepass-widgets/p-fe1ce8da.entry.js +0 -1
- package/dist/types/common/fetch.d.ts +0 -167
- package/dist/types/components/phirepass-downloader/form.d.ts +0 -54
- package/dist/types/components/phirepass-downloader/format.d.ts +0 -17
- package/dist/types/components/phirepass-downloader/jobs.d.ts +0 -123
- package/dist/types/components/phirepass-downloader/phirepass-downloader.d.ts +0 -238
- package/dist/types/components/phirepass-downloader/source.d.ts +0 -61
- package/dist/types/components/phirepass-downloader/views/dialogs.d.ts +0 -52
- package/dist/types/components/phirepass-downloader/views/fetch-form.d.ts +0 -31
- package/dist/types/components/phirepass-downloader/views/icons.d.ts +0 -5
- package/dist/types/components/phirepass-downloader/views/job-row.d.ts +0 -21
- package/dist/types/components/phirepass-downloader/views/notices.d.ts +0 -18
- package/dist/types/components/phirepass-downloader/views/states.d.ts +0 -38
- package/dist/types/components/phirepass-media-player/phirepass-media-player.d.ts +0 -82
- package/dist/types/components/phirepass-media-player/player.d.ts +0 -53
- package/dist/types/components/phirepass-sftp-client/phirepass-sftp-client.fetch.d.ts +0 -40
- package/dist/types/testing/fixtures.d.ts +0 -25
- package/dist/types/testing/mock-channel.d.ts +0 -132
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, g as getElement, h as h$1, H as Host } from './index-
|
|
2
|
-
import { I as InputMode, _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType, E as ErrorType } from './protocol-
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h as h$1, H as Host } from './index-BVOulYtW.js';
|
|
2
|
+
import { I as InputMode, _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType, E as ErrorType } from './protocol-CsYQJXY2.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
@@ -953,13 +953,13 @@ const PhirepassTerminal = class {
|
|
|
953
953
|
return (h$1("button", { key: id, type: "button", class: { key: true, armed: !!armed }, "aria-label": hint, "aria-pressed": armed === undefined ? undefined : String(armed), onPointerDown: (event) => event.preventDefault(), onMouseDown: (event) => event.preventDefault(), onClick: onPress }, label));
|
|
954
954
|
}
|
|
955
955
|
render() {
|
|
956
|
-
return (h$1(Host, { key: '
|
|
956
|
+
return (h$1(Host, { key: '4f00fba03285e6410d0248df32247f3231199cf8', class: { 'keys-on': this.keyBar === 'on', 'keys-off': this.keyBar === 'off' } }, h$1("div", { key: 'f43351419da2ca6ef1232afd96ea30be5feae138', id: "ccc", ref: el => (this.containerEl = el) }), h$1("div", { key: '56f7929c2045ae17053777b818f3317844ec6467', class: "keys", role: "toolbar", "aria-label": "Terminal keys" }, this.key_button('ctrl', 'ctrl', 'Control', () => {
|
|
957
957
|
this.ctrlArmed = !this.ctrlArmed;
|
|
958
958
|
this.terminal?.focus();
|
|
959
959
|
}, this.ctrlArmed), this.key_button('alt', 'alt', 'Alt', () => {
|
|
960
960
|
this.altArmed = !this.altArmed;
|
|
961
961
|
this.terminal?.focus();
|
|
962
|
-
}, this.altArmed), KEY_BAR_KEYS.map(entry => this.key_button(entry.id, entry.label, entry.hint, () => this.press(entry.data))), h$1("span", { key: '
|
|
962
|
+
}, this.altArmed), KEY_BAR_KEYS.map(entry => this.key_button(entry.id, entry.label, entry.hint, () => this.press(entry.data))), h$1("span", { key: '6573fdb8605d4a3555589412591d921738c98abb', class: "spacer" }), this.key_button('left', '←', 'Left arrow', () => this.press(this.arrow('D'))), this.key_button('down', '↓', 'Down arrow', () => this.press(this.arrow('B'))), this.key_button('up', '↑', 'Up arrow', () => this.press(this.arrow('A'))), this.key_button('right', '→', 'Right arrow', () => this.press(this.arrow('C'))))));
|
|
963
963
|
}
|
|
964
964
|
static get watchers() { return {
|
|
965
965
|
"nodeId": [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-BVOulYtW.js';
|
|
2
|
+
export { s as setNonce } from './index-BVOulYtW.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["phirepass-rdp",[[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"],"
|
|
20
|
+
return bootstrapLazy([["phirepass-rdp",[[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",[[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"],"channelFactory":[16],"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],"delete_is_dir":[32],"delete_recursive":[32],"delete_error":[32],"prompt_kind":[32],"prompt_value":[32],"prompt_error":[32],"prompt_busy":[32],"chmod_target":[32],"chmod_mode":[32],"chmod_error":[32],"chmod_busy":[32],"show_editor":[32],"editor_name":[32],"editor_text":[32],"editor_saved_text":[32],"editor_busy":[32],"editor_error":[32],"editor_confirm_discard":[32],"editor_loaded":[32],"filter":[32],"sort_key":[32],"sort_asc":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal",[[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],"keyBar":[1,"key-bar"],"serverId":[1,"server-id"],"channelFactory":[16],"ctrlArmed":[32],"altArmed":[32]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
21
21
|
});
|
|
@@ -270,117 +270,6 @@ class Channel {
|
|
|
270
270
|
}
|
|
271
271
|
wasm.channel_open_ssh_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, val5);
|
|
272
272
|
}
|
|
273
|
-
/**
|
|
274
|
-
* @param {string} download_id
|
|
275
|
-
* @param {boolean} delete_file
|
|
276
|
-
* @param {number | null} [msg_id]
|
|
277
|
-
*/
|
|
278
|
-
send_download_delete(download_id, delete_file, msg_id) {
|
|
279
|
-
const val2 = +delete_file;
|
|
280
|
-
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
281
|
-
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
282
|
-
const len0 = WASM_VECTOR_LEN;
|
|
283
|
-
wasm.channel_send_download_delete(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* @param {string} download_id
|
|
287
|
-
* @param {boolean} ignore_window
|
|
288
|
-
* @param {number | null} [msg_id]
|
|
289
|
-
*/
|
|
290
|
-
send_download_resume(download_id, ignore_window, msg_id) {
|
|
291
|
-
const val2 = +ignore_window;
|
|
292
|
-
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
293
|
-
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
294
|
-
const len0 = WASM_VECTOR_LEN;
|
|
295
|
-
wasm.channel_send_download_resume(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* @param {string} download_id
|
|
299
|
-
* @param {boolean} in_order
|
|
300
|
-
* @param {number | null} [msg_id]
|
|
301
|
-
*/
|
|
302
|
-
send_download_set_order(download_id, in_order, msg_id) {
|
|
303
|
-
const val2 = +in_order;
|
|
304
|
-
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
305
|
-
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
306
|
-
const len0 = WASM_VECTOR_LEN;
|
|
307
|
-
wasm.channel_send_download_set_order(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* @param {string} node_id
|
|
311
|
-
* @param {number | null} [msg_id]
|
|
312
|
-
*/
|
|
313
|
-
send_download_settings_get(node_id, msg_id) {
|
|
314
|
-
const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
315
|
-
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
316
|
-
const len0 = WASM_VECTOR_LEN;
|
|
317
|
-
wasm.channel_send_download_settings_get(this.__wbg_ptr, ptr0, len0, val2);
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* @param {string} node_id
|
|
321
|
-
* @param {any} settings
|
|
322
|
-
* @param {number | null} [msg_id]
|
|
323
|
-
*/
|
|
324
|
-
send_download_settings_save(node_id, settings, msg_id) {
|
|
325
|
-
const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
326
|
-
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
327
|
-
const len0 = WASM_VECTOR_LEN;
|
|
328
|
-
wasm.channel_send_download_settings_save(this.__wbg_ptr, ptr0, len0, settings, val2);
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* @param {string} node_id
|
|
332
|
-
* @param {any} source
|
|
333
|
-
* @param {string | null | undefined} sub_dir
|
|
334
|
-
* @param {any} browsing
|
|
335
|
-
* @param {boolean | null | undefined} in_order
|
|
336
|
-
* @param {any} options
|
|
337
|
-
* @param {number | null} [msg_id]
|
|
338
|
-
*/
|
|
339
|
-
send_download_start(node_id, source, sub_dir, browsing, in_order, options, msg_id) {
|
|
340
|
-
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
341
|
-
let ptr0, len0, ptr1, len1;
|
|
342
|
-
try {
|
|
343
|
-
ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
344
|
-
len0 = WASM_VECTOR_LEN;
|
|
345
|
-
ptr1 = isLikeNone(sub_dir) ? 0 : passStringToWasm0(sub_dir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
346
|
-
len1 = WASM_VECTOR_LEN;
|
|
347
|
-
} catch (e) {
|
|
348
|
-
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
|
|
349
|
-
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
350
|
-
throw e;
|
|
351
|
-
}
|
|
352
|
-
wasm.channel_send_download_start(this.__wbg_ptr, ptr0, len0, source, ptr1, len1, browsing, isLikeNone(in_order) ? 0xFFFFFF : in_order ? 1 : 0, options, val3);
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @param {string} download_id
|
|
356
|
-
* @param {boolean} discard
|
|
357
|
-
* @param {number | null} [msg_id]
|
|
358
|
-
*/
|
|
359
|
-
send_download_stop(download_id, discard, msg_id) {
|
|
360
|
-
const val2 = +discard;
|
|
361
|
-
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
362
|
-
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
363
|
-
const len0 = WASM_VECTOR_LEN;
|
|
364
|
-
wasm.channel_send_download_stop(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* `{ Node: "<uuid>" }` or `"All"`.
|
|
368
|
-
* @param {any} scope
|
|
369
|
-
*/
|
|
370
|
-
send_download_subscribe(scope) {
|
|
371
|
-
wasm.channel_send_download_subscribe(this.__wbg_ptr, scope);
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* @param {string} node_id
|
|
375
|
-
* @param {any} browsing
|
|
376
|
-
* @param {number | null} [msg_id]
|
|
377
|
-
*/
|
|
378
|
-
send_download_where(node_id, browsing, msg_id) {
|
|
379
|
-
const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
380
|
-
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
381
|
-
const len0 = WASM_VECTOR_LEN;
|
|
382
|
-
wasm.channel_send_download_where(this.__wbg_ptr, ptr0, len0, browsing, val2);
|
|
383
|
-
}
|
|
384
273
|
/**
|
|
385
274
|
* Set permission bits. The agent masks these to `0o7777`.
|
|
386
275
|
* @param {string} node_id
|
|
@@ -536,31 +425,6 @@ class Channel {
|
|
|
536
425
|
}
|
|
537
426
|
wasm.channel_send_sftp_mkdir(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
|
|
538
427
|
}
|
|
539
|
-
/**
|
|
540
|
-
* Ask the node to let a player read `path` through this SFTP session.
|
|
541
|
-
* Answered with `SFTPOpResult::Stream { token, size, mime }`; the player
|
|
542
|
-
* then reads `/api/web/stream/{node_id}/t/{token}`.
|
|
543
|
-
* @param {string} node_id
|
|
544
|
-
* @param {number} sid
|
|
545
|
-
* @param {string} path
|
|
546
|
-
* @param {number | null} [msg_id]
|
|
547
|
-
*/
|
|
548
|
-
send_sftp_open_stream(node_id, sid, path, msg_id) {
|
|
549
|
-
const val3 = +sid;
|
|
550
|
-
const val4 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
551
|
-
let ptr0, len0, ptr1, len1;
|
|
552
|
-
try {
|
|
553
|
-
ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
554
|
-
len0 = WASM_VECTOR_LEN;
|
|
555
|
-
ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
556
|
-
len1 = WASM_VECTOR_LEN;
|
|
557
|
-
} catch (e) {
|
|
558
|
-
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
|
|
559
|
-
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
560
|
-
throw e;
|
|
561
|
-
}
|
|
562
|
-
wasm.channel_send_sftp_open_stream(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
|
|
563
|
-
}
|
|
564
428
|
/**
|
|
565
429
|
* Read a whole file for the in-page editor. Answered with an
|
|
566
430
|
* `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
|
|
@@ -837,10 +701,6 @@ function __wbg_get_imports() {
|
|
|
837
701
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
838
702
|
return ret;
|
|
839
703
|
},
|
|
840
|
-
__wbg_Number_ff192a72a0dcdf6d: function(arg0) {
|
|
841
|
-
const ret = Number(arg0);
|
|
842
|
-
return ret;
|
|
843
|
-
},
|
|
844
704
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
845
705
|
const ret = String(arg1);
|
|
846
706
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -848,17 +708,6 @@ function __wbg_get_imports() {
|
|
|
848
708
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
849
709
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
850
710
|
},
|
|
851
|
-
__wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
|
|
852
|
-
const v = arg1;
|
|
853
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
854
|
-
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
855
|
-
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
856
|
-
},
|
|
857
|
-
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
858
|
-
const v = arg0;
|
|
859
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
860
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
861
|
-
},
|
|
862
711
|
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
863
712
|
const ret = debugString(arg1);
|
|
864
713
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -866,49 +715,6 @@ function __wbg_get_imports() {
|
|
|
866
715
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
867
716
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
868
717
|
},
|
|
869
|
-
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
870
|
-
const ret = arg0 in arg1;
|
|
871
|
-
return ret;
|
|
872
|
-
},
|
|
873
|
-
__wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
|
|
874
|
-
const ret = typeof(arg0) === 'bigint';
|
|
875
|
-
return ret;
|
|
876
|
-
},
|
|
877
|
-
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
878
|
-
const ret = typeof(arg0) === 'function';
|
|
879
|
-
return ret;
|
|
880
|
-
},
|
|
881
|
-
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
882
|
-
const ret = arg0 === null;
|
|
883
|
-
return ret;
|
|
884
|
-
},
|
|
885
|
-
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
886
|
-
const val = arg0;
|
|
887
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
888
|
-
return ret;
|
|
889
|
-
},
|
|
890
|
-
__wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
|
|
891
|
-
const ret = typeof(arg0) === 'string';
|
|
892
|
-
return ret;
|
|
893
|
-
},
|
|
894
|
-
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
895
|
-
const ret = arg0 === undefined;
|
|
896
|
-
return ret;
|
|
897
|
-
},
|
|
898
|
-
__wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
|
|
899
|
-
const ret = arg0 === arg1;
|
|
900
|
-
return ret;
|
|
901
|
-
},
|
|
902
|
-
__wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
|
|
903
|
-
const ret = arg0 == arg1;
|
|
904
|
-
return ret;
|
|
905
|
-
},
|
|
906
|
-
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
907
|
-
const obj = arg1;
|
|
908
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
909
|
-
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
910
|
-
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
911
|
-
},
|
|
912
718
|
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
913
719
|
const obj = arg1;
|
|
914
720
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -935,7 +741,7 @@ function __wbg_get_imports() {
|
|
|
935
741
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
936
742
|
return ret;
|
|
937
743
|
}, arguments); },
|
|
938
|
-
|
|
744
|
+
__wbg_clearInterval_26ba580547547579: function(arg0) {
|
|
939
745
|
const ret = clearInterval(arg0);
|
|
940
746
|
return ret;
|
|
941
747
|
},
|
|
@@ -946,14 +752,6 @@ function __wbg_get_imports() {
|
|
|
946
752
|
const ret = arg0.data;
|
|
947
753
|
return ret;
|
|
948
754
|
},
|
|
949
|
-
__wbg_done_57e08d0be6e30c02: function(arg0) {
|
|
950
|
-
const ret = arg0.done;
|
|
951
|
-
return ret;
|
|
952
|
-
},
|
|
953
|
-
__wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
|
|
954
|
-
const ret = Object.entries(arg0);
|
|
955
|
-
return ret;
|
|
956
|
-
},
|
|
957
755
|
__wbg_from_eac91875c8a5ffa4: function(arg0) {
|
|
958
756
|
const ret = Array.from(arg0);
|
|
959
757
|
return ret;
|
|
@@ -965,23 +763,7 @@ function __wbg_get_imports() {
|
|
|
965
763
|
const ret = Reflect.get(arg0, arg1);
|
|
966
764
|
return ret;
|
|
967
765
|
}, arguments); },
|
|
968
|
-
|
|
969
|
-
const ret = Reflect.get(arg0, arg1);
|
|
970
|
-
return ret;
|
|
971
|
-
}, arguments); },
|
|
972
|
-
__wbg_get_d7176cfb76d71114: function(arg0, arg1) {
|
|
973
|
-
const ret = arg0[arg1 >>> 0];
|
|
974
|
-
return ret;
|
|
975
|
-
},
|
|
976
|
-
__wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
|
|
977
|
-
const ret = arg0[arg1 >>> 0];
|
|
978
|
-
return ret;
|
|
979
|
-
},
|
|
980
|
-
__wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
|
|
981
|
-
const ret = arg0[arg1];
|
|
982
|
-
return ret;
|
|
983
|
-
},
|
|
984
|
-
__wbg_info_386f00b314475db5: function(arg0, arg1) {
|
|
766
|
+
__wbg_info_2b8ee6588e4c6072: function(arg0, arg1) {
|
|
985
767
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
986
768
|
},
|
|
987
769
|
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
@@ -994,36 +776,10 @@ function __wbg_get_imports() {
|
|
|
994
776
|
const ret = result;
|
|
995
777
|
return ret;
|
|
996
778
|
},
|
|
997
|
-
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
998
|
-
let result;
|
|
999
|
-
try {
|
|
1000
|
-
result = arg0 instanceof Uint8Array;
|
|
1001
|
-
} catch (_) {
|
|
1002
|
-
result = false;
|
|
1003
|
-
}
|
|
1004
|
-
const ret = result;
|
|
1005
|
-
return ret;
|
|
1006
|
-
},
|
|
1007
|
-
__wbg_isArray_bcf1376d0d732d08: function(arg0) {
|
|
1008
|
-
const ret = Array.isArray(arg0);
|
|
1009
|
-
return ret;
|
|
1010
|
-
},
|
|
1011
|
-
__wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
|
|
1012
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1013
|
-
return ret;
|
|
1014
|
-
},
|
|
1015
|
-
__wbg_iterator_e4c5e8f68ada7b58: function() {
|
|
1016
|
-
const ret = Symbol.iterator;
|
|
1017
|
-
return ret;
|
|
1018
|
-
},
|
|
1019
779
|
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
1020
780
|
const ret = arg0.length;
|
|
1021
781
|
return ret;
|
|
1022
782
|
},
|
|
1023
|
-
__wbg_length_b03a0fabb109b1e9: function(arg0) {
|
|
1024
|
-
const ret = arg0.length;
|
|
1025
|
-
return ret;
|
|
1026
|
-
},
|
|
1027
783
|
__wbg_new_13de428334042d26: function(arg0) {
|
|
1028
784
|
const ret = new Uint8Array(arg0);
|
|
1029
785
|
return ret;
|
|
@@ -1040,14 +796,6 @@ function __wbg_get_imports() {
|
|
|
1040
796
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
1041
797
|
return ret;
|
|
1042
798
|
}, arguments); },
|
|
1043
|
-
__wbg_next_178c1651c11432b3: function(arg0) {
|
|
1044
|
-
const ret = arg0.next;
|
|
1045
|
-
return ret;
|
|
1046
|
-
},
|
|
1047
|
-
__wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
|
|
1048
|
-
const ret = arg0.next();
|
|
1049
|
-
return ret;
|
|
1050
|
-
}, arguments); },
|
|
1051
799
|
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
1052
800
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1053
801
|
},
|
|
@@ -1062,7 +810,7 @@ function __wbg_get_imports() {
|
|
|
1062
810
|
__wbg_send_d83d0891cf698779: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1063
811
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1064
812
|
}, arguments); },
|
|
1065
|
-
|
|
813
|
+
__wbg_setInterval_d933acbf2578adfa: function() { return handleError(function (arg0, arg1) {
|
|
1066
814
|
const ret = setInterval(arg0, arg1);
|
|
1067
815
|
return ret;
|
|
1068
816
|
}, arguments); },
|
|
@@ -1087,31 +835,27 @@ function __wbg_get_imports() {
|
|
|
1087
835
|
__wbg_set_onopen_757be120cc7b1ea6: function(arg0, arg1) {
|
|
1088
836
|
arg0.onopen = arg1;
|
|
1089
837
|
},
|
|
1090
|
-
|
|
1091
|
-
const ret = arg0.value;
|
|
1092
|
-
return ret;
|
|
1093
|
-
},
|
|
1094
|
-
__wbg_warn_4f0851b2fd19b28b: function(arg0, arg1) {
|
|
838
|
+
__wbg_warn_b0df9a9e7105e74b: function(arg0, arg1) {
|
|
1095
839
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
1096
840
|
},
|
|
1097
841
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1098
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
1099
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
842
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
843
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_63);
|
|
1100
844
|
return ret;
|
|
1101
845
|
},
|
|
1102
846
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1103
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
1104
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
847
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
848
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_63_37);
|
|
1105
849
|
return ret;
|
|
1106
850
|
},
|
|
1107
851
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1108
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
1109
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
852
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
853
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_63_38);
|
|
1110
854
|
return ret;
|
|
1111
855
|
},
|
|
1112
856
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1113
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1114
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
857
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
858
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_67);
|
|
1115
859
|
return ret;
|
|
1116
860
|
},
|
|
1117
861
|
__wbindgen_generic_0000000000000005: function(arg0) {
|
|
@@ -1149,20 +893,20 @@ function __wbg_get_imports() {
|
|
|
1149
893
|
};
|
|
1150
894
|
}
|
|
1151
895
|
|
|
1152
|
-
function
|
|
1153
|
-
wasm.
|
|
896
|
+
function __wasm_bindgen_func_elem_67(arg0, arg1) {
|
|
897
|
+
wasm.__wasm_bindgen_func_elem_67(arg0, arg1);
|
|
1154
898
|
}
|
|
1155
899
|
|
|
1156
|
-
function
|
|
1157
|
-
wasm.
|
|
900
|
+
function __wasm_bindgen_func_elem_63(arg0, arg1, arg2) {
|
|
901
|
+
wasm.__wasm_bindgen_func_elem_63(arg0, arg1, arg2);
|
|
1158
902
|
}
|
|
1159
903
|
|
|
1160
|
-
function
|
|
1161
|
-
wasm.
|
|
904
|
+
function __wasm_bindgen_func_elem_63_37(arg0, arg1, arg2) {
|
|
905
|
+
wasm.__wasm_bindgen_func_elem_63_37(arg0, arg1, arg2);
|
|
1162
906
|
}
|
|
1163
907
|
|
|
1164
|
-
function
|
|
1165
|
-
wasm.
|
|
908
|
+
function __wasm_bindgen_func_elem_63_38(arg0, arg1, arg2) {
|
|
909
|
+
wasm.__wasm_bindgen_func_elem_63_38(arg0, arg1, arg2);
|
|
1166
910
|
}
|
|
1167
911
|
|
|
1168
912
|
|