mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 15:30:34 -04:00
* Adding some code for Robbie * See more on series detail metadata area is now at the bottom on the section * Cleaned up subtitle headings to use a single class for offset with actionables * Added some markup for the new design, waiting for Robbie to finish it off * styling age-rating badge * Started hooking up basic analyze file service and hooks in the UI. Basic code to implement the count is implemented and in benchmarks. * Hooked up analyze ui to backend * Refactored Series Detail metadata area to use a new icon/title design * Cleaned up the new design * Pushing for robbie to do css * Massive performance improvement to scan series where we only need to scan folders reported that have series in them, rather than the whole library. * Removed theme page as we no longer need it. Added WordCount to DTOs so the UI can show them. Added new pipe to format numbers in compact mode. * Hooked up actual reading time based on user's words per hour * Refactor some magic numbers to consts * Hooked in progress reporting for series word count * Hooked up analyze files * Re-implemented time to read on comics * Removed the word Last Read * Show proper language name instead of iso tag on series detail page. Added some error handling on word count code. * Reworked error handling * Fixed some security vulnerabilities in npm. * Handle a case where there are no text nodes and instead of returning an empty list, htmlagilitypack returns null. * Tweaked the styles a bit on the icon-and-title * Code cleanup Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
52 lines
1.8 KiB
C#
52 lines
1.8 KiB
C#
using System;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.DTOs
|
|
{
|
|
public class SeriesDto
|
|
{
|
|
public int Id { get; init; }
|
|
public string Name { get; init; }
|
|
public string OriginalName { get; init; }
|
|
public string LocalizedName { get; init; }
|
|
public string SortName { get; init; }
|
|
public string Summary { get; init; }
|
|
public int Pages { get; init; }
|
|
public bool CoverImageLocked { get; set; }
|
|
/// <summary>
|
|
/// Sum of pages read from linked Volumes. Calculated at API-time.
|
|
/// </summary>
|
|
public int PagesRead { get; set; }
|
|
/// <summary>
|
|
/// DateTime representing last time the series was Read. Calculated at API-time.
|
|
/// </summary>
|
|
public DateTime LatestReadDate { get; set; }
|
|
/// <summary>
|
|
/// DateTime representing last time a chapter was added to the Series
|
|
/// </summary>
|
|
public DateTime LastChapterAdded { get; set; }
|
|
/// <summary>
|
|
/// Rating from logged in user. Calculated at API-time.
|
|
/// </summary>
|
|
public int UserRating { get; set; }
|
|
/// <summary>
|
|
/// Review from logged in user. Calculated at API-time.
|
|
/// </summary>
|
|
public string UserReview { get; set; }
|
|
public MangaFormat Format { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
|
|
public bool NameLocked { get; set; }
|
|
public bool SortNameLocked { get; set; }
|
|
public bool LocalizedNameLocked { get; set; }
|
|
/// <summary>
|
|
/// Total number of words for the series. Only applies to epubs.
|
|
/// </summary>
|
|
public long WordCount { get; set; }
|
|
|
|
public int LibraryId { get; set; }
|
|
public string LibraryName { get; set; }
|
|
}
|
|
}
|