Small UI changes (#3787)

This commit is contained in:
Joe Milazzo 2025-05-04 08:14:44 -06:00 committed by GitHub
parent 50a052e412
commit 5b8a643d82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
203 changed files with 369 additions and 446 deletions

View file

@ -1,6 +1,6 @@
namespace API.DTOs.Statistics;
public class StatCount<T> : ICount<T>
public sealed record StatCount<T> : ICount<T>
{
public T Value { get; set; } = default!;
public long Count { get; set; }

View file

@ -4,7 +4,7 @@ using API.Entities.Enums;
namespace API.DTOs.Statistics;
#nullable enable
public class FileExtensionDto
public sealed record FileExtensionDto
{
public string? Extension { get; set; }
public MangaFormat Format { get; set; }
@ -12,7 +12,7 @@ public class FileExtensionDto
public long TotalFiles { get; set; }
}
public class FileExtensionBreakdownDto
public sealed record FileExtensionBreakdownDto
{
/// <summary>
/// Total bytes for all files

View file

@ -2,7 +2,7 @@
namespace API.DTOs.Statistics;
public class PagesReadOnADayCount<T> : ICount<T>
public sealed record PagesReadOnADayCount<T> : ICount<T>
{
/// <summary>
/// The day of the readings

View file

@ -6,7 +6,7 @@ namespace API.DTOs.Statistics;
/// <summary>
/// Represents a single User's reading event
/// </summary>
public class ReadHistoryEvent
public sealed record ReadHistoryEvent
{
public int UserId { get; set; }
public required string? UserName { get; set; } = default!;

View file

@ -3,7 +3,7 @@
namespace API.DTOs.Statistics;
#nullable enable
public class ServerStatisticsDto
public sealed record ServerStatisticsDto
{
public long ChapterCount { get; set; }
public long VolumeCount { get; set; }

View file

@ -1,7 +1,7 @@
namespace API.DTOs.Statistics;
#nullable enable
public class TopReadDto
public sealed record TopReadDto
{
public int UserId { get; set; }
public string? Username { get; set; } = default!;

View file

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace API.DTOs.Statistics;
#nullable enable
public class UserReadStatistics
public sealed record UserReadStatistics
{
/// <summary>
/// Total number of pages read