A ton of random bugs and polish (#3668)
This commit is contained in:
parent
b45d92ea5c
commit
de651215f5
144 changed files with 852 additions and 848 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.DTOs.Account;
|
||||
#nullable enable
|
||||
|
||||
public record UpdateUserDto
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@ using API.Entities.Enums;
|
|||
using API.Entities.Interfaces;
|
||||
|
||||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// A Chapter is the lowest grouping of a reading medium. A Chapter contains a set of MangaFiles which represents the underlying
|
||||
|
@ -188,8 +189,8 @@ public class ChapterDto : IHasReadTimeEstimate, IHasCoverImage
|
|||
#endregion
|
||||
|
||||
public string CoverImage { get; set; }
|
||||
public string PrimaryColor { get; set; }
|
||||
public string SecondaryColor { get; set; }
|
||||
public string PrimaryColor { get; set; } = string.Empty;
|
||||
public string SecondaryColor { get; set; } = string.Empty;
|
||||
|
||||
public void ResetColorScape()
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs.Collection;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Represents an Interest Stack from MAL
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// A primary and secondary color
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using API.DTOs.Scrobbling;
|
||||
|
||||
namespace API.DTOs.KavitaPlus.ExternalMetadata;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Used for matching and fetching metadata on a series
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using API.DTOs.Scrobbling;
|
||||
|
||||
namespace API.DTOs.KavitaPlus.ExternalMetadata;
|
||||
#nullable enable
|
||||
|
||||
internal class MatchSeriesRequestDto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs.KavitaPlus.License;
|
||||
#nullable enable
|
||||
|
||||
public class EncryptLicenseDto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs.KavitaPlus.License;
|
||||
#nullable enable
|
||||
|
||||
public class UpdateLicenseDto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs.KavitaPlus.Metadata;
|
||||
#nullable enable
|
||||
|
||||
public enum CharacterRole
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
public class MangaFileDto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
using System.Runtime.Serialization;
|
||||
|
||||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
public class PersonDto
|
||||
{
|
||||
|
@ -6,12 +9,12 @@ public class PersonDto
|
|||
public required string Name { get; set; }
|
||||
|
||||
public bool CoverImageLocked { get; set; }
|
||||
public string PrimaryColor { get; set; }
|
||||
public string SecondaryColor { get; set; }
|
||||
public string? PrimaryColor { get; set; }
|
||||
public string? SecondaryColor { get; set; }
|
||||
|
||||
public string? CoverImage { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
public string? Description { get; set; }
|
||||
/// <summary>
|
||||
/// ASIN for person
|
||||
/// </summary>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
public class UpdatePersonDto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs.Reader;
|
||||
#nullable enable
|
||||
|
||||
public class CreatePersonalToCDto
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using API.Services.Plus;
|
||||
|
||||
namespace API.DTOs.Scrobbling;
|
||||
#nullable enable
|
||||
|
||||
public record MediaRecommendationDto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs.Scrobbling;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Represents information about a potential Series for Kavita+
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace API.DTOs.Scrobbling;
|
||||
#nullable enable
|
||||
|
||||
public class ScrobbleEventDto
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using API.DTOs.Recommendation;
|
||||
|
||||
namespace API.DTOs.SeriesDetail;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// All the data from Kavita+ for Series Detail
|
||||
|
|
|
@ -79,8 +79,8 @@ public class SeriesDto : IHasReadTimeEstimate, IHasCoverImage
|
|||
#endregion
|
||||
|
||||
public string? CoverImage { get; set; }
|
||||
public string PrimaryColor { get; set; }
|
||||
public string SecondaryColor { get; set; }
|
||||
public string PrimaryColor { get; set; } = string.Empty;
|
||||
public string SecondaryColor { get; set; } = string.Empty;
|
||||
|
||||
public void ResetColorScape()
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ using API.Entities.Enums;
|
|||
using API.Services;
|
||||
|
||||
namespace API.DTOs.Settings;
|
||||
#nullable enable
|
||||
|
||||
public class ServerSettingDto
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.DTOs.SideNav;
|
||||
#nullable enable
|
||||
|
||||
public class SideNavStreamDto
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Used on Person Profile page
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace API.DTOs.Statistics;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Represents a single User's reading event
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace API.DTOs.Statistics;
|
||||
#nullable enable
|
||||
|
||||
public class UserReadStatistics
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace API.DTOs.Stats;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// This is just for the Server tab on UI
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// This is explicitly for Tachiyomi. Number field was removed in v0.8.0, but Tachiyomi needs it for the hacks.
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
public class UpdateSeriesDto
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@ using API.Entities.Enums;
|
|||
using API.Entities.Enums.UserPreferences;
|
||||
|
||||
namespace API.DTOs;
|
||||
#nullable enable
|
||||
|
||||
public class UserPreferencesDto
|
||||
{
|
||||
|
|
|
@ -66,8 +66,8 @@ public class VolumeDto : IHasReadTimeEstimate, IHasCoverImage
|
|||
|
||||
public string CoverImage { get; set; }
|
||||
private bool CoverImageLocked { get; set; }
|
||||
public string PrimaryColor { get; set; }
|
||||
public string SecondaryColor { get; set; }
|
||||
public string PrimaryColor { get; set; } = string.Empty;
|
||||
public string SecondaryColor { get; set; } = string.Empty;
|
||||
|
||||
public void ResetColorScape()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue