Rework select component (#14)

Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
2025-04-14 09:01:50 +02:00
parent 225e8ba140
commit 3d713d5749
44 changed files with 577 additions and 604 deletions

View File

@@ -2,9 +2,9 @@
public class CategoriesDto
{
public IEnumerable<PlatformDto>? Platforms { get; set; }
public IEnumerable<PropertyDto>? Properties { get; set; }
public IEnumerable<TagDto>? Tags { get; set; }
public IEnumerable<DeveloperDto>? Developers { get; set; }
public IEnumerable<PublisherDto>? Publishers { get; set; }
public List<PlatformDto>? Platforms { get; set; }
public List<PropertyDto>? Properties { get; set; }
public List<TagDto>? Tags { get; set; }
public List<DeveloperDto>? Developers { get; set; }
public List<PublisherDto>? Publishers { get; set; }
}

View File

@@ -14,9 +14,9 @@ public class GameDto
public double? StorageSpace { get; set; }
public string? Description { get; set; }
public int Interest { get; set; } = 3;
public IEnumerable<PlatformDto>? Platforms { get; set; }
public IEnumerable<PropertyDto>? Properties { get; set; }
public IEnumerable<TagDto>? Tags { get; set; }
public IEnumerable<PublisherDto>? Publishers { get; set; }
public IEnumerable<DeveloperDto>? Developers { get; set; }
public List<PlatformDto>? Platforms { get; set; }
public List<PropertyDto>? Properties { get; set; }
public List<TagDto>? Tags { get; set; }
public List<PublisherDto>? Publishers { get; set; }
public List<DeveloperDto>? Developers { get; set; }
}

View File

@@ -1,16 +1,19 @@
namespace GameIdeas.Shared.Dto;

namespace GameIdeas.Shared.Dto;
public class GameFilterDto
{
public IEnumerable<string>? Platforms { get; set; }
public string? Name { get; set; }
public IEnumerable<string>? Tags { get; set; }
public IEnumerable<string>? Properties { get; set; }
public int? MinInterest { get; set; }
public int? MaxInterest { get; set; }
public IEnumerable<int>? ReleaseYears { get; set; }
public IEnumerable<int>? PublisherIds { get; set; }
public IEnumerable<int>? DeveloperIds { get; set; }
public IEnumerable<int>? CreationUserIds { get; set; }
public IEnumerable<int>? ModificationUserIds { get; set; }
public SortTypeDto? SortType { get; set; }
public SortPropertyDto? SortProperty { get; set; }
public string? Title { get; set; }
public List<PlatformDto>? Platforms { get; set; }
public List<PropertyDto>? Properties { get; set; }
public List<TagDto>? Tags { get; set; }
public List<PublisherDto>? Publishers { get; set; }
public List<DeveloperDto>? Developers { get; set; }
public int MinInterest { get; set; } = 1;
public int MaxInterest { get; set; } = 5;
public List<int>? ReleaseYears { get; set; }
public int? MinStorageSize { get; set; }
public int? MaxStorageSize { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace GameIdeas.Shared.Dto;
public class SortPropertyDto
{
public Func<GameDto, object>? SortProperty { get; set; }
public string Label { get; set; } = string.Empty;
}

View File

@@ -0,0 +1,9 @@
using GameIdeas.Shared.Enum;
namespace GameIdeas.Shared.Dto;
public class SortTypeDto
{
public SortType SortType { get; set; } = SortType.Ascending;
public string Label { get; set; } = string.Empty;
}