Adds book reading support with EPUB and PDF reader plugins

This commit is contained in:
BinaryAlley committed 2026-09-02 04:45:11 -07:00
1 parent 275fd83ff2
commit f7ccdf3d1c
271 files changed
+11501 -361

No files matched your search

@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents the request for retrieving the parent path of a file system path.
/// </summary>
/// <param name="Path">The path for which the parent path is retrieved.</param>
/// <param name="Path">The path for which the parent path is retrieved. Required.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetPathParentRequest(
string? Path
@@ -7,8 +7,8 @@ namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Thumbnail
/// <summary>
/// Represents a request for retrieving the thumbnail of a file system file.
/// </summary>
/// <param name="Path">The path of the file for which the thumbnail is retrieved.</param>
/// <param name="Quality">The quality to use for the thumbnail.</param>
/// <param name="Path">The path of the file for which the thumbnail is retrieved. Required.</param>
/// <param name="Quality">The quality to use for the thumbnail. Required.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetThumbnailRequest(
string? Path,
@@ -8,7 +8,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.Management;
/// <summary>
/// Represents the request for displaying the media library editing view.
/// </summary>
/// <param name="Id">The unique identifier of the media library to edit.</param>
/// <param name="Id">The unique identifier of the media library to edit. Required.</param>
[DebuggerDisplay("Id: {Id}")]
public record EditLibraryRequest(
Guid Id
@@ -8,7 +8,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.Management;
/// <summary>
/// Represents the request for retrieving the artwork providers of a media library.
/// </summary>
/// <param name="LibraryId">The unique identifier of the media library whose artwork providers are retrieved.</param>
/// <param name="LibraryId">The unique identifier of the media library whose artwork providers are retrieved. Required.</param>
[DebuggerDisplay("LibraryId: {LibraryId}")]
public record GetArtworkProvidersRequest(
Guid LibraryId
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.Management;
/// <summary>
/// Represents the request for retrieving the book readers of a media library.
/// </summary>
/// <param name="LibraryId">The unique identifier of the media library whose book readers are retrieved. Required.</param>
[DebuggerDisplay("LibraryId: {LibraryId}")]
public record GetBookReadersRequest(
Guid LibraryId
);
@@ -8,7 +8,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.Management;
/// <summary>
/// Represents the request for retrieving the metadata providers of a media library.
/// </summary>
/// <param name="LibraryId">The unique identifier of the media library whose metadata providers are retrieved.</param>
/// <param name="LibraryId">The unique identifier of the media library whose metadata providers are retrieved. Required.</param>
[DebuggerDisplay("LibraryId: {LibraryId}")]
public record GetMetadataProvidersRequest(
Guid LibraryId
@@ -8,7 +8,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// <summary>
/// Represents a request to get a book by the specified Id.
/// </summary>
/// <param name="Id">The unique identifier of the book to retrieve.</param>
/// <param name="Id">The unique identifier of the book to retrieve. Required.</param>
[DebuggerDisplay("Id: {Id}")]
public record GetBookRequest(
Guid Id
@@ -8,7 +8,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// <summary>
/// Represents the request for displaying the books browsing view.
/// </summary>
/// <param name="LibraryId">The unique identifier of the media library whose books are browsed.</param>
/// <param name="LibraryId">The unique identifier of the media library whose books are browsed. Optional.</param>
[DebuggerDisplay("LibraryId: {LibraryId}")]
public record GetBooksViewRequest(
Guid? LibraryId
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
/// <summary>
/// Represents a request to check the reading availability of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose reading availability is checked. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record GetBookReadingAvailabilityRequest(
Guid BookId
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
/// <summary>
/// Represents a request to get the reading manifest of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose reading manifest is retrieved. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record GetBookReadingManifestRequest(
Guid BookId
);
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
/// <summary>
/// Represents a request to get a resource of a book, for reading.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose resource is retrieved. Required.</param>
/// <param name="ResourceKey">The opaque resource key of the resource. Required.</param>
[DebuggerDisplay("BookId: {BookId}, ResourceKey: {ResourceKey}")]
public record GetBookReadingResourceRequest(
Guid BookId,
string ResourceKey
);
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
/// <summary>
/// Represents a request to get the content of a reading section of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose reading section is retrieved. Required.</param>
/// <param name="LocationRef">The opaque location reference of the reading section. Required.</param>
[DebuggerDisplay("BookId: {BookId}, LocationRef: {LocationRef}")]
public record GetBookReadingSectionRequest(
Guid BookId,
string LocationRef
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
/// <summary>
/// Represents the request for displaying the reading view of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book to read. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record ReadBookViewRequest(
Guid BookId
);
@@ -0,0 +1,28 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.Requests.Plugins;
/// <summary>
/// Represents a request to enable or disable a book reader for a media library.
/// </summary>
[DebuggerDisplay("LibraryId: {LibraryId}, PluginId: {PluginId}")]
public class SetBookReaderEnabledRequest
{
/// <summary>
/// Gets or sets the Id of the media library whose book reader is enabled or disabled. Required.
/// </summary>
public Guid LibraryId { get; set; }
/// <summary>
/// Gets or sets the unique identifier of the plugin providing the book reader. Required.
/// </summary>
public Guid PluginId { get; set; }
/// <summary>
/// Gets or sets whether the book reader should be enabled for the media library. Required.
/// </summary>
public bool IsEnabled { get; set; }
}
@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Themes;
/// <summary>
/// Represents a request to delete a theme.
/// </summary>
/// <param name="ThemeId">The manifest id of the theme to delete.</param>
/// <param name="ThemeId">The manifest id of the theme to delete. Required.</param>
[DebuggerDisplay("ThemeId: {ThemeId}")]
public record DeleteThemeRequest(
string? ThemeId
@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Themes;
/// <summary>
/// Represents a request to download the archive of a theme.
/// </summary>
/// <param name="ThemeId">The manifest id of the theme to download.</param>
/// <param name="ThemeId">The manifest id of the theme to download. Required.</param>
[DebuggerDisplay("ThemeId: {ThemeId}")]
public record GetThemeArchiveRequest(
string? ThemeId
@@ -7,8 +7,8 @@ namespace Lumina.Presentation.Web.Common.Requests.Themes;
/// <summary>
/// Represents a request to get an asset file of a theme.
/// </summary>
/// <param name="ThemeId">The manifest id of the theme.</param>
/// <param name="Path">The asset path relative to the theme pack root.</param>
/// <param name="ThemeId">The manifest id of the theme. Required.</param>
/// <param name="Path">The asset path relative to the theme pack root. Required.</param>
[DebuggerDisplay("ThemeId: {ThemeId}, Path: {Path}")]
public record GetThemeAssetRequest(
string? ThemeId,
@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Themes;
/// <summary>
/// Represents a request to restore a soft deleted bundled theme.
/// </summary>
/// <param name="ThemeId">The manifest id of the bundled theme to restore.</param>
/// <param name="ThemeId">The manifest id of the bundled theme to restore. Required.</param>
[DebuggerDisplay("ThemeId: {ThemeId}")]
public record RestoreThemeRequest(
string? ThemeId
@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.Requests.Themes;
/// <summary>
/// Represents a request to set the currently active theme.
/// </summary>
/// <param name="ThemeId">The manifest id of the theme to activate.</param>
/// <param name="ThemeId">The manifest id of the theme to activate. Required.</param>
[DebuggerDisplay("ThemeId: {ThemeId}")]
public record SetCurrentThemeRequest(
string? ThemeId
@@ -7,8 +7,8 @@ namespace Lumina.Presentation.Web.Common.Requests.Tools;
/// <summary>
/// Represents the request for setting the culture used by the application.
/// </summary>
/// <param name="NewCulture">The new culture to set.</param>
/// <param name="ReturnUrl">The URL to return to, after setting the new culture.</param>
/// <param name="NewCulture">The new culture to set. Required.</param>
/// <param name="ReturnUrl">The URL to return to, after setting the new culture. Optional.</param>
[DebuggerDisplay("NewCulture: {NewCulture}, ReturnUrl: {ReturnUrl}")]
public record SetLanguageRequest(
string? NewCulture,
@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.Requests.UsersManagement.Authentication
/// <summary>
/// Represents the request for displaying the account login view.
/// </summary>
/// <param name="ReturnUrl">The URL to return to, after login.</param>
/// <param name="ReturnUrl">The URL to return to, after login. Optional.</param>
[DebuggerDisplay("ReturnUrl: {ReturnUrl}")]
public record LoginViewRequest(
string? ReturnUrl = null
@@ -10,7 +10,7 @@ namespace Lumina.Presentation.Web.Common.Requests.UsersManagement;
/// <param name="Username">The username of the account to authenticate. Required.</param>
/// <param name="Password">The password of the account to authenticate. Required.</param>
/// <param name="TotpCode">The TOTP (Time-Based One-Time Password) of the account to authenticate. Optional.</param>
/// <param name="ReturnUrl">The URL to return to, after login.</param>
/// <param name="ReturnUrl">The URL to return to, after login. Optional.</param>
[DebuggerDisplay("Username: {Username}")]
public record LoginRequest(
string? Username = null,