feat(api): manage status pages with themes, custom domains and export
Organizations build pages from their monitors, grouped into sections with public names, choose an accent color, logo and CSS, verify custom domains with a TXT record and export a page as one self-contained HTML file. Assignments scoped to a single status page are honored. Closes #21 Closes #23 Closes #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
2b72715a9d
commit
a6126b353e
15 files changed
+2382
-228
No files matched your search
@@ -149,10 +149,12 @@ func TestEveryMailEventHasTexts(t *testing.T) {
|
||||
func TestDynamicFamilies(t *testing.T) {
|
||||
en := catalogKeys(t)["en"]
|
||||
families := map[string][]string{
|
||||
"status.": {"up", "degraded", "down", "unknown", "paused"},
|
||||
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp"},
|
||||
"channels.type_": {"webhook", "email"},
|
||||
"agents.kind_": {"checker", "statuspage"},
|
||||
"status.": {"up", "degraded", "down", "unknown", "paused"},
|
||||
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp"},
|
||||
"channels.type_": {"webhook", "email"},
|
||||
"agents.kind_": {"checker", "statuspage"},
|
||||
"page.status.": {"operational", "degraded", "outage", "unknown"},
|
||||
"page.component.": {"operational", "degraded", "outage", "unknown"},
|
||||
}
|
||||
for prefix, values := range families {
|
||||
for _, v := range values {
|
||||
|
||||
@@ -70,6 +70,8 @@
|
||||
"error.already_member": "Diese Person ist bereits Mitglied.",
|
||||
"error.channel_test_failed": "Die Testbenachrichtigung konnte nicht zugestellt werden.",
|
||||
"error.channel_type_immutable": "Der Typ eines Kanals kann nicht geändert werden.",
|
||||
"error.domain_not_verified": "Der TXT-Eintrag wurde noch nicht gefunden. DNS-Änderungen brauchen manchmal etwas Zeit.",
|
||||
"error.domain_taken": "Diese Domain nutzt bereits eine andere Statuspage.",
|
||||
"error.email_not_configured": "E-Mail ist auf diesem Server nicht verfügbar.",
|
||||
"error.email_taken": "Diese E-Mail-Adresse ist bereits registriert.",
|
||||
"error.forbidden": "Dafür fehlt dir die Berechtigung.",
|
||||
@@ -84,6 +86,7 @@
|
||||
"error.invalid_input": "Eingaben prüfen.",
|
||||
"error.invalid_interval": "Das Intervall muss mindestens {{.Min}} Sekunden und höchstens einen Tag betragen.",
|
||||
"error.invalid_method": "Nur GET- und HEAD-Anfragen werden unterstützt.",
|
||||
"error.invalid_monitor": "Einer der Monitore existiert nicht oder ist doppelt aufgeführt.",
|
||||
"error.invalid_permissions": "Mindestens eine Berechtigung auswählen.",
|
||||
"error.invalid_record": "Nicht unterstützter DNS-Record-Typ.",
|
||||
"error.invalid_region": "Unbekannte Region.",
|
||||
@@ -91,6 +94,7 @@
|
||||
"error.invalid_resolver": "Der Resolver muss als host:port angegeben werden.",
|
||||
"error.invalid_slug": "Kurzname: 2–63 Zeichen, a–z, 0–9 und Bindestrich.",
|
||||
"error.invalid_target": "Das Ziel passt nicht zu diesem Check-Typ.",
|
||||
"error.invalid_theme": "Die Theme-Einstellungen sind ungültig: Akzent als #rrggbb, Logo als https-URL, CSS ohne \"</\".",
|
||||
"error.invalid_timeout": "Der Timeout muss zwischen 100 ms und 60 s liegen und kürzer als das Intervall sein.",
|
||||
"error.invalid_type": "Unbekannter Check-Typ.",
|
||||
"error.invalid_webhook_url": "Die Webhook-URL muss eine https-URL ohne Zugangsdaten sein.",
|
||||
@@ -98,6 +102,7 @@
|
||||
"error.invitation_invalid": "Diese Einladung ist ungültig, abgelaufen oder wurde bereits verwendet.",
|
||||
"error.keyword_needs_get": "Keyword-Checks brauchen GET-Anfragen.",
|
||||
"error.mfa_expired": "Anmeldung abgelaufen, bitte erneut anmelden.",
|
||||
"error.no_domain": "Lege zuerst eine eigene Domain fest.",
|
||||
"error.no_password": "Konto ohne Passwort.",
|
||||
"error.not_found": "Nicht gefunden.",
|
||||
"error.org_not_found": "Organisation nicht gefunden.",
|
||||
@@ -207,6 +212,49 @@
|
||||
"org.token_max_days": "Maximale Gültigkeit von API-Tokens (Tage)",
|
||||
"org.token_max_days_hint": "Neue Tokens müssen innerhalb dieses Zeitraums ablaufen. Beim Speichern werden bestehende Tokens gekürzt, die länger gelten würden. Leer lassen für keine Begrenzung.",
|
||||
"org.token_max_days_none": "unbegrenzt",
|
||||
"page.component.degraded": "Eingeschränkt",
|
||||
"page.component.operational": "In Betrieb",
|
||||
"page.component.outage": "Störung",
|
||||
"page.component.unknown": "Keine Daten",
|
||||
"page.days_ago": {
|
||||
"one": "vor {{.Count}} Tag",
|
||||
"other": "vor {{.Count}} Tagen"
|
||||
},
|
||||
"page.incidents": "Letzte Vorfälle",
|
||||
"page.no_incidents": "Keine Vorfälle in den letzten 14 Tagen.",
|
||||
"page.status.degraded": "Einige Systeme haben Probleme",
|
||||
"page.status.operational": "Alle Systeme funktionieren",
|
||||
"page.status.outage": "Größere Störung",
|
||||
"page.status.unknown": "Status derzeit nicht verfügbar",
|
||||
"page.today": "Heute",
|
||||
"page.updated": "Aktualisiert {{.Time}}",
|
||||
"pages.accent": "Akzentfarbe (#rrggbb)",
|
||||
"pages.components": "Monitore auf dieser Seite",
|
||||
"pages.create": "Statuspage anlegen",
|
||||
"pages.css": "Eigenes CSS",
|
||||
"pages.delete": "Statuspage löschen",
|
||||
"pages.delete_confirm": "Diese Statuspage löschen?",
|
||||
"pages.description": "Beschreibung",
|
||||
"pages.domain": "Eigene Domain",
|
||||
"pages.domain_cname": "Richte die Domain (CNAME oder A-Record) auf deinen Statuspage-Server; er holt sich automatisch ein Zertifikat, wenn TLS aktiviert ist.",
|
||||
"pages.domain_instructions": "Lege diesen DNS-Eintrag an und prüfe ihn dann. Nur geprüfte Domains werden ausgeliefert.",
|
||||
"pages.domain_name": "Domain",
|
||||
"pages.domain_verified": "Domain geprüft.",
|
||||
"pages.draft": "Entwurf",
|
||||
"pages.export": "Als HTML exportieren",
|
||||
"pages.intro": "Öffentliche Seiten mit dem Zustand ausgewählter Monitore. Jede Seite kann eine eigene Domain nutzen oder als einzelne HTML-Datei exportiert werden.",
|
||||
"pages.label": "Öffentlicher Name",
|
||||
"pages.logo": "Logo-URL (https)",
|
||||
"pages.open": "Öffnen",
|
||||
"pages.page_title": "Titel",
|
||||
"pages.published": "Veröffentlicht",
|
||||
"pages.section": "Abschnitt",
|
||||
"pages.settings": "Einstellungen",
|
||||
"pages.slug": "Kurzname (URL)",
|
||||
"pages.theme": "Theme",
|
||||
"pages.title": "Statuspages",
|
||||
"pages.value": "Wert",
|
||||
"pages.verify": "Prüfen",
|
||||
"perm.incidents.read": "Incidents sehen",
|
||||
"perm.incidents.write": "Incidents verwalten",
|
||||
"perm.members.manage": "Mitglieder einladen und verwalten",
|
||||
|
||||
@@ -70,6 +70,8 @@
|
||||
"error.already_member": "This person is already a member.",
|
||||
"error.channel_test_failed": "The test notification could not be delivered.",
|
||||
"error.channel_type_immutable": "The type of a channel cannot be changed.",
|
||||
"error.domain_not_verified": "The TXT record was not found yet. DNS changes can take a while to appear.",
|
||||
"error.domain_taken": "This domain is already used by another status page.",
|
||||
"error.email_not_configured": "Email is not available on this server.",
|
||||
"error.email_taken": "This email address is already registered.",
|
||||
"error.forbidden": "You are not allowed to do this.",
|
||||
@@ -84,6 +86,7 @@
|
||||
"error.invalid_input": "Please check your input.",
|
||||
"error.invalid_interval": "The interval must be at least {{.Min}} seconds and at most one day.",
|
||||
"error.invalid_method": "Only GET and HEAD requests are supported.",
|
||||
"error.invalid_monitor": "One of the monitors does not exist or is listed twice.",
|
||||
"error.invalid_permissions": "Choose at least one permission.",
|
||||
"error.invalid_record": "Unsupported DNS record type.",
|
||||
"error.invalid_region": "Unknown region.",
|
||||
@@ -91,6 +94,7 @@
|
||||
"error.invalid_resolver": "The resolver must be given as host:port.",
|
||||
"error.invalid_slug": "Short name: 2–63 characters, a–z, 0–9 and hyphen.",
|
||||
"error.invalid_target": "The target is not valid for this check type.",
|
||||
"error.invalid_theme": "The theme settings are not valid: accent as #rrggbb, logo as https URL, CSS without \"</\".",
|
||||
"error.invalid_timeout": "The timeout must be between 100 ms and 60 s and shorter than the interval.",
|
||||
"error.invalid_type": "Unknown check type.",
|
||||
"error.invalid_webhook_url": "The webhook URL must be an https URL without credentials.",
|
||||
@@ -98,6 +102,7 @@
|
||||
"error.invitation_invalid": "This invitation is invalid, expired or was already used.",
|
||||
"error.keyword_needs_get": "Keyword checks need GET requests.",
|
||||
"error.mfa_expired": "Sign-in expired, please start again.",
|
||||
"error.no_domain": "Set a custom domain first.",
|
||||
"error.no_password": "This account has no password.",
|
||||
"error.not_found": "Not found.",
|
||||
"error.org_not_found": "Organization not found.",
|
||||
@@ -207,6 +212,49 @@
|
||||
"org.token_max_days": "Maximum API token lifetime (days)",
|
||||
"org.token_max_days_hint": "New tokens must expire within this period. Saving shortens existing tokens that would outlive it. Leave empty for no limit.",
|
||||
"org.token_max_days_none": "unlimited",
|
||||
"page.component.degraded": "Degraded",
|
||||
"page.component.operational": "Operational",
|
||||
"page.component.outage": "Outage",
|
||||
"page.component.unknown": "No data",
|
||||
"page.days_ago": {
|
||||
"one": "{{.Count}} day ago",
|
||||
"other": "{{.Count}} days ago"
|
||||
},
|
||||
"page.incidents": "Recent incidents",
|
||||
"page.no_incidents": "No incidents in the last 14 days.",
|
||||
"page.status.degraded": "Some systems are experiencing problems",
|
||||
"page.status.operational": "All systems operational",
|
||||
"page.status.outage": "Major outage",
|
||||
"page.status.unknown": "Status currently unavailable",
|
||||
"page.today": "Today",
|
||||
"page.updated": "Updated {{.Time}}",
|
||||
"pages.accent": "Accent color (#rrggbb)",
|
||||
"pages.components": "Monitors on this page",
|
||||
"pages.create": "Create status page",
|
||||
"pages.css": "Custom CSS",
|
||||
"pages.delete": "Delete status page",
|
||||
"pages.delete_confirm": "Delete this status page?",
|
||||
"pages.description": "Description",
|
||||
"pages.domain": "Custom domain",
|
||||
"pages.domain_cname": "Point the domain (CNAME or A record) at your status page server; it obtains a certificate automatically when TLS is enabled.",
|
||||
"pages.domain_instructions": "Create this DNS record, then verify. Only verified domains are served.",
|
||||
"pages.domain_name": "Domain",
|
||||
"pages.domain_verified": "Domain verified.",
|
||||
"pages.draft": "draft",
|
||||
"pages.export": "Export as HTML",
|
||||
"pages.intro": "Public pages showing the state of selected monitors. Each page can use its own domain or be exported as a single HTML file.",
|
||||
"pages.label": "Public name",
|
||||
"pages.logo": "Logo URL (https)",
|
||||
"pages.open": "Open",
|
||||
"pages.page_title": "Title",
|
||||
"pages.published": "Published",
|
||||
"pages.section": "Section",
|
||||
"pages.settings": "Settings",
|
||||
"pages.slug": "Short name (URL)",
|
||||
"pages.theme": "Theme",
|
||||
"pages.title": "Status pages",
|
||||
"pages.value": "Value",
|
||||
"pages.verify": "Verify",
|
||||
"perm.incidents.read": "View incidents",
|
||||
"perm.incidents.write": "Manage incidents",
|
||||
"perm.members.manage": "Invite and manage members",
|
||||
|
||||
Reference in new issue
Block a user