@using Blazored.LocalStorage @using TaikoWebUI.Utilities; @inject IGameDataService GameDataService @inject HttpClient Client @inject AuthService AuthService @inject ILocalStorageService LocalStorage @inject NavigationManager NavigationManager @page "/Users/{baid:int}/Songs" @Localizer["Song List"] @if (response is null) { } else { @if (AuthService.LoginRequired && (!AuthService.IsLoggedIn || (AuthService.GetLoggedInBaid() != Baid && !AuthService.IsAdmin))) { NavigationManager.NavigateTo(AuthService.IsLoggedIn ? "/" : "/Login"); } else { @foreach (var genre in Enum.GetValues(typeof(SongGenre))) { var genreValue = (SongGenre)genre; @ScoreUtils.GetGenreTitle(genreValue) } @Localizer["Song Title / Artist"] @Localizer["Genre"] @foreach (var difficulty in Enum.GetValues()) { @if (difficulty is not Difficulty.None) { @ScoreUtils.GetDifficultyTitle(difficulty) } }
@ScoreUtils.GetGenreTitle(context.Genre) @foreach (var difficulty in Enum.GetValues()) { @if (difficulty is not Difficulty.None) { var starLevel = GameDataService.GetMusicStarLevel(musicDetailDictionary, context.SongId, difficulty); @if (starLevel > 0) { @starLevel } else { - } } }
} }