Track Gallery front end

- For now uses a table but will replace with graphical media cards
This commit is contained in:
2025-09-01 16:50:08 -04:00
parent 3d79df725c
commit f0d60190cc
9 changed files with 176 additions and 60 deletions
@@ -0,0 +1,34 @@
using DeepDrftModels.Entities;
using DeepDrftModels.Models;
using DeepDrftWeb.Client.Clients;
namespace DeepDrftWeb.Client.ViewModels;
public class TrackGalleryViewModel
{
public TrackClient TrackClient { get; }
// private int _pageNumber = 1;
public int PageNumber { get; set; } = 1;
public int PageSize
{
get => Page?.PageSize ?? 15;
set
{
if (Page == null) throw new Exception();
if (value != Page.PageSize)
{
Page.PageSize = value;
}
}
}
public string SortBy { get; set; } = string.Empty;
public bool IsDescending { get; set; } = false;
public PagedResult<TrackEntity>? Page { get; set; } = null;
public TrackGalleryViewModel(TrackClient trackClient)
{
TrackClient = trackClient;
}
}