feat(houseofrc): save the club API key server-side and test the connection (1.78.0)

This commit is contained in:
larssand committed 2026-11-07 22:27:13 +01:00
1 parent 7f7af2600d
commit 0c54e8b58a
11 files changed
+280 -4

No files matched your search

+36
View File
@@ -2184,6 +2184,24 @@ const TRANSLATIONS = {
"tts.download": "Hämta",
"tts.downloading": "Hämtar...",
"tts.test_failed": "Kunde inte spela upp den lokala rösten - kontrollera installationen.",
"houseofrc.title": "House of RC",
"houseofrc.hint": "Klubbens API-nyckel från House of RC. Den sparas bara på servern (data/houseofrc.json) och visas aldrig igen, inte ens här.",
"houseofrc.key": "API-nyckel",
"houseofrc.save": "Spara nyckel",
"houseofrc.test": "Testa anslutning",
"houseofrc.testing": "Testar…",
"houseofrc.remove": "Ta bort nyckel",
"houseofrc.remove_confirm": "Ta bort House of RC-nyckeln från servern?",
"houseofrc.state_none": "Ingen nyckel sparad.",
"houseofrc.state_saved": "Nyckel sparad på servern ({hint}).",
"houseofrc.state_env": "Nyckel från miljövariabeln HOUSEOFRC_API_KEY ({hint}).",
"houseofrc.connected": "✅ Ansluten som {name} (id {id}) · {limit} anrop/min",
"houseofrc.err_not_configured": "Ingen nyckel sparad.",
"houseofrc.err_unauthorized": "House of RC godkände inte nyckeln. Kontrollera att den är rätt kopierad.",
"houseofrc.err_rate_limited": "För många anrop. Vänta {seconds} s och försök igen.",
"houseofrc.err_unreachable": "Når inte House of RC. Har servern internet?",
"houseofrc.err_invalid_key": "Det ser inte ut som en API-nyckel.",
"houseofrc.err_other": "House of RC svarade med fel ({status}).",
"auth.title": "Admin-PIN",
"auth.hint": "Skyddar alla ändringar (race, resultat, inställningar, uppdatering) med en PIN. Läsning och publika overlay-/träningslänkar påverkas inte. Inloggningen sparas i webbläsaren i 30 dagar.",
"auth.state_off": "Av - vem som helst på nätverket kan ändra.",
@@ -4336,6 +4354,24 @@ const TRANSLATIONS = {
"tts.download": "Download",
"tts.downloading": "Downloading...",
"tts.test_failed": "Could not play the local voice - check the installation.",
"houseofrc.title": "House of RC",
"houseofrc.hint": "The club's House of RC API key. It is stored on the server only (data/houseofrc.json) and never shown again, not even here.",
"houseofrc.key": "API key",
"houseofrc.save": "Save key",
"houseofrc.test": "Test connection",
"houseofrc.testing": "Testing…",
"houseofrc.remove": "Remove key",
"houseofrc.remove_confirm": "Remove the House of RC key from the server?",
"houseofrc.state_none": "No key saved.",
"houseofrc.state_saved": "Key saved on the server ({hint}).",
"houseofrc.state_env": "Key from the HOUSEOFRC_API_KEY environment variable ({hint}).",
"houseofrc.connected": "✅ Connected as {name} (id {id}) · {limit} requests/min",
"houseofrc.err_not_configured": "No key saved.",
"houseofrc.err_unauthorized": "House of RC rejected the key. Check that it was copied correctly.",
"houseofrc.err_rate_limited": "Too many requests. Wait {seconds} s and try again.",
"houseofrc.err_unreachable": "Can't reach House of RC. Does the server have internet?",
"houseofrc.err_invalid_key": "That doesn't look like an API key.",
"houseofrc.err_other": "House of RC answered with an error ({status}).",
"auth.title": "Admin PIN",
"auth.hint": "Protects every change (races, results, settings, updates) with a PIN. Reading and public overlay/training links are unaffected. The login is remembered in this browser for 30 days.",
"auth.state_off": "Off - anyone on the network can make changes.",