Feat/monitor cache (#267)

* feat&style: add task status configuration and clear cache functionality; enhance UI styles

* feat&refactor: enhance current configuration API and improve cache clearing logic

* refactor&style: simplify task status update logic and improve page refresh mechanism

* refactor&feat: streamline default configuration retrieval and enhance cache initialization logic

* feat&refactor: add caching to default configuration retrieval and streamline task status logic

* feat&style: add collapsible section for additional model parameters and enhance styling for config items

* refactor&style: remove floating action button and clean up related styles
This commit is contained in:
Zilong Zhou
2025-07-18 01:58:20 +08:00
committed by GitHub
parent e70cf0bd93
commit 66694c663d
5 changed files with 450 additions and 293 deletions

View File

@@ -364,33 +364,6 @@ h2 { color: #0056b3; margin-top: 32px; font-size: 1.6em; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #007bff, #00c6ff); width: 0%; transition: width 0.6s ease; }
.task-actions { margin-top: 20px; }
.timestamp { font-size: 0.9em; color: #6c757d; margin-top: 6px; }
.fab {
position: fixed;
z-index: 1000;
right: 36px;
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 6px 24px rgba(0,0,0,0.18);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.6em;
font-weight: bold;
background: linear-gradient(135deg, #007bff, #0056b3);
color: #fff;
border: none;
cursor: pointer;
transition: all 0.3s;
}
.fab:hover {
background: linear-gradient(135deg, #0056b3, #007bff);
box-shadow: 0 8px 32px rgba(0,123,255,0.28);
transform: translateY(-3px) rotate(360deg);
}
.fab-refresh {
bottom: 36px;
}
.no-tasks {
color: #8492a6;
@@ -425,16 +398,12 @@ h2 { color: #0056b3; margin-top: 32px; font-size: 1.6em; }
margin-top: 4px;
}
/* 为列表设置淡入动画 */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
.fab { right: 18px; width: 52px; height: 52px; font-size: 1.3em; }
.fab-refresh { bottom: 18px; }
h1 { font-size: 1.8em; }
.system-status { font-size: 0.4em; display: block; margin: 10px auto; width: fit-content; }
.task-status { padding: 4px 10px; font-size: 0.85em; }