mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-21 23:54:26 +08:00
1. [-] 删除了 PLS 的 Trust token 认证机制 2. [+] 现在可以在 `偏好设置` - `调试选项` 中直接打开日志文件夹了 3. [/] 日志目录不再使用 `%USERPROFILE%\Documents\HugoAura\logs` 为基准, 而是从注册表获取值 4. [/] 配置文件目录同理, 旧版配置文件将会自动迁移到新位置
32 lines
936 B
JavaScript
Executable File
32 lines
936 B
JavaScript
Executable File
(() => {
|
|
const pathBase = "../../aura/ui/pages/configSubPages/preferences/settings";
|
|
|
|
const {
|
|
settingsRenderer,
|
|
} = require("../../aura/ui/composables/settingsRenderer");
|
|
const { auraSettings } = require(`${pathBase}/aura`);
|
|
const { debugSettings } = require(`${pathBase}/debug`);
|
|
|
|
const initAuraSubPage = () => {
|
|
const auraSettingsSubPageEl = document.getElementById("aura-subpage");
|
|
settingsRenderer(auraSettingsSubPageEl, auraSettings);
|
|
};
|
|
|
|
const initDebugSubPage = () => {
|
|
const debugSubPageEl = document.getElementById("debug-subpage");
|
|
settingsRenderer(debugSubPageEl, debugSettings);
|
|
};
|
|
|
|
const onMounted = () => {
|
|
initAuraSubPage();
|
|
initDebugSubPage();
|
|
|
|
const rootEl = document.getElementById("acs-preferences-root-el");
|
|
setTimeout(() => {
|
|
rootEl.classList.remove("acs-preferences-root-hidden");
|
|
}, 500);
|
|
};
|
|
|
|
onMounted();
|
|
})();
|