@inject HttpClient Client; @inject Blazored.LocalStorage.ILocalStorageService LocalStorage; @using Microsoft.Extensions.Options; @using TaikoWebUI.Settings; @using TaikoWebUI.Utilities; @Localizer["Leaderboard"] @foreach (var difficulty in Enum.GetValues(typeof(Difficulty))) { if ((Difficulty)difficulty == Difficulty.None) { continue; }
@difficulty.ToString()
}
@if (response == null || response.LeaderboardData.Count == 0) { @Localizer["No Data"] } else { @Localizer["Rank"] @Localizer["Player"] @Localizer["Score"] @Localizer["Crown"] @Localizer["Rank"] @if (@context.Rank > 0 && @context.BestScore > 0) { @context.Rank @context.UserName (@Localizer["ID"]: @context.Baid) @context.BestScore @(ScoreUtils.GetCrownText(context.BestCrown)) @if (context.BestScoreRank is not ScoreRank.None) { @(ScoreUtils.GetRankText(context.BestScoreRank)) } else { } } else { ... } @if (TotalPages > 1 && isPaginationEnabled) {
} }