2025-06-03 02:11:39 +08:00
|
|
|
(() => {
|
|
|
|
|
const pathBase = "../../aura/ui/pages/configSubPages/preferences/settings";
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
settingsRenderer,
|
|
|
|
|
} = require("../../aura/ui/composables/settingsRenderer");
|
|
|
|
|
const { auraSettings } = require(`${pathBase}/aura`);
|
2025-06-16 21:24:10 +08:00
|
|
|
const { debugSettings } = require(`${pathBase}/debug`);
|
2025-06-03 02:11:39 +08:00
|
|
|
|
|
|
|
|
const initAuraSubPage = () => {
|
|
|
|
|
const auraSettingsSubPageEl = document.getElementById("aura-subpage");
|
|
|
|
|
settingsRenderer(auraSettingsSubPageEl, auraSettings);
|
|
|
|
|
};
|
2025-06-16 21:24:10 +08:00
|
|
|
|
|
|
|
|
const initDebugSubPage = () => {
|
|
|
|
|
const debugSubPageEl = document.getElementById("debug-subpage");
|
|
|
|
|
settingsRenderer(debugSubPageEl, debugSettings);
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-03 02:11:39 +08:00
|
|
|
const onMounted = () => {
|
|
|
|
|
initAuraSubPage();
|
2025-06-16 21:24:10 +08:00
|
|
|
initDebugSubPage();
|
2025-06-03 02:11:39 +08:00
|
|
|
|
|
|
|
|
const rootEl = document.getElementById("acs-preferences-root-el");
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
rootEl.classList.remove("acs-preferences-root-hidden");
|
|
|
|
|
}, 500);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onMounted();
|
|
|
|
|
})();
|