feat: add device token management UI

- Display sync URLs for Kobo devices with copy button
- Display auth tokens for KOReader devices with copy button
- Add regenerate token button with confirmation
- Show warning about token invalidation
This commit is contained in:
2026-02-13 12:12:38 -05:00
parent b1fcf2ce95
commit e9cd445ff3
3 changed files with 158 additions and 50 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ func registerFrontendRoutes(cfg *Config) {
}
pendingList := convertPending(pendingMaps)
var buf bytes.Buffer
err = templates.Devices(user, devices, pendingList).Render(c.Request().Context(), &buf)
err = templates.Devices(user, devices, pendingList, cfg.Cfg.BaseURL).Render(c.Request().Context(), &buf)
if err != nil {
return err
}