Small UI changes (#3787)
This commit is contained in:
parent
50a052e412
commit
5b8a643d82
203 changed files with 369 additions and 446 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!;
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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!;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue