mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Adds book reading support with EPUB and PDF reader plugins
This commit is contained in:
1 parent
275fd83ff2
commit
f7ccdf3d1c
271 files changed
+11501
-361
No files matched your search
+5
-1
@@ -22,7 +22,11 @@ public class DeleteRoleEndpointSummary : Summary<DeleteRoleEndpoint, DeleteRoleR
|
||||
Summary = "Deletes a role.";
|
||||
Description = "Deletes an existing authorization role identified by its unique identifier.";
|
||||
|
||||
RequestParam(r => r.RoleId, "The unique identifier of the role to delete.");
|
||||
RequestParam(r => r.RoleId, "The unique identifier of the role to delete. Required.");
|
||||
|
||||
ExampleRequest = new DeleteRoleRequest(
|
||||
RoleId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The role is deleted.", example: new SuccessResponse(true));
|
||||
}
|
||||
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class GetRolePermissionsEndpointSummary : Summary<GetRolePermissionsEndpo
|
||||
Summary = "Gets the permissions of a role.";
|
||||
Description = "Retrieves the permissions of an existing authorization role identified by its unique identifier.";
|
||||
|
||||
RequestParam(r => r.RoleId, "The unique identifier of the role whose permissions are retrieved.");
|
||||
RequestParam(r => r.RoleId, "The unique identifier of the role whose permissions are retrieved. Required.");
|
||||
|
||||
ExampleRequest = new GetRolePermissionsRequest(
|
||||
RoleId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The permissions of the role are returned.", example: new SuccessResponse<RolePermissionsDto>(true, default));
|
||||
}
|
||||
|
||||
+5
-1
@@ -22,7 +22,11 @@ public class DeleteThemeEndpointSummary : Summary<DeleteThemeEndpoint, DeleteThe
|
||||
Summary = "Deletes a theme.";
|
||||
Description = "Deletes the theme identified by the request, switching to another available theme when the deleted theme was the active one.";
|
||||
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme to delete.");
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme to delete. Required.");
|
||||
|
||||
ExampleRequest = new DeleteThemeRequest(
|
||||
ThemeId: "neon-grid"
|
||||
);
|
||||
|
||||
Response(200, "The theme was successfully deleted.", example: new SuccessResponse(true));
|
||||
}
|
||||
|
||||
+5
-1
@@ -21,7 +21,11 @@ public class DownloadThemeEndpointSummary : Summary<DownloadThemeEndpoint, GetTh
|
||||
Summary = "Downloads the archive of a theme.";
|
||||
Description = "Downloads the ZIP archive of the installed theme identified by the request.";
|
||||
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme to download.");
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme to download. Required.");
|
||||
|
||||
ExampleRequest = new GetThemeArchiveRequest(
|
||||
ThemeId: "lumina-default"
|
||||
);
|
||||
|
||||
Response(200, "The ZIP archive of the theme is returned.", "application/zip");
|
||||
}
|
||||
|
||||
+5
-1
@@ -22,7 +22,11 @@ public class SetCurrentThemeEndpointSummary : Summary<SetCurrentThemeEndpoint, S
|
||||
Summary = "Sets the currently active theme.";
|
||||
Description = "Sets the theme identified by the request as the currently active theme.";
|
||||
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme to activate.");
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme to activate. Required.");
|
||||
|
||||
ExampleRequest = new SetCurrentThemeRequest(
|
||||
ThemeId: "lumina-default"
|
||||
);
|
||||
|
||||
Response(200, "The theme was successfully activated.", example: new SuccessResponse(true));
|
||||
}
|
||||
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class GetUserPermissionsEndpointSummary : Summary<GetUserPermissionsEndpo
|
||||
Summary = "Gets the permissions of a user.";
|
||||
Description = "Retrieves the authorization permissions of a user identified by its unique identifier.";
|
||||
|
||||
RequestParam(r => r.UserId, "The unique identifier of the user for whom to get the authorization permissions.");
|
||||
RequestParam(r => r.UserId, "The unique identifier of the user for whom to get the authorization permissions. Required.");
|
||||
|
||||
ExampleRequest = new GetUserPermissionsRequest(
|
||||
UserId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The permissions of the user are returned.", example: new SuccessResponse<PermissionDto[]>(true, default));
|
||||
}
|
||||
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class GetUserRoleEndpointSummary : Summary<GetUserRoleEndpoint, GetUserRo
|
||||
Summary = "Gets the role of a user.";
|
||||
Description = "Retrieves the authorization role of a user identified by its unique identifier.";
|
||||
|
||||
RequestParam(r => r.UserId, "The unique identifier of the user for whom to get the authorization role.");
|
||||
RequestParam(r => r.UserId, "The unique identifier of the user for whom to get the authorization role. Required.");
|
||||
|
||||
ExampleRequest = new GetUserRoleRequest(
|
||||
UserId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The role of the user is returned.", example: new SuccessResponse<RoleDto?>(true, default));
|
||||
}
|
||||
|
||||
+7
-2
@@ -23,8 +23,13 @@ public class GetDirectoriesEndpointSummary : Summary<GetDirectoriesEndpoint, Get
|
||||
Summary = "Retrieves the directories of a file system path.";
|
||||
Description = "Retrieves the directories of the file system path identified by the request.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the directories.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not.");
|
||||
RequestParam(r => r.Path, "The file system path for which to get the directories. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
|
||||
ExampleRequest = new GetDirectoriesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
);
|
||||
|
||||
Response(200, "The directories of the file system path are returned.", example: new SuccessResponse<DirectoryDto[]>(true, default));
|
||||
}
|
||||
|
||||
+7
-2
@@ -23,8 +23,13 @@ public class GetFilesEndpointSummary : Summary<GetFilesEndpoint, GetFilesRequest
|
||||
Summary = "Retrieves the files of a file system path.";
|
||||
Description = "Retrieves the files of the file system path identified by the request.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the files.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not.");
|
||||
RequestParam(r => r.Path, "The file system path for which to get the files. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
|
||||
ExampleRequest = new GetFilesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
);
|
||||
|
||||
Response(200, "The files of the file system path are returned.", example: new SuccessResponse<FileDto[]>(true, default));
|
||||
}
|
||||
|
||||
+7
-2
@@ -23,8 +23,13 @@ public class GetTreeFilesEndpointSummary : Summary<GetTreeFilesEndpoint, GetTree
|
||||
Summary = "Retrieves the file system tree of a file system path.";
|
||||
Description = "Retrieves the file system tree of the file system path identified by the request.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the tree files.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not.");
|
||||
RequestParam(r => r.Path, "The file system path for which to get the tree files. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden file system elements or not. Optional.");
|
||||
|
||||
ExampleRequest = new GetTreeFilesRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
);
|
||||
|
||||
Response(200, "The file system tree of the file system path is returned.", example: new SuccessResponse<FileSystemTreeNodeDto[]>(true, default));
|
||||
}
|
||||
|
||||
+7
-2
@@ -21,8 +21,13 @@ public class CheckPathExistsEndpointSummary : Summary<CheckPathExistsEndpoint, C
|
||||
Summary = "Checks the existence of a file system path.";
|
||||
Description = "Checks whether the file system path identified by the request exists.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path to check the existence of.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden elements in the search results, or not.");
|
||||
RequestParam(r => r.Path, "The file system path to check the existence of. Required.");
|
||||
RequestParam(r => r.IncludeHiddenElements, "Whether to include hidden elements in the search results, or not. Optional.");
|
||||
|
||||
ExampleRequest = new CheckPathExistsRequest(
|
||||
Path: "/media/movies/",
|
||||
IncludeHiddenElements: true
|
||||
);
|
||||
|
||||
Response(200, "Whether the file system path exists is returned.", example: new { success = true, data = new { exists = true } });
|
||||
}
|
||||
|
||||
+6
-2
@@ -22,8 +22,12 @@ public class GetPathParentEndpointSummary : Summary<GetPathParentEndpoint, GetPa
|
||||
Summary = "Retrieves the parent path of a file system path.";
|
||||
Description = "Retrieves the path segments of the parent path of the file system path identified by the request.";
|
||||
|
||||
RequestParam(r => r.Path, "The path for which the parent path is retrieved.");
|
||||
RequestParam(r => r.Path, "The path for which the parent path is retrieved. Required.");
|
||||
|
||||
Response(200, "The path segments of the parent path are returned.", example: new { success = true, data = new { pathSegments = new PathSegmentDto[] { } } });
|
||||
ExampleRequest = new GetPathParentRequest(
|
||||
Path: "/media/movies/"
|
||||
);
|
||||
|
||||
Response(200, "The path segments of the parent path are returned.", example: new { success = true, data = new { pathSegments = Array.Empty<PathSegmentDto>() } });
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -22,7 +22,11 @@ public class GetPathRootEndpointSummary : Summary<GetPathRootEndpoint, GetPathRo
|
||||
Summary = "Retrieves the root of a file system path.";
|
||||
Description = "Retrieves the root of the file system path identified by the request.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the root.");
|
||||
RequestParam(r => r.Path, "The file system path for which to get the root. Required.");
|
||||
|
||||
ExampleRequest = new GetPathRootRequest(
|
||||
Path: "/media/movies/"
|
||||
);
|
||||
|
||||
Response(200, "The root of the file system path is returned.", example: new { success = true, data = new { root = new PathSegmentDto() } });
|
||||
}
|
||||
|
||||
+6
-2
@@ -22,8 +22,12 @@ public class SplitPathEndpointSummary : Summary<SplitPathEndpoint, SplitPathRequ
|
||||
Summary = "Splits a file system path into its segments.";
|
||||
Description = "Splits the file system path identified by the request into its path segments.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path for which to get the path segments.");
|
||||
RequestParam(r => r.Path, "The file system path for which to get the path segments. Required.");
|
||||
|
||||
Response(200, "The path segments of the file system path are returned.", example: new { success = true, data = new { pathSegments = new PathSegmentDto[] { } } });
|
||||
ExampleRequest = new SplitPathRequest(
|
||||
Path: "/media/movies/"
|
||||
);
|
||||
|
||||
Response(200, "The path segments of the file system path are returned.", example: new { success = true, data = new { pathSegments = Array.Empty<PathSegmentDto>() } });
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -21,7 +21,11 @@ public class ValidatePathEndpointSummary : Summary<ValidatePathEndpoint, Validat
|
||||
Summary = "Validates a file system path.";
|
||||
Description = "Validates the file system path identified by the request.";
|
||||
|
||||
RequestParam(r => r.Path, "The file system path to validate.");
|
||||
RequestParam(r => r.Path, "The file system path to validate. Required.");
|
||||
|
||||
ExampleRequest = new ValidatePathRequest(
|
||||
Path: "/media/movies/"
|
||||
);
|
||||
|
||||
Response(200, "Whether the file system path is valid is returned.", example: new { success = true, data = new { isValid = true } });
|
||||
}
|
||||
|
||||
+7
-2
@@ -22,8 +22,13 @@ public class CancelLibraryScanEndpointSummary : Summary<CancelLibraryScanEndpoin
|
||||
Summary = "Cancels the scan of a media library.";
|
||||
Description = "Cancels a running scan of the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose scan is cancelled.");
|
||||
RequestParam(r => r.ScanId, "The Id of the scan to cancel.");
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose scan is cancelled. Required.");
|
||||
RequestParam(r => r.ScanId, "The Id of the scan to cancel. Required.");
|
||||
|
||||
ExampleRequest = new CancelLibraryScanRequest(
|
||||
LibraryId: Guid.NewGuid(),
|
||||
ScanId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The scan of the media library is cancelled.", example: new SuccessResponse(true));
|
||||
}
|
||||
|
||||
+5
-1
@@ -22,7 +22,11 @@ public class DeleteLibraryEndpointSummary : Summary<DeleteLibraryEndpoint, Delet
|
||||
Summary = "Deletes a media library.";
|
||||
Description = "Deletes the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to delete.");
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to delete. Required.");
|
||||
|
||||
ExampleRequest = new DeleteLibraryRequest(
|
||||
Id: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The media library is deleted.", example: new SuccessResponse(true));
|
||||
}
|
||||
|
||||
+5
-1
@@ -21,7 +21,11 @@ public class EditLibraryViewEndpointSummary : Summary<EditLibraryViewEndpoint, E
|
||||
Summary = "Renders the edit library view.";
|
||||
Description = "Renders the view for editing the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to edit.");
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to edit. Required.");
|
||||
|
||||
ExampleRequest = new EditLibraryRequest(
|
||||
Id: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The view for editing the media library is rendered.");
|
||||
}
|
||||
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class GetArtworkProvidersEndpointSummary : Summary<GetArtworkProvidersEnd
|
||||
Summary = "Retrieves the artwork providers of a media library.";
|
||||
Description = "Retrieves the artwork providers of the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose artwork providers are retrieved.");
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose artwork providers are retrieved. Required.");
|
||||
|
||||
ExampleRequest = new GetArtworkProvidersRequest(
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The artwork providers of the media library are returned.", example: new SuccessResponse<LibraryArtworkProviderDto[]>(true, default));
|
||||
}
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.Plugins;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.Management;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetBookReaders;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/libraries/manage/api-get-book-readers/{libraryId}</c> route.
|
||||
/// </summary>
|
||||
public class GetBookReadersEndpoint : BaseEndpoint<GetBookReadersRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetBookReadersEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public GetBookReadersEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.GET);
|
||||
Routes(WebRoutes.LibraryManagement.GET_BOOK_READERS);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Libraries"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the book readers of a media library.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Id of the media library whose book readers are retrieved.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadersRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
LibraryBookReaderDto[] response = await _apiHttpClient.GetAsync<LibraryBookReaderDto[]>(ApiRoutes.Libraries.GET_LIBRARY_BOOK_READERS.Replace("{libraryId}", request.LibraryId.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response);
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.Management;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetBookReaders;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="GetBookReadersEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetBookReadersEndpointSummary : Summary<GetBookReadersEndpoint, GetBookReadersRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetBookReadersEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public GetBookReadersEndpointSummary()
|
||||
{
|
||||
Summary = "Retrieves the book readers of a media library.";
|
||||
Description = "Retrieves the book readers of the media library identified by the request, with their supported file extensions and enabled state.";
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library whose book readers are retrieved. Required.");
|
||||
|
||||
ExampleRequest = new GetBookReadersRequest(
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The book readers of the media library are returned.");
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class GetMetadataProvidersEndpointSummary : Summary<GetMetadataProvidersE
|
||||
Summary = "Retrieves the metadata providers of a media library.";
|
||||
Description = "Retrieves the metadata providers of the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose metadata providers are retrieved.");
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose metadata providers are retrieved. Required.");
|
||||
|
||||
ExampleRequest = new GetMetadataProvidersRequest(
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The metadata providers of the media library are returned.", example: new SuccessResponse<LibraryMetadataProviderDto[]>(true, default));
|
||||
}
|
||||
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class ScanLibraryEndpointSummary : Summary<ScanLibraryEndpoint, ScanLibra
|
||||
Summary = "Starts the scan of a media library.";
|
||||
Description = "Initiates the scan of the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to scan.");
|
||||
RequestParam(r => r.Id, "The unique identifier of the media library to scan. Required.");
|
||||
|
||||
ExampleRequest = new ScanLibraryRequest(
|
||||
Id: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The scan of the media library is started.", example: new SuccessResponse<ScanLibraryDto>(true, default));
|
||||
}
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.Requests.Plugins;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.SetBookReaderEnabled;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/libraries/manage/api-set-book-reader-enabled</c> route.
|
||||
/// </summary>
|
||||
public class SetBookReaderEnabledEndpoint : BaseEndpoint<SetBookReaderEnabledRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SetBookReaderEnabledEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public SetBookReaderEnabledEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.PUT);
|
||||
Routes(WebRoutes.LibraryManagement.SET_BOOK_READER_ENABLED);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Libraries"));
|
||||
EnableAntiforgery();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enables or disables a book reader of a media library.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Ids of the media library and of the plugin, and whether the book reader is enabled.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(SetBookReaderEnabledRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
await _apiHttpClient.PutAsync<Web.Common.Requests.Common.EmptyRequest, SetBookReaderEnabledRequest>(ApiRoutes.Libraries.SET_LIBRARY_BOOK_READER_ENABLED.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{pluginId}", request.PluginId.ToString()), request, cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess();
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.DTO.Common;
|
||||
using Lumina.Presentation.Web.Common.Requests.Plugins;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.SetBookReaderEnabled;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="SetBookReaderEnabledEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class SetBookReaderEnabledEndpointSummary : Summary<SetBookReaderEnabledEndpoint, SetBookReaderEnabledRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SetBookReaderEnabledEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public SetBookReaderEnabledEndpointSummary()
|
||||
{
|
||||
Summary = "Enables or disables a book reader of a media library.";
|
||||
Description = "Enables or disables the book reader of the media library identified by the request.";
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library whose book reader is enabled or disabled. Required.");
|
||||
RequestParam(r => r.PluginId, "The unique identifier of the plugin providing the book reader. Required.");
|
||||
RequestParam(r => r.IsEnabled, "Whether the book reader should be enabled for the media library, or not. Required.");
|
||||
|
||||
ExampleRequest = new SetBookReaderEnabledRequest
|
||||
{
|
||||
LibraryId = Guid.NewGuid(),
|
||||
PluginId = Guid.NewGuid(),
|
||||
IsEnabled = true
|
||||
};
|
||||
|
||||
Response(200, "The book reader of the media library is enabled or disabled.", example: new SuccessResponse(true));
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -21,7 +21,11 @@ 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.");
|
||||
RequestParam(r => r.Id, "The unique identifier of the book to edit. Required.");
|
||||
|
||||
ExampleRequest = new GetBookRequest(
|
||||
Id: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The view for editing the book is rendered.");
|
||||
}
|
||||
|
||||
+22
-8
@@ -2,7 +2,9 @@
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.DTO.Common;
|
||||
using Lumina.Presentation.Web.Common.DTO.Libraries;
|
||||
using Lumina.Presentation.Web.Common.Enums.Common;
|
||||
using Lumina.Presentation.Web.Common.Requests.Libraries;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
@@ -22,14 +24,26 @@ public class GetLibraryItemsEndpointSummary : Summary<GetLibraryItemsEndpoint, G
|
||||
Summary = "Retrieves the lightweight details of the books of a media library.";
|
||||
Description = "Retrieves the lightweight details of the books of the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library whose books are retrieved.");
|
||||
RequestParam(r => r.CurrentPage, "Optional. The page of results to retrieve.");
|
||||
RequestParam(r => r.PerPage, "Optional. The maximum number of books to retrieve per page.");
|
||||
RequestParam(r => r.SearchTerm, "Optional. The search term used to filter results.");
|
||||
RequestParam(r => r.FilterAlphaKey, "Optional. The alpha key used to filter the results by the first character of their title, for the alpha picker.");
|
||||
RequestParam(r => r.ShouldIgnoreThePrefixForAlphaPicker, "Whether the leading The prefix of a title is ignored when computing the alpha key, or not.");
|
||||
RequestParam(r => r.SortBy, "Optional. The name of the field by which to sort the results.");
|
||||
RequestParam(r => r.SortOrder, "Optional. The direction in which to sort the results.");
|
||||
RequestParam(r => r.LibraryId, "The Id of the media library whose books are retrieved. Required.");
|
||||
RequestParam(r => r.CurrentPage, "The page of results to retrieve. Optional.");
|
||||
RequestParam(r => r.PerPage, "The maximum number of books to retrieve per page. Optional.");
|
||||
RequestParam(r => r.SearchTerm, "The search term used to filter results. Optional.");
|
||||
RequestParam(r => r.FilterAlphaKey, "The alpha key used to filter the results by the first character of their title, for the alpha picker. Optional.");
|
||||
RequestParam(r => r.ShouldIgnoreThePrefixForAlphaPicker, "Whether the leading The prefix of a title is ignored when computing the alpha key, or not. Optional.");
|
||||
RequestParam(r => r.SortBy, "The name of the field by which to sort the results. Optional.");
|
||||
RequestParam(r => r.SortOrder, "The direction in which to sort the results. Optional.");
|
||||
|
||||
ExampleRequest = new GetBooksLiteRequest
|
||||
{
|
||||
LibraryId = Guid.NewGuid(),
|
||||
CurrentPage = 1,
|
||||
PerPage = 48,
|
||||
SearchTerm = "fellowship",
|
||||
FilterAlphaKey = "f",
|
||||
ShouldIgnoreThePrefixForAlphaPicker = true,
|
||||
SortBy = "title",
|
||||
SortOrder = SortOrder.Ascending
|
||||
};
|
||||
|
||||
Response(200, "The lightweight details of the books of the media library are returned.", example: new SuccessResponse<PaginatedBookLiteDto>(true, default));
|
||||
}
|
||||
|
||||
+3
@@ -12,6 +12,7 @@ using Lumina.Presentation.Web.Core.Themes;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -85,6 +86,8 @@ public class BooksIndexViewEndpoint : BaseEndpoint<GetBooksViewRequest, IResult>
|
||||
["libraryId"] = library.Id?.ToString() ?? request.LibraryId.Value.ToString(),
|
||||
["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,
|
||||
["availabilityUrl"] = _urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_AVAILABILITY, new { bookId = default(Guid) }) ?? string.Empty,
|
||||
["strings"] = ThemePageDataFactory.CreateLocalizedStrings(_localizer)
|
||||
}
|
||||
};
|
||||
|
||||
+5
-1
@@ -21,7 +21,11 @@ public class BooksIndexViewEndpointSummary : Summary<BooksIndexViewEndpoint, Get
|
||||
Summary = "Renders the books browsing view.";
|
||||
Description = "Renders the view for browsing the books of the media library identified by the request.";
|
||||
|
||||
RequestParam(r => r.LibraryId, "Optional. The unique identifier of the media library whose books are browsed.");
|
||||
RequestParam(r => r.LibraryId, "The unique identifier of the media library whose books are browsed. Optional.");
|
||||
|
||||
ExampleRequest = new GetBooksViewRequest(
|
||||
LibraryId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The view for browsing the books of the media library is rendered.");
|
||||
}
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.Reading;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingAvailability;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-availability</c> route.
|
||||
/// </summary>
|
||||
public class GetReadingAvailabilityEndpoint : BaseEndpoint<GetBookReadingAvailabilityRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingAvailabilityEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public GetReadingAvailabilityEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.GET);
|
||||
Routes(WebRoutes.Books.GET_READING_AVAILABILITY);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Books"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks the reading availability of a book.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Id of the book whose reading availability is checked.</param>
|
||||
/// <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);
|
||||
return Results.Json(new { success = response.IsAvailable, errorCode = response.ErrorCode, libraryId = response.LibraryId });
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingAvailability;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="GetReadingAvailabilityEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetReadingAvailabilityEndpointSummary : Summary<GetReadingAvailabilityEndpoint, GetBookReadingAvailabilityRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingAvailabilityEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public GetReadingAvailabilityEndpointSummary()
|
||||
{
|
||||
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.");
|
||||
|
||||
ExampleRequest = new GetBookReadingAvailabilityRequest(
|
||||
BookId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The reading availability of the book is returned.",
|
||||
example: new
|
||||
{
|
||||
success = false,
|
||||
errorCode = "ReaderDisabled",
|
||||
libraryId = Guid.NewGuid()
|
||||
});
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.Reading;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingManifest;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-manifest</c> route.
|
||||
/// </summary>
|
||||
public class GetReadingManifestEndpoint : BaseEndpoint<GetBookReadingManifestRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingManifestEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public GetReadingManifestEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.GET);
|
||||
Routes(WebRoutes.Books.GET_READING_MANIFEST);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Books"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the reading manifest of a book.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Id of the book whose reading manifest is retrieved.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadingManifestRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
try
|
||||
{
|
||||
ReadingManifestDto response = await _apiHttpClient.GetAsync<ReadingManifestDto>(ApiRoutes.Books.GET_BOOK_READING_MANIFEST.Replace("{bookId}", request.BookId.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response);
|
||||
}
|
||||
catch (ApiException apiException)
|
||||
{
|
||||
// When the book has no available reader or its reader is disabled, the manifest cannot be produced at all; the reader view
|
||||
// distinguishes this case from a generic failure and warns the user, so it is reported with a distinct error code instead of
|
||||
// being flattened to a generic "NotFound" by the exception handling middleware.
|
||||
if (apiException.ProblemDetails?.Detail is "NoReaderAvailable" or "ReaderDisabled")
|
||||
return Results.Json(new { success = false, errorCode = apiException.ProblemDetails.Detail });
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingManifest;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="GetReadingManifestEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetReadingManifestEndpointSummary : Summary<GetReadingManifestEndpoint, GetBookReadingManifestRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingManifestEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public GetReadingManifestEndpointSummary()
|
||||
{
|
||||
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.");
|
||||
|
||||
ExampleRequest = new GetBookReadingManifestRequest(
|
||||
BookId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The reading manifest of the book is returned.");
|
||||
|
||||
Response(200, "The book cannot be read because no book reader is available for its format, or its book reader is disabled for the library.", "application/json",
|
||||
example: new
|
||||
{
|
||||
success = false,
|
||||
errorCode = "ReaderDisabled"
|
||||
});
|
||||
}
|
||||
}
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.FileSystemManagement;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingResource;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-resource</c> route.
|
||||
/// </summary>
|
||||
public class GetReadingResourceEndpoint : BaseEndpoint<GetBookReadingResourceRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingResourceEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public GetReadingResourceEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.GET);
|
||||
Routes(WebRoutes.Books.GET_READING_RESOURCE);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Books"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a resource of a book, for reading.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Id of the book and the resource key of the resource.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadingResourceRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
BlobDataDto response = await _apiHttpClient.GetBlobAsync(ApiRoutes.Books.GET_BOOK_READING_RESOURCE
|
||||
.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.
|
||||
HttpContext.Response.Headers["X-Content-Type-Options"] = "nosniff";
|
||||
return Results.Bytes(response.Data, response.ContentType);
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingResource;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="GetReadingResourceEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetReadingResourceEndpointSummary : Summary<GetReadingResourceEndpoint, GetBookReadingResourceRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingResourceEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public GetReadingResourceEndpointSummary()
|
||||
{
|
||||
Summary = "Retrieves a resource of a book, for reading.";
|
||||
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.");
|
||||
|
||||
ExampleRequest = new GetBookReadingResourceRequest(
|
||||
BookId: Guid.NewGuid(),
|
||||
ResourceKey: "cover-image"
|
||||
);
|
||||
|
||||
Response(200, "The resource of the book is returned.");
|
||||
}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.DTO.Reading;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingSection;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-section</c> route.
|
||||
/// </summary>
|
||||
public class GetReadingSectionEndpoint : BaseEndpoint<GetBookReadingSectionRequest, IResult>
|
||||
{
|
||||
private readonly IApiHttpClient _apiHttpClient;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingSectionEndpoint"/> class.
|
||||
/// </summary>
|
||||
/// <param name="apiHttpClient">Injected service for interactions with the API.</param>
|
||||
public GetReadingSectionEndpoint(IApiHttpClient apiHttpClient)
|
||||
{
|
||||
_apiHttpClient = apiHttpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.GET);
|
||||
Routes(WebRoutes.Books.GET_READING_SECTION);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Books"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the content of a reading section of a book.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Id of the book and the location reference of the reading section.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override async Task<IResult> ExecuteAsync(GetBookReadingSectionRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
ReadingSectionDto response = await _apiHttpClient.GetAsync<ReadingSectionDto>(ApiRoutes.Books.GET_BOOK_READING_SECTION
|
||||
.Replace("{bookId}", request.BookId.ToString())
|
||||
.Replace("{locationRef}", Uri.EscapeDataString(request.LocationRef)), cancellationToken).ConfigureAwait(false);
|
||||
return JsonSuccess(response);
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingSection;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="GetReadingSectionEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetReadingSectionEndpointSummary : Summary<GetReadingSectionEndpoint, GetBookReadingSectionRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetReadingSectionEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public GetReadingSectionEndpointSummary()
|
||||
{
|
||||
Summary = "Retrieves the content of a reading section of a book.";
|
||||
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.");
|
||||
|
||||
ExampleRequest = new GetBookReadingSectionRequest(
|
||||
BookId: Guid.NewGuid(),
|
||||
LocationRef: "chapter-1"
|
||||
);
|
||||
|
||||
Response(200, "The content of the reading section is returned.");
|
||||
}
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using Lumina.Presentation.Web.Common.Routes;
|
||||
using Lumina.Presentation.Web.Core.Endpoints.Common;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.Read;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/library/written-content-library/books-library/books/{bookId}/read</c> route.
|
||||
/// </summary>
|
||||
public class ReadViewEndpoint : BaseEndpoint<ReadBookViewRequest, IResult>
|
||||
{
|
||||
/// <summary>
|
||||
/// Configures the endpoint.
|
||||
/// </summary>
|
||||
public override void Configure()
|
||||
{
|
||||
base.Configure();
|
||||
Verbs(Http.GET);
|
||||
Routes(WebRoutes.Books.READ);
|
||||
DontAutoTag();
|
||||
Options(options => options.WithTags("Books"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Displays the reading view of a book.
|
||||
/// </summary>
|
||||
/// <param name="request">The request containing the Id of the book to read.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
public override Task<IResult> ExecuteAsync(ReadBookViewRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
return Task.FromResult(View("/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Read.cshtml", request));
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using FastEndpoints;
|
||||
using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.Read;
|
||||
|
||||
/// <summary>
|
||||
/// Class used for providing a textual description for the <see cref="ReadViewEndpoint"/> endpoint, for OpenAPI.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class ReadViewEndpointSummary : Summary<ReadViewEndpoint, ReadBookViewRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ReadViewEndpointSummary"/> class.
|
||||
/// </summary>
|
||||
public ReadViewEndpointSummary()
|
||||
{
|
||||
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.");
|
||||
|
||||
ExampleRequest = new ReadBookViewRequest(
|
||||
BookId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The reading view of the book is displayed.");
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -23,7 +23,11 @@ public class GetPluginSettingsEndpointSummary : Summary<GetPluginSettingsEndpoin
|
||||
Summary = "Retrieves the settings of a plugin and their schema.";
|
||||
Description = "Retrieves the settings and their schema of the plugin identified by the request.";
|
||||
|
||||
RequestParam(r => r.PluginId, "The unique identifier of the plugin whose settings are retrieved.");
|
||||
RequestParam(r => r.PluginId, "The unique identifier of the plugin whose settings are retrieved. Required.");
|
||||
|
||||
ExampleRequest = new GetPluginSettingsRequest(
|
||||
PluginId: Guid.NewGuid()
|
||||
);
|
||||
|
||||
Response(200, "The settings and their schema of the plugin are returned.", example: new SuccessResponse<PluginSettingsDto>(true, default));
|
||||
}
|
||||
|
||||
+7
-2
@@ -21,8 +21,13 @@ public class ThemeAssetsEndpointSummary : Summary<ThemeAssetsEndpoint, GetThemeA
|
||||
Summary = "Retrieves an asset file of a theme.";
|
||||
Description = "Serves the binary content of an asset file of a theme, fetched from the remote API.";
|
||||
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme.");
|
||||
RequestParam(r => r.Path, "The asset path relative to the theme pack root.");
|
||||
RequestParam(r => r.ThemeId, "The manifest id of the theme. Required.");
|
||||
RequestParam(r => r.Path, "The asset path relative to the theme pack root. Required.");
|
||||
|
||||
ExampleRequest = new GetThemeAssetRequest(
|
||||
ThemeId: "lumina-default",
|
||||
Path: "assets/style.css"
|
||||
);
|
||||
|
||||
Response(200, "The asset file of the theme is returned.", "application/octet-stream");
|
||||
}
|
||||
|
||||
+7
-2
@@ -21,8 +21,13 @@ public class SetLanguageEndpointSummary : Summary<SetLanguageEndpoint, SetLangua
|
||||
Summary = "Sets the culture of the application.";
|
||||
Description = "Sets the culture used by the application, storing the preference in a cookie, and redirects the browser back.";
|
||||
|
||||
RequestParam(r => r.NewCulture, "The new culture to set.");
|
||||
RequestParam(r => r.ReturnUrl, "The URL to return to, after setting the new culture.");
|
||||
RequestParam(r => r.NewCulture, "The new culture to set. Required.");
|
||||
RequestParam(r => r.ReturnUrl, "The URL to return to, after setting the new culture. Optional.");
|
||||
|
||||
ExampleRequest = new SetLanguageRequest(
|
||||
NewCulture: "en-US",
|
||||
ReturnUrl: "/"
|
||||
);
|
||||
|
||||
Response(200, "The culture preference is stored in a cookie, and the browser is redirected back.");
|
||||
}
|
||||
|
||||
+5
-1
@@ -21,7 +21,11 @@ public class LoginViewEndpointSummary : Summary<LoginViewEndpoint, LoginViewRequ
|
||||
Summary = "Renders the account login view.";
|
||||
Description = "Renders the account login view, using the specified URL to return to after login.";
|
||||
|
||||
RequestParam(r => r.ReturnUrl, "The URL to return to, after login.");
|
||||
RequestParam(r => r.ReturnUrl, "The URL to return to, after login. Optional.");
|
||||
|
||||
ExampleRequest = new LoginViewRequest(
|
||||
ReturnUrl: "/"
|
||||
);
|
||||
|
||||
Response(200, "The account login view is rendered.");
|
||||
}
|
||||
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>مزوّدو البيانات الوصفية المستخدمون لإثراء عناصر هذه المكتبة، بالترتيب الذي يتم تجريبهم به.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>مزوّدو الأغلفة</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>مزوّدو الأغلفة المستخدمون لاسترداد أغلفة عناصر هذه المكتبة، بالترتيب الذي يتم تجريبهم به.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>قارئات الكتب</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>الامتدادات المدعومة</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>قارئات الكتب المستخدمة لقراءة كتب هذه المكتبة. القارئة المعطّلة تتيح للمستخدم معرفة أن هناك إضافة قارئ لهذا التنسيق، لكنها معطّلة.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>Die Metadatenanbieter, die verwendet werden, um die Elemente dieser Bibliothek anzureichern, in der Reihenfolge, in der sie versucht werden.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>Cover-Anbieter</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>Die Cover-Anbieter, die zum Abrufen der Cover der Elemente dieser Bibliothek verwendet werden, in der Reihenfolge, in der sie ausprobiert werden.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Buchleser</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Unterstützte Erweiterungen</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>Die Buchleser, die zum Lesen der Bücher dieser Bibliothek verwendet werden. Ein deaktivierter Buchleser informiert den Benutzer darüber, dass ein Leser-Plugin für das Format existiert, es aber deaktiviert ist.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -342,4 +342,13 @@
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Book readers</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Supported extensions</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>The book readers used to read the books of this library. A disabled book reader lets the user know that a reader plugin exists for the format, but it is disabled.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>Los proveedores de metadatos utilizados para enriquecer los elementos de esta biblioteca, en el orden en que se prueban.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>Proveedores de portadas</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>Los proveedores de portadas utilizados para recuperar las portadas de los elementos de esta biblioteca, en el orden en que se prueban.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Lectores de libros</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Extensiones compatibles</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>Los lectores de libros utilizados para leer los libros de esta biblioteca. Un lector deshabilitado le indica al usuario que existe un complemento de lectura para el formato, pero que está deshabilitado.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>Les fournisseurs de métadonnées utilisés pour enrichir les éléments de cette bibliothèque, dans l'ordre où ils sont essayés.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>Fournisseurs de couvertures</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>Les fournisseurs de couvertures utilisés pour récupérer les couvertures des éléments de cette bibliothèque, dans l'ordre où ils sont essayés.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Lecteurs de livres</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Extensions prises en charge</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>Les lecteurs de livres utilisés pour lire les livres de cette bibliothèque. Un lecteur désactivé indique à l'utilisateur qu'un plugin de lecture existe pour le format, mais qu'il est désactivé.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>I fornitori di metadati utilizzati per arricchire gli elementi di questa libreria, nell'ordine in cui vengono provati.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>Fornitori di copertine</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>I fornitori di copertine utilizzati per recuperare le copertine degli elementi di questa libreria, nell'ordine in cui vengono provati.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Lettori di libri</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Estensioni supportate</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>I lettori di libri utilizzati per leggere i libri di questa libreria. Un lettore disabilitato informa l'utente che esiste un plugin di lettura per il formato, ma che è disabilitato.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>このライブラリのアイテムを補完するために使用されるメタデータプロバイダーを、試行する順序で指定します。</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>表紙プロバイダー</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>このライブラリのアイテムの表紙を取得するために使用される表紙プロバイダーを、試行する順序で指定します。</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>書籍リーダー</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>対応する拡張子</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>このライブラリの書籍を読むために使用されるリーダーです。無効なリーダーは、その形式のリーダープラグインが存在するが無効になっていることをユーザーに知らせます。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -342,4 +342,13 @@
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Book readers</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Supported extensions</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>The book readers used to read the books of this library. A disabled book reader lets the user know that a reader plugin exists for the format, but it is disabled.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>Furnizorii de metadate folosiți pentru a îmbogăți elementele acestei biblioteci, în ordinea în care sunt încercați.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>Furnizori de coperți</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>Furnizorii de coperți folosiți pentru a recupera coperțile elementelor acestei biblioteci, în ordinea în care sunt încercați.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Cititori de cărți</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Extensii acceptate</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>Cititorii de cărți folosiți pentru a citi cărțile acestei biblioteci. Un cititor dezactivat îi permite utilizatorului să știe că există un plugin de citire pentru format, dar este dezactivat.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>Постачальники метаданих, які використовуються для збагачення елементів цієї бібліотеки, у порядку, в якому вони випробовуються.</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>Постачальники обкладинок</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>Постачальники обкладинок, які використовуються для отримання обкладинок елементів цієї бібліотеки, у порядку, в якому вони випробовуються.</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>Читачі книг</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>Підтримувані розширення</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>Читачі книг, які використовуються для читання книг цієї бібліотеки. Вимкнений читач повідомляє користувача про те, що для цього формату існує плагін для читання, але він вимкнений.</value>
|
||||
</data>
|
||||
</root>
|
||||
+11
-2
@@ -337,9 +337,18 @@
|
||||
<value>用于丰富此库项目内容的元数据提供程序,按其尝试顺序排列。</value>
|
||||
</data>
|
||||
<data name="ArtworkProviders" xml:space="preserve">
|
||||
<value>Artwork providers</value>
|
||||
<value>封面提供程序</value>
|
||||
</data>
|
||||
<data name="DescriptionArtworkProviders" xml:space="preserve">
|
||||
<value>The artwork providers used to retrieve the covers of the items of this library, in the order they are tried.</value>
|
||||
<value>用于获取此库项目封面的封面提供程序,按其尝试顺序排列。</value>
|
||||
</data>
|
||||
<data name="BookReaders" xml:space="preserve">
|
||||
<value>书籍阅读器</value>
|
||||
</data>
|
||||
<data name="SupportedExtensions" xml:space="preserve">
|
||||
<value>支持的扩展名</value>
|
||||
</data>
|
||||
<data name="DescriptionBookReaders" xml:space="preserve">
|
||||
<value>用于阅读此库书籍的阅读器。禁用的阅读器会让用户知道该格式存在阅读器插件,但该插件已被禁用。</value>
|
||||
</data>
|
||||
</root>
|
||||
+7
-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>
|
||||
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>لا توجد عناصر تطابق الفلاتر الحالية</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>لا يوجد قارئ كتب متاح يمكنه فتح هذا التنسيق من الكتب.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>قارئ الكتب الذي يفتح هذا الكتاب معطل لهذه المكتبة. قم بتمكينه في إعدادات المكتبة لقراءة الكتاب.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>Keine Einträge entsprechen den aktuellen Filtern</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Es ist kein Buchleser verfügbar, der dieses Buchformat öffnen kann.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Der Buchleser, der dieses Buch öffnet, ist für diese Mediathek deaktiviert. Aktivieren Sie ihn in den Mediathek-Einstellungen, um das Buch zu lesen.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>No items match the current filters</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>There is no book reader available that can open this book format.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>The book reader that opens this book is disabled for this library. Enable it in the library settings to read the book.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>Ningún elemento coincide con los filtros actuales</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>No hay ningún lector de libros disponible que pueda abrir este formato de libro.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>El lector de libros que abre este libro está deshabilitado para esta biblioteca. Habilítelo en la configuración de la biblioteca para leer el libro.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>Aucun élément ne correspond aux filtres actuels</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Aucun lecteur de livres n'est disponible pour ouvrir ce format de livre.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Le lecteur de livres qui ouvre ce livre est désactivé pour cette bibliothèque. Activez-le dans les paramètres de la bibliothèque pour lire le livre.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>Nessun elemento corrisponde ai filtri correnti</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Non è disponibile nessun lettore di libri in grado di aprire questo formato di libro.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Il lettore di libri che apre questo libro è disabilitato per questa biblioteca. Abilitalo nelle impostazioni della biblioteca per leggere il libro.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>現在のフィルターに一致する項目はありません</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>この本の形式を開けるブックリーダーがありません。</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>この本を開くブックリーダーは、このライブラリで無効になっています。ライブラリ設定で有効にすると本を読めます。</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>No items match the current filters</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>There is no book reader available that can open this book format.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>The book reader that opens this book is disabled for this library. Enable it in the library settings to read the book.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>Niciun element nu corespunde filtrelor curente</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Nu există niciun cititor de cărți disponibil care să poată deschide acest format de carte.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Cititorul de cărți care deschide această carte este dezactivat pentru această bibliotecă. Activați-l în setările bibliotecii pentru a citi cartea.</value>
|
||||
</data>
|
||||
</root>
|
||||
+7
-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>
|
||||
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>Жоден елемент не відповідає поточним фільтрам</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Немає доступного читача книг, який міг би відкрити цей формат книги.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Читач книг, який відкриває цю книгу, вимкнено для цієї бібліотеки. Увімкніть його в налаштуваннях бібліотеки, щоб читати книгу.</value>
|
||||
</data>
|
||||
</root>
|
||||
+6
@@ -45,4 +45,10 @@
|
||||
<data name="NoItemsMatchFilters" xml:space="preserve">
|
||||
<value>没有项目符合当前筛选条件</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>没有可用的图书阅读器能够打开此图书格式。</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>打开此图书的图书阅读器已在此媒体库中禁用。在媒体库设置中启用它即可阅读该图书。</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>رجوع</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>فهرس المحتويات</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>السابق</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>التالي</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>حجم الخط</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>جارٍ التحميل</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>تعذر فتح الكتاب للقراءة.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>ملف PDF هذا مستند ممسوح ضوئياً بدون طبقة نص قابلة للاستخراج. فعّل إعداد «عرض ملفات PDF كصور» لعرضه كصور للصفحات.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>لا يوجد قارئ كتب متاح يمكنه فتح هذا التنسيق من الكتب.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>قارئ الكتب الذي يفتح هذا الكتاب معطل لهذه المكتبة. قم بتمكينه في إعدادات المكتبة لقراءة الكتاب.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Zurück</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Inhaltsverzeichnis</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Zurück</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Weiter</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Schriftgröße</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Wird geladen</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>Das Buch konnte nicht zum Lesen geöffnet werden.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>Dieses PDF ist ein gescanntes Dokument ohne extrahierbare Textebene. Aktivieren Sie die Einstellung 'PDFs als Bilder rendern', um es als Seitenbilder anzuzeigen.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Es ist kein Buchleser verfügbar, der dieses Buchformat öffnen kann.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Der Buchleser, der dieses Buch öffnet, ist für diese Mediathek deaktiviert. Aktivieren Sie ihn in den Mediathek-Einstellungen, um das Buch zu lesen.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Back</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Table of contents</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Previous</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Next</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Font size</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Loading</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>The book could not be opened for reading.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>This PDF is a scanned document without an extractable text layer. Enable the 'Render PDFs as images' setting to view it as page images.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>There is no book reader available that can open this book format.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>The book reader that opens this book is disabled for this library. Enable it in the library settings to read the book.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Atrás</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Tabla de contenidos</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Anterior</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Siguiente</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Tamaño de fuente</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Cargando</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>No se pudo abrir el libro para su lectura.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>Este PDF es un documento escaneado sin capa de texto extraíble. Active la opción 'Mostrar PDF como imágenes' para verlo como imágenes de página.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>No hay ningún lector de libros disponible que pueda abrir este formato de libro.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>El lector de libros que abre este libro está deshabilitado para esta biblioteca. Habilítelo en la configuración de la biblioteca para leer el libro.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Retour</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Table des matières</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Précédent</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Suivant</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Taille de police</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Chargement</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>Le livre n'a pas pu être ouvert pour la lecture.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>Ce PDF est un document scanné sans couche de texte extractible. Activez le réglage 'Afficher les PDF en images' pour l'afficher sous forme d'images de pages.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Aucun lecteur de livres n'est disponible pour ouvrir ce format de livre.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Le lecteur de livres qui ouvre ce livre est désactivé pour cette bibliothèque. Activez-le dans les paramètres de la bibliothèque pour lire le livre.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Indietro</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Indice</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Precedente</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Successivo</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Dimensione carattere</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Caricamento</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>Il libro non ha potuto essere aperto per la lettura.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>Questo PDF è un documento scansionato senza livello di testo estraibile. Abilitare l'impostazione 'Visualizza i PDF come immagini' per visualizzarlo come immagini di pagina.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Non è disponibile nessun lettore di libri in grado di aprire questo formato di libro.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Il lettore di libri che apre questo libro è disabilitato per questa biblioteca. Abilitalo nelle impostazioni della biblioteca per leggere il libro.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>戻る</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>目次</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>前へ</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>次へ</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>文字サイズ</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>読み込み中</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>本を開いて読むことができませんでした。</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>このPDFは、抽出可能なテキストレイヤーのないスキャン文書です。「PDFを画像として表示」設定を有効にすると、ページ画像として表示できます。</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>この本の形式を開けるブックリーダーがありません。</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>この本を開くブックリーダーは、このライブラリで無効になっています。ライブラリ設定で有効にすると本を読めます。</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Back</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Table of contents</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Previous</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Next</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Font size</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Loading</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>The book could not be opened for reading.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>This PDF is a scanned document without an extractable text layer. Enable the 'Render PDFs as images' setting to view it as page images.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>There is no book reader available that can open this book format.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>The book reader that opens this book is disabled for this library. Enable it in the library settings to read the book.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Înapoi</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Cuprins</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Înapoi</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Înainte</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Dimensiune font</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Se încarcă</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>Cartea nu a putut fi deschisă pentru citire.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>Acest PDF este un document scanat fără un strat de text extractibil. Activați setarea 'Afișează PDF-urile ca imagini' pentru a-l afișa ca imagini de pagină.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Nu există niciun cititor de cărți disponibil care să poată deschide acest format de carte.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Cititorul de cărți care deschide această carte este dezactivat pentru această bibliotecă. Activați-l în setările bibliotecii pentru a citi cartea.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>Назад</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>Зміст</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>Назад</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>Вперед</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>Розмір шрифту</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>Завантаження</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>Не вдалося відкрити книгу для читання.</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>Цей PDF є сканованим документом без витягуваного текстового шару. Увімкніть налаштування «Відображати PDF як зображення», щоб переглядати його як зображення сторінок.</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>Немає доступного читача книг, який міг би відкрити цей формат книги.</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>Читач книг, який відкриває цю книгу, вимкнено для цієї бібліотеки. Увімкніть його в налаштуваннях бібліотеки, щоб читати книгу.</value>
|
||||
</data>
|
||||
</root>
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Back" xml:space="preserve">
|
||||
<value>返回</value>
|
||||
</data>
|
||||
<data name="TableOfContents" xml:space="preserve">
|
||||
<value>目录</value>
|
||||
</data>
|
||||
<data name="Previous" xml:space="preserve">
|
||||
<value>上一页</value>
|
||||
</data>
|
||||
<data name="Next" xml:space="preserve">
|
||||
<value>下一页</value>
|
||||
</data>
|
||||
<data name="FontSize" xml:space="preserve">
|
||||
<value>字体大小</value>
|
||||
</data>
|
||||
<data name="Loading" xml:space="preserve">
|
||||
<value>正在加载</value>
|
||||
</data>
|
||||
<data name="ReadFailed" xml:space="preserve">
|
||||
<value>无法打开此书进行阅读。</value>
|
||||
</data>
|
||||
<data name="ImageOnlyPdf" xml:space="preserve">
|
||||
<value>此 PDF 是扫描文档,没有可提取的文本层。启用“将 PDF 显示为图像”设置即可将其显示为页面图像。</value>
|
||||
</data>
|
||||
<data name="ReaderUnavailable" xml:space="preserve">
|
||||
<value>没有可用的图书阅读器能够打开此图书格式。</value>
|
||||
</data>
|
||||
<data name="ReaderDisabled" xml:space="preserve">
|
||||
<value>打开此图书的图书阅读器已在此媒体库中禁用。在媒体库设置中启用它即可阅读该图书。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>ما إذا كانت ملفات السمات التي يقدمها التطبيق مخزنة في الذاكرة المؤقتة أم لا. أوقف هذا الخيار أثناء تعديل ملفات السمات حتى تظهر التغييرات فورًا.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>عرض ملفات PDF كصور</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>ما إذا كانت كتب PDF تُعرض كصور للصفحات، مع الحفاظ على التخطيط الأصلي، ولكن مع جعل نص الصفحات غير قابل للتحديد أو البحث. هذا مفيد لملفات PDF الممسوحة ضوئياً التي لا تحتوي على نص قابل للاستخراج.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>الحفاظ على أنماط الكتب</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>ما إذا كان يتم الحفاظ على التنسيق الأصلي لمحتوى الكتاب عند قراءته. يؤدي تفعيله إلى الاحتفاظ بمظهر الكتاب (الخطوط والألوان والمحاذاة)، لكن أنماط الكتب يمكنها تحميل موارد من خوادم خارجية، وقد تتمكن تلك الخوادم من مراقبة ذلك. عطّله لإزالة الأنماط.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Gibt an, ob die von der Anwendung bereitgestellten Themendateien zwischengespeichert werden. Deaktivieren Sie diese Option beim Bearbeiten von Themendateien, damit die Änderungen sofort erscheinen.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>PDFs als Bilder rendern</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Ob PDF-Bücher als Seitenbilder gerendert werden, wodurch das ursprüngliche Layout erhalten bleibt, der Text der Seiten aber nicht auswählbar oder durchsuchbar ist. Dies ist nützlich für gescannte PDFs ohne extrahierbaren Text.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Buchstile beibehalten</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Legt fest, ob die ursprüngliche Formatierung des Buchinhalts beibehalten wird, wenn Sie ein Buch lesen. Wenn die Option aktiviert ist, bleibt das Aussehen des Buches erhalten (Schriftarten, Farben, Ausrichtung). Buchstile können jedoch Ressourcen von externen Servern laden, die diese Server beobachten könnten. Deaktivieren Sie die Option, um die Stile zu entfernen.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Whether the theme files served by the application are cached. Turn this off while editing theme files so the changes appear immediately.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Render PDFs as images</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Whether PDF books are rendered as page images, preserving the original layout, but making the text of the pages not selectable or searchable. This is useful for scanned PDFs that have no extractable text.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Preserve book styles</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Whether the original styling of book content is preserved when you read a book. Enabling it keeps the look of the book (fonts, colors, alignment), but book styles can load resources from external servers, which those servers could observe; disable it to strip the styles.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Controla si los archivos de temas servidos por la aplicación se almacenan en caché. Desactívelo mientras edita archivos de temas para que los cambios aparezcan inmediatamente.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Mostrar PDF como imágenes</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Si los libros PDF se muestran como imágenes de página, conservando el diseño original, pero haciendo que el texto de las páginas no sea seleccionable ni buscable. Es útil para PDF escaneados sin texto extraíble.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Conservar los estilos de los libros</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Indica si se conserva el estilo original del contenido de los libros al leer un libro. Activarlo mantiene el aspecto del libro (fuentes, colores, alineación), pero los estilos de los libros pueden cargar recursos de servidores externos, que esos servidores podrían observar. Desactívelo para eliminar los estilos.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Contrôle si les fichiers de thèmes servis par l'application sont mis en cache. Désactivez-le pendant la modification des fichiers de thèmes afin que les changements apparaissent immédiatement.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Afficher les PDF en images</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Si les livres PDF sont rendus sous forme d'images de pages, en conservant la mise en page d'origine, mais en rendant le texte des pages non sélectionnable et non recherchable. Utile pour les PDF scannés sans texte extractible.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Conserver les styles des livres</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Indique si le style d'origine du contenu des livres est conservé lorsque vous lisez un livre. L'activer préserve l'aspect du livre (polices, couleurs, alignement), mais les styles des livres peuvent charger des ressources depuis des serveurs externes, que ces serveurs pourraient observer. Désactivez-le pour supprimer les styles.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Controlla se i file dei temi serviti dall'applicazione vengono memorizzati nella cache. Disattivalo mentre modifichi i file dei temi affinché le modifiche appaiano immediatamente.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Visualizza i PDF come immagini</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Se i libri PDF vengono visualizzati come immagini delle pagine, preservando il layout originale, ma rendendo il testo delle pagine non selezionabile o ricercabile. Utile per PDF scansionati senza testo estraibile.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Conserva gli stili dei libri</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Indica se lo stile originale del contenuto dei libri viene conservato quando leggi un libro. Attivarlo mantiene l'aspetto del libro (font, colori, allineamento), ma gli stili dei libri possono caricare risorse da server esterni, che tali server potrebbero osservare. Disattivalo per rimuovere gli stili.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>アプリケーションが提供するテーマファイルをキャッシュするかどうかを制御します。テーマファイルを編集している間はオフにして、変更がすぐに反映されるようにします。</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>PDFを画像として表示</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>PDFの書籍をページ画像として表示するかどうか。元のレイアウトは保たれますが、ページのテキストは選択や検索ができなくなります。抽出可能なテキストのないスキャンされたPDFに役立ちます。</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>本のスタイルを保持</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>本を読むときに、本のコンテンツの元のスタイルを保持するかどうか。有効にすると本の見た目(フォント、色、配置)が維持されますが、本のスタイルは外部サーバーからリソースを読み込むことができ、そのサーバーがアクセスを監視できる可能性があります。無効にするとスタイルが削除されます。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Whether the theme files served by the application are cached. Turn this off while editing theme files so the changes appear immediately.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Render PDFs as images</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Whether PDF books are rendered as page images, preserving the original layout, but making the text of the pages not selectable or searchable. This is useful for scanned PDFs that have no extractable text.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Preserve book styles</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Whether the original styling of book content is preserved when you read a book. Enabling it keeps the look of the book (fonts, colors, alignment), but book styles can load resources from external servers, which those servers could observe; disable it to strip the styles.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Controlează dacă fișierele temelor servite de aplicație sunt puse în cache. Dezactivați această opțiune în timp ce editați fișierele temelor, pentru ca modificările să apară imediat.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Afișează PDF-urile ca imagini</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Dacă cărțile PDF sunt afișate ca imagini ale paginilor, păstrând aspectul original, dar făcând textul paginilor neselectabil și necăutabil. Util pentru PDF-urile scanate fără text extractibil.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Păstrează stilurile cărților</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Dacă stilul original al conținutului cărții este păstrat atunci când citiți o carte. Activarea păstrează aspectul cărții (fonturi, culori, aliniere), dar stilurile cărților pot încărca resurse de pe servere externe, pe care acele servere le-ar putea observa. Dezactivați-l pentru a elimina stilurile.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>Визначає, чи кешуються файли тем, що надаються застосунком. Вимкніть цю опцію під час редагування файлів тем, щоб зміни відображалися одразу.</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Відображати PDF як зображення</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>Чи відображаються книги PDF як зображення сторінок, зберігаючи оригінальний макет, але роблячи текст сторінок невибірним і недоступним для пошуку. Корисно для сканованих PDF без витягуваного тексту.</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Зберігати стилі книг</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>Визначає, чи зберігається оригінальне оформлення вмісту книги під час її читання. Увімкнення зберігає вигляд книги (шрифти, кольори, вирівнювання), але стилі книг можуть завантажувати ресурси із зовнішніх серверів, і ті сервери можуть це спостерігати. Вимкніть, щоб прибрати стилі.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -45,4 +45,16 @@
|
||||
<data name="DescriptionEnableThemeCaching" xml:space="preserve">
|
||||
<value>控制应用程序提供的主题文件是否缓存。编辑主题文件时请关闭此选项,以便更改立即生效。</value>
|
||||
</data>
|
||||
<data name="ShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>将 PDF 显示为图像</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldRenderPdfAsImages" xml:space="preserve">
|
||||
<value>是否将 PDF 书籍渲染为页面图像,保留原始版式,但页面文本不可选择或搜索。适用于没有可提取文本的扫描 PDF。</value>
|
||||
</data>
|
||||
<data name="ShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>保留书籍样式</value>
|
||||
</data>
|
||||
<data name="DescriptionShouldPreserveBookStyles" xml:space="preserve">
|
||||
<value>阅读书籍时是否保留书籍内容的原始样式。启用后保留书籍的外观(字体、颜色、对齐方式),但书籍样式可以从外部服务器加载资源,这些服务器可能观察到该行为。禁用可去除样式。</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -238,6 +238,22 @@
|
||||
</table>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionArtworkProviders"]</small>
|
||||
</div>
|
||||
<h3 class="text-light-two">@_localizer["BookReaders"]</h3>
|
||||
<div class="form-row">
|
||||
<table id="book-readers-table" class="w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-35">@_localizer["Name"]</th>
|
||||
<th class="w-40">@_localizer["SupportedExtensions"]</th>
|
||||
<th class="w-25 text-center">@_localizer["Enabled"]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- book readers will be populated here -->
|
||||
</tbody>
|
||||
</table>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionBookReaders"]</small>
|
||||
</div>
|
||||
}
|
||||
<div class="form-row">
|
||||
<button type="submit" class="confirm-button w-100px">@_localizer["Save"]</button>
|
||||
@@ -522,6 +538,49 @@
|
||||
}
|
||||
};
|
||||
|
||||
const bookReadersTable = document.getElementById('book-readers-table');
|
||||
const bookReadersTbody = bookReadersTable ? bookReadersTable.querySelector('tbody') : null;
|
||||
|
||||
// loads the book readers configured for the library, when editing an existing library
|
||||
async function loadBookReadersAsync() {
|
||||
if (!id || !bookReadersTbody) return;
|
||||
const url = '@_urlService.GetAbsoluteUrl(WebRoutes.LibraryManagement.GET_BOOK_READERS, new { libraryId = default(Guid) })'
|
||||
.replace('/@(default(Guid))', `/${id}`); // libraryId needs to be replaced here, because GetAbsoluteUrl is server side, libraryId is client side
|
||||
const response = await callApiGetAsync(url);
|
||||
if (response && response.length > 0) {
|
||||
bookReadersTbody.innerHTML = response.map(reader => renderBookReaderRow(reader)).join('');
|
||||
}
|
||||
}
|
||||
|
||||
// renders a book reader row of the library
|
||||
function renderBookReaderRow(reader) {
|
||||
const extensions = (reader.supportedExtensions || []).join(', ');
|
||||
return `
|
||||
<tr data-reader-plugin-id="${reader.pluginId}">
|
||||
<td>${reader.name}</td>
|
||||
<td>${extensions}</td>
|
||||
<td class="text-center">
|
||||
<label class="enlightenment-checkbox-label">
|
||||
<input type="checkbox" class="enlightenment-checkbox-hidden book-reader-enabled" ${reader.isEnabled ? 'checked' : ''} />
|
||||
<span class="enlightenment-checkbox"></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>`;
|
||||
}
|
||||
|
||||
// on book reader enabled checkbox change, persists the new state
|
||||
async function handleBookReaderEnabledChangeAsync(e) {
|
||||
if (e.target.matches('.book-reader-enabled')) {
|
||||
const row = e.target.closest('tr');
|
||||
const pluginId = row.getAttribute('data-reader-plugin-id');
|
||||
const isEnabled = e.target.checked;
|
||||
const result = await callApiPutAsync('@_urlService.GetAbsoluteUrl(WebRoutes.LibraryManagement.SET_BOOK_READER_ENABLED)', { libraryId: id, pluginId: pluginId, isEnabled: isEnabled });
|
||||
if (!result.success) {
|
||||
e.target.checked = !isEnabled;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// add listeners
|
||||
form.addEventListener('keypress', handleEnterKey);
|
||||
form.addEventListener('submit', handleSubmit);
|
||||
@@ -539,6 +598,9 @@
|
||||
artworkProvidersTbody.addEventListener('click', handleArtworkProviderReorderAsync);
|
||||
artworkProvidersTbody.addEventListener('change', handleArtworkProviderEnabledChangeAsync);
|
||||
}
|
||||
if (bookReadersTbody) {
|
||||
bookReadersTbody.addEventListener('change', handleBookReaderEnabledChangeAsync);
|
||||
}
|
||||
|
||||
// register cleanup for these listeners
|
||||
cleanupFunctions.push(() => {
|
||||
@@ -558,12 +620,16 @@
|
||||
artworkProvidersTbody.removeEventListener('click', handleArtworkProviderReorderAsync);
|
||||
artworkProvidersTbody.removeEventListener('change', handleArtworkProviderEnabledChangeAsync);
|
||||
}
|
||||
if (bookReadersTbody) {
|
||||
bookReadersTbody.removeEventListener('change', handleBookReaderEnabledChangeAsync);
|
||||
}
|
||||
});
|
||||
|
||||
// load the metadata and artwork providers when editing an existing library
|
||||
// load the metadata and artwork providers and book readers when editing an existing library
|
||||
if (id) {
|
||||
loadMetadataProvidersAsync();
|
||||
loadArtworkProvidersAsync();
|
||||
loadBookReadersAsync();
|
||||
}
|
||||
|
||||
// store all cleanups for this view on window object using the scriptId
|
||||
|
||||
+63
-27
@@ -7,7 +7,7 @@
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
// generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler
|
||||
// Generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler.
|
||||
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
<div class="cotton-candy">
|
||||
<div style="display: grid; grid-template-rows: auto 1fr;">
|
||||
<!--container with two rows, one fixed, one filling remaining space-->
|
||||
<div style="min-height: 1rem;"></div><!--the first row is a dummy row for "margin", because setting a margin on the next row would offset the parent's position-->
|
||||
<!--Container with two rows, one fixed, one filling remaining space.-->
|
||||
<div style="min-height: 1rem;"></div><!--The first row is a dummy row for "margin", because setting a margin on the next row would offset the parent's position.-->
|
||||
<div class="pl-10 pr-10 pb-10">
|
||||
<div class="text-center">
|
||||
<h1 class="text-light-two engraved-title">@(Model.Title ?? string.Empty)</h1>
|
||||
@@ -48,12 +48,14 @@
|
||||
@section Scripts {
|
||||
<!-- The "text/plain" type is a design choice, not a mistake: it keeps the browser from executing this view script during HTML parsing, before site.js defines the API helpers it calls (callApiGetAsync, callApiPostAsync, ...). site.js (which loads deferred) executes these scripts once it is loaded, both on the initial page load and during AJAX navigation. -->
|
||||
<script type="text/plain" data-form="@scriptId">
|
||||
// create cleanup registry for this view
|
||||
// Create cleanup registry for this view.
|
||||
const cleanupFunctions = [];
|
||||
let isInitialized = false;
|
||||
let requestSequence = 0;
|
||||
|
||||
const libraryId = '@(Model.Id ?? Guid.Empty)';
|
||||
const readUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.READ, new { bookId = default(Guid) })';
|
||||
const availabilityUrlTemplate = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_READING_AVAILABILITY, new { bookId = default(Guid) })';
|
||||
const booksContainer = document.getElementById('books-container');
|
||||
const noItemsMessage = document.getElementById('no-items');
|
||||
const noItemsMatchingMessage = document.getElementById('no-items-matching');
|
||||
@@ -67,7 +69,7 @@
|
||||
const nextPageButton = document.getElementById('next-page');
|
||||
const pageIndicator = document.getElementById('page-indicator');
|
||||
|
||||
// the special alpha keys for numbers and symbols, followed by the letters
|
||||
// The special alpha keys for numbers and symbols, followed by the letters.
|
||||
const alphaKeys = ['#', '*', ...Array.from({ length: 26 }, (_, index) => String.fromCharCode(65 + index))];
|
||||
|
||||
const state = {
|
||||
@@ -85,10 +87,12 @@
|
||||
of: '@_localizer["Of"]',
|
||||
page: '@_localizer["Page"]',
|
||||
sortAscending: '@_localizer["SortAscending"]',
|
||||
sortDescending: '@_localizer["SortDescending"]'
|
||||
sortDescending: '@_localizer["SortDescending"]',
|
||||
readerUnavailable: '@_localizer["ReaderUnavailable"]',
|
||||
readerDisabled: '@_localizer["ReaderDisabled"]'
|
||||
};
|
||||
|
||||
// builds the URL of the retrieval endpoint, from the current state
|
||||
// Builds the URL of the retrieval endpoint, from the current state.
|
||||
function buildItemsUrl() {
|
||||
const url = '@_urlService.GetAbsoluteUrl(WebRoutes.Books.GET_LIBRARY_ITEMS)';
|
||||
const params = new URLSearchParams();
|
||||
@@ -106,7 +110,7 @@
|
||||
return `${url}?${params.toString()}`;
|
||||
}
|
||||
|
||||
// retrieves the books and renders them, ignoring stale responses of earlier requests
|
||||
// Retrieves the books and renders them, ignoring stale responses of earlier requests.
|
||||
async function loadItemsAsync() {
|
||||
const requestId = ++requestSequence;
|
||||
const response = await callApiGetAsync(buildItemsUrl());
|
||||
@@ -116,7 +120,7 @@
|
||||
renderItems(response);
|
||||
}
|
||||
|
||||
// renders the retrieved books, the count label and the pagination controls
|
||||
// Renders the retrieved books, the count label and the pagination controls.
|
||||
function renderItems(response) {
|
||||
booksContainer.querySelectorAll('.media-panel').forEach(card => card.remove());
|
||||
|
||||
@@ -132,16 +136,29 @@
|
||||
response.data.forEach(book => booksContainer.appendChild(createBookCard(book)));
|
||||
}
|
||||
|
||||
// Bind the AJAX navigation behavior to the book cards, which were created after the initial navigation binding, so that
|
||||
// navigating to the reader does not reload the page (and, for example, does not interrupt the audio player).
|
||||
bindNavigationLinks();
|
||||
updateCountLabel(response);
|
||||
updatePagination(response);
|
||||
}
|
||||
|
||||
// creates a portrait card for a book, with its cover image (or a placeholder) and its title
|
||||
// Creates a portrait card for a book, with its cover image (or a placeholder) and its title, that opens the reader when clicked.
|
||||
function createBookCard(book) {
|
||||
const card = document.createElement('div');
|
||||
card.className = 'media-panel';
|
||||
const card = document.createElement('a');
|
||||
card.className = 'media-panel nav-link no-underline';
|
||||
card.style.width = '160px';
|
||||
card.style.height = '240px';
|
||||
card.href = readUrlTemplate.replace('/@(default(Guid))', `/${book.id}`);
|
||||
card.dataset.bookId = book.id;
|
||||
// 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.
|
||||
card.addEventListener('click', async event => {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
await handleBookCardClickAsync(card);
|
||||
});
|
||||
|
||||
const image = document.createElement('img');
|
||||
image.src = book.coverPath
|
||||
@@ -160,7 +177,26 @@
|
||||
return card;
|
||||
}
|
||||
|
||||
// updates the count label: total items when pagination is off, displayed range out of total when it is on
|
||||
// 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 response = await fetch(availabilityUrl, {
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'X-Requested-With': 'XMLHttpRequest'
|
||||
}
|
||||
});
|
||||
const jsonResponse = await response.json();
|
||||
if (jsonResponse.success) {
|
||||
await updateContentAsync(card.href, true);
|
||||
} else {
|
||||
const message = jsonResponse.errorCode === 'ReaderDisabled' ? jsLocalizedStrings.readerDisabled : jsLocalizedStrings.readerUnavailable;
|
||||
notificationService.show(message, NotificationType.WARNING);
|
||||
}
|
||||
}
|
||||
|
||||
// Updates the count label: total items when pagination is off, displayed range out of total when it is on.
|
||||
function updateCountLabel(response) {
|
||||
if (state.perPage === null)
|
||||
countLabel.textContent = `${response.count} ${jsLocalizedStrings.items}`;
|
||||
@@ -173,7 +209,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
// updates the pagination controls, which are only visible when pagination is enabled
|
||||
// Updates the pagination controls, which are only visible when pagination is enabled.
|
||||
function updatePagination(response) {
|
||||
if (state.perPage === null) {
|
||||
pagination.classList.add('hidden');
|
||||
@@ -186,7 +222,7 @@
|
||||
nextPageButton.disabled = response.currentPage >= totalPages;
|
||||
}
|
||||
|
||||
// builds the alpha picker column, with the "All" key followed by the numbers, symbols and letters keys
|
||||
// Builds the alpha picker column, with the "All" key followed by the numbers, symbols and letters keys.
|
||||
function buildAlphaPicker() {
|
||||
const allKey = document.createElement('span');
|
||||
allKey.className = 'alpha-key';
|
||||
@@ -207,7 +243,7 @@
|
||||
updateAlphaPickerActiveState();
|
||||
}
|
||||
|
||||
// highlights the currently active key of the alpha picker
|
||||
// Highlights the currently active key of the alpha picker.
|
||||
function updateAlphaPickerActiveState() {
|
||||
alphaPicker.querySelectorAll('.alpha-key').forEach(key => {
|
||||
const keyValue = key.dataset.alphaKey === '' ? null : key.dataset.alphaKey;
|
||||
@@ -215,7 +251,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
// applies the given alpha key (null clears the alpha filter) and reloads the books
|
||||
// Applies the given alpha key (null clears the alpha filter) and reloads the books.
|
||||
function handleAlphaKeyClick(key) {
|
||||
state.alphaKey = key;
|
||||
state.currentPage = 1;
|
||||
@@ -223,14 +259,14 @@
|
||||
loadItemsAsync();
|
||||
}
|
||||
|
||||
// applies the search term and reloads the books
|
||||
// Applies the search term and reloads the books.
|
||||
function handleSearch() {
|
||||
state.searchTerm = searchInput.value.trim();
|
||||
state.currentPage = 1;
|
||||
loadItemsAsync();
|
||||
}
|
||||
|
||||
// triggers the search when the Enter key is pressed in the search input
|
||||
// Triggers the search when the Enter key is pressed in the search input.
|
||||
function handleSearchKeydown(event) {
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
@@ -238,7 +274,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
// toggles the sort direction and reloads the books
|
||||
// Toggles the sort direction and reloads the books.
|
||||
function handleSortToggle() {
|
||||
state.sortOrder = state.sortOrder === 'Ascending' ? 'Descending' : 'Ascending';
|
||||
sortToggle.textContent = state.sortOrder === 'Ascending' ? jsLocalizedStrings.sortAscending : jsLocalizedStrings.sortDescending;
|
||||
@@ -246,7 +282,7 @@
|
||||
loadItemsAsync();
|
||||
}
|
||||
|
||||
// applies an alpha filter when a letter is pressed while the search input does not have focus; Escape clears the alpha filter
|
||||
// Applies an alpha filter when a letter is pressed while the search input does not have focus; Escape clears the alpha filter.
|
||||
function handleAlphaKeydown(event) {
|
||||
if (document.activeElement === searchInput)
|
||||
return;
|
||||
@@ -256,7 +292,7 @@
|
||||
handleAlphaKeyClick(null);
|
||||
}
|
||||
|
||||
// loads the settings of the current user, which drive pagination and the alpha picker prefix handling
|
||||
// Loads the settings of the current user, which drive pagination and the alpha picker prefix handling.
|
||||
async function loadSettingsAsync() {
|
||||
const data = await callApiGetAsync('@_urlService.GetAbsoluteUrl(WebRoutes.Settings.GET_USER_SETTINGS)');
|
||||
if (data) {
|
||||
@@ -265,19 +301,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
// navigates to the previous page
|
||||
// Navigates to the previous page.
|
||||
function handlePrevPageClick() {
|
||||
state.currentPage = Math.max(1, state.currentPage - 1);
|
||||
loadItemsAsync();
|
||||
}
|
||||
|
||||
// navigates to the next page
|
||||
// Navigates to the next page.
|
||||
function handleNextPageClick() {
|
||||
state.currentPage = state.currentPage + 1;
|
||||
loadItemsAsync();
|
||||
}
|
||||
|
||||
// add listeners
|
||||
// Add listeners.
|
||||
searchButton.addEventListener('click', handleSearch);
|
||||
searchInput.addEventListener('keydown', handleSearchKeydown);
|
||||
sortToggle.addEventListener('click', handleSortToggle);
|
||||
@@ -286,7 +322,7 @@
|
||||
document.addEventListener('keydown', handleAlphaKeydown);
|
||||
document.addEventListener('DOMContentLoaded', InitializeAsync);
|
||||
|
||||
// register cleanup for these listeners
|
||||
// Register cleanup for these listeners.
|
||||
cleanupFunctions.push(() => {
|
||||
searchButton.removeEventListener('click', handleSearch);
|
||||
searchInput.removeEventListener('keydown', handleSearchKeydown);
|
||||
@@ -307,7 +343,7 @@
|
||||
await loadItemsAsync();
|
||||
}
|
||||
|
||||
// store all cleanups for this view on window object using the scriptId
|
||||
// Store all cleanups for this view on window object using the scriptId.
|
||||
window.viewCleanups = window.viewCleanups || {};
|
||||
window.viewCleanups['@scriptId'] = () => {
|
||||
cleanupFunctions.forEach(cleanup => cleanup());
|
||||
|
||||
+320
@@ -0,0 +1,320 @@
|
||||
@*
|
||||
/library/written-content-library/books-library/books/{bookId}/read
|
||||
*@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books.Reading
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
// Generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler.
|
||||
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@inject IViewLocalizer _localizer
|
||||
@inject IUrlService _urlService
|
||||
|
||||
@model ReadBookViewRequest
|
||||
|
||||
<div class="cotton-candy reader-root">
|
||||
<div class="reader-toolbar form-row">
|
||||
<button id="btn-back" type="button" class="abort-button">@_localizer["Back"]</button>
|
||||
<button id="btn-toc-toggle" type="button" class="confirm-button">@_localizer["TableOfContents"]</button>
|
||||
<button id="btn-prev" type="button" class="abort-button">@_localizer["Previous"]</button>
|
||||
<button id="btn-next" type="button" class="confirm-button">@_localizer["Next"]</button>
|
||||
<span id="reader-position" class="text-light-two"></span>
|
||||
<span class="text-light-two">@_localizer["FontSize"]</span>
|
||||
<button id="btn-font-decrease" type="button" class="abort-button">A-</button>
|
||||
<button id="btn-font-increase" type="button" class="confirm-button">A+</button>
|
||||
<h2 id="reader-title" class="text-light-two engraved-title"></h2>
|
||||
</div>
|
||||
<div id="toc-panel" class="reader-toc hidden">
|
||||
<ul id="toc-list"></ul>
|
||||
</div>
|
||||
<p id="reader-status" class="text-light-two">@_localizer["Loading"]</p>
|
||||
<div id="reader-content" class="reader-content"></div>
|
||||
</div>
|
||||
@section Scripts {
|
||||
<!-- The "text/plain" type is a design choice, not a mistake: it keeps the browser from executing this view script during HTML parsing, before site.js defines the API helpers it calls (callApiGetAsync, callApiPutAsync, ...). site.js (which loads deferred) executes these scripts once it is loaded, both on the initial page load and during AJAX navigation. -->
|
||||
<script type="text/plain" data-form="@scriptId">
|
||||
// Create cleanup registry for this view.
|
||||
const cleanupFunctions = [];
|
||||
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 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=';
|
||||
|
||||
// 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.
|
||||
function escapeHtml(value) {
|
||||
return String(value).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
||||
}
|
||||
|
||||
const readerTitle = document.getElementById('reader-title');
|
||||
const readerContent = document.getElementById('reader-content');
|
||||
const readerStatus = document.getElementById('reader-status');
|
||||
const readerPosition = document.getElementById('reader-position');
|
||||
const tocPanel = document.getElementById('toc-panel');
|
||||
const tocList = document.getElementById('toc-list');
|
||||
const btnBack = document.getElementById('btn-back');
|
||||
const btnTocToggle = document.getElementById('btn-toc-toggle');
|
||||
const btnPrev = document.getElementById('btn-prev');
|
||||
const btnNext = document.getElementById('btn-next');
|
||||
const btnFontDecrease = document.getElementById('btn-font-decrease');
|
||||
const btnFontIncrease = document.getElementById('btn-font-increase');
|
||||
|
||||
// The strings are serialized as JSON, so that single quotes and other characters are escaped into valid JavaScript string literals.
|
||||
const jsLocalizedStrings = {
|
||||
loading: @Json.Serialize(_localizer["Loading"].Value),
|
||||
readFailed: @Json.Serialize(_localizer["ReadFailed"].Value),
|
||||
readerUnavailable: @Json.Serialize(_localizer["ReaderUnavailable"].Value),
|
||||
readerDisabled: @Json.Serialize(_localizer["ReaderDisabled"].Value),
|
||||
imageOnlyPdf: @Json.Serialize(_localizer["ImageOnlyPdf"].Value)
|
||||
};
|
||||
|
||||
let manifest = null;
|
||||
let currentIndex = -1;
|
||||
let fontSize = 18;
|
||||
|
||||
// Loads the reading manifest of the book, and opens the first reading section.
|
||||
async function loadManifestAsync() {
|
||||
readerStatus.textContent = jsLocalizedStrings.loading;
|
||||
const response = await fetch(manifestUrl, {
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'X-Requested-With': 'XMLHttpRequest'
|
||||
}
|
||||
});
|
||||
if (response.redirected) {
|
||||
window.location.href = response.url;
|
||||
return;
|
||||
}
|
||||
if (!response.ok) {
|
||||
readerStatus.textContent = jsLocalizedStrings.readFailed;
|
||||
return;
|
||||
}
|
||||
const jsonResponse = await response.json();
|
||||
if (!jsonResponse.success) {
|
||||
// The manifest endpoint reports the absence of a book reader, or its disabled state, with distinct error codes, so
|
||||
// that the user is told what must be fixed to read the book instead of being shown a generic failure. The reading page
|
||||
// cannot display anything for such a book, so the user is also sent back to the library page of the book, using the same
|
||||
// AJAX navigation as the nav-links, so that the page is not reloaded (and the audio player is not interrupted).
|
||||
if (jsonResponse.errorCode === 'NoReaderAvailable') {
|
||||
readerStatus.textContent = jsLocalizedStrings.readerUnavailable;
|
||||
notificationService.show(jsLocalizedStrings.readerUnavailable, NotificationType.WARNING);
|
||||
await redirectToLibraryPageAsync();
|
||||
} else if (jsonResponse.errorCode === 'ReaderDisabled') {
|
||||
readerStatus.textContent = jsLocalizedStrings.readerDisabled;
|
||||
notificationService.show(jsLocalizedStrings.readerDisabled, NotificationType.WARNING);
|
||||
await redirectToLibraryPageAsync();
|
||||
} else
|
||||
readerStatus.textContent = jsLocalizedStrings.readFailed;
|
||||
return;
|
||||
}
|
||||
const manifestResponse = jsonResponse.data;
|
||||
if (!manifestResponse) {
|
||||
readerStatus.textContent = jsLocalizedStrings.readFailed;
|
||||
return;
|
||||
}
|
||||
manifest = manifestResponse;
|
||||
readerTitle.textContent = manifest.title || '';
|
||||
renderTableOfContents(manifest.tableOfContents || []);
|
||||
if (manifest.spine && manifest.spine.length > 0)
|
||||
await goToIndexAsync(0);
|
||||
else
|
||||
readerStatus.textContent = jsLocalizedStrings.readFailed;
|
||||
|
||||
// A scanned PDF has no text layer, so its pages are empty unless they are rendered as images; when the user has not
|
||||
// enabled the render-as-images setting, the book cannot be displayed, so the user is told that the setting exists and
|
||||
// is sent back to the library page, exactly like a book whose reader is not available or not enabled.
|
||||
if (manifest.hasTextContent === false)
|
||||
await notifyIfPdfImageOnlyAsync();
|
||||
}
|
||||
|
||||
// Warns the user when the book is a PDF whose pages could not be displayed because they have no extractable text and the
|
||||
// render-as-images setting is off, since enabling that setting is the way to make such a book readable, and navigates back
|
||||
// to the library page, because the reading page cannot display anything for such a book.
|
||||
async function notifyIfPdfImageOnlyAsync() {
|
||||
const settings = await callApiGetAsync('@_urlService.GetAbsoluteUrl(WebRoutes.Settings.GET_USER_SETTINGS)');
|
||||
if (settings && settings.shouldRenderPdfAsImages !== true) {
|
||||
notificationService.show(jsLocalizedStrings.imageOnlyPdf, NotificationType.WARNING);
|
||||
await redirectToLibraryPageAsync();
|
||||
}
|
||||
}
|
||||
|
||||
// Navigates back to the library page of the book, using the same AJAX navigation as the nav-links, so that the page is not
|
||||
// reloaded (and, for example, the audio player is not interrupted); the library page is the one the book was opened from,
|
||||
// and it is the only page that makes sense for a book whose reader is not available or not enabled.
|
||||
async function redirectToLibraryPageAsync() {
|
||||
const response = await fetch(availabilityUrl, {
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'X-Requested-With': 'XMLHttpRequest'
|
||||
}
|
||||
});
|
||||
if (!response.ok)
|
||||
return;
|
||||
const jsonResponse = await response.json();
|
||||
if (jsonResponse.libraryId) {
|
||||
const libraryUrl = `${libraryIndexUrl}?libraryId=${encodeURIComponent(jsonResponse.libraryId)}`;
|
||||
await updateContentAsync(libraryUrl, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Opens the reading section at the given spine index.
|
||||
async function goToIndexAsync(index) {
|
||||
if (!manifest || index < 0 || index >= manifest.spine.length)
|
||||
return;
|
||||
currentIndex = index;
|
||||
// The status line lives outside the content container, so that replacing the section content cannot destroy it; it is
|
||||
// shown while a section loads and hidden once the section is rendered, and a failing section load leaves it visible with
|
||||
// the failure message.
|
||||
readerStatus.classList.remove('hidden');
|
||||
readerStatus.textContent = jsLocalizedStrings.loading;
|
||||
const response = await callApiGetAsync(sectionUrlTemplate + encodeURIComponent(manifest.spine[index].locationRef));
|
||||
if (!response) {
|
||||
readerStatus.textContent = jsLocalizedStrings.readFailed;
|
||||
return;
|
||||
}
|
||||
readerContent.innerHTML = response.contentHtml || '';
|
||||
resolveResources();
|
||||
updatePosition();
|
||||
readerStatus.classList.add('hidden');
|
||||
}
|
||||
|
||||
// Resolves the resource marker attributes of the rendered content, pointing them at the reading resource endpoint.
|
||||
function resolveResources() {
|
||||
readerContent.querySelectorAll('[data-lumina-resource]').forEach(element => {
|
||||
const key = element.getAttribute('data-lumina-resource');
|
||||
if (!key)
|
||||
return;
|
||||
if (element.tagName === 'IMG' || element.tagName === 'SOURCE' || element.tagName === 'VIDEO' || element.tagName === 'AUDIO')
|
||||
element.setAttribute('src', resourceUrlTemplate + encodeURIComponent(key));
|
||||
else if (element.tagName === 'A')
|
||||
element.addEventListener('click', event => {
|
||||
event.preventDefault();
|
||||
navigateToLocation(key);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Navigates to the reading section identified by the location reference, when it is part of the spine.
|
||||
function navigateToLocation(locationRef) {
|
||||
const index = manifest.spine.findIndex(item => item.locationRef === locationRef);
|
||||
if (index >= 0)
|
||||
goToIndexAsync(index);
|
||||
}
|
||||
|
||||
// Updates the position label with the current reading section index.
|
||||
function updatePosition() {
|
||||
if (!manifest || manifest.spine.length === 0)
|
||||
readerPosition.textContent = '';
|
||||
else
|
||||
readerPosition.textContent = `${currentIndex + 1} / ${manifest.spine.length}`;
|
||||
}
|
||||
|
||||
// Renders the table of contents of the book into the table of contents panel.
|
||||
function renderTableOfContents(entries) {
|
||||
tocList.innerHTML = entries.map(entry => renderTableOfContentsEntry(entry)).join('');
|
||||
}
|
||||
|
||||
// Renders a table of contents entry, recursively rendering its children; the label and the location reference are escaped so
|
||||
// that a book cannot inject markup or break out of the data-location-ref attribute.
|
||||
function renderTableOfContentsEntry(entry) {
|
||||
const children = entry.children && entry.children.length > 0
|
||||
? '<ul>' + entry.children.map(child => renderTableOfContentsEntry(child)).join('') + '</ul>'
|
||||
: '';
|
||||
return `<li><a href="#" data-location-ref="${escapeHtml(entry.locationRef || '')}">${escapeHtml(entry.label || '')}</a>${children}</li>`;
|
||||
}
|
||||
|
||||
// Toggles the visibility of the table of contents panel.
|
||||
function handleTocToggleClick() {
|
||||
tocPanel.classList.toggle('hidden');
|
||||
}
|
||||
|
||||
// On table of contents entry click, navigates to the reading section.
|
||||
function handleTocClick(event) {
|
||||
const anchor = event.target.closest('a[data-location-ref]');
|
||||
if (!anchor)
|
||||
return;
|
||||
event.preventDefault();
|
||||
navigateToLocation(anchor.getAttribute('data-location-ref'));
|
||||
}
|
||||
|
||||
// On back button click, returns to the previous page.
|
||||
function handleBackClick() {
|
||||
window.history.back();
|
||||
}
|
||||
|
||||
// On previous button click, opens the previous reading section.
|
||||
function handlePrevClick() {
|
||||
goToIndexAsync(currentIndex - 1);
|
||||
}
|
||||
|
||||
// On next button click, opens the next reading section.
|
||||
function handleNextClick() {
|
||||
goToIndexAsync(currentIndex + 1);
|
||||
}
|
||||
|
||||
// Applies the current font size to the reading content.
|
||||
function applyFontSize() {
|
||||
readerContent.style.fontSize = `${fontSize}px`;
|
||||
}
|
||||
|
||||
// On font size decrease button click, decreases the font size of the reading content.
|
||||
function handleFontDecreaseClick() {
|
||||
fontSize = Math.max(12, fontSize - 2);
|
||||
applyFontSize();
|
||||
}
|
||||
|
||||
// On font size increase button click, increases the font size of the reading content.
|
||||
function handleFontIncreaseClick() {
|
||||
fontSize = Math.min(32, fontSize + 2);
|
||||
applyFontSize();
|
||||
}
|
||||
|
||||
// Add listeners.
|
||||
btnBack.addEventListener('click', handleBackClick);
|
||||
btnTocToggle.addEventListener('click', handleTocToggleClick);
|
||||
tocList.addEventListener('click', handleTocClick);
|
||||
btnPrev.addEventListener('click', handlePrevClick);
|
||||
btnNext.addEventListener('click', handleNextClick);
|
||||
btnFontDecrease.addEventListener('click', handleFontDecreaseClick);
|
||||
btnFontIncrease.addEventListener('click', handleFontIncreaseClick);
|
||||
document.addEventListener('DOMContentLoaded', InitializeAsync);
|
||||
|
||||
// Register cleanup for these listeners.
|
||||
cleanupFunctions.push(() => {
|
||||
btnBack.removeEventListener('click', handleBackClick);
|
||||
btnTocToggle.removeEventListener('click', handleTocToggleClick);
|
||||
tocList.removeEventListener('click', handleTocClick);
|
||||
btnPrev.removeEventListener('click', handlePrevClick);
|
||||
btnNext.removeEventListener('click', handleNextClick);
|
||||
btnFontDecrease.removeEventListener('click', handleFontDecreaseClick);
|
||||
btnFontIncrease.removeEventListener('click', handleFontIncreaseClick);
|
||||
document.removeEventListener('DOMContentLoaded', InitializeAsync);
|
||||
});
|
||||
|
||||
// Initializes the reader, loading the reading manifest of the book; the DOMContentLoaded listener covers the initial
|
||||
// full page load, while the site.js script processor invokes InitializeAsync directly after an AJAX navigation, when
|
||||
// the DOMContentLoaded event has already fired.
|
||||
async function InitializeAsync() {
|
||||
if (isInitialized)
|
||||
return;
|
||||
isInitialized = true;
|
||||
await loadManifestAsync();
|
||||
}
|
||||
|
||||
// Store all cleanups for this view on window object using the scriptId.
|
||||
window.viewCleanups = window.viewCleanups || {};
|
||||
window.viewCleanups['@scriptId'] = () => {
|
||||
cleanupFunctions.forEach(cleanup => cleanup());
|
||||
console.log(`Unloaded @scriptId`);
|
||||
};
|
||||
console.log(`Loaded @scriptId`);
|
||||
</script>
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
// generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler
|
||||
// Generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler.
|
||||
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
@model UserSettingsDto
|
||||
|
||||
<div style="display: grid; grid-template-rows: auto 1fr;"><!--container with two rows, one fixed, one filling remaining space-->
|
||||
<div style="min-height: 1rem;"></div><!--the first row is a dummy row for "margin", because setting a margin on the next row would offset the parent's position-->
|
||||
<div style="display: grid; grid-template-rows: auto 1fr;"><!--Container with two rows, one fixed, one filling remaining space.-->
|
||||
<div style="min-height: 1rem;"></div><!--The first row is a dummy row for "margin", because setting a margin on the next row would offset the parent's position.-->
|
||||
<div class="enlightenment-panel shadow-effect mx-auto panel w-50 mb-10" style="min-width: 320px;">
|
||||
<div class="shine-effect"></div>
|
||||
<form method="post" id="user-settings-form" class="inline">
|
||||
@@ -28,7 +28,7 @@
|
||||
</h1>
|
||||
</div>
|
||||
<div class="form-container">
|
||||
<!-- Pagination -->
|
||||
<!-- Pagination. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="IsPaginationEnabled">@_localizer["EnablePagination"]</label>:
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionEnablePagination"]</small>
|
||||
</div>
|
||||
<!-- Items per page -->
|
||||
<!-- Items per page. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="ItemsPerPage">@_localizer["ItemsPerPage"]</label>
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionShouldIgnoreThePrefixForAlphaPicker"]</small>
|
||||
</div>
|
||||
<!-- Theme caching -->
|
||||
<!-- Theme caching. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="IsThemeCachingEnabled">@_localizer["EnableThemeCaching"]</label>:
|
||||
@@ -78,6 +78,32 @@
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionEnableThemeCaching"]</small>
|
||||
</div>
|
||||
<!-- Render PDFs as images. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="ShouldRenderPdfAsImages">@_localizer["ShouldRenderPdfAsImages"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<label class="enlightenment-checkbox-label">
|
||||
<input type="checkbox" asp-for="ShouldRenderPdfAsImages" class="enlightenment-checkbox-hidden" />
|
||||
<span class="enlightenment-checkbox"></span>
|
||||
</label>
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionShouldRenderPdfAsImages"]</small>
|
||||
</div>
|
||||
<!-- Preserve book styles. -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="ShouldPreserveBookStyles">@_localizer["ShouldPreserveBookStyles"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<label class="enlightenment-checkbox-label">
|
||||
<input type="checkbox" asp-for="ShouldPreserveBookStyles" class="enlightenment-checkbox-hidden" />
|
||||
<span class="enlightenment-checkbox"></span>
|
||||
</label>
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionShouldPreserveBookStyles"]</small>
|
||||
</div>
|
||||
<div class="form-row" style="justify-content: center;">
|
||||
<button type="submit" class="confirm-button h-22px">@_localizer["Save"]</button>
|
||||
</div>
|
||||
@@ -88,7 +114,7 @@
|
||||
@section Scripts {
|
||||
<!-- The "text/plain" type is a design choice, not a mistake: it keeps the browser from executing this view script during HTML parsing, before site.js defines the API helpers it calls (callApiGetAsync, callApiPostAsync, ...). site.js (which loads deferred) executes these scripts once it is loaded, both on the initial page load and during AJAX navigation. -->
|
||||
<script type="text/plain" data-form="@scriptId">
|
||||
// create cleanup registry for this view
|
||||
// Create cleanup registry for this view.
|
||||
const cleanupFunctions = [];
|
||||
let isInitialized = false;
|
||||
|
||||
@@ -97,14 +123,16 @@
|
||||
const inputItemsPerPage = document.getElementById('ItemsPerPage');
|
||||
const checkboxShouldIgnoreThePrefixForAlphaPicker = document.getElementById('ShouldIgnoreThePrefixForAlphaPicker');
|
||||
const checkboxIsThemeCachingEnabled = document.getElementById('IsThemeCachingEnabled');
|
||||
const checkboxShouldRenderPdfAsImages = document.getElementById('ShouldRenderPdfAsImages');
|
||||
const checkboxShouldPreserveBookStyles = document.getElementById('ShouldPreserveBookStyles');
|
||||
let shouldAggregateMetadataWhenMissing = false;
|
||||
|
||||
// toggle the enabled state of the items per page input based on the pagination checkbox
|
||||
// Toggle the enabled state of the items per page input based on the pagination checkbox.
|
||||
function updateItemsPerPageEnabledState() {
|
||||
inputItemsPerPage.disabled = !checkboxIsPaginationEnabled.checked;
|
||||
}
|
||||
|
||||
// load the settings of the current user
|
||||
// Load the settings of the current user.
|
||||
async function loadUserSettingsAsync() {
|
||||
const data = await callApiGetAsync('@_urlService.GetAbsoluteUrl(WebRoutes.Settings.GET_USER_SETTINGS)');
|
||||
if (data) {
|
||||
@@ -112,42 +140,46 @@
|
||||
inputItemsPerPage.value = data.itemsPerPage;
|
||||
checkboxShouldIgnoreThePrefixForAlphaPicker.checked = data.shouldIgnoreThePrefixForAlphaPicker === true;
|
||||
checkboxIsThemeCachingEnabled.checked = data.isThemeCachingEnabled === true;
|
||||
checkboxShouldRenderPdfAsImages.checked = data.shouldRenderPdfAsImages === true;
|
||||
checkboxShouldPreserveBookStyles.checked = data.shouldPreserveBookStyles === true;
|
||||
shouldAggregateMetadataWhenMissing = data.shouldAggregateMetadataWhenMissing === true;
|
||||
updateItemsPerPageEnabledState();
|
||||
}
|
||||
}
|
||||
|
||||
// save the settings of the current user
|
||||
// Save the settings of the current user.
|
||||
async function handleSaveUserSettingsAsync() {
|
||||
const formData = {
|
||||
IsPaginationEnabled: checkboxIsPaginationEnabled.checked,
|
||||
ItemsPerPage: Number(inputItemsPerPage.value),
|
||||
ShouldIgnoreThePrefixForAlphaPicker: checkboxShouldIgnoreThePrefixForAlphaPicker.checked,
|
||||
IsThemeCachingEnabled: checkboxIsThemeCachingEnabled.checked,
|
||||
ShouldAggregateMetadataWhenMissing: shouldAggregateMetadataWhenMissing
|
||||
ShouldAggregateMetadataWhenMissing: shouldAggregateMetadataWhenMissing,
|
||||
ShouldRenderPdfAsImages: checkboxShouldRenderPdfAsImages.checked,
|
||||
ShouldPreserveBookStyles: checkboxShouldPreserveBookStyles.checked
|
||||
};
|
||||
const data = await callApiPostAsync('@_urlService.GetAbsoluteUrl(WebRoutes.Settings.UPDATE_USER_SETTINGS)', formData);
|
||||
if (data && data.isUpdated === true)
|
||||
notificationService.show('@_localizer["SettingsSaved"]', NotificationType.SUCCESS);
|
||||
}
|
||||
|
||||
// on form submit event
|
||||
// On form submit event.
|
||||
const handleSubmit = async function(e) {
|
||||
e.preventDefault();
|
||||
await handleSaveUserSettingsAsync();
|
||||
};
|
||||
|
||||
// on pagination checkbox change, update the enabled state of the items per page input
|
||||
// On pagination checkbox change, update the enabled state of the items per page input.
|
||||
const handlePaginationCheckboxChange = function() {
|
||||
updateItemsPerPageEnabledState();
|
||||
};
|
||||
|
||||
// add listeners
|
||||
// Add listeners.
|
||||
form.addEventListener('submit', handleSubmit);
|
||||
checkboxIsPaginationEnabled.addEventListener('change', handlePaginationCheckboxChange);
|
||||
document.addEventListener('DOMContentLoaded', InitializeAsync);
|
||||
|
||||
// register cleanup for these listeners
|
||||
// Register cleanup for these listeners.
|
||||
cleanupFunctions.push(() => {
|
||||
form.removeEventListener('submit', handleSubmit);
|
||||
checkboxIsPaginationEnabled.removeEventListener('change', handlePaginationCheckboxChange);
|
||||
@@ -161,7 +193,7 @@
|
||||
await loadUserSettingsAsync();
|
||||
}
|
||||
|
||||
// store all cleanups for this view on window object using the scriptId
|
||||
// Store all cleanups for this view on window object using the scriptId.
|
||||
window.viewCleanups = window.viewCleanups || {};
|
||||
window.viewCleanups['@scriptId'] = () => {
|
||||
cleanupFunctions.forEach(cleanup => cleanup());
|
||||
|
||||
Reference in new issue
Block a user