@inject IGameDataService GameDataService
@inject HttpClient Client
@inject AuthService AuthService
@inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager
@inject Blazored.LocalStorage.ILocalStorageService LocalStorage
@using TaikoWebUI.Utilities;
@page "/Users/{baid:int}/HighScores"
@Localizer["High Scores"]
@if (response is null)
{
}
else
{
@if (AuthService.LoginRequired && (!AuthService.IsLoggedIn || (AuthService.GetLoggedInBaid() != Baid && !AuthService.IsAdmin)))
{
if (!AuthService.IsLoggedIn)
{
NavigationManager.NavigateTo("/Login");
}
else
{
NavigationManager.NavigateTo("/");
}
}
else
{
@foreach (var difficulty in Enum.GetValues())
{
@if (difficulty is not Difficulty.None)
{
@if (songBestDataMap.TryGetValue(difficulty, out var value))
{
// Rows per page 25
@Localizer["Song Name"]
@Localizer["Level"]
@Localizer["Genre"]
@Localizer["Best Score"]
@Localizer["Best Crown"]
@Localizer["Best Rank"]
@Localizer["Good"]
@Localizer["OK"]
@Localizer["Bad"]
@Localizer["Drumroll"]
@Localizer["MAX Combo"]
@Localizer["Last Played"]
@Localizer["Total Plays"]
@Localizer["Total Clears"]
@Localizer["Total Full Combos"]
@Localizer["Total Donderful Combos"]
@GameDataService.GetMusicStarLevel(context.SongId, difficulty)
@ScoreUtils.GetGenreTitle(context.Genre)
@context.BestScore
@if (context.BestScoreRank is not ScoreRank.None)
{
}
@context.GoodCount
@context.OkCount
@context.MissCount
@context.DrumrollCount
@context.ComboCount
@context.LastPlayTime
@context.PlayCount
@context.ClearCount
@context.FullComboCount
@context.PerfectCount
}
else
{
No data for selected difficulty.
}
}
}
}
}