@e-xi/xion 0.0.19 → 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.
Files changed (48) hide show
  1. package/dist/bin/index.js +4 -4
  2. package/dist/chunk-files/{chunk-3S5OTD47.js → chunk-54VV4LZP.js} +3 -3
  3. package/dist/chunk-files/{chunk-IH3R2NDR.js → chunk-5PG2HXNM.js} +1 -1
  4. package/dist/chunk-files/{chunk-YXAEUJKJ.js → chunk-6CRYR26B.js} +3 -3
  5. package/dist/chunk-files/{chunk-UFYEZIUE.js → chunk-EORIIGU5.js} +6 -6
  6. package/dist/chunk-files/{chunk-YZOJOLFL.js → chunk-EZIOHYQG.js} +3 -3
  7. package/dist/chunk-files/{chunk-VGDNICVG.js → chunk-GTHWUWVX.js} +2 -2
  8. package/dist/chunk-files/{chunk-34OODP7M.js → chunk-I4HNKNHG.js} +1 -1
  9. package/dist/chunk-files/{chunk-4SSGMLEE.js → chunk-IJXMINJK.js} +4 -4
  10. package/dist/chunk-files/{chunk-VC3GGHUN.js → chunk-JRTMZAL6.js} +1 -1
  11. package/dist/chunk-files/{chunk-IMGYTSWY.js → chunk-LCLFILUI.js} +1 -1
  12. package/dist/chunk-files/{chunk-UCMR6V67.js → chunk-LINYTRNI.js} +4 -4
  13. package/dist/chunk-files/{chunk-F7YTK2MY.js → chunk-MEIDHSRM.js} +2 -2
  14. package/dist/chunk-files/{chunk-DD6WZ4NY.js → chunk-NWS66EMP.js} +1 -1
  15. package/dist/chunk-files/{chunk-YTHS2ZV7.js → chunk-O6MPEUG6.js} +2 -2
  16. package/dist/chunk-files/{chunk-GN2FNR3Z.js → chunk-P5ZMDIS2.js} +4 -4
  17. package/dist/chunk-files/{chunk-B7DTBTWQ.js → chunk-RSUM4GBD.js} +1 -1
  18. package/dist/chunk-files/{chunk-MJ6Q3TIX.js → chunk-UWIJOHQU.js} +1 -1
  19. package/dist/chunk-files/{chunk-4HEDNQUP.js → chunk-UZZNSK2N.js} +2 -2
  20. package/dist/chunk-files/{chunk-D5ZV4VMI.js → chunk-WRTRWTJR.js} +3 -3
  21. package/dist/chunk-files/chunk-XYI5S7GI.js +3164 -0
  22. package/dist/chunk-files/{chunk-LFHJJQW3.js → chunk-YOHI7FJI.js} +5 -5
  23. package/dist/chunk-files/{chunk-DRMV3M5V.js → chunk-YZYF5HTA.js} +4 -4
  24. package/dist/main/app/index.js +21 -21
  25. package/dist/main/auth/index.js +2 -2
  26. package/dist/main/banner/index.js +1 -1
  27. package/dist/main/config/index.js +5 -5
  28. package/dist/main/file-association/index.js +2 -2
  29. package/dist/main/ipc/index.js +3 -3
  30. package/dist/main/logger/index.js +2 -2
  31. package/dist/main/menu/index.js +1 -1
  32. package/dist/main/mode/index.js +1 -1
  33. package/dist/main/protocol/index.js +1 -1
  34. package/dist/main/remote-service/index.js +2 -2
  35. package/dist/main/renderer-protocol/index.js +2 -2
  36. package/dist/main/store/index.js +2 -2
  37. package/dist/main/tray/index.js +1 -1
  38. package/dist/main/updater/index.js +2 -2
  39. package/dist/main/utils/index.js +6 -6
  40. package/dist/main/window/index.js +6 -6
  41. package/dist/renderer/app/index.js +14 -14
  42. package/dist/renderer/components/index.js +5 -1
  43. package/dist/renderer/utils/index.js +1 -1
  44. package/dist/vite/config/index.js +10 -10
  45. package/dist/vite/orval/index.js +2 -2
  46. package/dist/vite/utils/index.js +1 -1
  47. package/package.json +16 -12
  48. 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 "node:fs";
