@page "/Users/{baid:int}/Songs/{songId:int}"
@inject IGameDataService GameDataService
@inject HttpClient Client
@inject LoginService LoginService
@inject NavigationManager NavigationManager
@inject IJSRuntime JSRuntime
@using TaikoWebUI.Utilities;
@if (LoginService.LoginRequired && (!LoginService.IsLoggedIn || (LoginService.GetLoggedInUser().Baid != Baid && !LoginService.IsAdmin)))
{
if (!LoginService.IsLoggedIn)
{
NavigationManager.NavigateTo("/Login");
}
else
{
NavigationManager.NavigateTo("/");
}
}
else
{
if (response is not null)
{
@SongTitle
@SongArtist
Play History
@if (SongBestData is not null && SongBestData.RecentPlayData is not null && SongBestData.RecentPlayData.Count > 0)
{
Play Time
Difficulty
Crown
Rank
Score
Good
Ok
Bad
Drumroll
Max Combo
@context.PlayTime
@context.Score
@context.GoodCount
@context.OkCount
@context.MissCount
@context.DrumrollCount
@context.ComboCount
}
else
{
No recent play data.
}
}
}