@inherits LoadedLayout @inject ShellData Shell @inject NavigationManager Navigation @* The shell of SPEC 13.4: menu on the left (collapsible, remembered), top bar with state and commands, on phones a bottom bar with five entries. Rendered on the server; app.js keeps state and freshness live over the WebSocket. *@
Anubis @_shell.BotShort

@Menu.Title(_path)

@_shell.Now. Dati aggiornati @Format.Ago(TimeSpan.FromSeconds(_shell.AgeSeconds)).

@_shell.BotLabel Simulazione: nessun soldo reale
@if (_shell.Bot == "paused") {
} else if (_shell.Bot == "active") {
}
Simulazione: nessun soldo reale
@Body
@if (Shell.IsDemo) {

Modalità dimostrativa. Numeri, titoli e notizie sono dati di esempio.

} else {

Anubis @AnubisInfo.Version

}
@code { private ShellSnapshot _shell = null!; private string _path = "/"; private string _back = "/"; [CascadingParameter] public HttpContext? HttpContext { get; set; } protected override async Task LoadAsync() { _shell = await Shell.SnapshotAsync(HttpContext?.RequestAborted ?? CancellationToken.None); var uri = new Uri(Navigation.Uri); _path = uri.AbsolutePath; _back = uri.PathAndQuery; } private bool IsActive(string path) => path == "/" ? _path == "/" : _path.StartsWith(path, StringComparison.Ordinal); }