4
- import path from "node:path";
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 "node:fs";
67
- import path2 from "node:path";
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 "node:fs";
3
- import path from "node:path";
4
- import { fileURLToPath } from "node:url";
2
+ import fs from "fs";
3
+ import path from "path";
4
+ import { fileURLToPath } from "url";
5
5
  var XoUtil = class {
6
6
  /**
7
7
  * 解析框架包根目录
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FileAssociationUtil
3
- } from "./chunk-VGDNICVG.js";
3
+ } from "./chunk-GTHWUWVX.js";
4
4
 
5
5
  // src/main/file-association/file-association-handlers-abstract.ts
6
6
  var FileAssociationHandlersAbstract = class {
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk-FPN7JYR4.js";
10
10
  import {
11
11
  AppMode
12
- } from "./chunk-GN2FNR3Z.js";
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 "node:fs";
18
- import path from "node:path";
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 "node:fs/promises";
14
- import { basename } from "node:path";
15
- import { fileURLToPath } from "node:url";
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 "node:fs";
523
- import path from "node:path";
524
- import { fileURLToPath as fileURLToPath2 } from "node:url";
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-GN2FNR3Z.js";
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 "node:fs";
9
- import path from "node:path";
8
+ import fs from "fs";
9
+ import path from "path";
10
10
  var WindowUtil = class _WindowUtil {
11
11
  /**
12
12
  * 窗口记录转窗口标识
@@ -1,6 +1,6 @@
1
1
  // src/main/utils/file-association-util.ts
2
- import fs from "node:fs";
3
- import path from "node:path";
2
+ import fs from "fs";
3
+ import path from "path";
4
4
  var FileAssociationUtil = class _FileAssociationUtil {
5
5
  /**
6
6
  * 格式化文件扩展名
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-DEODEAKM.js";
4
4
  import {
5
5
  FileAssociationUtil
6
- } from "./chunk-VGDNICVG.js";
6
+ } from "./chunk-GTHWUWVX.js";
7
7
  import {
8
8
  ProtocolUtil
9
9
  } from "./chunk-KFK47PDH.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-W2I3I7U7.js";
4
4
  import {
5
5
  XoPathUtil
6
- } from "./chunk-BPTFUGTP.js";
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-GN2FNR3Z.js";
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 "node:fs/promises";
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 "node:fs/promises";
554
+ import { access } from "fs/promises";
555
555
  var ShellHandlers = class extends IpcHandlersAbstract {
556
556
  /**
557
557
  * 处理器映射
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-P4CX6I4J.js";
7
7
 
8
8
  // package.json
9
- var version = "0.0.19";
9
+ var version = "0.0.21";
10
10
 
11
11
  // src/main/banner/banner-abstract.ts
12
12
  var BannerAbstract = class {
@@ -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 "node:path";
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-GN2FNR3Z.js";
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 "node:fs";
405
- import path from "node:path";
406
- import { pathToFileURL } from "node:url";
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-3S5OTD47.js";
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-GN2FNR3Z.js";
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-GN2FNR3Z.js";
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";
@@ -1,6 +1,6 @@
1
1
  // src/vite/utils/file-write-vite-util.ts
2
- import fs from "node:fs";
3
- import path from "node:path";
2
+ import fs from "fs";
3
+ import path from "path";
4
4
  var FileWriteViteUtil = class {
5
5
  /**
6
6
  * 默认 Xion 类型入口文件
@@ -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 "node:fs";
14
- import path from "node:path";
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 "node:fs";
78
- import path2 from "node:path";
77
+ import fs2 from "fs";
78
+ import path2 from "path";
79
79
  var RuntimeConfigUtil = class {
80
80
  /**
81
81
  * 运行时配置文件路径
@@ -1,7 +1,7 @@
1
1
  // src/main/store/jwt-auth-store.ts
2
2
  import { app, safeStorage } from "electron";
3
3
  import ElectronStore from "electron-store";
4
- import path from "node:path";
4
+ import path from "path";
5
5
  var JwtAuthStore = class {
6
6
  /** Electron Store */
7
7
  store;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-J34MOWJP.js";
4
4
  import {
5
5
  JwtAuthStore
6
- } from "./chunk-B7DTBTWQ.js";
6
+ } from "./chunk-RSUM4GBD.js";
7
7
  import {
8
8
  AuthChannels
9
9
  } from "./chunk-T3QCAOCO.js";
@@ -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 "node:crypto";
17
- import path from "node:path";
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 "node:fs";
12
- import path from "node:path";
13
- import { fileURLToPath } from "node:url";
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");