mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-20 23:14:28 +08:00
1. [/] 修复了 Header Icon 默认样式为 Hidden, 导致 UI Loader 尝试 Revive 后 Header Icon 消失的异常。 2. [/] 修正了一个 PLS 连接逻辑错误 (未正确处理更新 `installed` 参数的时机)。 3. [/] 修正了冰点上报拦截预览视图中, 未正确判断状态码导致的异常。
55 lines
1.5 KiB
JavaScript
Executable File
55 lines
1.5 KiB
JavaScript
Executable File
global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon = {
|
|
showAuraConfig: () => {
|
|
if (global.__HUGO_AURA_LOADER__["Aura.UI.Assistant.Config"].active) return;
|
|
global.__HUGO_AURA_LOADER__["Aura.UI.Assistant.Config"].active = true;
|
|
},
|
|
};
|
|
|
|
(() => {
|
|
let clickCounter = 0;
|
|
let clickTimeout = null;
|
|
|
|
const onMounted = () => {
|
|
if (!global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod.showEntryIcon) {
|
|
const iconEl = document.getElementsByClassName("aura-header-icon")[0];
|
|
iconEl.classList.add("aura-header-icon-hidden");
|
|
}
|
|
|
|
if (
|
|
global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod
|
|
.fallbackAccessMethods.hotkey
|
|
) {
|
|
document.addEventListener("keydown", (event) => {
|
|
if (event.ctrlKey && event.shiftKey && event.key === "A") {
|
|
global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon.showAuraConfig();
|
|
}
|
|
});
|
|
}
|
|
|
|
if (
|
|
global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod
|
|
.fallbackAccessMethods.touch
|
|
) {
|
|
const mesModelEl = document.getElementsByClassName(
|
|
"index__mes-modal__2hRouc6M"
|
|
)[0];
|
|
const verEl = mesModelEl.children[0];
|
|
verEl.onclick = () => {
|
|
clickCounter += 1;
|
|
if (clickCounter >= 7) {
|
|
global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon.showAuraConfig();
|
|
clickCounter = 0;
|
|
if (clickTimeout) {
|
|
clearTimeout(clickTimeout);
|
|
}
|
|
}
|
|
clickTimeout = setTimeout(() => {
|
|
clickCounter = 0;
|
|
}, 10000);
|
|
};
|
|
}
|
|
};
|
|
|
|
onMounted();
|
|
})();
|