Commit Graph

3 Commits

Author SHA1 Message Date
primal
1a627ea8de Add templates.go - HTML templates and handlers
Migrated from app/templates.go:
- PDSAccount type
- handleAccountsDirectory - public accounts listing page
- handleDashboard - main dashboard page
- handleAPIStats - JSON stats endpoint
- accountsDirectoryHTML and dashboardHTML templates

Note: handleRedirect not migrated - belongs in shortener service.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 12:44:21 -05:00
primal
a998168c59 Add dashboard.go - stats types and calculation
Migrated from app/dashboard.go:
- Dashboard struct with DB connection and stats caching
- DashboardStats, TLDStat, RecentFeed, DomainStat types
- Stats calculation methods (collectDomainStats, collectFeedStats)
- Background stats update loop

Note: Runtime rates (domains/min, etc.) not available in standalone
dashboard - these are crawler-specific metrics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 12:42:17 -05:00
primal
94d2e725f5 Initial dashboard service scaffold
Infrastructure files for standalone dashboard service.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 12:39:13 -05:00