@inject IGameDataService GameDataService
@inject HttpClient Client
@inject AuthService AuthService
@inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager
@using TaikoWebUI.Utilities;
@using TaikoWebUI.Shared.Models;
@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.GetGenreTitle(context.Genre)
@foreach (var difficulty in Enum.GetValues())
{
@if (difficulty is not Difficulty.None)
{
var starLevel = GameDataService.GetMusicStarLevel(context.SongId, difficulty);
@if (starLevel > 0)
{
@starLevel
}
else
{
-
}
}
}
}
}