Tidy the dashboard and setup pages, add one-click API keys
Both pages share style.css and a top bar with Dashboard and Setup tabs. The dashboard gains summary tiles, card sections and friendly kind names. The setup page puts each collector in a collapsible section with its own Generate key button, which picks a free name, copies the key and fills it into that collector's steps. Command blocks get Copy buttons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -45,6 +45,7 @@ func New(s *store.Store, admin auth.Checker, loc *time.Location, log *slog.Logge
|
||||
})
|
||||
mux.HandleFunc("GET /readyz", srv.ready)
|
||||
mux.HandleFunc("GET /tracker.user.js", web.UserScript)
|
||||
mux.HandleFunc("GET /style.css", web.Style)
|
||||
mux.Handle("GET /{$}", srv.adminPage(web.Page(web.Index)))
|
||||
mux.Handle("GET /setup", srv.adminPage(web.Page(web.Setup)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user