mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06:11:10 +00:00
Refactors the book, artist, and album slices across the stack
This commit is contained in:
1 parent
8aaf9fe64e
commit
ea6eb9f796
439 files changed
+28235
-3156
No files matched your search
@@ -196,7 +196,7 @@ public class BookDto
|
||||
public List<IsbnDto> ISBNs { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of media contributors (actors, directors, etc) starring in this book.
|
||||
/// Gets the list of media contributors that contributed to this book.
|
||||
/// </summary>
|
||||
//public List<ContributorIdModel> ContributorIds { get; init; } = [];
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for the response of an update book cover operation.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("CoverPath: {CoverPath}")]
|
||||
public class UpdateBookCoverDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the relative path of the stored cover image.
|
||||
/// </summary>
|
||||
public string? CoverPath { get; set; }
|
||||
}
|
||||
+6
-3
@@ -1,4 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -7,8 +8,10 @@ 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, taken from the route. Required.</param>
|
||||
[DebuggerDisplay("Id: {Id}")]
|
||||
/// <param name="BookId">The unique identifier of the book to retrieve, taken from the route. Required.</param>
|
||||
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
|
||||
[DebuggerDisplay("BookId: {BookId}")]
|
||||
public record GetBookRequest(
|
||||
string Id
|
||||
string BookId,
|
||||
Guid LibraryId
|
||||
);
|
||||
+3
-1
@@ -9,7 +9,9 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
|
||||
/// 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>
|
||||
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
|
||||
[DebuggerDisplay("BookId: {BookId}")]
|
||||
public record GetBookReadingAvailabilityRequest(
|
||||
Guid BookId
|
||||
Guid BookId,
|
||||
Guid LibraryId
|
||||
);
|
||||
+3
-1
@@ -9,7 +9,9 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
|
||||
/// 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>
|
||||
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
|
||||
[DebuggerDisplay("BookId: {BookId}")]
|
||||
public record GetBookReadingManifestRequest(
|
||||
Guid BookId
|
||||
Guid BookId,
|
||||
Guid LibraryId
|
||||
);
|
||||
+3
-1
@@ -10,8 +10,10 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
|
||||
/// </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>
|
||||
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
|
||||
[DebuggerDisplay("BookId: {BookId}, ResourceKey: {ResourceKey}")]
|
||||
public record GetBookReadingResourceRequest(
|
||||
Guid BookId,
|
||||
string ResourceKey
|
||||
string ResourceKey,
|
||||
Guid LibraryId
|
||||
);
|
||||
+3
-1
@@ -10,8 +10,10 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
|
||||
/// </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>
|
||||
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
|
||||
[DebuggerDisplay("BookId: {BookId}, LocationRef: {LocationRef}")]
|
||||
public record GetBookReadingSectionRequest(
|
||||
Guid BookId,
|
||||
string LocationRef
|
||||
string LocationRef,
|
||||
Guid LibraryId
|
||||
);
|
||||
+3
-1
@@ -9,7 +9,9 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
|
||||
/// 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>
|
||||
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
|
||||
[DebuggerDisplay("BookId: {BookId}")]
|
||||
public record ReadBookViewRequest(
|
||||
Guid BookId
|
||||
Guid BookId,
|
||||
Guid LibraryId
|
||||
);
|
||||
@@ -10,13 +10,13 @@ public static partial class ApiRoutes
|
||||
/// </summary>
|
||||
public static class Books
|
||||
{
|
||||
public const string GET_BOOKS_LITE = "books/lite";
|
||||
public const string GET_BOOK = "books/{id}";
|
||||
public const string UPDATE_BOOK = "books/{id}";
|
||||
public const string UPDATE_BOOK_COVER = "books/{id}/cover";
|
||||
public const string GET_BOOK_READING_MANIFEST = "books/{bookId}/reading/manifest";
|
||||
public const string GET_BOOK_READING_AVAILABILITY = "books/{bookId}/reading/availability";
|
||||
public const string GET_BOOK_READING_SECTION = "books/{bookId}/reading/sections/{locationRef}";
|
||||
public const string GET_BOOK_READING_RESOURCE = "books/{bookId}/reading/resources/{resourceKey}";
|
||||
public const string GET_BOOKS_LITE = "libraries/{libraryId}/books/lite";
|
||||
public const string GET_BOOK = "libraries/{libraryId}/books/{bookId}";
|
||||
public const string UPDATE_BOOK = "libraries/{libraryId}/books/{bookId}";
|
||||
public const string UPDATE_BOOK_COVER = "libraries/{libraryId}/books/{bookId}/cover";
|
||||
public const string GET_BOOK_READING_MANIFEST = "libraries/{libraryId}/books/{bookId}/reading/manifest";
|
||||
public const string GET_BOOK_READING_AVAILABILITY = "libraries/{libraryId}/books/{bookId}/reading/availability";
|
||||
public const string GET_BOOK_READING_SECTION = "libraries/{libraryId}/books/{bookId}/reading/sections/{locationRef}";
|
||||
public const string GET_BOOK_READING_RESOURCE = "libraries/{libraryId}/books/{bookId}/reading/resources/{resourceKey}";
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,10 @@ public static partial class WebRoutes
|
||||
{
|
||||
public const string INDEX = "{culture}/library/written-content-library/books-library/books";
|
||||
public const string GET_LIBRARY_ITEMS = "{culture}/library/written-content-library/books-library/books/api-get-library-items";
|
||||
public const string EDIT_BOOK = "{culture}/library/written-content-library/books-library/books/{id}";
|
||||
public const string GET_BOOK_DETAILS = "{culture}/library/written-content-library/books-library/books/{id}/api-get-book";
|
||||
public const string SAVE_BOOK = "{culture}/library/written-content-library/books-library/books/{id}/api-save-book";
|
||||
public const string UPDATE_BOOK_COVER = "{culture}/library/written-content-library/books-library/books/{id}/api-update-cover";
|
||||
public const string EDIT_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}";
|
||||
public const string GET_BOOK_DETAILS = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-book";
|
||||
public const string SAVE_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}/api-save-book";
|
||||
public const string UPDATE_BOOK_COVER = "{culture}/library/written-content-library/books-library/books/{bookId}/api-update-cover";
|
||||
public const string READ = "{culture}/library/written-content-library/books-library/books/{bookId}/read";
|
||||
public const string GET_READING_MANIFEST = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-manifest";
|
||||
public const string GET_READING_AVAILABILITY = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-availability";
|
||||
|
||||
+5
-5
@@ -23,7 +23,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.EditBook;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{id}</c> route.
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}</c> route.
|
||||
/// </summary>
|
||||
public class EditBookViewEndpoint : BaseEndpoint<GetBookRequest, IResult>
|
||||
{
|
||||
@@ -85,8 +85,8 @@ public class EditBookViewEndpoint : BaseEndpoint<GetBookRequest, IResult>
|
||||
// The view needs the full details of the book to show its current values, so they are fetched from the API up front; the route
|
||||
// value is normalized to a Guid before it is substituted into the upstream URL, so that a crafted route value can never escape
|
||||
// its URL segment, and an unparseable id is reported by the API as a missing book id.
|
||||
request = request with { Id = Guid.TryParse(request.Id, out Guid bookId) ? bookId.ToString() : Guid.Empty.ToString() };
|
||||
BookDetailsDto book = await _apiHttpClient.GetAsync<BookDetailsDto>(ApiRoutes.Books.GET_BOOK.Replace("{id}", request.Id), cancellationToken).ConfigureAwait(false);
|
||||
request = request with { BookId = Guid.TryParse(request.BookId, out Guid bookId) ? bookId.ToString() : Guid.Empty.ToString() };
|
||||
BookDetailsDto book = await _apiHttpClient.GetAsync<BookDetailsDto>(ApiRoutes.Books.GET_BOOK.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{bookId}", request.BookId), cancellationToken).ConfigureAwait(false);
|
||||
string title = book.Metadata?.Title ?? string.Empty;
|
||||
|
||||
// The themed view is a regular page that submits its own requests, so a fresh anti-forgery token must be issued for it.
|
||||
@@ -104,8 +104,8 @@ public class EditBookViewEndpoint : BaseEndpoint<GetBookRequest, IResult>
|
||||
["bookId"] = book.Id.ToString(),
|
||||
["libraryId"] = book.LibraryId.ToString(),
|
||||
["antiforgeryToken"] = antiforgeryTokens.RequestToken,
|
||||
["saveUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.SAVE_BOOK, new { id = default(Guid) }) ?? string.Empty,
|
||||
["coverUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.UPDATE_BOOK_COVER, new { id = default(Guid) }) ?? string.Empty,
|
||||
["saveUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.SAVE_BOOK, new { bookId = default(Guid) }) ?? string.Empty,
|
||||
["coverUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.UPDATE_BOOK_COVER, new { bookId = default(Guid) }) ?? string.Empty,
|
||||
["backUrl"] = (_urlService.GetAbsoluteUrl(WebRoutes.Books.INDEX) ?? string.Empty) + "?libraryId=" + book.LibraryId,
|
||||
["bookJson"] = JsonSerializer.Serialize(book, s_camelCaseJsonOptions),
|
||||
["strings"] = ThemePageDataFactory.CreateLocalizedStrings(_localizer),
|
||||
|
||||
+4
-2
@@ -21,10 +21,12 @@ public class EditBookViewEndpointSummary : Summary<EditBookViewEndpoint, GetBook
|
||||
Summary = "Renders the edit book view.";
|
||||
Description = "Renders the view for editing the book identified by the request.";
|
||||
|
||||
RequestParam(r => r.Id, "The unique identifier of the book to edit. Required.");
|
||||
RequestParam(r => r.BookId, "The unique identifier of the book to edit. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new GetBookRequest(
|
||||
Id: Guid.NewGuid().ToString()
|
||||
BookId: Guid.NewGuid().ToString(),
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The view for editing the book is rendered.");
|
||||
|
||||
+3
-3
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetBookDetails;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{id}/api-get-book</c> route.
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/api-get-book</c> route.
|
||||
/// </summary>
|
||||
public class GetBookDetailsEndpoint : BaseEndpoint<GetBookRequest, IResult>
|
||||
{
|
||||
@@ -51,9 +51,9 @@ public class GetBookDetailsEndpoint : BaseEndpoint<GetBookRequest, IResult>
|
||||
{
|
||||
// The route value is normalized to a Guid before it is substituted into the upstream URL, so that a crafted route value can
|
||||
// never escape its URL segment, and an unparseable id is reported by the API as a missing book id.
|
||||
request = request with { Id = Guid.TryParse(request.Id, out Guid bookId) ? bookId.ToString() : Guid.Empty.ToString() };
|
||||
request = request with { BookId = Guid.TryParse(request.BookId, out Guid bookId) ? bookId.ToString() : Guid.Empty.ToString() };
|
||||
|
||||
BookDetailsDto book = await _apiHttpClient.GetAsync<BookDetailsDto>(ApiRoutes.Books.GET_BOOK.Replace("{id}", request.Id), cancellationToken).ConfigureAwait(false);
|
||||
BookDetailsDto book = await _apiHttpClient.GetAsync<BookDetailsDto>(ApiRoutes.Books.GET_BOOK.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{bookId}", request.BookId), cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(book);
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -23,10 +23,12 @@ public class GetBookDetailsEndpointSummary : Summary<GetBookDetailsEndpoint, Get
|
||||
Summary = "Gets the details of a book.";
|
||||
Description = "Gets the full details of the book identified by the request, for the details and editing view.";
|
||||
|
||||
RequestParam(r => r.Id, "The unique identifier of the book to get. Required.");
|
||||
RequestParam(r => r.BookId, "The unique identifier of the book to get. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new GetBookRequest(
|
||||
Id: Guid.NewGuid().ToString()
|
||||
BookId: Guid.NewGuid().ToString(),
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The details of the book are returned.", example: new SuccessResponse<BookDetailsDto>(true, default));
|
||||
|
||||
+12
-9
@@ -7,6 +7,7 @@ using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -60,21 +61,23 @@ public class GetLibraryItemsEndpoint : BaseEndpoint<GetBooksLiteRequest, IResult
|
||||
/// <returns>The API endpoint to which the retrieval request is sent.</returns>
|
||||
private static string BuildItemsEndpoint(GetBooksLiteRequest query)
|
||||
{
|
||||
StringBuilder endpoint = new(ApiRoutes.Books.GET_BOOKS_LITE);
|
||||
endpoint.Append($"?libraryId={query.LibraryId}");
|
||||
StringBuilder endpoint = new(ApiRoutes.Books.GET_BOOKS_LITE.Replace("{libraryId}", query.LibraryId.ToString()));
|
||||
List<string> parameters = [];
|
||||
if (query.CurrentPage is not null)
|
||||
endpoint.Append($"¤tPage={query.CurrentPage}");
|
||||
parameters.Add($"currentPage={query.CurrentPage}");
|
||||
if (query.PerPage is not null)
|
||||
endpoint.Append($"&perPage={query.PerPage}");
|
||||
parameters.Add($"perPage={query.PerPage}");
|
||||
if (!string.IsNullOrWhiteSpace(query.SearchTerm))
|
||||
endpoint.Append($"&searchTerm={Uri.EscapeDataString(query.SearchTerm)}");
|
||||
parameters.Add($"searchTerm={Uri.EscapeDataString(query.SearchTerm)}");
|
||||
if (!string.IsNullOrWhiteSpace(query.FilterAlphaKey))
|
||||
endpoint.Append($"&filterAlphaKey={Uri.EscapeDataString(query.FilterAlphaKey)}");
|
||||
endpoint.Append($"&shouldIgnoreThePrefixForAlphaPicker={query.ShouldIgnoreThePrefixForAlphaPicker}");
|
||||
parameters.Add($"filterAlphaKey={Uri.EscapeDataString(query.FilterAlphaKey)}");
|
||||
parameters.Add($"shouldIgnoreThePrefixForAlphaPicker={query.ShouldIgnoreThePrefixForAlphaPicker}");
|
||||
if (!string.IsNullOrWhiteSpace(query.SortBy))
|
||||
endpoint.Append($"&sortBy={Uri.EscapeDataString(query.SortBy)}");
|
||||
parameters.Add($"sortBy={Uri.EscapeDataString(query.SortBy)}");
|
||||
if (query.SortOrder is not null)
|
||||
endpoint.Append($"&sortOrder={query.SortOrder}");
|
||||
parameters.Add($"sortOrder={query.SortOrder}");
|
||||
if (parameters.Count > 0)
|
||||
endpoint.Append('?').Append(string.Join('&', parameters));
|
||||
return endpoint.ToString();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -87,7 +87,7 @@ public class BooksIndexViewEndpoint : BaseEndpoint<GetBooksViewRequest, IResult>
|
||||
["itemsUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.GET_LIBRARY_ITEMS) ?? string.Empty,
|
||||
["settingsUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Settings.GET_USER_SETTINGS) ?? string.Empty,
|
||||
["readUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.READ, new { bookId = default(Guid) }) ?? string.Empty,
|
||||
["detailsUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.EDIT_BOOK, new { id = default(Guid) }) ?? string.Empty,
|
||||
["detailsUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.EDIT_BOOK, new { bookId = default(Guid) }) ?? string.Empty,
|
||||
["availabilityUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_AVAILABILITY, new { bookId = default(Guid) }) ?? string.Empty,
|
||||
["strings"] = ThemePageDataFactory.CreateLocalizedStrings(_localizer)
|
||||
}
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ public class GetReadingAvailabilityEndpoint : BaseEndpoint<GetBookReadingAvailab
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadingAvailabilityRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
ReadingAvailabilityDto response = await _apiHttpClient.GetAsync<ReadingAvailabilityDto>(ApiRoutes.Books.GET_BOOK_READING_AVAILABILITY.Replace("{bookId}", request.BookId.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
ReadingAvailabilityDto response = await _apiHttpClient.GetAsync<ReadingAvailabilityDto>(ApiRoutes.Books.GET_BOOK_READING_AVAILABILITY.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{bookId}", request.BookId.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
return Results.Json(new { success = response.IsAvailable, errorCode = response.ErrorCode, libraryId = response.LibraryId });
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -21,9 +21,11 @@ public class GetReadingAvailabilityEndpointSummary : Summary<GetReadingAvailabil
|
||||
Summary = "Checks the reading availability of a book.";
|
||||
Description = "Checks whether the book can be opened for reading, resolving the book reader configured for its media library and verifying that the reader is enabled, without extracting the book.";
|
||||
RequestParam(r => r.BookId, "The Id of the book whose reading availability is checked. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new GetBookReadingAvailabilityRequest(
|
||||
BookId: Guid.NewGuid()
|
||||
BookId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The reading availability of the book is returned.",
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public class GetReadingManifestEndpoint : BaseEndpoint<GetBookReadingManifestReq
|
||||
{
|
||||
try
|
||||
{
|
||||
ReadingManifestDto response = await _apiHttpClient.GetAsync<ReadingManifestDto>(ApiRoutes.Books.GET_BOOK_READING_MANIFEST.Replace("{bookId}", request.BookId.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
ReadingManifestDto response = await _apiHttpClient.GetAsync<ReadingManifestDto>(ApiRoutes.Books.GET_BOOK_READING_MANIFEST.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{bookId}", request.BookId.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response);
|
||||
}
|
||||
catch (ApiException apiException)
|
||||
|
||||
+3
-1
@@ -21,9 +21,11 @@ public class GetReadingManifestEndpointSummary : Summary<GetReadingManifestEndpo
|
||||
Summary = "Retrieves the reading manifest of a book.";
|
||||
Description = "Retrieves the reading manifest of a book, containing the metadata, the table of contents, the spine, and the resources needed to render the reader.";
|
||||
RequestParam(r => r.BookId, "The Id of the book whose reading manifest is retrieved. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new GetBookReadingManifestRequest(
|
||||
BookId: Guid.NewGuid()
|
||||
BookId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The reading manifest of the book is returned.");
|
||||
|
||||
+1
@@ -50,6 +50,7 @@ public class GetReadingResourceEndpoint : BaseEndpoint<GetBookReadingResourceReq
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadingResourceRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
BlobDataDto response = await _apiHttpClient.GetBlobAsync(ApiRoutes.Books.GET_BOOK_READING_RESOURCE
|
||||
.Replace("{libraryId}", request.LibraryId.ToString())
|
||||
.Replace("{bookId}", request.BookId.ToString())
|
||||
.Replace("{resourceKey}", Uri.EscapeDataString(request.ResourceKey)), cancellationToken).ConfigureAwait(false);
|
||||
// The resource is served without content sniffing, so that the browser never renders book content as anything but the media type the API declared.
|
||||
|
||||
+3
-1
@@ -22,10 +22,12 @@ public class GetReadingResourceEndpointSummary : Summary<GetReadingResourceEndpo
|
||||
Description = "Retrieves the binary content of a resource of a book, such as an image or a font referenced by a reading section.";
|
||||
RequestParam(r => r.BookId, "The Id of the book whose resource is retrieved. Required.");
|
||||
RequestParam(r => r.ResourceKey, "The opaque resource key of the resource. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new GetBookReadingResourceRequest(
|
||||
BookId: Guid.NewGuid(),
|
||||
ResourceKey: "cover-image"
|
||||
ResourceKey: "cover-image",
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The resource of the book is returned.");
|
||||
|
||||
+1
@@ -50,6 +50,7 @@ public class GetReadingSectionEndpoint : BaseEndpoint<GetBookReadingSectionReque
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadingSectionRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
ReadingSectionDto response = await _apiHttpClient.GetAsync<ReadingSectionDto>(ApiRoutes.Books.GET_BOOK_READING_SECTION
|
||||
.Replace("{libraryId}", request.LibraryId.ToString())
|
||||
.Replace("{bookId}", request.BookId.ToString())
|
||||
.Replace("{locationRef}", Uri.EscapeDataString(request.LocationRef)), cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response);
|
||||
|
||||
+3
-1
@@ -22,10 +22,12 @@ public class GetReadingSectionEndpointSummary : Summary<GetReadingSectionEndpoin
|
||||
Description = "Retrieves the sanitized HTML content of the reading section of a book, ready to be rendered by the client.";
|
||||
RequestParam(r => r.BookId, "The Id of the book whose reading section is retrieved. Required.");
|
||||
RequestParam(r => r.LocationRef, "The opaque location reference of the reading section. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new GetBookReadingSectionRequest(
|
||||
BookId: Guid.NewGuid(),
|
||||
LocationRef: "chapter-1"
|
||||
LocationRef: "chapter-1",
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The content of the reading section is returned.");
|
||||
|
||||
+3
-1
@@ -21,9 +21,11 @@ public class ReadViewEndpointSummary : Summary<ReadViewEndpoint, ReadBookViewReq
|
||||
Summary = "Displays the reading view of a book.";
|
||||
Description = "Displays the reading view of the book identified by the request.";
|
||||
RequestParam(r => r.BookId, "The Id of the book to read. Required.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library the book belongs to. Required.");
|
||||
|
||||
ExampleRequest = new ReadBookViewRequest(
|
||||
BookId: Guid.NewGuid()
|
||||
BookId: Guid.NewGuid(),
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The reading view of the book is displayed.");
|
||||
|
||||
+32
-12
@@ -1,6 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
@@ -15,7 +16,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.UpdateBookCover;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{id}/api-update-cover</c> route.
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/api-update-cover</c> route.
|
||||
/// </summary>
|
||||
public class UpdateBookCoverEndpoint : BaseEndpoint<EmptyRequest, IResult>
|
||||
{
|
||||
@@ -50,19 +51,38 @@ public class UpdateBookCoverEndpoint : BaseEndpoint<EmptyRequest, IResult>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
// The endpoint takes no typed request, because its body is a multipart file, so the book id is read from the {id} route
|
||||
// value; an unparseable value becomes Guid.Empty, which the upstream API reports as a missing book id.
|
||||
Guid bookId = Guid.TryParse(HttpContext.Request.RouteValues["id"]?.ToString(), out Guid parsedBookId) ? parsedBookId : Guid.Empty;
|
||||
// The endpoint takes no typed request, because its body is a multipart file, so the book id is read from the {bookId} route
|
||||
// value and the owning library from the {libraryId} query string; an unparseable book id becomes Guid.Empty. A missing file
|
||||
// is forwarded as a multipart form without any file, so that the upstream API reports it with its own validation error.
|
||||
Guid bookId = Guid.TryParse(HttpContext.Request.RouteValues["bookId"]?.ToString(), out Guid parsedBookId) ? parsedBookId : Guid.Empty;
|
||||
string? libraryId = HttpContext.Request.Query["libraryId"].ToString();
|
||||
|
||||
// The cover is the first file of the multipart form, and without it the request cannot update anything.
|
||||
IFormFile? cover = HttpContext.Request.Form.Files.Count > 0 ? HttpContext.Request.Form.Files[0] : null;
|
||||
if (cover is null)
|
||||
return Results.Problem(statusCode: StatusCodes.Status400BadRequest, detail: "The uploaded cover image is missing.");
|
||||
// The cover is the first file of the multipart form; a non-multipart body, or a multipart body without any file, is treated
|
||||
// as a missing cover and forwarded as a request without a file, so that the upstream API reports it with its own validation error.
|
||||
IFormFile? cover = null;
|
||||
if (HttpContext.Request.HasFormContentType)
|
||||
{
|
||||
try
|
||||
{
|
||||
cover = HttpContext.Request.Form.Files.Count > 0 ? HttpContext.Request.Form.Files[0] : null;
|
||||
}
|
||||
catch (InvalidDataException)
|
||||
{
|
||||
cover = null;
|
||||
}
|
||||
}
|
||||
|
||||
// The cover stream must stay open while the file is streamed to the API, and is disposed when the request completes.
|
||||
await using Stream coverStream = cover.OpenReadStream();
|
||||
string? coverPath = await _apiHttpClient.PutMultipartAsync<string>(
|
||||
ApiRoutes.Books.UPDATE_BOOK_COVER.Replace("{id}", bookId.ToString()), coverStream, cover.FileName, "cover", cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(coverPath);
|
||||
Stream? coverStream = cover?.OpenReadStream();
|
||||
try
|
||||
{
|
||||
UpdateBookCoverDto response = await _apiHttpClient.PutMultipartAsync<UpdateBookCoverDto>(
|
||||
ApiRoutes.Books.UPDATE_BOOK_COVER.Replace("{libraryId}", libraryId).Replace("{bookId}", bookId.ToString()), coverStream, cover?.FileName, "cover", cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response.CoverPath);
|
||||
}
|
||||
finally
|
||||
{
|
||||
coverStream?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>زيمبابوي</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>الدور</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>ممثل</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>مخرج</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>كاتب سيناريو</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>ملحن</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>كاتب كلمات</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>موزع موسيقي</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>قائد أوركسترا</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>منتج</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>منتج تنفيذي</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>مهندس صوت</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>مهندس مكساج</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>ريمكس</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>شركة إنتاج</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>غناء</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>غناء مساند</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>غيتار</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>غيتار باس</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>طبول</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>إيقاع</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>آلات مفاتيح</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>بيانو</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>سينثسيزر</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>آلات وترية</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>آلات نفخ خشبية</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>آلات نفخ نحاسية</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>جوقة</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>منسق الأوركسترا</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Simbabwe</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Rolle</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Schauspieler</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Regisseur</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Drehbuchautor</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Komponist</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Textdichter</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Arrangeur</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Dirigent</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Produzent</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Executive Producer</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Toningenieur</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Tonmischer</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remixer</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Plattenlabel</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Gesang</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Begleitgesang</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Gitarre</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Bassgitarre</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Schlagzeug</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Perkussion</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Keyboards</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Klavier</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Synthesizer</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Streicher</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Holzblasinstrumente</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Blechblasinstrumente</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Chor</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orchestrator</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Zimbabwe</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Role</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Actor</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Director</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Screenwriter</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Composer</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Lyricist</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Arranger</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Conductor</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Producer</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Executive producer</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Engineer</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Mixer</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remixer</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Record label</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Vocals</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Backing vocals</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Guitar</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Bass guitar</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Drums</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Percussion</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Keyboards</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Piano</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Synthesizer</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Strings</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Woodwinds</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Brass</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Choir</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orchestrator</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Zimbabue</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Rol</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Actor</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Director</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Guionista</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Compositor</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Letrista</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Arreglista</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Director de orquesta</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Productor</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Productor ejecutivo</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Ingeniero de sonido</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Mezclador</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remezclador</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Sello discográfico</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Voz</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Coros</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Guitarra</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Bajo</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Batería</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Percusión</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Teclados</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Piano</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Sintetizador</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Cuerdas</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Maderas</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Metales</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Coro</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orquestador</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Zimbabwe</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Rôle</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Acteur</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Réalisateur</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Scénariste</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Compositeur</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Parolier</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Arrangeur</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Chef d'orchestre</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Producteur</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Producteur exécutif</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Ingénieur du son</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Mixeur</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remixeur</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Maison de disques</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Chant</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Chœurs</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Guitare</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Guitare basse</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Batterie</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Percussions</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Claviers</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Piano</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Synthétiseur</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Cordes</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Bois</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Cuivres</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Chœur</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orchestrateur</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Zimbabwe</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Ruolo</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Attore</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Regista</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Sceneggiatore</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Compositore</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Paroliere</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Arrangiatore</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Direttore d'orchestra</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Produttore</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Produttore esecutivo</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Ingegnere del suono</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Mixer</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remixer</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Etichetta discografica</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Voce</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Cori</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Chitarra</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Basso</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Batteria</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Percussioni</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Tastiere</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Pianoforte</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Sintetizzatore</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Archi</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Legni</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Ottoni</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Coro</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orchestratore</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>ジンバブエ</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>役割</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>俳優</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>監督</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>脚本家</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>作曲家</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>作詞家</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>編曲家</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>指揮者</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>プロデューサー</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>エグゼクティブプロデューサー</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>エンジニア</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>ミキサー</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>リミキサー</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>レコードレーベル</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>ボーカル</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>バックボーカル</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>ギター</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>ベースギター</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>ドラム</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>パーカッション</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>キーボード</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>ピアノ</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>シンセサイザー</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>弦楽器</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>木管楽器</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>金管楽器</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>合唱</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>オーケストレーター</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -966,4 +966,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Zimbabwe</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Role</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Actor</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Director</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Screenwriter</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Composer</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Lyricist</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Arranger</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Conductor</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Producer</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Executive producer</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Engineer</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Mixer</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remixer</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Record label</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Vocals</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Backing vocals</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Guitar</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Bass guitar</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Drums</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Percussion</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Keyboards</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Piano</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Synthesizer</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Strings</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Woodwinds</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Brass</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Choir</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orchestrator</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Zimbabwe</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Rol</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Actor</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Regizor</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Scenarist</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Compozitor</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Textier</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Aranjor</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Dirijor</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Producător</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Producător executiv</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Inginer de sunet</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Mixer</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Remixer</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Casă de discuri</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Voce</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Coruri</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Chitară</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Chitară bas</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Tobe</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Percuție</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Claviaturi</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Pian</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Sintetizator</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Coarde</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Suflat din lemn</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Alămuri</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Cor</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Orchestrator</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>Зімбабве</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>Роль</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>Актор</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>Режисер</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>Сценарист</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>Композитор</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>Автор тексту</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>Аранжувальник</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>Диригент</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>Продюсер</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>Виконавчий продюсер</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>Звукорежисер</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>Мікшувальник</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>Реміксер</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>Лейбл</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>Вокал</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>Бек-вокал</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>Гітара</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>Бас-гітара</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>Барабани</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>Перкусія</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>Клавішні</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>Фортепіано</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>Синтезатор</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>Струнні</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>Дерев'яні духові</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>Мідні духові</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>Хор</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>Оркестратор</value>
|
||||
</data>
|
||||
</root>
|
||||
+85
-1
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
@@ -967,4 +967,88 @@
|
||||
<data name="Country.ZW" xml:space="preserve">
|
||||
<value>津巴布韦</value>
|
||||
</data>
|
||||
<data name="Role" xml:space="preserve">
|
||||
<value>角色</value>
|
||||
</data>
|
||||
<data name="Actor" xml:space="preserve">
|
||||
<value>演员</value>
|
||||
</data>
|
||||
<data name="Director" xml:space="preserve">
|
||||
<value>导演</value>
|
||||
</data>
|
||||
<data name="Screenwriter" xml:space="preserve">
|
||||
<value>编剧</value>
|
||||
</data>
|
||||
<data name="Composer" xml:space="preserve">
|
||||
<value>作曲家</value>
|
||||
</data>
|
||||
<data name="Lyricist" xml:space="preserve">
|
||||
<value>作词人</value>
|
||||
</data>
|
||||
<data name="Arranger" xml:space="preserve">
|
||||
<value>编曲人</value>
|
||||
</data>
|
||||
<data name="Conductor" xml:space="preserve">
|
||||
<value>指挥家</value>
|
||||
</data>
|
||||
<data name="Producer" xml:space="preserve">
|
||||
<value>制作人</value>
|
||||
</data>
|
||||
<data name="ExecutiveProducer" xml:space="preserve">
|
||||
<value>执行制片人</value>
|
||||
</data>
|
||||
<data name="Engineer" xml:space="preserve">
|
||||
<value>录音工程师</value>
|
||||
</data>
|
||||
<data name="Mixer" xml:space="preserve">
|
||||
<value>混音师</value>
|
||||
</data>
|
||||
<data name="Remixer" xml:space="preserve">
|
||||
<value>混音师</value>
|
||||
</data>
|
||||
<data name="RecordLabel" xml:space="preserve">
|
||||
<value>唱片公司</value>
|
||||
</data>
|
||||
<data name="Vocals" xml:space="preserve">
|
||||
<value>主唱</value>
|
||||
</data>
|
||||
<data name="BackingVocals" xml:space="preserve">
|
||||
<value>和声</value>
|
||||
</data>
|
||||
<data name="Guitar" xml:space="preserve">
|
||||
<value>吉他</value>
|
||||
</data>
|
||||
<data name="BassGuitar" xml:space="preserve">
|
||||
<value>贝斯</value>
|
||||
</data>
|
||||
<data name="Drums" xml:space="preserve">
|
||||
<value>鼓</value>
|
||||
</data>
|
||||
<data name="Percussion" xml:space="preserve">
|
||||
<value>打击乐</value>
|
||||
</data>
|
||||
<data name="Keyboards" xml:space="preserve">
|
||||
<value>键盘</value>
|
||||
</data>
|
||||
<data name="Piano" xml:space="preserve">
|
||||
<value>钢琴</value>
|
||||
</data>
|
||||
<data name="Synthesizer" xml:space="preserve">
|
||||
<value>合成器</value>
|
||||
</data>
|
||||
<data name="Strings" xml:space="preserve">
|
||||
<value>弦乐</value>
|
||||
</data>
|
||||
<data name="Woodwinds" xml:space="preserve">
|
||||
<value>木管乐</value>
|
||||
</data>
|
||||
<data name="Brass" xml:space="preserve">
|
||||
<value>铜管乐</value>
|
||||
</data>
|
||||
<data name="Choir" xml:space="preserve">
|
||||
<value>合唱团</value>
|
||||
</data>
|
||||
<data name="Orchestrator" xml:space="preserve">
|
||||
<value>配器师</value>
|
||||
</data>
|
||||
</root>
|
||||
+5
-5
@@ -66,7 +66,7 @@
|
||||
|
||||
const libraryId = '@(Model.Id ?? Guid.Empty)';
|
||||
const readUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.READ, new { bookId = default(Guid) })';
|
||||
const detailsUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.EDIT_BOOK, new { id = default(Guid) })';
|
||||
const detailsUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.EDIT_BOOK, new { bookId = default(Guid) })';
|
||||
const availabilityUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_AVAILABILITY, new { bookId = default(Guid) })';
|
||||
// The element references are captured once, so that the cleanup can unbind their listeners even after the AJAX navigator has swapped the content out of the document.
|
||||
const booksContainer = document.getElementById('books-container');
|
||||
@@ -170,7 +170,7 @@
|
||||
cardLink.style.width = '160px';
|
||||
cardLink.style.height = '240px';
|
||||
cardLink.dataset.bookId = book.id;
|
||||
cardLink.href = readUrlTemplate.replace('/@(default(Guid))', `/${book.id}`);
|
||||
cardLink.href = readUrlTemplate.replace('/@(default(Guid))', `/${book.id}`) + `?libraryId=${libraryId}`;
|
||||
// Opening the reader is conditional on the reader being available and enabled for the library, so the generic nav-link
|
||||
// navigation is intercepted and replaced by one that first checks the reading availability, warning instead of navigating
|
||||
// when the book cannot be read.
|
||||
@@ -195,7 +195,7 @@
|
||||
cardLink.appendChild(image);
|
||||
cardLink.appendChild(titleSpan);
|
||||
|
||||
const detailsUrl = detailsUrlTemplate.replace('/@(default(Guid))', `/${book.id}`);
|
||||
const detailsUrl = detailsUrlTemplate.replace('/@(default(Guid))', `/${book.id}`) + `?libraryId=${libraryId}`;
|
||||
|
||||
const trigger = document.createElement('button');
|
||||
trigger.type = 'button';
|
||||
@@ -212,7 +212,7 @@
|
||||
menu.className = 'card-actions-menu';
|
||||
menu.setAttribute('role', 'menu');
|
||||
menu.innerHTML = `
|
||||
<a role="menuitem" href="${readUrlTemplate.replace('/@(default(Guid))', `/${book.id}`)}">${jsLocalizedStrings.read}</a>
|
||||
<a role="menuitem" href="${readUrlTemplate.replace('/@(default(Guid))', `/${book.id}`) + `?libraryId=${libraryId}`}">${jsLocalizedStrings.read}</a>
|
||||
<a role="menuitem" href="${detailsUrl}">${jsLocalizedStrings.viewDetails}</a>`;
|
||||
|
||||
// Menu entries navigate through the same AJAX navigation used by the nav-links, so that the persistent chrome keeps running.
|
||||
@@ -302,7 +302,7 @@
|
||||
// Opens the reader of the book when it can be read, and warns the user otherwise; the navigation is done through the same
|
||||
// AJAX navigation used by the nav-links, so that the page is not reloaded (and the audio player is not interrupted).
|
||||
async function handleBookCardClickAsync(card) {
|
||||
const availabilityUrl = availabilityUrlTemplate.replace('/@(default(Guid))', `/${card.dataset.bookId}`);
|
||||
const availabilityUrl = availabilityUrlTemplate.replace('/@(default(Guid))', `/${card.dataset.bookId}`) + `?libraryId=${libraryId}`;
|
||||
const response = await fetch(availabilityUrl, {
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
|
||||
+37
-44
@@ -10,7 +10,7 @@
|
||||
the page, edit the theme files. This fallback keeps every feature working without styling, so that a
|
||||
broken theme is obvious to the user while the page still functions.
|
||||
|
||||
/library/written-content-library/books-library/books/{id}
|
||||
/library/written-content-library/books-library/books/{bookId}
|
||||
*@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary
|
||||
@@ -34,18 +34,23 @@
|
||||
var genres = metadata?.Genres ?? [];
|
||||
var tags = metadata?.Tags ?? [];
|
||||
var isbns = Model.ISBNs ?? [];
|
||||
var contributors = Model.Contributors ?? [];
|
||||
var contributors = Model.Contributors ?? [];
|
||||
var ratings = Model.Ratings ?? [];
|
||||
// Resolves the localized label of a contributor role category, keyed by its domain value.
|
||||
Func<string?, string> categoryLabel = category => category switch
|
||||
// The full set of canonical media contributor roles, mirroring the MediaContributorRole enum members, offered by the role combobox.
|
||||
var contributorRoles = new[]
|
||||
{
|
||||
"Other", "Author", "Translator", "Illustrator", "Publisher", "Narrator", "Actor", "Director", "Screenwriter",
|
||||
"Composer", "Lyricist", "Arranger", "Conductor", "Producer", "ExecutiveProducer", "Engineer", "Mixer", "Remixer",
|
||||
"RecordLabel", "Vocals", "BackingVocals", "Guitar", "BassGuitar", "Drums", "Percussion", "Keyboards", "Piano",
|
||||
"Synthesizer", "Strings", "Woodwinds", "Brass", "Choir", "Orchestrator"
|
||||
};
|
||||
// Resolves the localized label of a contributor role, keyed by its canonical value.
|
||||
Func<string?, string> roleLabel = role => role switch
|
||||
{
|
||||
"Publisher" => _localizer["PublisherRole"].Value,
|
||||
"Other" => _localizer["OtherRole"].Value,
|
||||
"Author" => _localizer["Author"].Value,
|
||||
"Translator" => _localizer["Translator"].Value,
|
||||
"Illustrator" => _localizer["Illustrator"].Value,
|
||||
"Narrator" => _localizer["Narrator"].Value,
|
||||
_ => category ?? string.Empty
|
||||
_ when !string.IsNullOrWhiteSpace(role) => _localizer[role].Value,
|
||||
_ => string.Empty
|
||||
};
|
||||
// The country of release carried by the book, keyed by its ISO code.
|
||||
var currentReleaseCountry = releaseInfo?.ReleaseCountry?.ToString() ?? string.Empty;
|
||||
@@ -408,9 +413,8 @@
|
||||
<table class="w-100 form-table book-list-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-35">@_localizer["ContributorName"]</th>
|
||||
<th class="w-25">@_localizer["RoleName"]</th>
|
||||
<th class="w-30">@_localizer["RoleCategory"]</th>
|
||||
<th class="w-55">@_localizer["ContributorName"]</th>
|
||||
<th class="w-35">@_localizer["Role"]</th>
|
||||
<th class="w-10"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -419,22 +423,19 @@
|
||||
@foreach (var contributor in contributors)
|
||||
{
|
||||
<tr class="contributor-row">
|
||||
<td><input type="text" class="enlightenment-input contributor-name" value="@(contributor.Name?.DisplayName ?? string.Empty)" /></td>
|
||||
<td><input type="text" class="enlightenment-input contributor-role" value="@(contributor.Role?.Name ?? string.Empty)" /></td>
|
||||
<td><input type="text" class="enlightenment-input contributor-name w-100" value="@(contributor.Name?.DisplayName ?? string.Empty)" /></td>
|
||||
<td>
|
||||
<div class="enlightenment-combobox inline-block w-100 contributor-category-combobox">
|
||||
<div class="enlightenment-combobox inline-block w-100 contributor-role-combobox">
|
||||
<div class="shine-effect" style="top: 1px;"></div>
|
||||
<input type="checkbox" class="enlightenment-toggle-checkbox" id="contributor-category-toggle-@contributorIndex" />
|
||||
<label class="enlightenment-toggle" for="contributor-category-toggle-@contributorIndex">
|
||||
<span class="enlightenment-selected-text" data-value="@(contributor.Role?.Category?.ToString() ?? "Other")">@categoryLabel(contributor.Role?.Category?.ToString())</span>
|
||||
<input type="checkbox" class="enlightenment-toggle-checkbox" id="contributor-role-toggle-@contributorIndex" />
|
||||
<label class="enlightenment-toggle" for="contributor-role-toggle-@contributorIndex">
|
||||
<span class="enlightenment-selected-text" data-value="@(contributor.Role?.ToString() ?? "Other")">@roleLabel(contributor.Role?.ToString() ?? "Other")</span>
|
||||
</label>
|
||||
<div class="enlightenment-dropdown">
|
||||
<div class="enlightenment-option" data-value="Other">@_localizer["OtherRole"]</div>
|
||||
<div class="enlightenment-option" data-value="Author">@_localizer["Author"]</div>
|
||||
<div class="enlightenment-option" data-value="Translator">@_localizer["Translator"]</div>
|
||||
<div class="enlightenment-option" data-value="Illustrator">@_localizer["Illustrator"]</div>
|
||||
<div class="enlightenment-option" data-value="Publisher">@_localizer["PublisherRole"]</div>
|
||||
<div class="enlightenment-option" data-value="Narrator">@_localizer["Narrator"]</div>
|
||||
@foreach (string role in contributorRoles)
|
||||
{
|
||||
<div class="enlightenment-option" data-value="@role">@roleLabel(role)</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@@ -515,8 +516,8 @@
|
||||
const bookId = '@bookId';
|
||||
const libraryId = '@libraryId';
|
||||
const libraryIndexUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.INDEX)';
|
||||
const saveUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.SAVE_BOOK, new { id = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`);
|
||||
const coverUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.UPDATE_BOOK_COVER, new { id = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`);
|
||||
const saveUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.SAVE_BOOK, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`);
|
||||
const coverUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.UPDATE_BOOK_COVER, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + `?libraryId=${libraryId}`;
|
||||
|
||||
// The element references are captured once, so that the cleanup can unbind their listeners even after the AJAX navigator has swapped the content out of the document.
|
||||
const coverImage = document.getElementById('book-cover-image');
|
||||
@@ -577,6 +578,7 @@
|
||||
function buildPayload() {
|
||||
return {
|
||||
Id: bookId,
|
||||
LibraryId: libraryId,
|
||||
Format: readComboboxValue('format-combobox') || null,
|
||||
Edition: readValue('edition-input') || null,
|
||||
VolumeNumber: readNumber('volume-number-input'),
|
||||
@@ -595,10 +597,7 @@
|
||||
})),
|
||||
Contributors: Array.from(contributorsBody.querySelectorAll('.contributor-row')).map(row => ({
|
||||
Name: { DisplayName: row.querySelector('.contributor-name').value.trim() || null },
|
||||
Role: {
|
||||
Name: row.querySelector('.contributor-role').value.trim() || null,
|
||||
Category: readRowComboboxValue(row, '.contributor-category-combobox') || null
|
||||
}
|
||||
Role: readRowComboboxValue(row, '.contributor-role-combobox') || null
|
||||
})),
|
||||
Ratings: Array.from(ratingsBody.querySelectorAll('.rating-row')).map(row => ({
|
||||
Value: parseOptionalDecimal(row.querySelector('.rating-value').value),
|
||||
@@ -763,9 +762,9 @@
|
||||
const isbn = isbnOptions.find(option => option.value === value);
|
||||
if (isbn)
|
||||
return isbn.label;
|
||||
const category = contributorCategoryOptions.find(option => option.value === value);
|
||||
if (category)
|
||||
return category.label;
|
||||
const role = contributorRoleOptions.find(option => option.value === value);
|
||||
if (role)
|
||||
return role.label;
|
||||
const source = ratingSourceOptions.find(option => option.value === value);
|
||||
if (source)
|
||||
return source.label;
|
||||
@@ -776,14 +775,9 @@
|
||||
{ value: 'Isbn10', label: @Json.Serialize(_localizer["Isbn10"].Value) },
|
||||
{ value: 'Isbn13', label: @Json.Serialize(_localizer["Isbn13"].Value) }
|
||||
];
|
||||
const contributorCategoryOptions = [
|
||||
{ value: 'Other', label: @Json.Serialize(_localizer["OtherRole"].Value) },
|
||||
{ value: 'Author', label: @Json.Serialize(_localizer["Author"].Value) },
|
||||
{ value: 'Translator', label: @Json.Serialize(_localizer["Translator"].Value) },
|
||||
{ value: 'Illustrator', label: @Json.Serialize(_localizer["Illustrator"].Value) },
|
||||
{ value: 'Publisher', label: @Json.Serialize(_localizer["PublisherRole"].Value) },
|
||||
{ value: 'Narrator', label: @Json.Serialize(_localizer["Narrator"].Value) }
|
||||
];
|
||||
const contributorRoleOptions = @Html.Raw(System.Text.Json.JsonSerializer.Serialize(
|
||||
contributorRoles.Select(role => new { value = role, label = roleLabel(role) }),
|
||||
new System.Text.Json.JsonSerializerOptions { PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase }));
|
||||
const ratingSourceOptions = [
|
||||
{ value: 'User', label: @Json.Serialize(_localizer["User"].Value) },
|
||||
{ value: 'OpenLibrary', label: @Json.Serialize(_localizer["OpenLibrary"].Value) },
|
||||
@@ -807,9 +801,8 @@
|
||||
function addContributorRow() {
|
||||
contributorsBody.insertAdjacentHTML('beforeend', `
|
||||
<tr class="contributor-row">
|
||||
<td><input type="text" class="enlightenment-input contributor-name" /></td>
|
||||
<td><input type="text" class="enlightenment-input contributor-role" value="Author" /></td>
|
||||
<td>${buildRowCombobox(contributorCategoryOptions, 'Author')}</td>
|
||||
<td><input type="text" class="enlightenment-input contributor-name w-100" /></td>
|
||||
<td>${buildRowCombobox(contributorRoleOptions, 'Author')}</td>
|
||||
<td><img src="/images/ui/delete.svg" alt="${jsLocalizedStrings.remove}" title="${jsLocalizedStrings.remove}" class="remove-form-table-row-icon" /></td>
|
||||
</tr>`);
|
||||
}
|
||||
|
||||
+5
-4
@@ -42,11 +42,12 @@
|
||||
let isInitialized = false;
|
||||
|
||||
const bookId = '@Model.BookId';
|
||||
const manifestUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_MANIFEST, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`);
|
||||
const availabilityUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_AVAILABILITY, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`);
|
||||
const libraryId = '@Model.LibraryId';
|
||||
const manifestUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_MANIFEST, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + `?libraryId=${libraryId}`;
|
||||
const availabilityUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_AVAILABILITY, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + `?libraryId=${libraryId}`;
|
||||
const libraryIndexUrl = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.INDEX)';
|
||||
const sectionUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_SECTION, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + '?locationRef=';
|
||||
const resourceUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_RESOURCE, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + '?resourceKey=';
|
||||
const sectionUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_SECTION, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + `?libraryId=${libraryId}&locationRef=`;
|
||||
const resourceUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_RESOURCE, new { bookId = default(Guid) })'.replace('/@(default(Guid))', `/${bookId}`) + `?libraryId=${libraryId}&resourceKey=`;
|
||||
|
||||
// Escapes a string for safe interpolation into HTML markup; the table of contents labels and location references come from
|
||||
// the book file itself, so they are escaped before they are placed into innerHTML, keeping a malicious book from injecting markup.
|
||||
|
||||
Reference in new issue
Block a user