linuxrouter/docker/routlin-dash/app/pages/overview/content.json
2026-06-09 21:28:38 -04:00

109 lines
2.6 KiB
JSON

{
"client_requirement": "client_is_nothing+",
"items": [
{
"type": "auth_wrapper",
"client_requirement": "client_is_nothing=",
"items": [
{
"type": "auth_card",
"items": [
{
"type": "h1",
"text": "Routlin Dashboard"
},
{
"type": "p",
"text": "Log in to monitor and manage your network."
},
{
"type": "spacer"
},
{
"type": "button_primary",
"action": "/accountlogin",
"text": "Log In"
}
]
}
]
},
{
"type": "header_page_title",
"client_requirement": "client_is_viewer+",
"items": [
{
"type": "h1",
"text": "Overview"
},
{
"type": "p",
"text": "Current network status at a glance."
}
]
},
{
"type": "stat_card_grid",
"client_requirement": "client_is_viewer+",
"items": [
{
"type": "stat_card",
"label": "DHCP Leases",
"value": "%STAT_LEASE_COUNT%",
"sub": "%STAT_LEASES_LINK%",
"variant": "accent"
},
{
"type": "stat_card",
"label": "DNS Queries",
"value": "%DNS_STAT_QUERIES%",
"sub": "since %DNS_METRICS_SINCE%"
},
{
"type": "stat_card",
"label": "DNS Cache",
"value": "%DNS_STAT_HITS% (%DNS_STAT_HIT_RATE% hit rate)",
"sub": "cache size: %DNS_CACHE_SIZE%, evictions: %DNS_STAT_CACHE_EVICTIONS%"
},
{
"type": "stat_card",
"label": "Queries Blocked",
"value": "%STAT_BLOCKED_ALLTIME%",
"sub": "all time",
"variant": "warning",
"data_requirement": "HAS_QUERY_LOGGING"
},
{
"type": "stat_card",
"label": "Public IP",
"value": "%STAT_PUBLIC_IP%",
"sub": "%STAT_DDNS_HOSTNAME%"
}
]
},
{
"type": "card",
"label": "Blocked Domains",
"client_requirement": "client_is_viewer+",
"data_requirement": "HAS_QUERY_LOGGING",
"items": [
{
"type": "raw_html",
"html": "%BLOCKED_DOMAINS_TABLE%"
}
]
},
{
"type": "card",
"label": "Client Activity",
"client_requirement": "client_is_viewer+",
"data_requirement": "HAS_QUERY_LOGGING",
"items": [
{
"type": "raw_html",
"html": "%CLIENT_ACTIVITY_TABLE%"
}
]
}
]
}