mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds provider configuration to media library saves
Moves metadata provider, artwork provider, and book reader choices into the add and update library requests, adds the library type lookups, removes the per-provider enable and reorder endpoints, and reconciles the stored configurations in one provider store call. Tightens library update and delete authorization to require ownership and the manage permission, and cleans up enum validation, comments, resource diacritics, and Razor imports.
This commit is contained in:
1 parent
2e7563199a
commit
48ad8692af
148 files changed
+6305
-2936
No files matched your search
@@ -5,12 +5,12 @@ using System;
|
||||
namespace Lumina.Contracts.Responses.Plugins;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an artwork provider configured for a media library.
|
||||
/// Represents an artwork provider, either as configured for a media library, or as available for a library type, the way a new library of that type starts.
|
||||
/// </summary>
|
||||
/// <param name="PluginId">The unique identifier of the plugin providing the artwork.</param>
|
||||
/// <param name="Name">The display name of the artwork provider.</param>
|
||||
/// <param name="IsEnabled">Whether the artwork provider is enabled for the media library.</param>
|
||||
/// <param name="Rank">The rank of the artwork provider, determining the order in which providers are tried.</param>
|
||||
/// <param name="IsEnabled">Whether the artwork provider is enabled for the media library. Always <see langword="false"/> for a provider available for a library type, since a new provider starts disabled.</param>
|
||||
/// <param name="Rank">The rank of the artwork provider, determining the order in which providers are tried. For a provider available for a library type, it is the rank a new library starts with, in alphabetical order of the plugin names.</param>
|
||||
public sealed record LibraryArtworkProviderResponse(
|
||||
Guid PluginId,
|
||||
string Name,
|
||||
|
||||
@@ -7,12 +7,12 @@ using System.Diagnostics;
|
||||
namespace Lumina.Contracts.Responses.Plugins;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a book reader configured for a media library.
|
||||
/// Represents a book reader, either as configured for a media library, or as available for a library type, the way a new library of that type starts.
|
||||
/// </summary>
|
||||
/// <param name="PluginId">The unique identifier of the plugin providing the book reader.</param>
|
||||
/// <param name="Name">The display name of the book reader.</param>
|
||||
/// <param name="SupportedExtensions">The file extensions supported by the book reader.</param>
|
||||
/// <param name="IsEnabled">Whether the book reader is enabled for the media library.</param>
|
||||
/// <param name="IsEnabled">Whether the book reader is enabled for the media library. Always <see langword="false"/> for a reader available for a library type, since a new reader starts disabled.</param>
|
||||
[DebuggerDisplay("Name: {Name}")]
|
||||
public sealed record LibraryBookReaderResponse(
|
||||
Guid PluginId,
|
||||
|
||||
@@ -5,12 +5,12 @@ using System;
|
||||
namespace Lumina.Contracts.Responses.Plugins;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a metadata provider configured for a media library.
|
||||
/// Represents a metadata provider, either as configured for a media library, or as available for a library type, the way a new library of that type starts.
|
||||
/// </summary>
|
||||
/// <param name="PluginId">The unique identifier of the plugin providing the metadata.</param>
|
||||
/// <param name="Name">The display name of the metadata provider.</param>
|
||||
/// <param name="IsEnabled">Whether the metadata provider is enabled for the media library.</param>
|
||||
/// <param name="Rank">The rank of the metadata provider, determining the order in which providers are tried.</param>
|
||||
/// <param name="IsEnabled">Whether the metadata provider is enabled for the media library. Always <see langword="false"/> for a provider available for a library type, since a new provider starts disabled.</param>
|
||||
/// <param name="Rank">The rank of the metadata provider, determining the order in which providers are tried. For a provider available for a library type, it is the rank a new library starts with, in alphabetical order of the plugin names.</param>
|
||||
public sealed record LibraryMetadataProviderResponse(
|
||||
Guid PluginId,
|
||||
string Name,
|
||||
|
||||
Reference in new issue
Block a user