From 827458562b8dda2f4eafadd23b3e377f542dbd52 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 25 Feb 2026 17:15:20 -0700 Subject: [PATCH] update snake and add about this server to system general --- .../shared/src/i18n/dictionaries/de.ts | 5 + .../shared/src/i18n/dictionaries/en.ts | 5 + .../shared/src/i18n/dictionaries/es.ts | 5 + .../shared/src/i18n/dictionaries/fr.ts | 5 + .../shared/src/i18n/dictionaries/pl.ts | 5 + .../routes/general/general.component.ts | 24 +- .../system/routes/general/snek.component.ts | 566 +++++++++++------- .../system/routes/general/snek.directive.ts | 1 + 8 files changed, 407 insertions(+), 209 deletions(-) diff --git a/web/projects/shared/src/i18n/dictionaries/de.ts b/web/projects/shared/src/i18n/dictionaries/de.ts index c42960195..c2b86f7c0 100644 --- a/web/projects/shared/src/i18n/dictionaries/de.ts +++ b/web/projects/shared/src/i18n/dictionaries/de.ts @@ -696,4 +696,9 @@ export default { 766: 'Ihr Server ist jetzt erreichbar unter', 767: 'Servername', 768: 'Adressanforderungen', + 769: 'Version, Root-CA und mehr', + 770: 'Details', + 771: 'Spiel vorbei', + 772: 'Beliebige Taste drücken oder tippen zum Starten', + 773: 'Beliebige Taste drücken oder tippen zum Neustarten', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/en.ts b/web/projects/shared/src/i18n/dictionaries/en.ts index f8b4452c5..474ff8ba9 100644 --- a/web/projects/shared/src/i18n/dictionaries/en.ts +++ b/web/projects/shared/src/i18n/dictionaries/en.ts @@ -696,4 +696,9 @@ export const ENGLISH: Record = { 'Your server is now reachable at': 766, 'Server Name': 767, 'Address Requirements': 768, + 'Version, Root CA, and more': 769, + 'Details': 770, + 'Game Over': 771, + 'Press any key or tap to start': 772, + 'Press any key or tap to play again': 773, } diff --git a/web/projects/shared/src/i18n/dictionaries/es.ts b/web/projects/shared/src/i18n/dictionaries/es.ts index af7b6a939..bc810e9ea 100644 --- a/web/projects/shared/src/i18n/dictionaries/es.ts +++ b/web/projects/shared/src/i18n/dictionaries/es.ts @@ -696,4 +696,9 @@ export default { 766: 'Su servidor ahora es accesible en', 767: 'Nombre del servidor', 768: 'Requisitos de dirección', + 769: 'Versión, CA raíz y más', + 770: 'Detalles', + 771: 'Fin del juego', + 772: 'Pulsa cualquier tecla o toca para empezar', + 773: 'Pulsa cualquier tecla o toca para jugar de nuevo', } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/fr.ts b/web/projects/shared/src/i18n/dictionaries/fr.ts index b5d124e70..b0945e9f5 100644 --- a/web/projects/shared/src/i18n/dictionaries/fr.ts +++ b/web/projects/shared/src/i18n/dictionaries/fr.ts @@ -696,4 +696,9 @@ export default { 766: 'Votre serveur est maintenant accessible à', 767: 'Nom du serveur', 768: "Exigences de l'adresse", + 769: 'Version, CA racine et plus', + 770: 'Détails', + 771: 'Partie terminée', + 772: "Appuyez sur une touche ou touchez l'écran pour commencer", + 773: "Appuyez sur une touche ou touchez l'écran pour rejouer", } satisfies i18n diff --git a/web/projects/shared/src/i18n/dictionaries/pl.ts b/web/projects/shared/src/i18n/dictionaries/pl.ts index 8b699cb55..95a5f356d 100644 --- a/web/projects/shared/src/i18n/dictionaries/pl.ts +++ b/web/projects/shared/src/i18n/dictionaries/pl.ts @@ -696,4 +696,9 @@ export default { 766: 'Twój serwer jest teraz dostępny pod adresem', 767: 'Nazwa serwera', 768: 'Wymagania adresu', + 769: 'Wersja, Root CA i więcej', + 770: 'Szczegóły', + 771: 'Koniec gry', + 772: 'Naciśnij dowolny klawisz lub dotknij, aby rozpocząć', + 773: 'Naciśnij dowolny klawisz lub dotknij, aby zagrać ponownie', } satisfies i18n diff --git a/web/projects/ui/src/app/routes/portal/routes/system/routes/general/general.component.ts b/web/projects/ui/src/app/routes/portal/routes/system/routes/general/general.component.ts index 6dc7a0fb4..e9509a2fc 100644 --- a/web/projects/ui/src/app/routes/portal/routes/system/routes/general/general.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/system/routes/general/general.component.ts @@ -48,6 +48,7 @@ import { ApiService } from 'src/app/services/api/embassy-api.service' import { OSService } from 'src/app/services/os.service' import { DataModel } from 'src/app/services/patch-db/data-model' import { TitleDirective } from 'src/app/services/title.service' +import { ABOUT } from 'src/app/routes/portal/components/header/about.component' import { SnekDirective } from './snek.directive' import { UPDATE } from './update.component' import { KeyboardSelectComponent } from './keyboard-select.component' @@ -62,18 +63,29 @@ import { ServerNameDialog } from './server-name.dialog' {{ 'General Settings' | i18n }} @if (server(); as server) { +
+ + + {{ 'About this server' | i18n }} + + {{ 'Version, Root CA, and more' | i18n }} + + + +
- {{ 'Software Update' | i18n }} - - {{ server.version }} + + {{ 'Software Update' | i18n }} @if (os.showUpdate$ | async) { {{ 'Update available' | i18n }} } - +