@inject HttpClient Client; @inject Blazored.LocalStorage.ILocalStorageService LocalStorage; @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["NoData"] } else { @Localizer["Rank"] @Localizer["Player"] @Localizer["Score"] @Localizer["Rank"] @Localizer["Crown"] @context.Rank @context.UserName (@Localizer["ID"]: @context.Baid) @context.BestScore @if (context.BestScoreRank is not ScoreRank.None) { @(ScoreUtils.GetRankText(context.BestScoreRank)) } else { } @(ScoreUtils.GetCrownText(context.BestCrown)) }