mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-25 02:34:26 +08:00
[Feat] Screen Lock overrides & Move Aura Settings to pref page
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<img src="../../aura/ui/static/config/no_limitations.svg" />
|
||||
<div>
|
||||
<p class="config-operation-title">限制解除</p>
|
||||
<p class="config-operation-description">禁用密码、关闭冰点</p>
|
||||
<p class="config-operation-description">禁用密码、关闭功能</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -104,12 +104,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="operation-el-hidden aura-config-page-operation-el">
|
||||
<div
|
||||
class="operation-el-hidden aura-config-page-operation-el"
|
||||
onclick="window.__HUGO_AURA_UI_FUNCTIONS__.config.toggleSubConfig('preferences', true)"
|
||||
>
|
||||
<div class="aura-config-page-operation-body">
|
||||
<img src="../../aura/ui/static/config/about.svg" />
|
||||
<div>
|
||||
<p class="config-operation-title">关于项目</p>
|
||||
<p class="config-operation-description">使用文档、获取帮助</p>
|
||||
<p class="config-operation-title">偏好设置</p>
|
||||
<p class="config-operation-description">Aura 设置、关于项目</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
global.__HUGO_AURA_UI_REACTIVES__.config = {
|
||||
isInSubPage: false,
|
||||
currentActiveSubPage: "",
|
||||
authenticated: false,
|
||||
};
|
||||
|
||||
global.__HUGO_AURA_UI_FUNCTIONS__.config = {
|
||||
@@ -34,6 +35,7 @@ global.__HUGO_AURA_UI_FUNCTIONS__.config = {
|
||||
|
||||
toggleSubConfig: (subPage, side) => {
|
||||
if (side === global.__HUGO_AURA_UI_REACTIVES__.config.isInSubPage) return;
|
||||
if (!global.__HUGO_AURA_UI_REACTIVES__.config.authenticated) return;
|
||||
if (!side) {
|
||||
side = !global.__HUGO_AURA_UI_REACTIVES__.config.isInSubPage;
|
||||
}
|
||||
@@ -66,6 +68,15 @@ global.__HUGO_AURA_UI_FUNCTIONS__.config = {
|
||||
}, 500);
|
||||
}
|
||||
break;
|
||||
case "plugins":
|
||||
// To Be Done
|
||||
preserveOperationIdx = 2;
|
||||
pendingSubPageId = "Aura.UI.Assistant.Config.Plugins";
|
||||
break;
|
||||
case "preferences":
|
||||
preserveOperationIdx = 3;
|
||||
pendingSubPageId = "Aura.UI.Assistant.Config.Preferences";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -152,6 +163,7 @@ global.__HUGO_AURA_UI_FUNCTIONS__.config = {
|
||||
await window.__HUGO_AURA_GLOBAL__.utils.sleep(500);
|
||||
acsDialogAreaEl.style = "display: none;";
|
||||
await window.__HUGO_AURA_GLOBAL__.utils.sleep(250);
|
||||
global.__HUGO_AURA_UI_REACTIVES__.config.authenticated = true;
|
||||
global.__HUGO_AURA_UI_FUNCTIONS__.config.showSecondPhaseAnim();
|
||||
return true;
|
||||
} else {
|
||||
@@ -218,6 +230,7 @@ global.__HUGO_AURA_UI_FUNCTIONS__.config = {
|
||||
global.__HUGO_AURA_CONFIG__.auraSettings.settingsPasswordEnabled;
|
||||
|
||||
if (!isAuthEnabled) {
|
||||
global.__HUGO_AURA_UI_REACTIVES__.config.authenticated = true;
|
||||
showOperationsAnimation();
|
||||
} else {
|
||||
await window.__HUGO_AURA_GLOBAL__.utils.sleep(50);
|
||||
|
||||
Reference in New Issue
Block a user