forked from Github/frigate
Redesign log page and pull logs in chunks (#10809)
* Redesign log page to have formatting * Support other log types as well * fix border * Support log data format * Only load necessary logs * Load incrementally * Cleanup * Cleanup * Render all items * avoid flashing scroll to bottom * Fix not listening at first * Always ensure logLine is defined * Group logs based on timestamp * Formatting * remove scrollbar * Don't repull when there are no items to pull * Add newline to end * Fix log lines missing * typo
This commit is contained in:
13
web/src/types/log.ts
Normal file
13
web/src/types/log.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export type LogData = {
|
||||
totalLines: number;
|
||||
lines: string[];
|
||||
};
|
||||
|
||||
export type LogSeverity = "info" | "warning" | "error" | "debug";
|
||||
|
||||
export type LogLine = {
|
||||
dateStamp: string;
|
||||
severity: LogSeverity;
|
||||
section: string;
|
||||
content: string;
|
||||
};
|
||||
Reference in New Issue
Block a user