ADD MORE OPTIONS

This commit is contained in:
Zhaoxuan Chen 2025-08-13 07:46:24 +08:00
parent 2d1077d911
commit be075faeb8
2 changed files with 48 additions and 1 deletions

View file

@ -49,7 +49,7 @@ export default {
'status-up': status === 'up' || status === 'online',
'status-warn': status === 'warn' || status === 'warning',
'status-down': status === 'down' || status === 'offline',
'status-unknown': true, //
'status-unknown': status === 'unknown' || (!status),
};
},
metrics() {

View file

@ -58,5 +58,52 @@ sections:
metrics:
- label: "Latency"
value: "23ms"
- type: compact-glance
options:
title: "Database"
icon: "fas fa-database"
status: "up"
link: "https://www.baidu.com"
metrics:
- label: "Connections"
value: "45"
- type: compact-glance
options:
title: "Backup Service"
icon: "fas fa-cloud"
status: "warn"
link: "https://www.google.com"
metrics:
- label: "Last Backup"
value: "2h ago"
- type: compact-glance
options:
title: "Monitoring"
icon: "fas fa-chart-line"
status: "up"
link: "https://github.com"
metrics:
- label: "Alerts"
value: "0"
- type: compact-glance
options:
title: "File Server"
icon: "fas fa-folder"
status: "down"
link: "https://stackoverflow.com"
metrics:
- label: "Status"
value: "Offline"
- type: compact-glance
options:
title: "Mail Server"
icon: "fas fa-envelope"
status: "up"
link: "https://www.bilibili.com"