Add ntfy Basic auth, sign-out button, config-only credentials

- ntfy client supports HTTP Basic auth (username/password) for servers with
  access control; [ntfy] config gains username/password. Scheduler + Test Ntfy
  use it instead of the old settings-only bearer token.
- Settings page no longer has credential inputs (Apify/eBay/ntfy/Resend); they
  are managed in config.toml. Read-only status + Test buttons remain.
- Sidebar gains a Sign out button; in forward-auth mode it routes through the
  Authentik outpost sign_out so the IdP session is cleared.
This commit is contained in:
prosolis
2026-06-20 14:56:24 -07:00
parent 4fb1a4553e
commit 72f4bdd88a
11 changed files with 166 additions and 118 deletions

View File

@@ -31,7 +31,7 @@ templ head(title string) {
</head>
}
templ Sidebar(active string) {
templ Sidebar(active, csrf string) {
<nav class="v-side-nav flex flex-col">
<a href="/" class="v-side-brand px-4 py-5 flex items-center gap-2">
<span class="text-2xl">🐝</span>
@@ -41,7 +41,11 @@ templ Sidebar(active string) {
<a href="/items" class={ navClass("items", active) }>Items</a>
<a href="/results" class={ navClass("results", active) }>Results</a>
<a href="/settings" class={ navClass("settings", active) }>Settings</a>
<div class="mt-auto px-4 py-4 v-muted text-xs">
<form method="post" action="/logout" class="mt-auto">
@CSRFInput(csrf)
<button type="submit" class="v-side-signout">Sign out</button>
</form>
<div class="px-4 py-4 v-muted text-xs">
Track. Watch. Notice.
</div>
</nav>
@@ -59,7 +63,7 @@ templ Layout(p Page, body templ.Component) {
<html lang="en">
@head(p.Title)
<body class="min-h-screen flex">
@Sidebar(p.Active)
@Sidebar(p.Active, p.CSRFToken)
<main class="flex-1 p-6 max-w-6xl">
if p.Flash != "" {
<div class="v-flash">{ p.Flash }</div>