@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-xi/xion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Electron Vite Vue3 TypeScript framework.",
|
|
6
6
|
"exports": {
|
|
@@ -243,48 +243,52 @@
|
|
|
243
243
|
"pack": "npm pack",
|
|
244
244
|
"release": "npm version patch && npm publish --access public"
|
|
245
245
|
},
|
|
246
|
+
"config": {
|
|
247
|
+
"electron_mirror": "https://npmmirror.com/mirrors/electron/",
|
|
248
|
+
"electron_builder_binaries_mirror": "https://npmmirror.com/mirrors/electron-builder-binaries/"
|
|
249
|
+
},
|
|
246
250
|
"peerDependencies": {
|
|
247
251
|
"@element-plus/icons-vue": "2.3.2",
|
|
248
|
-
"axios": "1.
|
|
252
|
+
"axios": "1.20.0",
|
|
249
253
|
"dayjs": "1.11.21",
|
|
250
254
|
"electron-updater": "6.8.3",
|
|
251
255
|
"electron-vite": "5.0.0",
|
|
252
256
|
"element-plus": "2.14.3",
|
|
253
257
|
"go-captcha-vue": "2.0.6",
|
|
254
|
-
"vue-router": "4.6.4",
|
|
255
258
|
"pinia": "3.0.4",
|
|
256
259
|
"vite": "7.3.2",
|
|
257
|
-
"vue": "3.5.33"
|
|
260
|
+
"vue": "3.5.33",
|
|
261
|
+
"vue-router": "4.6.4"
|
|
258
262
|
},
|
|
259
263
|
"dependencies": {
|
|
260
264
|
"@shockpkg/icon-encoder": "3.2.3",
|
|
261
265
|
"builder-util-runtime": "9.5.1",
|
|
262
266
|
"electron-log": "5.4.3",
|
|
263
267
|
"electron-store": "11.0.2",
|
|
264
|
-
"js-yaml": "4.2.0",
|
|
265
268
|
"sharp": "0.33.5",
|
|
266
|
-
"
|
|
267
|
-
"
|
|
269
|
+
"typescript": "5.9.3",
|
|
270
|
+
"unplugin-vue-components": "32.1.0"
|
|
268
271
|
},
|
|
269
272
|
"devDependencies": {
|
|
270
|
-
"electron-builder": "26.15.7",
|
|
271
273
|
"@element-plus/icons-vue": "2.3.2",
|
|
272
274
|
"@types/js-yaml": "4.0.9",
|
|
273
275
|
"@types/node": "24.3.0",
|
|
274
276
|
"@vitejs/plugin-vue": "6.0.6",
|
|
275
|
-
"axios": "1.
|
|
277
|
+
"axios": "1.20.0",
|
|
276
278
|
"electron": "41.5.0",
|
|
279
|
+
"electron-builder": "26.15.7",
|
|
277
280
|
"electron-updater": "6.8.3",
|
|
278
281
|
"electron-vite": "5.0.0",
|
|
279
282
|
"element-plus": "2.14.3",
|
|
280
283
|
"go-captcha-vue": "2.0.6",
|
|
281
284
|
"javascript-obfuscator": "4.1.1",
|
|
282
|
-
"
|
|
285
|
+
"js-yaml": "4.3.2",
|
|
286
|
+
"less": "4.9.0",
|
|
283
287
|
"pinia": "3.0.4",
|
|
284
|
-
"tsup": "8.
|
|
288
|
+
"tsup": "8.5.1",
|
|
285
289
|
"tsx": "4.22.4",
|
|
286
290
|
"typescript": "5.9.3",
|
|
287
|
-
"vite": "7.3.
|
|
291
|
+
"vite": "7.3.6",
|
|
288
292
|
"vue": "3.5.33",
|
|
289
293
|
"vue-router": "4.6.4"
|
|
290
294
|
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// src/main/utils/xo-path-util.ts
|
|
2
|
-
import { app } from "electron";
|
|
3
|
-
import { load } from "js-yaml";
|
|
4
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
5
|
-
import { homedir } from "node:os";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
var XoPathUtil = class {
|
|
8
|
-
/**
|
|
9
|
-
* 获取用户数据目录
|
|
10
|
-
* @returns {string}
|
|
11
|
-
*/
|
|
12
|
-
static userData() {
|
|
13
|
-
return app.getPath("userData");
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 获取会话数据目录
|
|
17
|
-
* @returns {string}
|
|
18
|
-
*/
|
|
19
|
-
static sessionData() {
|
|
20
|
-
return app.getPath("sessionData");
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 获取 Electron 日志目录
|
|
24
|
-
* @returns {string}
|
|
25
|
-
*/
|
|
26
|
-
static logs() {
|
|
27
|
-
return app.getPath("logs");
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 获取崩溃转储目录
|
|
31
|
-
* @returns {string}
|
|
32
|
-
*/
|
|
33
|
-
static crashDumps() {
|
|
34
|
-
return app.getPath("crashDumps");
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 获取临时目录
|
|
38
|
-
* @returns {string}
|
|
39
|
-
*/
|
|
40
|
-
static temp() {
|
|
41
|
-
return app.getPath("temp");
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* 获取下载目录
|
|
45
|
-
* @returns {string}
|
|
46
|
-
*/
|
|
47
|
-
static downloads() {
|
|
48
|
-
return app.getPath("downloads");
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* 获取更新器缓存目录
|
|
52
|
-
* @returns {string}
|
|
53
|
-
*/
|
|
54
|
-
static updaterCacheDir() {
|
|
55
|
-
return path.join(this.updaterCacheRootDir(), this.updaterCacheDirName());
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* 获取更新器配置文件路径
|
|
59
|
-
* @returns {string}
|
|
60
|
-
* @private
|
|
61
|
-
*/
|
|
62
|
-
static updaterConfigFile() {
|
|
63
|
-
return app.isPackaged ? path.join(process.resourcesPath, "app-update.yml") : path.join(app.getAppPath(), "dev-app-update.yml");
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* 获取更新器缓存目录名称
|
|
67
|
-
* @returns {string}
|
|
68
|
-
* @private
|
|
69
|
-
*/
|
|
70
|
-
static updaterCacheDirName() {
|
|
71
|
-
const configFile = this.updaterConfigFile();
|
|
72
|
-
if (!existsSync(configFile)) {
|
|
73
|
-
return app.getName();
|
|
74
|
-
}
|
|
75
|
-
const config = load(readFileSync(configFile, "utf8"));
|
|
76
|
-
const dirName = config?.updaterCacheDirName?.trim();
|
|
77
|
-
return dirName || app.getName();
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* 获取更新器缓存根目录
|
|
81
|
-
* @returns {string}
|
|
82
|
-
* @private
|
|
83
|
-
*/
|
|
84
|
-
static updaterCacheRootDir() {
|
|
85
|
-
if (process.platform === "win32") {
|
|
86
|
-
return process.env.LOCALAPPDATA ?? path.join(homedir(), "AppData", "Local");
|
|
87
|
-
}
|
|
88
|
-
if (process.platform === "darwin") {
|
|
89
|
-
return path.join(homedir(), "Library", "Caches");
|
|
90
|
-
}
|
|
91
|
-
return process.env.XDG_CACHE_HOME ?? path.join(homedir(), ".cache");
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export {
|
|
96
|
-
XoPathUtil
|
|
97
|
-
};
|