feat: add dashboard view with real-time finding statistics and charts

This commit is contained in:
2026-07-17 09:23:01 +01:00
parent ca2d6d05d4
commit 94dbd610e1
7 changed files with 259 additions and 4 deletions
+18
View File
@@ -45,3 +45,21 @@ type NucleiFinding struct {
MatchedAt string `json:"matched-at"`
Timestamp string `json:"timestamp"`
}
type TrendPoint struct {
Date string `json:"date"`
Count int `json:"count"`
}
type HostCount struct {
Host string `json:"host"`
Count int `json:"count"`
}
type DashboardStats struct {
TotalTargets int `json:"total_targets"`
TotalScans int `json:"total_scans"`
Severity map[string]int `json:"severity"`
TopHosts []HostCount `json:"top_hosts"`
RecentTrends []TrendPoint `json:"recent_trends"`
}