mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-16 05:23:30 +01:00
ADD MORE OPTIONS
This commit is contained in:
parent
2d1077d911
commit
be075faeb8
2 changed files with 48 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue