This commit is contained in:
Alex Holliday committed 2025-10-07 14:44:55 -07:00
1 parent 8a1fc94c31
commit 29fbf0a362
11 files changed
+587 -20

No files matched your search

+10
View File
@@ -18,6 +18,16 @@ export const getStatusColor = (status: MonitorStatus, theme: any): string => {
return statusColors[status];
};
export const getResponseTimeColor = (responseTime: number): PaletteKey => {
if (responseTime < 200) {
return "success";
} else if (responseTime < 300) {
return "warning";
} else {
return "error";
}
};
export const formatUrl = (url: string, maxLength: number = 55) => {
if (!url) return "";