resolution card
This commit is contained in:
1 parent
b4135e26ce
commit
2b3c601a05
8 files changed
+150
-80
No files matched your search
@@ -1,7 +1,20 @@
|
||||
import type { MonitorStatus } from "@/types/monitor";
|
||||
import type { IMonitor } from "@/types/monitor";
|
||||
import type { IMonitor, MonitorType } from "@/types/monitor";
|
||||
import type { PaletteKey } from "@/theme/theme";
|
||||
import type { ValueType } from "@/components/design-elements/StatusLabel";
|
||||
|
||||
export const getMonitorPath = (type: MonitorType): string => {
|
||||
const pathMap: Record<MonitorType, string> = {
|
||||
http: "uptime",
|
||||
https: "uptime",
|
||||
port: "uptime",
|
||||
ping: "uptime",
|
||||
infrastructure: "infrastructure",
|
||||
pagespeed: "pagespeed",
|
||||
};
|
||||
return pathMap[type];
|
||||
};
|
||||
|
||||
export const getStatusPalette = (status: MonitorStatus): PaletteKey => {
|
||||
const paletteMap: Record<MonitorStatus, PaletteKey> = {
|
||||
up: "success",
|
||||
|
||||
Reference in new issue
Block a user