@e-xi/xion 0.0.18 → 0.0.21
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/bin/index.js +4 -4
- package/dist/chunk-files/{chunk-3S5OTD47.js → chunk-54VV4LZP.js} +3 -3
- package/dist/chunk-files/{chunk-IH3R2NDR.js → chunk-5PG2HXNM.js} +1 -1
- package/dist/chunk-files/{chunk-YXAEUJKJ.js → chunk-6CRYR26B.js} +3 -3
- package/dist/chunk-files/{chunk-UFYEZIUE.js → chunk-EORIIGU5.js} +6 -6
- package/dist/chunk-files/{chunk-YZOJOLFL.js → chunk-EZIOHYQG.js} +3 -3
- package/dist/chunk-files/{chunk-VGDNICVG.js → chunk-GTHWUWVX.js} +2 -2
- package/dist/chunk-files/{chunk-34OODP7M.js → chunk-I4HNKNHG.js} +1 -1
- package/dist/chunk-files/{chunk-4SSGMLEE.js → chunk-IJXMINJK.js} +4 -4
- package/dist/chunk-files/{chunk-JYB7HVPJ.js → chunk-JRTMZAL6.js} +1 -1
- package/dist/chunk-files/{chunk-IMGYTSWY.js → chunk-LCLFILUI.js} +1 -1
- package/dist/chunk-files/{chunk-UCMR6V67.js → chunk-LINYTRNI.js} +4 -4
- package/dist/chunk-files/{chunk-F7YTK2MY.js → chunk-MEIDHSRM.js} +2 -2
- package/dist/chunk-files/{chunk-DD6WZ4NY.js → chunk-NWS66EMP.js} +1 -1
- package/dist/chunk-files/{chunk-YTHS2ZV7.js → chunk-O6MPEUG6.js} +2 -2
- package/dist/chunk-files/{chunk-GN2FNR3Z.js → chunk-P5ZMDIS2.js} +4 -4
- package/dist/chunk-files/{chunk-B7DTBTWQ.js → chunk-RSUM4GBD.js} +1 -1
- package/dist/chunk-files/{chunk-MJ6Q3TIX.js → chunk-UWIJOHQU.js} +1 -1
- package/dist/chunk-files/{chunk-4HEDNQUP.js → chunk-UZZNSK2N.js} +2 -2
- package/dist/chunk-files/{chunk-D5ZV4VMI.js → chunk-WRTRWTJR.js} +3 -3
- package/dist/chunk-files/chunk-XYI5S7GI.js +3164 -0
- package/dist/chunk-files/{chunk-LFHJJQW3.js → chunk-YOHI7FJI.js} +5 -5
- package/dist/chunk-files/{chunk-DRMV3M5V.js → chunk-YZYF5HTA.js} +4 -4
- package/dist/main/app/index.js +21 -21
- package/dist/main/auth/index.js +2 -2
- package/dist/main/banner/index.js +1 -1
- package/dist/main/config/index.js +5 -5
- package/dist/main/file-association/index.js +2 -2
- package/dist/main/ipc/index.js +3 -3
- package/dist/main/logger/index.js +2 -2
- package/dist/main/menu/index.js +1 -1
- package/dist/main/mode/index.js +1 -1
- package/dist/main/protocol/index.js +1 -1
- package/dist/main/remote-service/index.js +2 -2
- package/dist/main/renderer-protocol/index.js +2 -2
- package/dist/main/store/index.js +2 -2
- package/dist/main/tray/index.js +1 -1
- package/dist/main/updater/index.js +2 -2
- package/dist/main/utils/index.js +6 -6
- package/dist/main/window/index.js +6 -6
- package/dist/renderer/app/index.js +14 -14
- package/dist/renderer/components/index.js +5 -1
- package/dist/renderer/utils/index.js +1 -1
- package/dist/vite/config/index.js +10 -10
- package/dist/vite/orval/index.js +2 -2
- package/dist/vite/utils/index.js +1 -1
- package/package.json +16 -12
- package/dist/chunk-files/chunk-BPTFUGTP.js +0 -97
package/dist/bin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/bin/icon-generator.ts
|
|
2
2
|
import { IconIco } from "@shockpkg/icon-encoder";
|
|
3
|
-
import fs from "
|
|
4
|
-
import path from "
|
|
3
|
+
import fs from "fs";
|
|
4
|
+
import path from "path";
|
|
5
5
|
import sharp from "sharp";
|
|
6
6
|
var defaultSizes = [16, 24, 32, 48, 256];
|
|
7
7
|
function cleanIcoFiles(dir) {
|
|
@@ -63,8 +63,8 @@ async function generateIcons(options) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// src/bin/logo-generator.ts
|
|
66
|
-
import fs2 from "
|
|
67
|
-
import path2 from "
|
|
66
|
+
import fs2 from "fs";
|
|
67
|
+
import path2 from "path";
|
|
68
68
|
import sharp2 from "sharp";
|
|
69
69
|
function createTargetFile(targetFile, width, height) {
|
|
70
70
|
const parsed = path2.parse(targetFile);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/main/utils/xo-util.ts
|
|
2
|
-
import fs from "
|
|
3
|
-
import path from "
|
|
4
|
-
import { fileURLToPath } from "
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
5
|
var XoUtil = class {
|
|
6
6
|
/**
|
|
7
7
|
* 解析框架包根目录
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-FPN7JYR4.js";
|
|
10
10
|
import {
|
|
11
11
|
AppMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P5ZMDIS2.js";
|
|
13
13
|
|
|
14
14
|
// src/main/logger/xo-logger.ts
|
|
15
15
|
import { app } from "electron";
|
|
16
16
|
import ElectronLog from "electron-log/main.js";
|
|
17
|
-
import fs from "
|
|
18
|
-
import path from "
|
|
17
|
+
import fs from "fs";
|
|
18
|
+
import path from "path";
|
|
19
19
|
var initialized = false;
|
|
20
20
|
var loggers = /* @__PURE__ */ new Map();
|
|
21
21
|
var cleanedDirsMap = /* @__PURE__ */ new Map();
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/main/menu/menu-items.ts
|
|
12
12
|
import { app, BrowserWindow, clipboard, dialog, session, shell } from "electron";
|
|
13
|
-
import { copyFile, writeFile } from "
|
|
14
|
-
import { basename } from "
|
|
15
|
-
import { fileURLToPath } from "
|
|
13
|
+
import { copyFile, writeFile } from "fs/promises";
|
|
14
|
+
import { basename } from "path";
|
|
15
|
+
import { fileURLToPath } from "url";
|
|
16
16
|
var MenuItems = class _MenuItems {
|
|
17
17
|
//<editor-fold desc="iconfont 图标">
|
|
18
18
|
/**
|
|
@@ -519,9 +519,9 @@ var MenuItems = class _MenuItems {
|
|
|
519
519
|
|
|
520
520
|
// src/main/menu/menu-manager-abstract.ts
|
|
521
521
|
import { app as app2, BrowserWindow as BrowserWindow2, Menu } from "electron";
|
|
522
|
-
import { existsSync, readFileSync } from "
|
|
523
|
-
import path from "
|
|
524
|
-
import { fileURLToPath as fileURLToPath2 } from "
|
|
522
|
+
import { existsSync, readFileSync } from "fs";
|
|
523
|
+
import path from "path";
|
|
524
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
525
525
|
var MenuManagerAbstract = class {
|
|
526
526
|
//<editor-fold desc="属性">
|
|
527
527
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppMode,
|
|
3
3
|
RuntimeConfigUtil
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P5ZMDIS2.js";
|
|
5
5
|
|
|
6
6
|
// src/main/utils/window-util.ts
|
|
7
7
|
import { app } from "electron";
|
|
8
|
-
import fs from "
|
|
9
|
-
import path from "
|
|
8
|
+
import fs from "fs";
|
|
9
|
+
import path from "path";
|
|
10
10
|
var WindowUtil = class _WindowUtil {
|
|
11
11
|
/**
|
|
12
12
|
* 窗口记录转窗口标识
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-W2I3I7U7.js";
|
|
4
4
|
import {
|
|
5
5
|
XoPathUtil
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XYI5S7GI.js";
|
|
7
7
|
import {
|
|
8
8
|
MainWindowIdentity
|
|
9
9
|
} from "./chunk-KFV4GXVE.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./chunk-KFK47PDH.js";
|
|
51
51
|
import {
|
|
52
52
|
AppMode
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-P5ZMDIS2.js";
|
|
54
54
|
|
|
55
55
|
// src/main/ipc/ipc-handlers-abstract.ts
|
|
56
56
|
var IpcHandlersAbstract = class {
|
|
@@ -378,7 +378,7 @@ var DialogHandlers = class extends IpcHandlersAbstract {
|
|
|
378
378
|
};
|
|
379
379
|
|
|
380
380
|
// src/main/ipc/handlers/file-handlers.ts
|
|
381
|
-
import fs from "
|
|
381
|
+
import fs from "fs/promises";
|
|
382
382
|
var FileHandlers = class extends IpcHandlersAbstract {
|
|
383
383
|
/**
|
|
384
384
|
* 处理器映射
|
|
@@ -551,7 +551,7 @@ var RemoteServiceHandlers = class extends IpcHandlersAbstract {
|
|
|
551
551
|
|
|
552
552
|
// src/main/ipc/handlers/shell-handlers.ts
|
|
553
553
|
import { shell } from "electron";
|
|
554
|
-
import { access } from "
|
|
554
|
+
import { access } from "fs/promises";
|
|
555
555
|
var ShellHandlers = class extends IpcHandlersAbstract {
|
|
556
556
|
/**
|
|
557
557
|
* 处理器映射
|
|
@@ -68,7 +68,7 @@ var AppProtocolHandlers = class extends ProtocolHandlersAbstract {
|
|
|
68
68
|
|
|
69
69
|
// src/main/protocol/protocol-manager-abstract.ts
|
|
70
70
|
import { app } from "electron";
|
|
71
|
-
import path from "
|
|
71
|
+
import path from "path";
|
|
72
72
|
var ProtocolManagerAbstract = class {
|
|
73
73
|
/** 是否已初始化 */
|
|
74
74
|
initialized = false;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
AppMode,
|
|
6
6
|
RuntimeConfigUtil
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P5ZMDIS2.js";
|
|
8
8
|
|
|
9
9
|
// src/main/renderer-protocol/renderer-protocol-handlers-abstract.ts
|
|
10
10
|
var RendererProtocolHandlersAbstract = class {
|
|
@@ -401,9 +401,9 @@ var RendererRemoteServiceProtocolHandlers = class extends RendererProtocolHandle
|
|
|
401
401
|
|
|
402
402
|
// src/main/renderer-protocol/handlers/renderer-root-protocol-handlers.ts
|
|
403
403
|
import { app, net } from "electron";
|
|
404
|
-
import fs from "
|
|
405
|
-
import path from "
|
|
406
|
-
import { pathToFileURL } from "
|
|
404
|
+
import fs from "fs";
|
|
405
|
+
import path from "path";
|
|
406
|
+
import { pathToFileURL } from "url";
|
|
407
407
|
var RendererRootProtocolHandlers = class extends RendererProtocolHandlersAbstract {
|
|
408
408
|
/**
|
|
409
409
|
* 处理器映射
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
XoUtil
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-54VV4LZP.js";
|
|
4
4
|
import {
|
|
5
5
|
ObjectUtil
|
|
6
6
|
} from "./chunk-RODB64YF.js";
|
|
7
7
|
import {
|
|
8
8
|
AppMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P5ZMDIS2.js";
|
|
10
10
|
|
|
11
11
|
// src/main/config/window/main-window-config.ts
|
|
12
12
|
var defaultConfig = () => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-RN7AI33H.js";
|
|
8
8
|
import {
|
|
9
9
|
AppMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P5ZMDIS2.js";
|
|
11
11
|
|
|
12
12
|
// src/main/remote-service/remote-service-manager-abstract.ts
|
|
13
13
|
import { BrowserWindow, session as electronSession } from "electron";
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/main/utils/xo-app-root-util.ts
|
|
12
12
|
import { app } from "electron";
|
|
13
|
-
import fs from "
|
|
14
|
-
import path from "
|
|
13
|
+
import fs from "fs";
|
|
14
|
+
import path from "path";
|
|
15
15
|
var XoAppRootUtil = class {
|
|
16
16
|
/**
|
|
17
17
|
* 获取业务端项目根目录
|
|
@@ -74,8 +74,8 @@ var XoAppRootUtil = class {
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
// src/main/utils/runtime-config-util.ts
|
|
77
|
-
import fs2 from "
|
|
78
|
-
import path2 from "
|
|
77
|
+
import fs2 from "fs";
|
|
78
|
+
import path2 from "path";
|
|
79
79
|
var RuntimeConfigUtil = class {
|
|
80
80
|
/**
|
|
81
81
|
* 运行时配置文件路径
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
// src/main/store/app-store.ts
|
|
14
14
|
import { app } from "electron";
|
|
15
15
|
import ElectronStore from "electron-store";
|
|
16
|
-
import { randomUUID } from "
|
|
17
|
-
import path from "
|
|
16
|
+
import { randomUUID } from "crypto";
|
|
17
|
+
import path from "path";
|
|
18
18
|
var AppStore = class {
|
|
19
19
|
/**
|
|
20
20
|
* 存储
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/main/tray/tray-icon.ts
|
|
10
10
|
import { nativeImage } from "electron";
|
|
11
|
-
import fs from "
|
|
12
|
-
import path from "
|
|
13
|
-
import { fileURLToPath } from "
|
|
11
|
+
import fs from "fs";
|
|
12
|
+
import path from "path";
|
|
13
|
+
import { fileURLToPath } from "url";
|
|
14
14
|
var currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
15
15
|
function resolveTrayIconsDir() {
|
|
16
16
|
return path.resolve(currentDir, "../main/tray/icons");
|