Files
Anubis/src/Anubis.Server/Components/ServiceText.cs
T
Alby96andClaude Opus 5.5 1bc7e067fd
ci / test (postgres) (push) Successful in 4m50s
ci / test (sqlite) (push) Failing after 4m21s
ci / image (push) Skipped
Fase 10 — Nuova rotta: solo Docker (#184)
ADR 0021-0026 for the new course of 2 December 2026, roadmap of phases 10-24. The desktop application is gone: Docker is the only form, and outside a container the server runs only for development and tests with --data-dir, on this computer only. Lighter image (829 MB to 410 MB), rotating logs, backtest and learning as one-shot commands.

refs #113 #114 #115 #78 #80 #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
2026-12-03 19:59:00 +01:00

31 lines
1.3 KiB
C#

namespace Anubis.Server;
/// <summary>Titles of the service page, also used in plain answers while the application is not ready.</summary>
internal static class ServiceText
{
public static string Title(HostMode mode) => mode switch
{
HostMode.Starting => "Anubis si sta avviando",
HostMode.ConfigProblem => "Manca qualcosa nella configurazione d'avvio",
HostMode.DatabaseUnavailable => "Il database non risponde",
HostMode.SchemaProblem => "Il database non è compatibile con questa versione",
HostMode.IdentityProblem => "Il database non è quello di questa installazione",
_ => "Anubis",
};
}
/// <summary>Messages of the password forms.</summary>
internal static class PasswordMessages
{
public static string? For(string? code) => code switch
{
"diverse" => "Le due password non coincidono. Scrivile di nuovo.",
"corta" => $"La password è troppo corta: servono almeno {Access.Passwords.MinimumLength} caratteri.",
"uguale" => "La nuova password deve essere diversa da quella iniziale.",
"attuale" => "La password attuale non è giusta.",
"attesa" => "Troppi tentativi sbagliati: aspetta 15 minuti e riprova.",
"demo" => "Nella modalità dimostrativa la password non si cambia.",
_ => null,
};
}