mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-11-14 02:26:39 -05:00
* Instead of augmenting prefetcher to move across chapter bounds, let's try to instead just load 5 images (which the browser will cache) from next/prev so when it loads, it's much faster. * Trialing loading next/prev chapters 5 pages to have better next page loading experience. * Tweaked GetChapterInfo API to actually apply conditional includeDimensions parameter. * added a basic language file for upcoming work * Moved the bottom menu up a bit for iOS devices with handlebars. * Fixed fit to width on phones still having a horizontal scrollbar * Fixed a bug where there is extra space under the image when fit to width and on a phone due to pagination going to far. * Changed which variable we use for right pagination calculation * Fixing fit to height - Fixing height calc to account for horizontal scroll bar height. * Added a comment for the height scrollbar fix * Adding screenfull package # Added: - Added screenfull package to handle cross-platform browser fullscreen code # Removed: - Removed custom fullscreen code * Fixed a bug where switching from webtoon reader to other layout modes wouldn't render anything. Webtoon continuous scroll down is now broken. * Fixed it back to how it was and all is good. Need to call detectChanges explicitly. * Removed an additional undeeded save progress call on loadPage * Laid out the test case to move the page snapping to the backend with full unit tests. Current code is broken just like UI layer. * Refactored the snap points into the backend and ensure that it works correctly. * Fixed a broken unit test * Filter out spammy hubs/messages calls in the logs * Swallow all noisy messages that are from RequestLoggingMiddleware when the log level is on Information or above. * Added a common loading component to the app. Have yet to refactor all screens to use this. * Bump json5 from 2.2.0 to 2.2.3 in /UI/Web Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Alrigned all the loading messages and styles throughout the app * Webtoon reader will use max width of all images to ensure images align well. * On Original scaling mode, users can use the keyboard to scroll around the images without pagination kicking off. * Removed console logs * Fixed a public vs private issue * Fixed an issue around some cached files getting locked due to NetVips holding them during file size calculations. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
80 lines
2.4 KiB
C#
80 lines
2.4 KiB
C#
using System.Collections.Generic;
|
|
using API.Entities.Enums;
|
|
|
|
namespace API.DTOs.Reader;
|
|
|
|
/// <summary>
|
|
/// Information about the Chapter for the Reader to render
|
|
/// </summary>
|
|
public class ChapterInfoDto : IChapterInfoDto
|
|
{
|
|
/// <summary>
|
|
/// The Chapter Number
|
|
/// </summary>
|
|
public string ChapterNumber { get; set; }
|
|
/// <summary>
|
|
/// The Volume Number
|
|
/// </summary>
|
|
public string VolumeNumber { get; set; }
|
|
/// <summary>
|
|
/// Volume entity Id
|
|
/// </summary>
|
|
public int VolumeId { get; set; }
|
|
/// <summary>
|
|
/// Series Name
|
|
/// </summary>
|
|
public string SeriesName { get; set; }
|
|
/// <summary>
|
|
/// Series Format
|
|
/// </summary>
|
|
public MangaFormat SeriesFormat { get; set; }
|
|
/// <summary>
|
|
/// Series entity Id
|
|
/// </summary>
|
|
public int SeriesId { get; set; }
|
|
/// <summary>
|
|
/// Library entity Id
|
|
/// </summary>
|
|
public int LibraryId { get; set; }
|
|
/// <summary>
|
|
/// Library type
|
|
/// </summary>
|
|
public LibraryType LibraryType { get; set; }
|
|
/// <summary>
|
|
/// Chapter's title if set via ComicInfo.xml (Title field)
|
|
/// </summary>
|
|
public string ChapterTitle { get; set; } = string.Empty;
|
|
/// <summary>
|
|
/// Total Number of pages in this Chapter
|
|
/// </summary>
|
|
public int Pages { get; set; }
|
|
/// <summary>
|
|
/// File name of the chapter
|
|
/// </summary>
|
|
public string FileName { get; set; }
|
|
/// <summary>
|
|
/// If this is marked as a special in Kavita
|
|
/// </summary>
|
|
public bool IsSpecial { get; set; }
|
|
/// <summary>
|
|
/// The subtitle to render on the reader
|
|
/// </summary>
|
|
public string Subtitle { get; set; }
|
|
/// <summary>
|
|
/// Series Title
|
|
/// </summary>
|
|
/// <remarks>Usually just series name, but can include chapter title</remarks>
|
|
public string Title { get; set; }
|
|
/// <summary>
|
|
/// List of all files with their inner archive structure maintained in filename and dimensions
|
|
/// </summary>
|
|
/// <remarks>This is optionally returned by includeDimensions</remarks>
|
|
public IEnumerable<FileDimensionDto> PageDimensions { get; set; }
|
|
/// <summary>
|
|
/// For Double Page reader, this will contain snap points to ensure the reader always resumes on correct page
|
|
/// </summary>
|
|
/// <remarks>This is optionally returned by includeDimensions</remarks>
|
|
public IDictionary<int, int> DoublePairs { get; set; }
|
|
|
|
}
|