Optimize + set verified boot hash in WebUI

Reduce load time by preload applist in service.sh. New function in WebUI: set verified boot hash in WebUI
This commit is contained in:
KOWX712
2024-11-23 21:22:23 +08:00
parent f4860d1a00
commit 213c4a2f13
4 changed files with 202 additions and 19 deletions
+76
View File
@@ -128,6 +128,79 @@ body {
color: inherit;
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
}
.boot-hash-card {
position: fixed;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
width: 80vw;
max-width: 600px;
background-color: #fff;
border-radius: 18px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
z-index: 1100;
padding: 20px;
display: none;
flex-direction: column;
gap: 15px;
opacity: 0;
transition: opacity 0.2s ease;
}
.overlay.show {
visibility: visible;
opacity: 1;
}
.boot-hash-card.show {
display: flex;
opacity: 1;
}
.input-box {
width: calc(100% - 23px);
height: 100px;
resize: none;
padding: 10px;
font-size: 16px;
background-color: #FFF;
border: 1px solid #ccc;
border-radius: 10px;
}
.button-container {
display: flex;
justify-content: flex-start;
}
.button {
padding: 10px 20px;
border: none;
border-radius: 38px;
font-size: 18px;
}
.save-button {
background-color: #007bff;
color: white;
margin-left: auto;
}
#apps-list {
margin-top: 100px;
}
@@ -397,11 +470,13 @@ body {
background-color: #121212;
}
.input-box,
.help-button {
color: #fff;
}
.help-menu,
.boot-hash-card,
.card,
.search-input,
.search-card {
@@ -416,6 +491,7 @@ body {
color: white;
}
.input-box,
.menu-options,
#menu-button {
background-color: #343434;