feat: implement the Status API on Settings page (#470)

This commit is contained in:
Fine0830
2025-05-30 12:53:22 +08:00
committed by GitHub
parent a28972bc5c
commit 7dcc67f455
38 changed files with 775 additions and 236 deletions

View File

@@ -222,9 +222,9 @@ limitations under the License. -->
appStore.setDuration(timeFormat(val));
}
function setTTL() {
getMetricsTTL();
getRecordsTTL();
async function setTTL() {
await getMetricsTTL();
await getRecordsTTL();
changeDataMode();
}
async function getRecordsTTL() {
@@ -250,6 +250,7 @@ limitations under the License. -->
}
const gap = Math.max(day, hour, minute);
const dates: Date[] = [new Date(new Date().getTime() - dayToMS(gap + 1)), new Date()];
appStore.setMaxRange(dates);
}