Further improve event loading (#10949)

* Further improve loading

* Add document titles to pages

* Cleanup
This commit is contained in:
Nicolas Mowen
2024-04-12 06:31:30 -06:00
committed by GitHub
parent 13cac082d5
commit 11dc407b36
9 changed files with 108 additions and 48 deletions

View File

@@ -29,6 +29,10 @@ const ngSeverity = /(GET)|(POST)|(PUT)|(PATCH)|(DELETE)/;
function Logs() {
const [logService, setLogService] = useState<LogType>("frigate");
useEffect(() => {
document.title = `${logService[0].toUpperCase()}${logService.substring(1)} Stats - Frigate`;
}, [logService]);
// log data handling
const [logRange, setLogRange] = useState<LogRange>({ start: 0, end: 0 });