feat: initial Blocky widget for Homepage dashboard

Parses Blocky's /metrics (Prometheus text) endpoint to show:
- Blocking status (Enabled/Disabled)
- Blocked domains count (denylist entries)
- Total queries served
- Cache hit rate %

No REST stats endpoint exists in Blocky, so the proxy handler
fetches and parses the Prometheus text format directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alkim Ake Gozen 2026-05-21 11:59:09 +09:00
commit cc34c22aa5
7 changed files with 227 additions and 0 deletions

10
translations/en.json Normal file
View file

@ -0,0 +1,10 @@
{
"blocky": {
"status": "Status",
"enabled": "Enabled",
"disabled": "Disabled",
"domains": "Blocked Domains",
"queries": "Total Queries",
"cacheHitRate": "Cache Hit Rate"
}
}