@e-xi/xion 0.0.14 → 0.0.18
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/chunk-files/{chunk-CSUNGWAE.js → chunk-6DU5WZRA.js} +34 -34
- package/dist/chunk-files/{chunk-IHTLOOPM.js → chunk-JYB7HVPJ.js} +1 -1
- package/dist/main/app/index.js +1 -1
- package/dist/main/banner/index.js +1 -1
- package/dist/renderer/app/index.js +213 -7
- package/dist/vite/build/component-map.d.ts +33 -33
- package/dist/vite/build/index.js +1 -1
- package/dist/vite/config/index.js +4 -14
- package/package.json +5 -1
|
@@ -347,39 +347,39 @@ var BuildObfuscation = class _BuildObfuscation {
|
|
|
347
347
|
|
|
348
348
|
// src/vite/build/component-map.ts
|
|
349
349
|
var XionComponentMap = {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
XoSpacingLine: "@e-xi/xion/renderer/components",
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
XoTitleBar: "@e-xi/xion/renderer/components",
|
|
381
|
-
XoUpdater: "@e-xi/xion/renderer/components",
|
|
382
|
-
XoWindowControl: "@e-xi/xion/renderer/components"
|
|
350
|
+
XoCaptchaHost: "@e-xi/xion/renderer/components/captcha/xo-captcha-host.vue",
|
|
351
|
+
XoCaptcha: "@e-xi/xion/renderer/components/captcha/xo-captcha.vue",
|
|
352
|
+
XoContextMenuItems: "@e-xi/xion/renderer/components/context-menu/xo-context-menu-items.vue",
|
|
353
|
+
XoContextMenu: "@e-xi/xion/renderer/components/context-menu/xo-context-menu.vue",
|
|
354
|
+
XoDivider: "@e-xi/xion/renderer/components/divider/xo-divider.vue",
|
|
355
|
+
XoFormFlexRow: "@e-xi/xion/renderer/components/form/xo-form-flex-row.vue",
|
|
356
|
+
XoFormFlex: "@e-xi/xion/renderer/components/form/xo-form-flex.vue",
|
|
357
|
+
XoAppLayout: "@e-xi/xion/renderer/components/layouts/xo-app-layout.vue",
|
|
358
|
+
XoMiniLayout: "@e-xi/xion/renderer/components/layouts/xo-mini-layout.vue",
|
|
359
|
+
XoSimpleLayout: "@e-xi/xion/renderer/components/layouts/xo-simple-layout.vue",
|
|
360
|
+
XoAppPage: "@e-xi/xion/renderer/components/pages/xo-app-page.vue",
|
|
361
|
+
XoBootstrapPage: "@e-xi/xion/renderer/components/pages/xo-bootstrap-page.vue",
|
|
362
|
+
XoDynamicPage: "@e-xi/xion/renderer/components/pages/xo-dynamic-page.vue",
|
|
363
|
+
XoSettingsPage: "@e-xi/xion/renderer/components/pages/xo-settings-page.vue",
|
|
364
|
+
XoRadioGroup: "@e-xi/xion/renderer/components/radio-group/xo-radio-group.vue",
|
|
365
|
+
XoServiceStatusBar: "@e-xi/xion/renderer/components/service-status-bar/xo-service-status-bar.vue",
|
|
366
|
+
XoSettingAppOpacity: "@e-xi/xion/renderer/components/settings-components/xo-setting-app-opacity.vue",
|
|
367
|
+
XoSettingLogLevel: "@e-xi/xion/renderer/components/settings-components/xo-setting-log-level.vue",
|
|
368
|
+
XoSettingShortcutKeysRecordForFormFlexRows: "@e-xi/xion/renderer/components/settings-components/xo-setting-shortcut-keys-record-for-form-flex-rows.vue",
|
|
369
|
+
XoSettingShortcutKeysRecord: "@e-xi/xion/renderer/components/settings-components/xo-setting-shortcut-keys-record.vue",
|
|
370
|
+
XoSettingWindowMaterial: "@e-xi/xion/renderer/components/settings-components/xo-setting-window-material.vue",
|
|
371
|
+
XoSettingPageFolder: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-folder.vue",
|
|
372
|
+
XoSettingPageGeneral: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-general.vue",
|
|
373
|
+
XoSettingPageRemoteService: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-remote-service.vue",
|
|
374
|
+
XoSettingPageUpdater: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-updater.vue",
|
|
375
|
+
XoShortcutKeysRecord: "@e-xi/xion/renderer/components/shortcut-keys-record/xo-shortcut-keys-record.vue",
|
|
376
|
+
XoSidebarLogo: "@e-xi/xion/renderer/components/side-bar/xo-sidebar-logo.vue",
|
|
377
|
+
XoSpacingLine: "@e-xi/xion/renderer/components/spacing-line/xo-spacing-line.vue",
|
|
378
|
+
XoThemeSwitchMini: "@e-xi/xion/renderer/components/theme-switch/xo-theme-switch-mini.vue",
|
|
379
|
+
XoThemeSwitch: "@e-xi/xion/renderer/components/theme-switch/xo-theme-switch.vue",
|
|
380
|
+
XoTitleBar: "@e-xi/xion/renderer/components/title-bar/xo-title-bar.vue",
|
|
381
|
+
XoUpdater: "@e-xi/xion/renderer/components/updater/xo-updater.vue",
|
|
382
|
+
XoWindowControl: "@e-xi/xion/renderer/components/window-control/xo-window-control.vue"
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
// src/vite/build/component-resolver.ts
|
|
@@ -391,7 +391,7 @@ function XionComponentResolver() {
|
|
|
391
391
|
if (!from) {
|
|
392
392
|
return void 0;
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return from;
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
}
|
package/dist/main/app/index.js
CHANGED
|
@@ -44,7 +44,7 @@ import "../../chunk-files/chunk-J34MOWJP.js";
|
|
|
44
44
|
import "../../chunk-files/chunk-B7DTBTWQ.js";
|
|
45
45
|
import {
|
|
46
46
|
BannerManager
|
|
47
|
-
} from "../../chunk-files/chunk-
|
|
47
|
+
} from "../../chunk-files/chunk-JYB7HVPJ.js";
|
|
48
48
|
import "../../chunk-files/chunk-YLZRRUY7.js";
|
|
49
49
|
import {
|
|
50
50
|
defineAppConfig,
|
|
@@ -1,7 +1,175 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2
7
|
var __esm = (fn, res) => function __init() {
|
|
3
8
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
4
9
|
};
|
|
10
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
|
|
30
|
+
// node_modules/dayjs/plugin/timezone.js
|
|
31
|
+
var require_timezone = __commonJS({
|
|
32
|
+
"node_modules/dayjs/plugin/timezone.js"(exports, module) {
|
|
33
|
+
"use strict";
|
|
34
|
+
!function(t, e) {
|
|
35
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_timezone = e();
|
|
36
|
+
}(exports, function() {
|
|
37
|
+
"use strict";
|
|
38
|
+
var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
|
|
39
|
+
return function(n, i, o) {
|
|
40
|
+
var r, a = function(t2, n2, i2) {
|
|
41
|
+
void 0 === i2 && (i2 = {});
|
|
42
|
+
var o2 = new Date(t2), r2 = function(t3, n3) {
|
|
43
|
+
void 0 === n3 && (n3 = {});
|
|
44
|
+
var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
|
|
45
|
+
return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
|
|
46
|
+
}(n2, i2);
|
|
47
|
+
return r2.formatToParts(o2);
|
|
48
|
+
}, u = function(e2, n2) {
|
|
49
|
+
for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
|
|
50
|
+
var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
|
|
51
|
+
c >= 0 && (r2[c] = parseInt(m, 10));
|
|
52
|
+
}
|
|
53
|
+
var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
|
|
54
|
+
return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
|
|
55
|
+
}, f = i.prototype;
|
|
56
|
+
f.tz = function(t2, e2) {
|
|
57
|
+
void 0 === t2 && (t2 = r);
|
|
58
|
+
var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
|
|
59
|
+
if (!Number(s2)) n2 = this.utcOffset(0, e2);
|
|
60
|
+
else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
|
|
61
|
+
var m = n2.utcOffset();
|
|
62
|
+
n2 = n2.add(i2 - m, "minute");
|
|
63
|
+
}
|
|
64
|
+
return n2.$x.$timezone = t2, n2;
|
|
65
|
+
}, f.offsetName = function(t2) {
|
|
66
|
+
var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
|
|
67
|
+
return "timezonename" === t3.type.toLowerCase();
|
|
68
|
+
});
|
|
69
|
+
return n2 && n2.value;
|
|
70
|
+
};
|
|
71
|
+
var s = f.startOf;
|
|
72
|
+
f.startOf = function(t2, e2) {
|
|
73
|
+
if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
|
|
74
|
+
var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
75
|
+
return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
|
|
76
|
+
}, o.tz = function(t2, e2, n2) {
|
|
77
|
+
var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
|
|
78
|
+
if ("string" != typeof t2) return o(t2).tz(a2);
|
|
79
|
+
var s2 = function(t3, e3, n3) {
|
|
80
|
+
var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
|
|
81
|
+
if (e3 === o2) return [i3, e3];
|
|
82
|
+
var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
|
|
83
|
+
return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
|
|
84
|
+
}(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
|
|
85
|
+
return d.$x.$timezone = a2, d;
|
|
86
|
+
}, o.tz.guess = function() {
|
|
87
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
88
|
+
}, o.tz.setDefault = function(t2) {
|
|
89
|
+
r = t2;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// node_modules/dayjs/plugin/utc.js
|
|
97
|
+
var require_utc = __commonJS({
|
|
98
|
+
"node_modules/dayjs/plugin/utc.js"(exports, module) {
|
|
99
|
+
"use strict";
|
|
100
|
+
!function(t, i) {
|
|
101
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_utc = i();
|
|
102
|
+
}(exports, function() {
|
|
103
|
+
"use strict";
|
|
104
|
+
var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
|
|
105
|
+
return function(s, f, n) {
|
|
106
|
+
var u = f.prototype;
|
|
107
|
+
n.utc = function(t2) {
|
|
108
|
+
var i2 = { date: t2, utc: true, args: arguments };
|
|
109
|
+
return new f(i2);
|
|
110
|
+
}, u.utc = function(i2) {
|
|
111
|
+
var e2 = n(this.toDate(), { locale: this.$L, utc: true });
|
|
112
|
+
return i2 ? e2.add(this.utcOffset(), t) : e2;
|
|
113
|
+
}, u.local = function() {
|
|
114
|
+
return n(this.toDate(), { locale: this.$L, utc: false });
|
|
115
|
+
};
|
|
116
|
+
var r = u.parse;
|
|
117
|
+
u.parse = function(t2) {
|
|
118
|
+
t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
|
|
119
|
+
};
|
|
120
|
+
var o = u.init;
|
|
121
|
+
u.init = function() {
|
|
122
|
+
if (this.$u) {
|
|
123
|
+
var t2 = this.$d;
|
|
124
|
+
this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
|
|
125
|
+
} else o.call(this);
|
|
126
|
+
};
|
|
127
|
+
var a = u.utcOffset;
|
|
128
|
+
u.utcOffset = function(s2, f2) {
|
|
129
|
+
var n2 = this.$utils().u;
|
|
130
|
+
if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
|
|
131
|
+
if ("string" == typeof s2 && (s2 = function(t2) {
|
|
132
|
+
void 0 === t2 && (t2 = "");
|
|
133
|
+
var s3 = t2.match(i);
|
|
134
|
+
if (!s3) return null;
|
|
135
|
+
var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
|
|
136
|
+
return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
|
|
137
|
+
}(s2), null === s2)) return this;
|
|
138
|
+
var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
|
|
139
|
+
if (0 === u2) return this.utc(f2);
|
|
140
|
+
var r2 = this.clone();
|
|
141
|
+
if (f2) return r2.$offset = u2, r2.$u = false, r2;
|
|
142
|
+
var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
143
|
+
return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
|
|
144
|
+
};
|
|
145
|
+
var h = u.format;
|
|
146
|
+
u.format = function(t2) {
|
|
147
|
+
var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
148
|
+
return h.call(this, i2);
|
|
149
|
+
}, u.valueOf = function() {
|
|
150
|
+
var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
151
|
+
return this.$d.valueOf() - 6e4 * t2;
|
|
152
|
+
}, u.isUTC = function() {
|
|
153
|
+
return !!this.$u;
|
|
154
|
+
}, u.toISOString = function() {
|
|
155
|
+
return this.toDate().toISOString();
|
|
156
|
+
}, u.toString = function() {
|
|
157
|
+
return this.toDate().toUTCString();
|
|
158
|
+
};
|
|
159
|
+
var l = u.toDate;
|
|
160
|
+
u.toDate = function(t2) {
|
|
161
|
+
return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
|
|
162
|
+
};
|
|
163
|
+
var c = u.diff;
|
|
164
|
+
u.diff = function(t2, i2, e2) {
|
|
165
|
+
if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
|
|
166
|
+
var s2 = this.local(), f2 = n(t2).local();
|
|
167
|
+
return c.call(s2, f2, i2, e2);
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
});
|
|
5
173
|
|
|
6
174
|
// src/renderer/app/styles-element-plus.internal.ts
|
|
7
175
|
var styles_element_plus_internal_exports = {};
|
|
@@ -23,8 +191,46 @@ var init_styles_xion_internal = __esm({
|
|
|
23
191
|
}
|
|
24
192
|
});
|
|
25
193
|
|
|
194
|
+
// src/renderer/components/context-menu.ts
|
|
195
|
+
import XoContextMenu from "../components/context-menu/xo-context-menu.vue";
|
|
196
|
+
import { createApp } from "vue";
|
|
197
|
+
var XoContextMenuPlugin = {
|
|
198
|
+
/**
|
|
199
|
+
* 安装插件
|
|
200
|
+
* @param {App} app Vue 应用
|
|
201
|
+
* @param {XoRendererContextMenu.Options} options 配置
|
|
202
|
+
*/
|
|
203
|
+
install(app, options = {}) {
|
|
204
|
+
const unmount = XoMountContextMenu(options);
|
|
205
|
+
app.onUnmount(() => {
|
|
206
|
+
unmount();
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
function XoMountContextMenu(options = {}) {
|
|
211
|
+
const container = createContainer(options.rootId);
|
|
212
|
+
const app = createApp(XoContextMenu, {
|
|
213
|
+
maxWidth: options.maxWidth,
|
|
214
|
+
viewportPadding: options.viewportPadding
|
|
215
|
+
});
|
|
216
|
+
app.mount(container);
|
|
217
|
+
return () => {
|
|
218
|
+
app.unmount();
|
|
219
|
+
container.remove();
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
function createContainer(rootId = "xo-context-menu-root") {
|
|
223
|
+
const exists = document.getElementById(rootId);
|
|
224
|
+
if (exists) {
|
|
225
|
+
return exists;
|
|
226
|
+
}
|
|
227
|
+
const container = document.createElement("div");
|
|
228
|
+
container.id = rootId;
|
|
229
|
+
document.body.appendChild(container);
|
|
230
|
+
return container;
|
|
231
|
+
}
|
|
232
|
+
|
|
26
233
|
// src/renderer/app/bootstrap-renderer.ts
|
|
27
|
-
import { XoContextMenuPlugin } from "../components/index";
|
|
28
234
|
import { useXoAppStore, useXoAuthStore, useXoRemoteServiceStore, useXoThemeStore, useXoUpdaterStore, useXoWindowStore } from "../store/index";
|
|
29
235
|
import { MessageUtil, RouterUtil } from "../utils/index";
|
|
30
236
|
|
|
@@ -39,13 +245,13 @@ function isIpcInvokeError(error) {
|
|
|
39
245
|
}
|
|
40
246
|
|
|
41
247
|
// src/renderer/app/bootstrap-renderer.ts
|
|
248
|
+
var import_timezone = __toESM(require_timezone(), 1);
|
|
249
|
+
var import_utc = __toESM(require_utc(), 1);
|
|
42
250
|
import dayjs from "dayjs";
|
|
43
|
-
import timezone from "dayjs/plugin/timezone";
|
|
44
|
-
import utc from "dayjs/plugin/utc";
|
|
45
251
|
import ElementPlus from "element-plus";
|
|
46
252
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
47
253
|
import { createPinia } from "pinia";
|
|
48
|
-
import { createApp, nextTick } from "vue";
|
|
254
|
+
import { createApp as createApp2, nextTick } from "vue";
|
|
49
255
|
var defaultOptions = {
|
|
50
256
|
mount: "#app",
|
|
51
257
|
uses: [],
|
|
@@ -103,8 +309,8 @@ async function BootstrapRenderer(options) {
|
|
|
103
309
|
...defaultOptions,
|
|
104
310
|
...options
|
|
105
311
|
};
|
|
106
|
-
dayjs.extend(
|
|
107
|
-
dayjs.extend(
|
|
312
|
+
dayjs.extend(import_utc.default);
|
|
313
|
+
dayjs.extend(import_timezone.default);
|
|
108
314
|
dayjs.tz.setDefault(mergedOptions.timezone);
|
|
109
315
|
if (mergedOptions.autoImportElementPlusStyle) {
|
|
110
316
|
await Promise.resolve().then(() => (init_styles_element_plus_internal(), styles_element_plus_internal_exports));
|
|
@@ -113,7 +319,7 @@ async function BootstrapRenderer(options) {
|
|
|
113
319
|
for (const importer of mergedOptions.styleImporter ?? []) {
|
|
114
320
|
await importer();
|
|
115
321
|
}
|
|
116
|
-
const app =
|
|
322
|
+
const app = createApp2(mergedOptions.rootComponent);
|
|
117
323
|
for (const use of mergedOptions.uses ?? []) {
|
|
118
324
|
usePluginOnce(app, use);
|
|
119
325
|
}
|
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
* @file Automatically generated by scripts/gen-exports.ts
|
|
3
3
|
*/
|
|
4
4
|
export declare const XionComponentMap: {
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly XoSpacingLine: "@e-xi/xion/renderer/components";
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly XoTitleBar: "@e-xi/xion/renderer/components";
|
|
36
|
-
readonly XoUpdater: "@e-xi/xion/renderer/components";
|
|
37
|
-
readonly XoWindowControl: "@e-xi/xion/renderer/components";
|
|
5
|
+
readonly XoCaptchaHost: "@e-xi/xion/renderer/components/captcha/xo-captcha-host.vue";
|
|
6
|
+
readonly XoCaptcha: "@e-xi/xion/renderer/components/captcha/xo-captcha.vue";
|
|
7
|
+
readonly XoContextMenuItems: "@e-xi/xion/renderer/components/context-menu/xo-context-menu-items.vue";
|
|
8
|
+
readonly XoContextMenu: "@e-xi/xion/renderer/components/context-menu/xo-context-menu.vue";
|
|
9
|
+
readonly XoDivider: "@e-xi/xion/renderer/components/divider/xo-divider.vue";
|
|
10
|
+
readonly XoFormFlexRow: "@e-xi/xion/renderer/components/form/xo-form-flex-row.vue";
|
|
11
|
+
readonly XoFormFlex: "@e-xi/xion/renderer/components/form/xo-form-flex.vue";
|
|
12
|
+
readonly XoAppLayout: "@e-xi/xion/renderer/components/layouts/xo-app-layout.vue";
|
|
13
|
+
readonly XoMiniLayout: "@e-xi/xion/renderer/components/layouts/xo-mini-layout.vue";
|
|
14
|
+
readonly XoSimpleLayout: "@e-xi/xion/renderer/components/layouts/xo-simple-layout.vue";
|
|
15
|
+
readonly XoAppPage: "@e-xi/xion/renderer/components/pages/xo-app-page.vue";
|
|
16
|
+
readonly XoBootstrapPage: "@e-xi/xion/renderer/components/pages/xo-bootstrap-page.vue";
|
|
17
|
+
readonly XoDynamicPage: "@e-xi/xion/renderer/components/pages/xo-dynamic-page.vue";
|
|
18
|
+
readonly XoSettingsPage: "@e-xi/xion/renderer/components/pages/xo-settings-page.vue";
|
|
19
|
+
readonly XoRadioGroup: "@e-xi/xion/renderer/components/radio-group/xo-radio-group.vue";
|
|
20
|
+
readonly XoServiceStatusBar: "@e-xi/xion/renderer/components/service-status-bar/xo-service-status-bar.vue";
|
|
21
|
+
readonly XoSettingAppOpacity: "@e-xi/xion/renderer/components/settings-components/xo-setting-app-opacity.vue";
|
|
22
|
+
readonly XoSettingLogLevel: "@e-xi/xion/renderer/components/settings-components/xo-setting-log-level.vue";
|
|
23
|
+
readonly XoSettingShortcutKeysRecordForFormFlexRows: "@e-xi/xion/renderer/components/settings-components/xo-setting-shortcut-keys-record-for-form-flex-rows.vue";
|
|
24
|
+
readonly XoSettingShortcutKeysRecord: "@e-xi/xion/renderer/components/settings-components/xo-setting-shortcut-keys-record.vue";
|
|
25
|
+
readonly XoSettingWindowMaterial: "@e-xi/xion/renderer/components/settings-components/xo-setting-window-material.vue";
|
|
26
|
+
readonly XoSettingPageFolder: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-folder.vue";
|
|
27
|
+
readonly XoSettingPageGeneral: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-general.vue";
|
|
28
|
+
readonly XoSettingPageRemoteService: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-remote-service.vue";
|
|
29
|
+
readonly XoSettingPageUpdater: "@e-xi/xion/renderer/components/settings-pages/xo-setting-page-updater.vue";
|
|
30
|
+
readonly XoShortcutKeysRecord: "@e-xi/xion/renderer/components/shortcut-keys-record/xo-shortcut-keys-record.vue";
|
|
31
|
+
readonly XoSidebarLogo: "@e-xi/xion/renderer/components/side-bar/xo-sidebar-logo.vue";
|
|
32
|
+
readonly XoSpacingLine: "@e-xi/xion/renderer/components/spacing-line/xo-spacing-line.vue";
|
|
33
|
+
readonly XoThemeSwitchMini: "@e-xi/xion/renderer/components/theme-switch/xo-theme-switch-mini.vue";
|
|
34
|
+
readonly XoThemeSwitch: "@e-xi/xion/renderer/components/theme-switch/xo-theme-switch.vue";
|
|
35
|
+
readonly XoTitleBar: "@e-xi/xion/renderer/components/title-bar/xo-title-bar.vue";
|
|
36
|
+
readonly XoUpdater: "@e-xi/xion/renderer/components/updater/xo-updater.vue";
|
|
37
|
+
readonly XoWindowControl: "@e-xi/xion/renderer/components/window-control/xo-window-control.vue";
|
|
38
38
|
};
|
package/dist/vite/build/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
BuildObfuscation,
|
|
5
5
|
XionComponentMap,
|
|
6
6
|
XionComponentResolver
|
|
7
|
-
} from "../../chunk-files/chunk-
|
|
7
|
+
} from "../../chunk-files/chunk-6DU5WZRA.js";
|
|
8
8
|
import "../../chunk-files/chunk-B2FI5WI5.js";
|
|
9
9
|
import "../../chunk-files/chunk-3XOVD6UX.js";
|
|
10
10
|
import "../../chunk-files/chunk-6FDO72PN.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
BuildObfuscation,
|
|
8
8
|
XionComponentMap,
|
|
9
9
|
XionComponentResolver
|
|
10
|
-
} from "../../chunk-files/chunk-
|
|
10
|
+
} from "../../chunk-files/chunk-6DU5WZRA.js";
|
|
11
11
|
import {
|
|
12
12
|
ViteMode
|
|
13
13
|
} from "../../chunk-files/chunk-B2FI5WI5.js";
|
|
@@ -2109,7 +2109,6 @@ var defineViteObfuscationConfig = (override) => {
|
|
|
2109
2109
|
|
|
2110
2110
|
// src/vite/config/electron-vite-config.ts
|
|
2111
2111
|
import path3 from "node:path";
|
|
2112
|
-
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
|
|
2113
2112
|
import Components from "unplugin-vue-components/vite";
|
|
2114
2113
|
var defaultConfig3 = (options) => {
|
|
2115
2114
|
const likeProd = ViteMode.likeProd(options.env);
|
|
@@ -2167,18 +2166,10 @@ var defaultConfig3 = (options) => {
|
|
|
2167
2166
|
exclude: [
|
|
2168
2167
|
"@e-xi/xion"
|
|
2169
2168
|
],
|
|
2169
|
+
// 预构建 Xion 直接使用的 CommonJS 兼容依赖
|
|
2170
2170
|
include: [
|
|
2171
2171
|
"dayjs",
|
|
2172
|
-
"
|
|
2173
|
-
"dayjs/plugin/customParseFormat.js",
|
|
2174
|
-
"dayjs/plugin/dayOfYear.js",
|
|
2175
|
-
"dayjs/plugin/isSameOrAfter.js",
|
|
2176
|
-
"dayjs/plugin/isSameOrBefore.js",
|
|
2177
|
-
"dayjs/plugin/localeData.js",
|
|
2178
|
-
"dayjs/plugin/timezone.js",
|
|
2179
|
-
"dayjs/plugin/utc.js",
|
|
2180
|
-
"dayjs/plugin/weekOfYear.js",
|
|
2181
|
-
"dayjs/plugin/weekYear.js"
|
|
2172
|
+
"element-plus"
|
|
2182
2173
|
]
|
|
2183
2174
|
},
|
|
2184
2175
|
resolve: {
|
|
@@ -2201,8 +2192,7 @@ var defaultConfig3 = (options) => {
|
|
|
2201
2192
|
componentsAutoImport && Components({
|
|
2202
2193
|
dts: componentsDts,
|
|
2203
2194
|
resolvers: [
|
|
2204
|
-
XionComponentResolver()
|
|
2205
|
-
ElementPlusResolver({ importStyle: "css" })
|
|
2195
|
+
XionComponentResolver()
|
|
2206
2196
|
],
|
|
2207
2197
|
types: [
|
|
2208
2198
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-xi/xion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Electron Vite Vue3 TypeScript framework.",
|
|
6
6
|
"exports": {
|
|
@@ -208,6 +208,10 @@
|
|
|
208
208
|
"types": "./dist/vite/utils/index.d.ts",
|
|
209
209
|
"import": "./dist/vite/utils/index.js"
|
|
210
210
|
},
|
|
211
|
+
"./renderer/components/*": {
|
|
212
|
+
"types": "./dist/renderer/components/*",
|
|
213
|
+
"import": "./dist/renderer/components/*"
|
|
214
|
+
},
|
|
211
215
|
"./types": {
|
|
212
216
|
"types": "./dist/types/index.d.ts",
|
|
213
217
|
"import": "./dist/types/index.js"
|