
* Fixed a typo in a log * Invalid XML files now "validate" correctly by sending back a failure. * Cleaned up messaging on backend and frontend to provide some linking on series name when collision, handle corrupt xml files, etc. * When reading list conflict occurs, show the reading list name that's conflicting. Started refactoring the code to allow multiple files to be imported at once. * Started adding new CBL elements for some enhancements I have planned with maintainers. * Default to empty string for IpAddress to allow to fallback into existing experience * Tweaked the layout of reading list page (not complete), moved some not used much controls to page extras and reordered the buttons for reading list * Edit Reading Lists now allows selection of cover image from existing items * Fixed a bug where cover chooser base64 to image would fail to write webp files. * Refactored the validate step to now handle multiple files in one go. * Clean up code * Don't show CBL name if there were xml errors that prevented showing it * Don't allow user to go prev step after they perform the import. * Cleaned up the heading code for accordions * Fixed a bug with import keeping failed items * Sort the failures to the bottom of result windows * CBL import is pretty solid. Need one pass from Robbie on Reading List Page
55 lines
1.9 KiB
C#
55 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using API.Entities.Enums;
|
|
using API.Entities.Interfaces;
|
|
|
|
namespace API.Entities;
|
|
|
|
/// <summary>
|
|
/// This is a collection of <see cref="ReadingListItem"/> which represent individual chapters and an order.
|
|
/// </summary>
|
|
public class ReadingList : IEntityDate
|
|
{
|
|
public int Id { get; init; }
|
|
public required string Title { get; set; }
|
|
/// <summary>
|
|
/// A normalized string used to check if the reading list already exists in the DB
|
|
/// </summary>
|
|
public required string NormalizedTitle { get; set; }
|
|
public string? Summary { get; set; }
|
|
/// <summary>
|
|
/// Reading lists that are promoted are only done by admins
|
|
/// </summary>
|
|
public bool Promoted { get; set; }
|
|
/// <summary>
|
|
/// Absolute path to the (managed) image file
|
|
/// </summary>
|
|
/// <remarks>The file is managed internally to Kavita's APPDIR</remarks>
|
|
public string? CoverImage { get; set; }
|
|
public bool CoverImageLocked { get; set; }
|
|
|
|
/// <summary>
|
|
/// The highest age rating from all Series within the reading list
|
|
/// </summary>
|
|
/// <remarks>Introduced in v0.6</remarks>
|
|
public required AgeRating AgeRating { get; set; } = AgeRating.Unknown;
|
|
|
|
public ICollection<ReadingListItem> Items { get; set; } = null!;
|
|
public DateTime Created { get; set; }
|
|
public DateTime LastModified { get; set; }
|
|
public DateTime CreatedUtc { get; set; }
|
|
public DateTime LastModifiedUtc { get; set; }
|
|
// /// <summary>
|
|
// /// Minimum Year and Month the Reading List starts
|
|
// /// </summary>
|
|
// public DateOnly StartingYear { get; set; }
|
|
// /// <summary>
|
|
// /// Maximum Year and Month the Reading List starts
|
|
// /// </summary>
|
|
// public DateOnly EndingYear { get; set; }
|
|
|
|
// Relationships
|
|
public int AppUserId { get; set; }
|
|
public AppUser AppUser { get; set; } = null!;
|
|
|
|
}
|