Small UI changes (#3787)
This commit is contained in:
parent
50a052e412
commit
5b8a643d82
203 changed files with 369 additions and 446 deletions
|
@ -1,5 +1,4 @@
|
|||
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using API.Entities;
|
||||
using API.Entities.Interfaces;
|
||||
|
@ -8,14 +7,15 @@ using API.Services.Tasks.Scanner.Parser;
|
|||
|
||||
namespace API.DTOs;
|
||||
|
||||
public class VolumeDto : IHasReadTimeEstimate, IHasCoverImage
|
||||
public sealed record VolumeDto : IHasReadTimeEstimate, IHasCoverImage
|
||||
{
|
||||
/// <inheritdoc cref="API.Entities.Volume.Id"/>
|
||||
public int Id { get; set; }
|
||||
/// <inheritdoc cref="Volume.MinNumber"/>
|
||||
/// <inheritdoc cref="API.Entities.Volume.MinNumber"/>
|
||||
public float MinNumber { get; set; }
|
||||
/// <inheritdoc cref="Volume.MaxNumber"/>
|
||||
/// <inheritdoc cref="API.Entities.Volume.MaxNumber"/>
|
||||
public float MaxNumber { get; set; }
|
||||
/// <inheritdoc cref="Volume.Name"/>
|
||||
/// <inheritdoc cref="API.Entities.Volume.Name"/>
|
||||
public string Name { get; set; } = default!;
|
||||
/// <summary>
|
||||
/// This will map to MinNumber. Number was removed in v0.7.13.8/v0.7.14
|
||||
|
@ -24,17 +24,21 @@ public class VolumeDto : IHasReadTimeEstimate, IHasCoverImage
|
|||
public int Number { get; set; }
|
||||
public int Pages { get; set; }
|
||||
public int PagesRead { get; set; }
|
||||
/// <inheritdoc cref="API.Entities.Volume.LastModifiedUtc"/>
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
/// <inheritdoc cref="API.Entities.Volume.CreatedUtc"/>
|
||||
public DateTime CreatedUtc { get; set; }
|
||||
/// <summary>
|
||||
/// When chapter was created in local server time
|
||||
/// </summary>
|
||||
/// <remarks>This is required for Tachiyomi Extension</remarks>
|
||||
/// <inheritdoc cref="API.Entities.Volume.Created"/>
|
||||
public DateTime Created { get; set; }
|
||||
/// <summary>
|
||||
/// When chapter was last modified in local server time
|
||||
/// </summary>
|
||||
/// <remarks>This is required for Tachiyomi Extension</remarks>
|
||||
/// <inheritdoc cref="API.Entities.Volume.LastModified"/>
|
||||
public DateTime LastModified { get; set; }
|
||||
public int SeriesId { get; set; }
|
||||
public ICollection<ChapterDto> Chapters { get; set; } = new List<ChapterDto>();
|
||||
|
@ -64,10 +68,14 @@ public class VolumeDto : IHasReadTimeEstimate, IHasCoverImage
|
|||
return MinNumber.Is(Parser.SpecialVolumeNumber);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="API.Entities.Volume.CoverImage"/>
|
||||
public string CoverImage { get; set; }
|
||||
/// <inheritdoc cref="API.Entities.Volume.CoverImageLocked"/>
|
||||
private bool CoverImageLocked { get; set; }
|
||||
public string PrimaryColor { get; set; } = string.Empty;
|
||||
public string SecondaryColor { get; set; } = string.Empty;
|
||||
/// <inheritdoc cref="API.Entities.Volume.PrimaryColor"/>
|
||||
public string? PrimaryColor { get; set; } = string.Empty;
|
||||
/// <inheritdoc cref="API.Entities.Volume.SecondaryColor"/>
|
||||
public string? SecondaryColor { get; set; } = string.Empty;
|
||||
|
||||
public void ResetColorScape()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue