mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-24 18:14:28 +08:00
[Feat] Early support for PLS & Use JSDoc (Partially)
This commit is contained in:
0
src/aura/ui/pages/config/config.css
Normal file → Executable file
0
src/aura/ui/pages/config/config.css
Normal file → Executable file
27
src/aura/ui/pages/config/config.html
Normal file → Executable file
27
src/aura/ui/pages/config/config.html
Normal file → Executable file
@@ -80,7 +80,7 @@
|
||||
</div>
|
||||
<div
|
||||
class="operation-el-hidden aura-config-page-operation-el"
|
||||
aura-disabled="true"
|
||||
onclick="window.__HUGO_AURA_UI_FUNCTIONS__.config.toggleSubConfig('behaviourCtrl', true)"
|
||||
>
|
||||
<div class="aura-config-page-operation-body">
|
||||
<img src="../../aura/ui/static/config/behaviour_mon.svg" />
|
||||
@@ -162,5 +162,30 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="toast-container position-fixed bottom-0 end-0 p-3">
|
||||
<div
|
||||
id="relaunchPlsNotifyToast"
|
||||
class="toast acp-toast-emerg"
|
||||
aria-atomic="true"
|
||||
data-bs-autohide="false"
|
||||
>
|
||||
<div class="toast-header">
|
||||
<i class="layui-icon layui-icon-tips"></i>
|
||||
<strong class="me-auto">重启 PLS 进程以应用设置</strong>
|
||||
</div>
|
||||
<div class="toast-body">
|
||||
<p>请重启 PLS 进程以应用修改的设置</p>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary btn-sm"
|
||||
id="plsRelaunchBtn"
|
||||
onclick="ipcRenderer.invoke('$aura.pls.relaunchPls')"
|
||||
>
|
||||
重启进程
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
22
src/aura/ui/pages/config/config.js
Normal file → Executable file
22
src/aura/ui/pages/config/config.js
Normal file → Executable file
@@ -49,17 +49,33 @@ global.__HUGO_AURA_UI_FUNCTIONS__.config = {
|
||||
"aura-config-page-operation-el"
|
||||
);
|
||||
let pendingSubPageId = "";
|
||||
let preserveOperationIdx = 0;
|
||||
switch (subPage) {
|
||||
case "disableLimitations":
|
||||
side
|
||||
? operationElArr[0].classList.add("preserve-operation")
|
||||
: operationElArr[0].classList.remove("preserve-operation");
|
||||
preserveOperationIdx = 0;
|
||||
pendingSubPageId = "Aura.UI.Assistant.Config.DisableLimitations";
|
||||
break;
|
||||
case "behaviourCtrl":
|
||||
preserveOperationIdx = 1;
|
||||
pendingSubPageId = "Aura.UI.Assistant.Config.BehaviourCtrl";
|
||||
if (!side) {
|
||||
setTimeout(() => {
|
||||
global.__HUGO_AURA_LOADER__[
|
||||
"Aura.UI.Assistant.Config.BehaviourCtrl.PlsStatus"
|
||||
].active = false;
|
||||
}, 500);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
side
|
||||
? operationElArr[preserveOperationIdx].classList.add("preserve-operation")
|
||||
: operationElArr[preserveOperationIdx].classList.remove(
|
||||
"preserve-operation"
|
||||
);
|
||||
|
||||
const operationAreaEl = document.getElementsByClassName(
|
||||
"aura-config-page-operation-area"
|
||||
)[0];
|
||||
|
||||
Reference in New Issue
Block a user