A ton of random bugs and polish (#3668)

This commit is contained in:
Joe Milazzo 2025-03-23 17:06:20 -05:00 committed by GitHub
parent b45d92ea5c
commit de651215f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
144 changed files with 852 additions and 848 deletions

View file

@ -2,6 +2,7 @@
using System.ComponentModel.DataAnnotations;
namespace API.DTOs.Account;
#nullable enable
public record UpdateUserDto
{

View file

@ -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()
{

View file

@ -1,4 +1,5 @@
namespace API.DTOs.Collection;
#nullable enable
/// <summary>
/// Represents an Interest Stack from MAL

View file

@ -1,4 +1,5 @@
namespace API.DTOs;
#nullable enable
/// <summary>
/// A primary and secondary color

View file

@ -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

View file

@ -2,6 +2,7 @@
using API.DTOs.Scrobbling;
namespace API.DTOs.KavitaPlus.ExternalMetadata;
#nullable enable
internal class MatchSeriesRequestDto
{

View file

@ -1,4 +1,5 @@
namespace API.DTOs.KavitaPlus.License;
#nullable enable
public class EncryptLicenseDto
{

View file

@ -1,4 +1,5 @@
namespace API.DTOs.KavitaPlus.License;
#nullable enable
public class UpdateLicenseDto
{

View file

@ -1,4 +1,5 @@
namespace API.DTOs.KavitaPlus.Metadata;
#nullable enable
public enum CharacterRole
{

View file

@ -2,6 +2,7 @@
using API.Entities.Enums;
namespace API.DTOs;
#nullable enable
public class MangaFileDto
{

View file

@ -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>

View file

@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations;
namespace API.DTOs;
#nullable enable
public class UpdatePersonDto
{

View file

@ -1,4 +1,5 @@
namespace API.DTOs.Reader;
#nullable enable
public class CreatePersonalToCDto
{

View file

@ -2,6 +2,7 @@
using API.Services.Plus;
namespace API.DTOs.Scrobbling;
#nullable enable
public record MediaRecommendationDto
{

View file

@ -1,4 +1,5 @@
namespace API.DTOs.Scrobbling;
#nullable enable
/// <summary>
/// Represents information about a potential Series for Kavita+

View file

@ -1,6 +1,7 @@
using System;
namespace API.DTOs.Scrobbling;
#nullable enable
public class ScrobbleEventDto
{

View file

@ -2,6 +2,7 @@
using API.DTOs.Recommendation;
namespace API.DTOs.SeriesDetail;
#nullable enable
/// <summary>
/// All the data from Kavita+ for Series Detail

View file

@ -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()
{

View file

@ -3,6 +3,7 @@ using API.Entities.Enums;
using API.Services;
namespace API.DTOs.Settings;
#nullable enable
public class ServerSettingDto
{

View file

@ -2,6 +2,7 @@
using API.Entities.Enums;
namespace API.DTOs.SideNav;
#nullable enable
public class SideNavStreamDto
{

View file

@ -1,6 +1,7 @@
using API.Entities.Enums;
namespace API.DTOs;
#nullable enable
/// <summary>
/// Used on Person Profile page

View file

@ -1,6 +1,7 @@
using System;
namespace API.DTOs.Statistics;
#nullable enable
/// <summary>
/// Represents a single User's reading event

View file

@ -2,6 +2,7 @@
using System.Collections.Generic;
namespace API.DTOs.Statistics;
#nullable enable
public class UserReadStatistics
{

View file

@ -1,6 +1,7 @@
using System;
namespace API.DTOs.Stats;
#nullable enable
/// <summary>
/// This is just for the Server tab on UI

View file

@ -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.

View file

@ -1,4 +1,5 @@
namespace API.DTOs;
#nullable enable
public class UpdateSeriesDto
{

View file

@ -5,6 +5,7 @@ using API.Entities.Enums;
using API.Entities.Enums.UserPreferences;
namespace API.DTOs;
#nullable enable
public class UserPreferencesDto
{

View file

@ -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()
{