@stacksjs/desktop 0.61.24 → 0.63.0
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/index.js +180 -649
- package/dist/index.js.map +30 -0
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -13,51 +13,23 @@ var __export = (target, all) => {
|
|
|
13
13
|
// ../../../../node_modules/@tauri-apps/api/shell.js
|
|
14
14
|
var exports_shell = {};
|
|
15
15
|
__export(exports_shell, {
|
|
16
|
-
open: () =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
EventEmitter: () => {
|
|
22
|
-
{
|
|
23
|
-
return EventEmitter;
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
Command: () => {
|
|
27
|
-
{
|
|
28
|
-
return Command;
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
Child: () => {
|
|
32
|
-
{
|
|
33
|
-
return Child;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
16
|
+
open: () => open,
|
|
17
|
+
EventEmitter: () => EventEmitter,
|
|
18
|
+
Command: () => Command,
|
|
19
|
+
Child: () => Child
|
|
36
20
|
});
|
|
37
21
|
|
|
38
22
|
// ../../../../node_modules/@tauri-apps/api/tauri.js
|
|
39
23
|
var exports_tauri = {};
|
|
40
24
|
__export(exports_tauri, {
|
|
41
|
-
transformCallback: () =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
invoke: () => {
|
|
47
|
-
{
|
|
48
|
-
return invoke;
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
convertFileSrc: () => {
|
|
52
|
-
{
|
|
53
|
-
return convertFileSrc;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
25
|
+
transformCallback: () => transformCallback,
|
|
26
|
+
invoke: () => invoke,
|
|
27
|
+
convertFileSrc: () => convertFileSrc
|
|
56
28
|
});
|
|
57
|
-
|
|
29
|
+
function uid() {
|
|
58
30
|
return window.crypto.getRandomValues(new Uint32Array(1))[0];
|
|
59
|
-
}
|
|
60
|
-
|
|
31
|
+
}
|
|
32
|
+
function transformCallback(callback, once = false) {
|
|
61
33
|
const identifier = uid();
|
|
62
34
|
const prop = `_${identifier}`;
|
|
63
35
|
Object.defineProperty(window, prop, {
|
|
@@ -71,7 +43,7 @@ var transformCallback = function(callback, once = false) {
|
|
|
71
43
|
configurable: true
|
|
72
44
|
});
|
|
73
45
|
return identifier;
|
|
74
|
-
}
|
|
46
|
+
}
|
|
75
47
|
async function invoke(cmd, args = {}) {
|
|
76
48
|
return new Promise((resolve, reject) => {
|
|
77
49
|
const callback = transformCallback((e) => {
|
|
@@ -90,9 +62,9 @@ async function invoke(cmd, args = {}) {
|
|
|
90
62
|
});
|
|
91
63
|
});
|
|
92
64
|
}
|
|
93
|
-
|
|
65
|
+
function convertFileSrc(filePath, protocol = "asset") {
|
|
94
66
|
return window.__TAURI__.convertFileSrc(filePath, protocol);
|
|
95
|
-
}
|
|
67
|
+
}
|
|
96
68
|
|
|
97
69
|
// ../../../../node_modules/@tauri-apps/api/helpers/tauri.js
|
|
98
70
|
async function invokeTauriCommand(command) {
|
|
@@ -100,21 +72,6 @@ async function invokeTauriCommand(command) {
|
|
|
100
72
|
}
|
|
101
73
|
|
|
102
74
|
// ../../../../node_modules/@tauri-apps/api/shell.js
|
|
103
|
-
async function execute(onEvent, program, args = [], options) {
|
|
104
|
-
if (typeof args === "object") {
|
|
105
|
-
Object.freeze(args);
|
|
106
|
-
}
|
|
107
|
-
return invokeTauriCommand({
|
|
108
|
-
__tauriModule: "Shell",
|
|
109
|
-
message: {
|
|
110
|
-
cmd: "execute",
|
|
111
|
-
program,
|
|
112
|
-
args,
|
|
113
|
-
options,
|
|
114
|
-
onEventFn: transformCallback(onEvent)
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
75
|
async function open(path, openWith) {
|
|
119
76
|
return invokeTauriCommand({
|
|
120
77
|
__tauriModule: "Shell",
|
|
@@ -236,7 +193,13 @@ class Command extends EventEmitter {
|
|
|
236
193
|
return instance;
|
|
237
194
|
}
|
|
238
195
|
async spawn() {
|
|
239
|
-
|
|
196
|
+
const program = this.program;
|
|
197
|
+
const args = this.args;
|
|
198
|
+
const options = this.options;
|
|
199
|
+
if (typeof args === "object") {
|
|
200
|
+
Object.freeze(args);
|
|
201
|
+
}
|
|
202
|
+
const onEvent = (event) => {
|
|
240
203
|
switch (event.event) {
|
|
241
204
|
case "Error":
|
|
242
205
|
this.emit("error", event.payload);
|
|
@@ -251,28 +214,33 @@ class Command extends EventEmitter {
|
|
|
251
214
|
this.stderr.emit("data", event.payload);
|
|
252
215
|
break;
|
|
253
216
|
}
|
|
254
|
-
}
|
|
217
|
+
};
|
|
218
|
+
return invokeTauriCommand({
|
|
219
|
+
__tauriModule: "Shell",
|
|
220
|
+
message: {
|
|
221
|
+
cmd: "execute",
|
|
222
|
+
program,
|
|
223
|
+
args,
|
|
224
|
+
options,
|
|
225
|
+
onEventFn: transformCallback(onEvent)
|
|
226
|
+
}
|
|
227
|
+
}).then((pid) => new Child(pid));
|
|
255
228
|
}
|
|
256
229
|
async execute() {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
stdout: stdout.join("\n"),
|
|
272
|
-
stderr: stderr.join("\n")
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
this.spawn().catch(reject);
|
|
230
|
+
const program = this.program;
|
|
231
|
+
const args = this.args;
|
|
232
|
+
const options = this.options;
|
|
233
|
+
if (typeof args === "object") {
|
|
234
|
+
Object.freeze(args);
|
|
235
|
+
}
|
|
236
|
+
return invokeTauriCommand({
|
|
237
|
+
__tauriModule: "Shell",
|
|
238
|
+
message: {
|
|
239
|
+
cmd: "executeAndReturn",
|
|
240
|
+
program,
|
|
241
|
+
args,
|
|
242
|
+
options
|
|
243
|
+
}
|
|
276
244
|
});
|
|
277
245
|
}
|
|
278
246
|
}
|
|
@@ -280,31 +248,11 @@ class Command extends EventEmitter {
|
|
|
280
248
|
// ../../../../node_modules/@tauri-apps/api/app.js
|
|
281
249
|
var exports_app = {};
|
|
282
250
|
__export(exports_app, {
|
|
283
|
-
show: () =>
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
hide: () => {
|
|
289
|
-
{
|
|
290
|
-
return hide;
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
getVersion: () => {
|
|
294
|
-
{
|
|
295
|
-
return getVersion;
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
getTauriVersion: () => {
|
|
299
|
-
{
|
|
300
|
-
return getTauriVersion;
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
getName: () => {
|
|
304
|
-
{
|
|
305
|
-
return getName;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
251
|
+
show: () => show,
|
|
252
|
+
hide: () => hide,
|
|
253
|
+
getVersion: () => getVersion,
|
|
254
|
+
getTauriVersion: () => getTauriVersion,
|
|
255
|
+
getName: () => getName
|
|
308
256
|
});
|
|
309
257
|
async function getVersion() {
|
|
310
258
|
return invokeTauriCommand({
|
|
@@ -350,16 +298,8 @@ async function hide() {
|
|
|
350
298
|
// ../../../../node_modules/@tauri-apps/api/clipboard.js
|
|
351
299
|
var exports_clipboard = {};
|
|
352
300
|
__export(exports_clipboard, {
|
|
353
|
-
writeText: () =>
|
|
354
|
-
|
|
355
|
-
return writeText;
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
readText: () => {
|
|
359
|
-
{
|
|
360
|
-
return readText;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
301
|
+
writeText: () => writeText,
|
|
302
|
+
readText: () => readText
|
|
363
303
|
});
|
|
364
304
|
async function writeText(text) {
|
|
365
305
|
return invokeTauriCommand({
|
|
@@ -383,31 +323,11 @@ async function readText() {
|
|
|
383
323
|
// ../../../../node_modules/@tauri-apps/api/dialog.js
|
|
384
324
|
var exports_dialog = {};
|
|
385
325
|
__export(exports_dialog, {
|
|
386
|
-
save: () =>
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
open: () => {
|
|
392
|
-
{
|
|
393
|
-
return open2;
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
message: () => {
|
|
397
|
-
{
|
|
398
|
-
return message;
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
confirm: () => {
|
|
402
|
-
{
|
|
403
|
-
return confirm;
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
ask: () => {
|
|
407
|
-
{
|
|
408
|
-
return ask;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
326
|
+
save: () => save,
|
|
327
|
+
open: () => open2,
|
|
328
|
+
message: () => message,
|
|
329
|
+
confirm: () => confirm,
|
|
330
|
+
ask: () => ask
|
|
411
331
|
});
|
|
412
332
|
async function open2(options = {}) {
|
|
413
333
|
if (typeof options === "object") {
|
|
@@ -485,26 +405,10 @@ async function confirm(message2, options) {
|
|
|
485
405
|
// ../../../../node_modules/@tauri-apps/api/event.js
|
|
486
406
|
var exports_event = {};
|
|
487
407
|
__export(exports_event, {
|
|
488
|
-
once: () =>
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
},
|
|
493
|
-
listen: () => {
|
|
494
|
-
{
|
|
495
|
-
return listen2;
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
emit: () => {
|
|
499
|
-
{
|
|
500
|
-
return emit2;
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
TauriEvent: () => {
|
|
504
|
-
{
|
|
505
|
-
return TauriEvent;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
408
|
+
once: () => once2,
|
|
409
|
+
listen: () => listen2,
|
|
410
|
+
emit: () => emit2,
|
|
411
|
+
TauriEvent: () => TauriEvent
|
|
508
412
|
});
|
|
509
413
|
|
|
510
414
|
// ../../../../node_modules/@tauri-apps/api/helpers/event.js
|
|
@@ -585,76 +489,20 @@ var TauriEvent;
|
|
|
585
489
|
// ../../../../node_modules/@tauri-apps/api/fs.js
|
|
586
490
|
var exports_fs = {};
|
|
587
491
|
__export(exports_fs, {
|
|
588
|
-
writeTextFile: () =>
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
},
|
|
603
|
-
renameFile: () => {
|
|
604
|
-
{
|
|
605
|
-
return renameFile;
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
removeFile: () => {
|
|
609
|
-
{
|
|
610
|
-
return removeFile;
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
removeDir: () => {
|
|
614
|
-
{
|
|
615
|
-
return removeDir;
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
readTextFile: () => {
|
|
619
|
-
{
|
|
620
|
-
return readTextFile;
|
|
621
|
-
}
|
|
622
|
-
},
|
|
623
|
-
readDir: () => {
|
|
624
|
-
{
|
|
625
|
-
return readDir;
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
readBinaryFile: () => {
|
|
629
|
-
{
|
|
630
|
-
return readBinaryFile;
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
exists: () => {
|
|
634
|
-
{
|
|
635
|
-
return exists;
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
createDir: () => {
|
|
639
|
-
{
|
|
640
|
-
return createDir;
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
copyFile: () => {
|
|
644
|
-
{
|
|
645
|
-
return copyFile;
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
Dir: () => {
|
|
649
|
-
{
|
|
650
|
-
return BaseDirectory;
|
|
651
|
-
}
|
|
652
|
-
},
|
|
653
|
-
BaseDirectory: () => {
|
|
654
|
-
{
|
|
655
|
-
return BaseDirectory;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
492
|
+
writeTextFile: () => writeTextFile,
|
|
493
|
+
writeFile: () => writeTextFile,
|
|
494
|
+
writeBinaryFile: () => writeBinaryFile,
|
|
495
|
+
renameFile: () => renameFile,
|
|
496
|
+
removeFile: () => removeFile,
|
|
497
|
+
removeDir: () => removeDir,
|
|
498
|
+
readTextFile: () => readTextFile,
|
|
499
|
+
readDir: () => readDir,
|
|
500
|
+
readBinaryFile: () => readBinaryFile,
|
|
501
|
+
exists: () => exists,
|
|
502
|
+
createDir: () => createDir,
|
|
503
|
+
copyFile: () => copyFile,
|
|
504
|
+
Dir: () => BaseDirectory,
|
|
505
|
+
BaseDirectory: () => BaseDirectory
|
|
658
506
|
});
|
|
659
507
|
async function readTextFile(filePath, options = {}) {
|
|
660
508
|
return invokeTauriCommand({
|
|
@@ -841,31 +689,11 @@ var BaseDirectory;
|
|
|
841
689
|
// ../../../../node_modules/@tauri-apps/api/globalShortcut.js
|
|
842
690
|
var exports_globalShortcut = {};
|
|
843
691
|
__export(exports_globalShortcut, {
|
|
844
|
-
unregisterAll: () =>
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
unregister: () => {
|
|
850
|
-
{
|
|
851
|
-
return unregister;
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
registerAll: () => {
|
|
855
|
-
{
|
|
856
|
-
return registerAll;
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
register: () => {
|
|
860
|
-
{
|
|
861
|
-
return register;
|
|
862
|
-
}
|
|
863
|
-
},
|
|
864
|
-
isRegistered: () => {
|
|
865
|
-
{
|
|
866
|
-
return isRegistered;
|
|
867
|
-
}
|
|
868
|
-
}
|
|
692
|
+
unregisterAll: () => unregisterAll,
|
|
693
|
+
unregister: () => unregister,
|
|
694
|
+
registerAll: () => registerAll,
|
|
695
|
+
register: () => register,
|
|
696
|
+
isRegistered: () => isRegistered
|
|
869
697
|
});
|
|
870
698
|
async function register(shortcut, handler) {
|
|
871
699
|
return invokeTauriCommand({
|
|
@@ -917,36 +745,12 @@ async function unregisterAll() {
|
|
|
917
745
|
// ../../../../node_modules/@tauri-apps/api/http.js
|
|
918
746
|
var exports_http = {};
|
|
919
747
|
__export(exports_http, {
|
|
920
|
-
getClient: () =>
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
{
|
|
927
|
-
return fetch;
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
ResponseType: () => {
|
|
931
|
-
{
|
|
932
|
-
return ResponseType;
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
Response: () => {
|
|
936
|
-
{
|
|
937
|
-
return Response;
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
Client: () => {
|
|
941
|
-
{
|
|
942
|
-
return Client;
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
Body: () => {
|
|
946
|
-
{
|
|
947
|
-
return Body;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
748
|
+
getClient: () => getClient,
|
|
749
|
+
fetch: () => fetch,
|
|
750
|
+
ResponseType: () => ResponseType,
|
|
751
|
+
Response: () => Response,
|
|
752
|
+
Client: () => Client,
|
|
753
|
+
Body: () => Body
|
|
950
754
|
});
|
|
951
755
|
async function formBody(data) {
|
|
952
756
|
const form = {};
|
|
@@ -1129,28 +933,12 @@ var defaultClient = null;
|
|
|
1129
933
|
// ../../../../node_modules/@tauri-apps/api/mocks.js
|
|
1130
934
|
var exports_mocks = {};
|
|
1131
935
|
__export(exports_mocks, {
|
|
1132
|
-
mockWindows: () =>
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
},
|
|
1137
|
-
mockIPC: () => {
|
|
1138
|
-
{
|
|
1139
|
-
return mockIPC;
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
mockConvertFileSrc: () => {
|
|
1143
|
-
{
|
|
1144
|
-
return mockConvertFileSrc;
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
clearMocks: () => {
|
|
1148
|
-
{
|
|
1149
|
-
return clearMocks;
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
936
|
+
mockWindows: () => mockWindows,
|
|
937
|
+
mockIPC: () => mockIPC,
|
|
938
|
+
mockConvertFileSrc: () => mockConvertFileSrc,
|
|
939
|
+
clearMocks: () => clearMocks
|
|
1152
940
|
});
|
|
1153
|
-
|
|
941
|
+
function mockIPC(cb) {
|
|
1154
942
|
window.__TAURI_IPC__ = async ({ cmd, callback, error, ...args }) => {
|
|
1155
943
|
try {
|
|
1156
944
|
window[`_${callback}`](await cb(cmd, args));
|
|
@@ -1158,22 +946,22 @@ var mockIPC = function(cb) {
|
|
|
1158
946
|
window[`_${error}`](err);
|
|
1159
947
|
}
|
|
1160
948
|
};
|
|
1161
|
-
}
|
|
1162
|
-
|
|
949
|
+
}
|
|
950
|
+
function mockWindows(current, ...additionalWindows) {
|
|
1163
951
|
window.__TAURI_METADATA__ = {
|
|
1164
952
|
__windows: [current, ...additionalWindows].map((label) => ({ label })),
|
|
1165
953
|
__currentWindow: { label: current }
|
|
1166
954
|
};
|
|
1167
|
-
}
|
|
1168
|
-
|
|
955
|
+
}
|
|
956
|
+
function mockConvertFileSrc(osName, windowsProtocolScheme = "https") {
|
|
1169
957
|
var _a;
|
|
1170
958
|
window.__TAURI__ = (_a = window.__TAURI__) !== null && _a !== undefined ? _a : {};
|
|
1171
959
|
window.__TAURI__.convertFileSrc = function(filePath, protocol = "asset") {
|
|
1172
960
|
const path = encodeURIComponent(filePath);
|
|
1173
961
|
return osName === "windows" ? `${windowsProtocolScheme}://${protocol}.localhost/${path}` : `${protocol}://localhost/${path}`;
|
|
1174
962
|
};
|
|
1175
|
-
}
|
|
1176
|
-
|
|
963
|
+
}
|
|
964
|
+
function clearMocks() {
|
|
1177
965
|
var _a;
|
|
1178
966
|
if ((_a = window.__TAURI__) === null || _a === undefined ? undefined : _a.convertFileSrc)
|
|
1179
967
|
delete window.__TAURI__.convertFileSrc;
|
|
@@ -1181,26 +969,14 @@ var clearMocks = function() {
|
|
|
1181
969
|
delete window.__TAURI_IPC__;
|
|
1182
970
|
if (window.__TAURI_METADATA__)
|
|
1183
971
|
delete window.__TAURI_METADATA__;
|
|
1184
|
-
}
|
|
972
|
+
}
|
|
1185
973
|
|
|
1186
974
|
// ../../../../node_modules/@tauri-apps/api/notification.js
|
|
1187
975
|
var exports_notification = {};
|
|
1188
976
|
__export(exports_notification, {
|
|
1189
|
-
sendNotification: () =>
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}
|
|
1193
|
-
},
|
|
1194
|
-
requestPermission: () => {
|
|
1195
|
-
{
|
|
1196
|
-
return requestPermission;
|
|
1197
|
-
}
|
|
1198
|
-
},
|
|
1199
|
-
isPermissionGranted: () => {
|
|
1200
|
-
{
|
|
1201
|
-
return isPermissionGranted;
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
977
|
+
sendNotification: () => sendNotification,
|
|
978
|
+
requestPermission: () => requestPermission,
|
|
979
|
+
isPermissionGranted: () => isPermissionGranted
|
|
1204
980
|
});
|
|
1205
981
|
async function isPermissionGranted() {
|
|
1206
982
|
if (window.Notification.permission !== "default") {
|
|
@@ -1216,58 +992,30 @@ async function isPermissionGranted() {
|
|
|
1216
992
|
async function requestPermission() {
|
|
1217
993
|
return window.Notification.requestPermission();
|
|
1218
994
|
}
|
|
1219
|
-
|
|
995
|
+
function sendNotification(options) {
|
|
1220
996
|
if (typeof options === "string") {
|
|
1221
997
|
new window.Notification(options);
|
|
1222
998
|
} else {
|
|
1223
999
|
new window.Notification(options.title, options);
|
|
1224
1000
|
}
|
|
1225
|
-
}
|
|
1001
|
+
}
|
|
1226
1002
|
|
|
1227
1003
|
// ../../../../node_modules/@tauri-apps/api/os.js
|
|
1228
1004
|
var exports_os = {};
|
|
1229
1005
|
__export(exports_os, {
|
|
1230
|
-
version: () =>
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
return type;
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
tempdir: () => {
|
|
1241
|
-
{
|
|
1242
|
-
return tempdir;
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
platform: () => {
|
|
1246
|
-
{
|
|
1247
|
-
return platform;
|
|
1248
|
-
}
|
|
1249
|
-
},
|
|
1250
|
-
locale: () => {
|
|
1251
|
-
{
|
|
1252
|
-
return locale;
|
|
1253
|
-
}
|
|
1254
|
-
},
|
|
1255
|
-
arch: () => {
|
|
1256
|
-
{
|
|
1257
|
-
return arch;
|
|
1258
|
-
}
|
|
1259
|
-
},
|
|
1260
|
-
EOL: () => {
|
|
1261
|
-
{
|
|
1262
|
-
return EOL;
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1006
|
+
version: () => version,
|
|
1007
|
+
type: () => type,
|
|
1008
|
+
tempdir: () => tempdir,
|
|
1009
|
+
platform: () => platform,
|
|
1010
|
+
locale: () => locale,
|
|
1011
|
+
arch: () => arch,
|
|
1012
|
+
EOL: () => EOL
|
|
1265
1013
|
});
|
|
1266
1014
|
|
|
1267
1015
|
// ../../../../node_modules/@tauri-apps/api/helpers/os-check.js
|
|
1268
|
-
|
|
1016
|
+
function isWindows() {
|
|
1269
1017
|
return navigator.appVersion.includes("Win");
|
|
1270
|
-
}
|
|
1018
|
+
}
|
|
1271
1019
|
|
|
1272
1020
|
// ../../../../node_modules/@tauri-apps/api/os.js
|
|
1273
1021
|
async function platform() {
|
|
@@ -1323,181 +1071,41 @@ var EOL = isWindows() ? "\r\n" : "\n";
|
|
|
1323
1071
|
// ../../../../node_modules/@tauri-apps/api/path.js
|
|
1324
1072
|
var exports_path = {};
|
|
1325
1073
|
__export(exports_path, {
|
|
1326
|
-
videoDir: () =>
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
publicDir: () => {
|
|
1362
|
-
{
|
|
1363
|
-
return publicDir;
|
|
1364
|
-
}
|
|
1365
|
-
},
|
|
1366
|
-
pictureDir: () => {
|
|
1367
|
-
{
|
|
1368
|
-
return pictureDir;
|
|
1369
|
-
}
|
|
1370
|
-
},
|
|
1371
|
-
normalize: () => {
|
|
1372
|
-
{
|
|
1373
|
-
return normalize;
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
|
-
logDir: () => {
|
|
1377
|
-
{
|
|
1378
|
-
return logDir;
|
|
1379
|
-
}
|
|
1380
|
-
},
|
|
1381
|
-
localDataDir: () => {
|
|
1382
|
-
{
|
|
1383
|
-
return localDataDir;
|
|
1384
|
-
}
|
|
1385
|
-
},
|
|
1386
|
-
join: () => {
|
|
1387
|
-
{
|
|
1388
|
-
return join;
|
|
1389
|
-
}
|
|
1390
|
-
},
|
|
1391
|
-
isAbsolute: () => {
|
|
1392
|
-
{
|
|
1393
|
-
return isAbsolute;
|
|
1394
|
-
}
|
|
1395
|
-
},
|
|
1396
|
-
homeDir: () => {
|
|
1397
|
-
{
|
|
1398
|
-
return homeDir;
|
|
1399
|
-
}
|
|
1400
|
-
},
|
|
1401
|
-
fontDir: () => {
|
|
1402
|
-
{
|
|
1403
|
-
return fontDir;
|
|
1404
|
-
}
|
|
1405
|
-
},
|
|
1406
|
-
extname: () => {
|
|
1407
|
-
{
|
|
1408
|
-
return extname;
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
executableDir: () => {
|
|
1412
|
-
{
|
|
1413
|
-
return executableDir;
|
|
1414
|
-
}
|
|
1415
|
-
},
|
|
1416
|
-
downloadDir: () => {
|
|
1417
|
-
{
|
|
1418
|
-
return downloadDir;
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1421
|
-
documentDir: () => {
|
|
1422
|
-
{
|
|
1423
|
-
return documentDir;
|
|
1424
|
-
}
|
|
1425
|
-
},
|
|
1426
|
-
dirname: () => {
|
|
1427
|
-
{
|
|
1428
|
-
return dirname;
|
|
1429
|
-
}
|
|
1430
|
-
},
|
|
1431
|
-
desktopDir: () => {
|
|
1432
|
-
{
|
|
1433
|
-
return desktopDir;
|
|
1434
|
-
}
|
|
1435
|
-
},
|
|
1436
|
-
delimiter: () => {
|
|
1437
|
-
{
|
|
1438
|
-
return delimiter;
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
dataDir: () => {
|
|
1442
|
-
{
|
|
1443
|
-
return dataDir;
|
|
1444
|
-
}
|
|
1445
|
-
},
|
|
1446
|
-
configDir: () => {
|
|
1447
|
-
{
|
|
1448
|
-
return configDir;
|
|
1449
|
-
}
|
|
1450
|
-
},
|
|
1451
|
-
cacheDir: () => {
|
|
1452
|
-
{
|
|
1453
|
-
return cacheDir;
|
|
1454
|
-
}
|
|
1455
|
-
},
|
|
1456
|
-
basename: () => {
|
|
1457
|
-
{
|
|
1458
|
-
return basename;
|
|
1459
|
-
}
|
|
1460
|
-
},
|
|
1461
|
-
audioDir: () => {
|
|
1462
|
-
{
|
|
1463
|
-
return audioDir;
|
|
1464
|
-
}
|
|
1465
|
-
},
|
|
1466
|
-
appLogDir: () => {
|
|
1467
|
-
{
|
|
1468
|
-
return appLogDir;
|
|
1469
|
-
}
|
|
1470
|
-
},
|
|
1471
|
-
appLocalDataDir: () => {
|
|
1472
|
-
{
|
|
1473
|
-
return appLocalDataDir;
|
|
1474
|
-
}
|
|
1475
|
-
},
|
|
1476
|
-
appDir: () => {
|
|
1477
|
-
{
|
|
1478
|
-
return appDir;
|
|
1479
|
-
}
|
|
1480
|
-
},
|
|
1481
|
-
appDataDir: () => {
|
|
1482
|
-
{
|
|
1483
|
-
return appDataDir;
|
|
1484
|
-
}
|
|
1485
|
-
},
|
|
1486
|
-
appConfigDir: () => {
|
|
1487
|
-
{
|
|
1488
|
-
return appConfigDir;
|
|
1489
|
-
}
|
|
1490
|
-
},
|
|
1491
|
-
appCacheDir: () => {
|
|
1492
|
-
{
|
|
1493
|
-
return appCacheDir;
|
|
1494
|
-
}
|
|
1495
|
-
},
|
|
1496
|
-
BaseDirectory: () => {
|
|
1497
|
-
{
|
|
1498
|
-
return BaseDirectory;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1074
|
+
videoDir: () => videoDir,
|
|
1075
|
+
templateDir: () => templateDir,
|
|
1076
|
+
sep: () => sep,
|
|
1077
|
+
runtimeDir: () => runtimeDir,
|
|
1078
|
+
resourceDir: () => resourceDir,
|
|
1079
|
+
resolveResource: () => resolveResource,
|
|
1080
|
+
resolve: () => resolve,
|
|
1081
|
+
publicDir: () => publicDir,
|
|
1082
|
+
pictureDir: () => pictureDir,
|
|
1083
|
+
normalize: () => normalize,
|
|
1084
|
+
logDir: () => logDir,
|
|
1085
|
+
localDataDir: () => localDataDir,
|
|
1086
|
+
join: () => join,
|
|
1087
|
+
isAbsolute: () => isAbsolute,
|
|
1088
|
+
homeDir: () => homeDir,
|
|
1089
|
+
fontDir: () => fontDir,
|
|
1090
|
+
extname: () => extname,
|
|
1091
|
+
executableDir: () => executableDir,
|
|
1092
|
+
downloadDir: () => downloadDir,
|
|
1093
|
+
documentDir: () => documentDir,
|
|
1094
|
+
dirname: () => dirname,
|
|
1095
|
+
desktopDir: () => desktopDir,
|
|
1096
|
+
delimiter: () => delimiter,
|
|
1097
|
+
dataDir: () => dataDir,
|
|
1098
|
+
configDir: () => configDir,
|
|
1099
|
+
cacheDir: () => cacheDir,
|
|
1100
|
+
basename: () => basename,
|
|
1101
|
+
audioDir: () => audioDir,
|
|
1102
|
+
appLogDir: () => appLogDir,
|
|
1103
|
+
appLocalDataDir: () => appLocalDataDir,
|
|
1104
|
+
appDir: () => appDir,
|
|
1105
|
+
appDataDir: () => appDataDir,
|
|
1106
|
+
appConfigDir: () => appConfigDir,
|
|
1107
|
+
appCacheDir: () => appCacheDir,
|
|
1108
|
+
BaseDirectory: () => BaseDirectory
|
|
1501
1109
|
});
|
|
1502
1110
|
async function appDir() {
|
|
1503
1111
|
return appConfigDir();
|
|
@@ -1805,16 +1413,8 @@ var delimiter = isWindows() ? ";" : ":";
|
|
|
1805
1413
|
// ../../../../node_modules/@tauri-apps/api/process.js
|
|
1806
1414
|
var exports_process = {};
|
|
1807
1415
|
__export(exports_process, {
|
|
1808
|
-
relaunch: () =>
|
|
1809
|
-
|
|
1810
|
-
return relaunch;
|
|
1811
|
-
}
|
|
1812
|
-
},
|
|
1813
|
-
exit: () => {
|
|
1814
|
-
{
|
|
1815
|
-
return exit;
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1416
|
+
relaunch: () => relaunch,
|
|
1417
|
+
exit: () => exit
|
|
1818
1418
|
});
|
|
1819
1419
|
async function exit(exitCode = 0) {
|
|
1820
1420
|
return invokeTauriCommand({
|
|
@@ -1837,21 +1437,9 @@ async function relaunch() {
|
|
|
1837
1437
|
// ../../../../node_modules/@tauri-apps/api/updater.js
|
|
1838
1438
|
var exports_updater = {};
|
|
1839
1439
|
__export(exports_updater, {
|
|
1840
|
-
onUpdaterEvent: () =>
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
}
|
|
1844
|
-
},
|
|
1845
|
-
installUpdate: () => {
|
|
1846
|
-
{
|
|
1847
|
-
return installUpdate;
|
|
1848
|
-
}
|
|
1849
|
-
},
|
|
1850
|
-
checkUpdate: () => {
|
|
1851
|
-
{
|
|
1852
|
-
return checkUpdate;
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1440
|
+
onUpdaterEvent: () => onUpdaterEvent,
|
|
1441
|
+
installUpdate: () => installUpdate,
|
|
1442
|
+
checkUpdate: () => checkUpdate
|
|
1855
1443
|
});
|
|
1856
1444
|
async function onUpdaterEvent(handler) {
|
|
1857
1445
|
return listen2(TauriEvent.STATUS_UPDATE, (data) => {
|
|
@@ -1941,106 +1529,46 @@ async function checkUpdate() {
|
|
|
1941
1529
|
// ../../../../node_modules/@tauri-apps/api/window.js
|
|
1942
1530
|
var exports_window = {};
|
|
1943
1531
|
__export(exports_window, {
|
|
1944
|
-
primaryMonitor: () =>
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
currentMonitor: () => {
|
|
1960
|
-
{
|
|
1961
|
-
return currentMonitor;
|
|
1962
|
-
}
|
|
1963
|
-
},
|
|
1964
|
-
availableMonitors: () => {
|
|
1965
|
-
{
|
|
1966
|
-
return availableMonitors;
|
|
1967
|
-
}
|
|
1968
|
-
},
|
|
1969
|
-
appWindow: () => {
|
|
1970
|
-
{
|
|
1971
|
-
return appWindow;
|
|
1972
|
-
}
|
|
1973
|
-
},
|
|
1974
|
-
WindowManager: () => {
|
|
1975
|
-
{
|
|
1976
|
-
return WindowManager;
|
|
1977
|
-
}
|
|
1978
|
-
},
|
|
1979
|
-
WebviewWindowHandle: () => {
|
|
1980
|
-
{
|
|
1981
|
-
return WebviewWindowHandle;
|
|
1982
|
-
}
|
|
1983
|
-
},
|
|
1984
|
-
WebviewWindow: () => {
|
|
1985
|
-
{
|
|
1986
|
-
return WebviewWindow;
|
|
1987
|
-
}
|
|
1988
|
-
},
|
|
1989
|
-
UserAttentionType: () => {
|
|
1990
|
-
{
|
|
1991
|
-
return UserAttentionType;
|
|
1992
|
-
}
|
|
1993
|
-
},
|
|
1994
|
-
PhysicalSize: () => {
|
|
1995
|
-
{
|
|
1996
|
-
return PhysicalSize;
|
|
1997
|
-
}
|
|
1998
|
-
},
|
|
1999
|
-
PhysicalPosition: () => {
|
|
2000
|
-
{
|
|
2001
|
-
return PhysicalPosition;
|
|
2002
|
-
}
|
|
2003
|
-
},
|
|
2004
|
-
LogicalSize: () => {
|
|
2005
|
-
{
|
|
2006
|
-
return LogicalSize;
|
|
2007
|
-
}
|
|
2008
|
-
},
|
|
2009
|
-
LogicalPosition: () => {
|
|
2010
|
-
{
|
|
2011
|
-
return LogicalPosition;
|
|
2012
|
-
}
|
|
2013
|
-
},
|
|
2014
|
-
CloseRequestedEvent: () => {
|
|
2015
|
-
{
|
|
2016
|
-
return CloseRequestedEvent;
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
1532
|
+
primaryMonitor: () => primaryMonitor,
|
|
1533
|
+
getCurrent: () => getCurrent,
|
|
1534
|
+
getAll: () => getAll,
|
|
1535
|
+
currentMonitor: () => currentMonitor,
|
|
1536
|
+
availableMonitors: () => availableMonitors,
|
|
1537
|
+
appWindow: () => appWindow,
|
|
1538
|
+
WindowManager: () => WindowManager,
|
|
1539
|
+
WebviewWindowHandle: () => WebviewWindowHandle,
|
|
1540
|
+
WebviewWindow: () => WebviewWindow,
|
|
1541
|
+
UserAttentionType: () => UserAttentionType,
|
|
1542
|
+
PhysicalSize: () => PhysicalSize,
|
|
1543
|
+
PhysicalPosition: () => PhysicalPosition,
|
|
1544
|
+
LogicalSize: () => LogicalSize,
|
|
1545
|
+
LogicalPosition: () => LogicalPosition,
|
|
1546
|
+
CloseRequestedEvent: () => CloseRequestedEvent
|
|
2019
1547
|
});
|
|
2020
|
-
|
|
1548
|
+
function getCurrent() {
|
|
2021
1549
|
return new WebviewWindow(window.__TAURI_METADATA__.__currentWindow.label, {
|
|
2022
1550
|
skip: true
|
|
2023
1551
|
});
|
|
2024
|
-
}
|
|
2025
|
-
|
|
1552
|
+
}
|
|
1553
|
+
function getAll() {
|
|
2026
1554
|
return window.__TAURI_METADATA__.__windows.map((w) => new WebviewWindow(w.label, {
|
|
2027
1555
|
skip: true
|
|
2028
1556
|
}));
|
|
2029
|
-
}
|
|
2030
|
-
|
|
1557
|
+
}
|
|
1558
|
+
function mapMonitor(m) {
|
|
2031
1559
|
return m === null ? null : {
|
|
2032
1560
|
name: m.name,
|
|
2033
1561
|
scaleFactor: m.scaleFactor,
|
|
2034
1562
|
position: mapPhysicalPosition(m.position),
|
|
2035
1563
|
size: mapPhysicalSize(m.size)
|
|
2036
1564
|
};
|
|
2037
|
-
}
|
|
2038
|
-
|
|
1565
|
+
}
|
|
1566
|
+
function mapPhysicalPosition(m) {
|
|
2039
1567
|
return new PhysicalPosition(m.x, m.y);
|
|
2040
|
-
}
|
|
2041
|
-
|
|
1568
|
+
}
|
|
1569
|
+
function mapPhysicalSize(m) {
|
|
2042
1570
|
return new PhysicalSize(m.width, m.height);
|
|
2043
|
-
}
|
|
1571
|
+
}
|
|
2044
1572
|
async function currentMonitor() {
|
|
2045
1573
|
return invokeTauriCommand({
|
|
2046
1574
|
__tauriModule: "Window",
|
|
@@ -3086,3 +2614,6 @@ export {
|
|
|
3086
2614
|
openShell,
|
|
3087
2615
|
desktop
|
|
3088
2616
|
};
|
|
2617
|
+
|
|
2618
|
+
//# debugId=186A0F79356F64EE64756E2164756E21
|
|
2619
|
+
//# sourceMappingURL=index.js.map
|