From 394b33efd28c9364d4d3e0110ad22430f4fb9ac3 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:36:36 -0700 Subject: [PATCH 1/8] refactor: removes legacy MVC infrastructure from the web project --- .../Attributes/RequirePermissionAttribute.cs | 25 - .../Attributes/RequirePolicyAttribute.cs | 25 - .../Common/Attributes/RequireRoleAttribute.cs | 24 - .../InitializationCheckAttribute.cs | 26 - .../ActionFilters/StoreLastViewFilter.cs | 39 -- .../ApiAuthorizationFilter.cs | 54 -- .../TypeFilters/ApiAuthorizationAttribute.cs | 24 - .../MiddlewareFilters/LocalizationPipeline.cs | 28 - .../Authorization/AddRoleRequestModel.cs | 16 - .../AuthorizationRequirementModel.cs | 27 - .../GetAuthorizationResponseModel.cs | 20 - .../Models/Authorization/PermissionModel.cs | 16 - .../Common/Models/Authorization/RoleModel.cs | 15 - .../Authorization/RolePermissionsModel.cs | 14 - .../Authorization/UpdateRoleRequestModel.cs | 18 - ...pdateUserRoleAndPermissionsRequestModel.cs | 18 - .../Authorization/UserPermissionsModel.cs | 15 - .../Models/Common/CachedResponseModel.cs | 23 - .../Common/Models/Common/EmptyModel.cs | 6 - .../Common/Models/Common/GenreModel.cs | 17 - .../Common/Models/Common/LanguageInfoModel.cs | 27 - .../Common/Models/Common/NotificationModel.cs | 18 - .../Models/Common/ProblemDetailsModel.cs | 52 -- .../Common/Models/Common/RatingModel.cs | 27 - .../Common/Models/Common/ReleaseInfoModel.cs | 44 -- .../Common/Models/Common/TagModel.cs | 17 - .../Configuration/EncryptionSettingsModel.cs | 19 - .../Configuration/ServerConfigurationModel.cs | 29 - .../FileSystemManagement/BlobDataModel.cs | 22 - .../FileSystemManagement/DirectoryModel.cs | 18 - .../Models/FileSystemManagement/FileModel.cs | 17 - .../FileSystemItemModel.cs | 33 - .../FileSystemTreeNodeModel.cs | 44 -- .../FileSystemTypeModel.cs | 18 - .../FileSystemManagement/PathExistsModel.cs | 14 - .../FileSystemManagement/PathSegmentModel.cs | 17 - .../PathSeparatorModel.cs | 14 - .../FileSystemManagement/PathValidModel.cs | 14 - .../Libraries/BookLibraryItemsQueryModel.cs | 56 -- .../Common/Models/Libraries/BookLiteModel.cs | 33 - .../Common/Models/Libraries/LibraryModel.cs | 71 -- .../Libraries/LibraryScanJobProgressModel.cs | 32 - .../Libraries/LibraryScanProgressModel.cs | 53 -- .../Libraries/PaginatedBookLiteModel.cs | 38 -- .../Models/Libraries/ScanLibraryModel.cs | 23 - .../MediaContributorModel.cs | 22 - .../MediaContributorNameModel.cs | 22 - .../MediaContributorRoleModel.cs | 22 - .../Plugins/LibraryMetadataProviderModel.cs | 33 - .../Common/Models/Plugins/PluginModel.cs | 55 -- .../Plugins/PluginSettingDescriptorModel.cs | 37 - .../Models/Plugins/PluginSettingsModel.cs | 27 - .../ReorderLibraryMetadataProvidersModel.cs | 22 - .../SetLibraryMetadataProviderEnabledModel.cs | 27 - .../Plugins/UpdatePluginSettingsModel.cs | 22 - .../ChangePasswordRequestModel.cs | 15 - .../ChangePasswordResponseModel.cs | 14 - .../UsersManagement/InitializationModel.cs | 17 - .../UsersManagement/LoginRequestModel.cs | 20 - .../UsersManagement/LoginResponseModel.cs | 21 - .../RecoverPasswordRequestModel.cs | 16 - .../RecoverPasswordResponseModel.cs | 14 - .../UsersManagement/RegisterRequestModel.cs | 22 - .../UsersManagement/RegisterResponseModel.cs | 17 - .../Models/UsersManagement/UserModel.cs | 15 - .../UsersManagement/UserSettingsModel.cs | 33 - .../BookLibrary/BookModel.cs | 216 ------ .../BookLibrary/BookRatingModel.cs | 19 - .../BookLibrary/BookSeriesModel.cs | 17 - .../BookLibrary/BooksModel.cs | 16 - .../BookLibrary/IsbnModel.cs | 23 - .../BookLibrary/LightBookModel.cs | 33 - .../WrittenContentMetadataModel.cs | 64 -- .../Controllers/AdminController.cs | 154 ----- .../DirectoriesController.cs | 45 -- .../FileSystemManagement/DrivesController.cs | 40 -- .../FileSystemController.cs | 40 -- .../FileSystemManagement/FilesController.cs | 60 -- .../FileSystemManagement/PathController.cs | 104 --- .../Controllers/HomeController.cs | 66 -- .../Management/LibraryManagementController.cs | 212 ------ .../BookLibrary/BooksController.cs | 92 --- .../Controllers/Plugins/PluginsController.cs | 89 --- .../Controllers/Tools/LanguageController.cs | 72 -- .../Controllers/Tools/SettingsController.cs | 64 -- .../UsersManagement/AuthController.cs | 260 ------- .../Models/ErrorViewModel.cs | 8 - .../Books/BooksTemplateRenderer.cs | 5 - .../ExceptionHandlingMiddleware.de-DE.resx | 594 ---------------- .../ExceptionHandlingMiddleware.en-US.resx | 594 ---------------- .../ExceptionHandlingMiddleware.es-ES.resx | 594 ---------------- .../ExceptionHandlingMiddleware.fr-FR.resx | 594 ---------------- .../ExceptionHandlingMiddleware.it-IT.resx | 594 ---------------- .../ExceptionHandlingMiddleware.ja-JP.resx | 594 ---------------- .../ExceptionHandlingMiddleware.resx | 594 ---------------- .../ExceptionHandlingMiddleware.ro-RO.resx | 594 ---------------- .../ExceptionHandlingMiddleware.ru-RU.resx | 594 ---------------- .../ExceptionHandlingMiddleware.zh-CN.resx | 594 ---------------- .../Views/Admin/ManagePermissions.de-DE.resx | 150 ---- .../Views/Admin/ManagePermissions.en-US.resx | 150 ---- .../Views/Admin/ManagePermissions.es-ES.resx | 150 ---- .../Views/Admin/ManagePermissions.fr-FR.resx | 150 ---- .../Views/Admin/ManagePermissions.it-IT.resx | 150 ---- .../Views/Admin/ManagePermissions.ja-JP.resx | 150 ---- .../Views/Admin/ManagePermissions.resx | 150 ---- .../Views/Admin/ManagePermissions.ro-RO.resx | 150 ---- .../Views/Admin/ManagePermissions.ru-RU.resx | 150 ---- .../Views/Admin/ManagePermissions.zh-CN.resx | 150 ---- .../Views/Admin/ManageRoles.de-DE.resx | 162 ----- .../Views/Admin/ManageRoles.en-US.resx | 162 ----- .../Views/Admin/ManageRoles.es-ES.resx | 162 ----- .../Views/Admin/ManageRoles.fr-FR.resx | 162 ----- .../Views/Admin/ManageRoles.it-IT.resx | 162 ----- .../Views/Admin/ManageRoles.ja-JP.resx | 162 ----- .../Resources/Views/Admin/ManageRoles.resx | 162 ----- .../Views/Admin/ManageRoles.ro-RO.resx | 162 ----- .../Views/Admin/ManageRoles.ru-RU.resx | 162 ----- .../Views/Admin/ManageRoles.zh-CN.resx | 162 ----- .../Views/Auth/AccessDenied.de-DE.resx | 123 ---- .../Views/Auth/AccessDenied.en-US.resx | 123 ---- .../Views/Auth/AccessDenied.es-ES.resx | 123 ---- .../Views/Auth/AccessDenied.fr-FR.resx | 123 ---- .../Views/Auth/AccessDenied.it-IT.resx | 123 ---- .../Views/Auth/AccessDenied.ja-JP.resx | 123 ---- .../Resources/Views/Auth/AccessDenied.resx | 123 ---- .../Views/Auth/AccessDenied.ro-RO.resx | 123 ---- .../Views/Auth/AccessDenied.ru-RU.resx | 123 ---- .../Views/Auth/AccessDenied.zh-CN.resx | 123 ---- .../Views/Auth/ChangePassword.Designer.cs | 135 ---- .../Views/Auth/ChangePassword.de-DE.resx | 144 ---- .../Views/Auth/ChangePassword.en-US.resx | 144 ---- .../Views/Auth/ChangePassword.es-ES.resx | 144 ---- .../Views/Auth/ChangePassword.fr-FR.resx | 144 ---- .../Views/Auth/ChangePassword.it-IT.resx | 144 ---- .../Views/Auth/ChangePassword.ja-JP.resx | 144 ---- .../Resources/Views/Auth/ChangePassword.resx | 144 ---- .../Views/Auth/ChangePassword.ro-RO.resx | 144 ---- .../Views/Auth/ChangePassword.ru-RU.resx | 144 ---- .../Views/Auth/ChangePassword.zh-CN.resx | 144 ---- .../Resources/Views/Auth/Login.Designer.cs | 117 ---- .../Resources/Views/Auth/Login.de-DE.resx | 138 ---- .../Resources/Views/Auth/Login.en-US.resx | 138 ---- .../Resources/Views/Auth/Login.es-ES.resx | 138 ---- .../Resources/Views/Auth/Login.fr-FR.resx | 138 ---- .../Resources/Views/Auth/Login.it-IT.resx | 138 ---- .../Resources/Views/Auth/Login.ja-JP.resx | 138 ---- .../Resources/Views/Auth/Login.resx | 138 ---- .../Resources/Views/Auth/Login.ro-RO.resx | 138 ---- .../Resources/Views/Auth/Login.ru-RU.resx | 138 ---- .../Resources/Views/Auth/Login.zh-CN.resx | 138 ---- .../Views/Auth/RecoverPassword.Designer.cs | 117 ---- .../Views/Auth/RecoverPassword.de-DE.resx | 138 ---- .../Views/Auth/RecoverPassword.en-US.resx | 138 ---- .../Views/Auth/RecoverPassword.es-ES.resx | 138 ---- .../Views/Auth/RecoverPassword.fr-FR.resx | 138 ---- .../Views/Auth/RecoverPassword.it-IT.resx | 138 ---- .../Views/Auth/RecoverPassword.ja-JP.resx | 138 ---- .../Resources/Views/Auth/RecoverPassword.resx | 138 ---- .../Views/Auth/RecoverPassword.ro-RO.resx | 138 ---- .../Views/Auth/RecoverPassword.ru-RU.resx | 138 ---- .../Views/Auth/RecoverPassword.zh-CN.resx | 138 ---- .../Resources/Views/Auth/Register.Designer.cs | 189 ------ .../Resources/Views/Auth/Register.de-DE.resx | 162 ----- .../Resources/Views/Auth/Register.en-US.resx | 162 ----- .../Resources/Views/Auth/Register.es-ES.resx | 162 ----- .../Resources/Views/Auth/Register.fr-FR.resx | 162 ----- .../Resources/Views/Auth/Register.it-IT.resx | 162 ----- .../Resources/Views/Auth/Register.ja-JP.resx | 162 ----- .../Resources/Views/Auth/Register.resx | 162 ----- .../Resources/Views/Auth/Register.ro-RO.resx | 162 ----- .../Resources/Views/Auth/Register.ru-RU.resx | 162 ----- .../Resources/Views/Auth/Register.zh-CN.resx | 162 ----- .../Resources/Views/Home/Index.de-DE.resx | 123 ---- .../Resources/Views/Home/Index.en-US.resx | 123 ---- .../Resources/Views/Home/Index.es-ES.resx | 123 ---- .../Resources/Views/Home/Index.fr-FR.resx | 123 ---- .../Resources/Views/Home/Index.it-IT.resx | 123 ---- .../Resources/Views/Home/Index.ja-JP.resx | 123 ---- .../Resources/Views/Home/Index.resx | 123 ---- .../Resources/Views/Home/Index.ro-RO.resx | 123 ---- .../Resources/Views/Home/Index.ru-RU.resx | 123 ---- .../Resources/Views/Home/Index.zh-CN.resx | 123 ---- .../Views/Library/Management/Index.de-DE.resx | 291 -------- .../Views/Library/Management/Index.en-US.resx | 291 -------- .../Views/Library/Management/Index.es-ES.resx | 291 -------- .../Views/Library/Management/Index.fr-FR.resx | 291 -------- .../Views/Library/Management/Index.it-IT.resx | 291 -------- .../Views/Library/Management/Index.ja-JP.resx | 291 -------- .../Views/Library/Management/Index.resx | 291 -------- .../Views/Library/Management/Index.ro-RO.resx | 291 -------- .../Views/Library/Management/Index.ru-RU.resx | 291 -------- .../Views/Library/Management/Index.zh-CN.resx | 291 -------- .../Views/Library/Management/Item.Designer.cs | 639 ------------------ .../Views/Library/Management/Item.de-DE.resx | 339 ---------- .../Views/Library/Management/Item.en-US.resx | 339 ---------- .../Views/Library/Management/Item.es-ES.resx | 339 ---------- .../Views/Library/Management/Item.fr-FR.resx | 339 ---------- .../Views/Library/Management/Item.it-IT.resx | 339 ---------- .../Views/Library/Management/Item.ja-JP.resx | 339 ---------- .../Views/Library/Management/Item.resx | 339 ---------- .../Views/Library/Management/Item.ro-RO.resx | 339 ---------- .../Views/Library/Management/Item.ru-RU.resx | 339 ---------- .../Views/Library/Management/Item.zh-CN.resx | 339 ---------- .../BookLibrary/Books/Index.de-DE.resx | 48 -- .../BookLibrary/Books/Index.en-US.resx | 48 -- .../BookLibrary/Books/Index.es-ES.resx | 48 -- .../BookLibrary/Books/Index.fr-FR.resx | 48 -- .../BookLibrary/Books/Index.it-IT.resx | 48 -- .../BookLibrary/Books/Index.ja-JP.resx | 48 -- .../BookLibrary/Books/Index.resx | 48 -- .../BookLibrary/Books/Index.ro-RO.resx | 48 -- .../BookLibrary/Books/Index.ru-RU.resx | 48 -- .../BookLibrary/Books/Index.zh-CN.resx | 48 -- .../Resources/Views/Plugins/Index.de-DE.resx | 159 ----- .../Resources/Views/Plugins/Index.en-US.resx | 159 ----- .../Resources/Views/Plugins/Index.es-ES.resx | 159 ----- .../Resources/Views/Plugins/Index.fr-FR.resx | 159 ----- .../Resources/Views/Plugins/Index.it-IT.resx | 159 ----- .../Resources/Views/Plugins/Index.ja-JP.resx | 159 ----- .../Resources/Views/Plugins/Index.resx | 159 ----- .../Resources/Views/Plugins/Index.ro-RO.resx | 159 ----- .../Resources/Views/Plugins/Index.ru-RU.resx | 159 ----- .../Resources/Views/Plugins/Index.zh-CN.resx | 159 ----- .../FileSystemBrowser/Default.de-DE.resx | 189 ------ .../FileSystemBrowser/Default.en-US.resx | 189 ------ .../FileSystemBrowser/Default.es-ES.resx | 189 ------ .../FileSystemBrowser/Default.fr-FR.resx | 189 ------ .../FileSystemBrowser/Default.it-IT.resx | 189 ------ .../FileSystemBrowser/Default.ja-JP.resx | 189 ------ .../Components/FileSystemBrowser/Default.resx | 189 ------ .../FileSystemBrowser/Default.ro-RO.resx | 189 ------ .../FileSystemBrowser/Default.ru-RU.resx | 189 ------ .../FileSystemBrowser/Default.zh-CN.resx | 189 ------ .../Views/Shared/NotFound.de-DE.resx | 126 ---- .../Views/Shared/NotFound.en-US.resx | 126 ---- .../Views/Shared/NotFound.es-ES.resx | 126 ---- .../Views/Shared/NotFound.fr-FR.resx | 126 ---- .../Views/Shared/NotFound.it-IT.resx | 126 ---- .../Views/Shared/NotFound.ja-JP.resx | 126 ---- .../Resources/Views/Shared/NotFound.resx | 126 ---- .../Views/Shared/NotFound.ro-RO.resx | 126 ---- .../Views/Shared/NotFound.ru-RU.resx | 126 ---- .../Views/Shared/NotFound.zh-CN.resx | 126 ---- .../Resources/Views/Shared/_Layout.de-DE.resx | 162 ----- .../Resources/Views/Shared/_Layout.en-US.resx | 162 ----- .../Resources/Views/Shared/_Layout.es-ES.resx | 162 ----- .../Resources/Views/Shared/_Layout.fr-FR.resx | 162 ----- .../Resources/Views/Shared/_Layout.it-IT.resx | 162 ----- .../Resources/Views/Shared/_Layout.ja-JP.resx | 162 ----- .../Resources/Views/Shared/_Layout.resx | 162 ----- .../Resources/Views/Shared/_Layout.ro-RO.resx | 162 ----- .../Resources/Views/Shared/_Layout.ru-RU.resx | 162 ----- .../Resources/Views/Shared/_Layout.zh-CN.resx | 162 ----- .../Views/Shared/_NavMenu.de-DE.resx | 216 ------ .../Views/Shared/_NavMenu.en-US.resx | 216 ------ .../Views/Shared/_NavMenu.es-ES.resx | 216 ------ .../Views/Shared/_NavMenu.fr-FR.resx | 216 ------ .../Views/Shared/_NavMenu.it-IT.resx | 216 ------ .../Views/Shared/_NavMenu.ja-JP.resx | 216 ------ .../Resources/Views/Shared/_NavMenu.resx | 216 ------ .../Views/Shared/_NavMenu.ro-RO.resx | 216 ------ .../Views/Shared/_NavMenu.ru-RU.resx | 216 ------ .../Views/Shared/_NavMenu.zh-CN.resx | 216 ------ .../Resources/Views/Tools/Settings.de-DE.resx | 42 -- .../Resources/Views/Tools/Settings.en-US.resx | 42 -- .../Resources/Views/Tools/Settings.es-ES.resx | 42 -- .../Resources/Views/Tools/Settings.fr-FR.resx | 42 -- .../Resources/Views/Tools/Settings.it-IT.resx | 42 -- .../Resources/Views/Tools/Settings.ja-JP.resx | 42 -- .../Resources/Views/Tools/Settings.resx | 42 -- .../Resources/Views/Tools/Settings.ro-RO.resx | 42 -- .../Resources/Views/Tools/Settings.ru-RU.resx | 42 -- .../Resources/Views/Tools/Settings.zh-CN.resx | 42 -- .../FileSystemBrowserViewComponent.cs | 45 -- .../Views/Admin/ManagePermissions.cshtml | 232 ------- .../Views/Admin/ManagePermissions.cshtml.css | 46 -- .../Views/Admin/ManageRoles.cshtml | 263 ------- .../Views/Admin/ManageRoles.cshtml.css | 46 -- .../Views/Auth/AccessDenied.cshtml | 17 - .../Views/Auth/ChangePassword.cshtml | 136 ---- .../Views/Auth/Login.cshtml | 141 ---- .../Views/Auth/RecoverPassword.cshtml | 137 ---- .../Views/Auth/Register.cshtml | 197 ------ .../Views/Home/Index.cshtml | 94 --- .../Views/Home/Privacy.cshtml | 6 - .../Views/Library/Management/Index.cshtml | 630 ----------------- .../Views/Library/Management/Index.cshtml.css | 1 - .../Views/Library/Management/Item.cshtml | 477 ------------- .../BookLibrary/Books/Index.cshtml | 317 --------- .../BookLibrary/Books/Item.cshtml | 1 - .../Views/Plugins/Index.cshtml | 200 ------ .../FileSystemBrowser/Default.cshtml | 549 --------------- .../Views/Shared/Error.cshtml | 25 - .../Views/Shared/NotFound.cshtml | 19 - .../Views/Shared/_Layout.cshtml | 88 --- .../Views/Shared/_Layout.cshtml.css | 1 - .../Views/Shared/_NavMenu.cshtml | 226 ------- .../Views/Tools/Settings.cshtml | 152 ----- .../Views/_ViewImports.cshtml | 3 - .../Views/_ViewStart.cshtml | 3 - 300 files changed, 41701 deletions(-) delete mode 100644 src/Lumina.Presentation.Web/Common/Attributes/RequirePermissionAttribute.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Attributes/RequirePolicyAttribute.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Attributes/RequireRoleAttribute.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Filters/ActionFilters/InitializationCheckAttribute.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Filters/ActionFilters/StoreLastViewFilter.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Filters/AuthorizationFilters/ApiAuthorizationFilter.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Filters/TypeFilters/ApiAuthorizationAttribute.cs delete mode 100644 src/Lumina.Presentation.Web/Common/MiddlewareFilters/LocalizationPipeline.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/AddRoleRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/AuthorizationRequirementModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/GetAuthorizationResponseModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/PermissionModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/RoleModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/RolePermissionsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateRoleRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateUserRoleAndPermissionsRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Authorization/UserPermissionsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/CachedResponseModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/EmptyModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/GenreModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/LanguageInfoModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/NotificationModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/ProblemDetailsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/RatingModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/ReleaseInfoModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Common/TagModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Configuration/EncryptionSettingsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Configuration/ServerConfigurationModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/BlobDataModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/DirectoryModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemItemModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTreeNodeModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTypeModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathExistsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSegmentModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSeparatorModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathValidModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/BookLibraryItemsQueryModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/BookLiteModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanJobProgressModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanProgressModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/PaginatedBookLiteModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Libraries/ScanLibraryModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorNameModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorRoleModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/LibraryMetadataProviderModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/PluginModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingDescriptorModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/ReorderLibraryMetadataProvidersModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/SetLibraryMetadataProviderEnabledModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/Plugins/UpdatePluginSettingsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordResponseModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/InitializationModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginResponseModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordResponseModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterRequestModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterResponseModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserSettingsModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookRatingModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookSeriesModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BooksModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/IsbnModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/LightBookModel.cs delete mode 100644 src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/WrittenContentMetadataModel.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/AdminController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DirectoriesController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DrivesController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FileSystemController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FilesController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/FileSystemManagement/PathController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/HomeController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/Library/Management/LibraryManagementController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/Plugins/PluginsController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/Tools/LanguageController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/Tools/SettingsController.cs delete mode 100644 src/Lumina.Presentation.Web/Controllers/UsersManagement/AuthController.cs delete mode 100644 src/Lumina.Presentation.Web/Models/ErrorViewModel.cs delete mode 100644 src/Lumina.Presentation.Web/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.Designer.cs delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.Designer.cs delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Login.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.Designer.cs delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.Designer.cs delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Auth/Register.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Home/Index.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.Designer.cs delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.de-DE.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.en-US.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.es-ES.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.fr-FR.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.it-IT.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ja-JP.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ro-RO.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ru-RU.resx delete mode 100644 src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.zh-CN.resx delete mode 100644 src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs delete mode 100644 src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml.css delete mode 100644 src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml.css delete mode 100644 src/Lumina.Presentation.Web/Views/Auth/AccessDenied.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Auth/ChangePassword.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Auth/Login.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Auth/RecoverPassword.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Auth/Register.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Home/Index.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Home/Privacy.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml.css delete mode 100644 src/Lumina.Presentation.Web/Views/Library/Management/Item.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Plugins/Index.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Shared/Components/FileSystemBrowser/Default.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Shared/Error.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Shared/NotFound.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml.css delete mode 100644 src/Lumina.Presentation.Web/Views/Shared/_NavMenu.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/Tools/Settings.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/_ViewImports.cshtml delete mode 100644 src/Lumina.Presentation.Web/Views/_ViewStart.cshtml diff --git a/src/Lumina.Presentation.Web/Common/Attributes/RequirePermissionAttribute.cs b/src/Lumina.Presentation.Web/Common/Attributes/RequirePermissionAttribute.cs deleted file mode 100644 index 177ce393..00000000 --- a/src/Lumina.Presentation.Web/Common/Attributes/RequirePermissionAttribute.cs +++ /dev/null @@ -1,25 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Authorization; -using Lumina.Presentation.Web.Common.Filters.TypeFilters; -using Lumina.Presentation.Web.Common.Models.Authorization; -#endregion - -namespace Lumina.Presentation.Web.Common.Attributes; - -/// -/// Attribute that restricts endpoint access to users with specified permissions. -/// -/// -/// Can be applied to controllers or individual actions. Multiple permissions create an OR condition. -/// -public class RequirePermissionAttribute : ApiAuthorizationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - /// One or more permissions that are allowed to access the endpoint. - public RequirePermissionAttribute(params AuthorizationPermission[] permissions) : base() - { - Arguments = [new AuthorizationRequirementModel { Permissions = permissions }]; - } -} diff --git a/src/Lumina.Presentation.Web/Common/Attributes/RequirePolicyAttribute.cs b/src/Lumina.Presentation.Web/Common/Attributes/RequirePolicyAttribute.cs deleted file mode 100644 index 549a01f7..00000000 --- a/src/Lumina.Presentation.Web/Common/Attributes/RequirePolicyAttribute.cs +++ /dev/null @@ -1,25 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Filters.TypeFilters; -using Lumina.Presentation.Web.Common.Models.Authorization; -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Attributes; - -/// -/// Attribute that restricts endpoint access based on a custom authorization policy. -/// -/// -/// Can be applied to controllers or individual actions. -/// -public class RequirePolicyAttribute : ApiAuthorizationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - /// The type of the authorization policy to apply. - public RequirePolicyAttribute(Type policyType) : base() - { - Arguments = [new AuthorizationRequirementModel { PolicyType = policyType }]; - } -} diff --git a/src/Lumina.Presentation.Web/Common/Attributes/RequireRoleAttribute.cs b/src/Lumina.Presentation.Web/Common/Attributes/RequireRoleAttribute.cs deleted file mode 100644 index 8221d78d..00000000 --- a/src/Lumina.Presentation.Web/Common/Attributes/RequireRoleAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Filters.TypeFilters; -using Lumina.Presentation.Web.Common.Models.Authorization; -#endregion - -namespace Lumina.Presentation.Web.Common.Attributes; - -/// -/// Attribute that restricts endpoint access to users with specified roles. -/// -/// -/// Can be applied to controllers or individual actions. Multiple roles create an OR condition. -/// -public class RequireRoleAttribute : ApiAuthorizationAttribute -{ - /// - /// Initializes a new instance of the class. - /// - /// One or more roles that are allowed to access the endpoint. - public RequireRoleAttribute(params string[] roles) : base() - { - Arguments = [new AuthorizationRequirementModel { Roles = roles }]; - } -} diff --git a/src/Lumina.Presentation.Web/Common/Filters/ActionFilters/InitializationCheckAttribute.cs b/src/Lumina.Presentation.Web/Common/Filters/ActionFilters/InitializationCheckAttribute.cs deleted file mode 100644 index d19083da..00000000 --- a/src/Lumina.Presentation.Web/Common/Filters/ActionFilters/InitializationCheckAttribute.cs +++ /dev/null @@ -1,26 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.Extensions.DependencyInjection; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Common.Filters.ActionFilters; - -/// -/// Attribute that enforces application initialization checks on controller actions. -/// -public class InitializationCheckAttribute : ActionFilterAttribute -{ - /// - /// Asynchronously executes the initialization check before the action executes. - /// - /// The context for the action being executed. - /// Delegate to execute the next action filter in the pipeline. - public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) - { - IAuthorizationService authorizationService = context.HttpContext.RequestServices.GetRequiredService(); - await authorizationService.AuthorizeAsync(context.HttpContext.User, context.HttpContext, "RequireInitialization").ConfigureAwait(false); - await next().ConfigureAwait(false); - } -} diff --git a/src/Lumina.Presentation.Web/Common/Filters/ActionFilters/StoreLastViewFilter.cs b/src/Lumina.Presentation.Web/Common/Filters/ActionFilters/StoreLastViewFilter.cs deleted file mode 100644 index 0f4bb8a0..00000000 --- a/src/Lumina.Presentation.Web/Common/Filters/ActionFilters/StoreLastViewFilter.cs +++ /dev/null @@ -1,39 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Http; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Filters; -#endregion - -namespace Lumina.Presentation.Web.Common.Filters.ActionFilters; - -/// -/// Stores the current view path in session, for actions that return ViewResult. This is needed because when JWT expires, user is redirected to Login view, with a returnUrl. -/// This returnUrl needs to be that of the last displayed view, not of the call that triggered the re-authentication request, which can be an API call for data. -/// -public class StoreLastViewFilter : IActionFilter -{ - /// - /// Executes before the action method is called. - /// - /// The action executing context. - public void OnActionExecuting(ActionExecutingContext context) - { - // no action needed before execution - } - - /// - /// Executes after the action method is called. - /// - /// The action executed context containing the action result. - public void OnActionExecuted(ActionExecutedContext context) - { - if (context.Result is ViewResult) - { - HttpContext httpContext = context.HttpContext; - // ignore the login endpoint, because it is incorrect to be redirected to the login URL, with the login URL as the return URL - if (httpContext.Request.Path != "/en-us/auth/login") - httpContext.Session.SetString(HttpContextItemKeys.LAST_DISPLAYED_VIEW, $"{httpContext.Request.PathBase}{httpContext.Request.Path}{httpContext.Request.QueryString}"); - } - } -} diff --git a/src/Lumina.Presentation.Web/Common/Filters/AuthorizationFilters/ApiAuthorizationFilter.cs b/src/Lumina.Presentation.Web/Common/Filters/AuthorizationFilters/ApiAuthorizationFilter.cs deleted file mode 100644 index 0375fb54..00000000 --- a/src/Lumina.Presentation.Web/Common/Filters/AuthorizationFilters/ApiAuthorizationFilter.cs +++ /dev/null @@ -1,54 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Authorization; -using Lumina.Presentation.Web.Common.Exceptions; -using Lumina.Presentation.Web.Common.Models.Authorization; -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Filters; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Common.Filters.AuthorizationFilters; - -/// -/// Implements authorization filter logic for API endpoints by validating user roles, permissions, and policies. -/// -public class ApiAuthorizationFilter : IAsyncAuthorizationFilter -{ - private readonly IAuthorizationService _authorizationService; - private readonly AuthorizationRequirementModel _requirement; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - /// Authorization requirements to evaluate. - public ApiAuthorizationFilter(IAuthorizationService authorizationService, AuthorizationRequirementModel requirement) - { - _authorizationService = authorizationService; - _requirement = requirement; - } - - /// - /// Performs authorization for the current request. - /// - /// The authorization filter context. - public async Task OnAuthorizationAsync(AuthorizationFilterContext context) - { - try - { - if (!await _authorizationService.EvaluateAuthorizationAsync(_requirement)) - context.Result = new ForbidResult(); - } - catch (ApiException ex) // TODO: check if it should really catch exceptions here - { - if (ex.HttpStatusCode == System.Net.HttpStatusCode.Unauthorized) - { - await context.HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme).ConfigureAwait(false); - context.HttpContext.Response.Cookies.Delete("Token"); - throw; - } - } - } -} diff --git a/src/Lumina.Presentation.Web/Common/Filters/TypeFilters/ApiAuthorizationAttribute.cs b/src/Lumina.Presentation.Web/Common/Filters/TypeFilters/ApiAuthorizationAttribute.cs deleted file mode 100644 index 6d9838a6..00000000 --- a/src/Lumina.Presentation.Web/Common/Filters/TypeFilters/ApiAuthorizationAttribute.cs +++ /dev/null @@ -1,24 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Filters.AuthorizationFilters; -using Microsoft.AspNetCore.Mvc; -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Filters.TypeFilters; - -/// -/// Authorization filter for API endpoints. -/// -/// -/// This attribute can be applied to both classes and methods and supports multiple instances on the same target. -/// -[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] -public class ApiAuthorizationAttribute : TypeFilterAttribute -{ - /// - /// Initializes a new instance of the class. - /// - public ApiAuthorizationAttribute() : base(typeof(ApiAuthorizationFilter)) - { - } -} diff --git a/src/Lumina.Presentation.Web/Common/MiddlewareFilters/LocalizationPipeline.cs b/src/Lumina.Presentation.Web/Common/MiddlewareFilters/LocalizationPipeline.cs deleted file mode 100644 index a10a2dfb..00000000 --- a/src/Lumina.Presentation.Web/Common/MiddlewareFilters/LocalizationPipeline.cs +++ /dev/null @@ -1,28 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Localization; -using Microsoft.Extensions.Options; -#endregion - -namespace Lumina.Presentation.Web.Common.MiddlewareFilters; - -/// -/// Defines a pipeline for configuring middleware to handle localization. -/// -/// -/// To use a MiddlewareFilter, you first need to create a pipeline. This acts as a mini startup configuration where you define an -/// to specify the middleware that should run as part of the pipeline. Multiple middleware can be configured in this way. -/// -public class LocalizationPipeline -{ - /// - /// Configures the middleware pipeline to include the for handling localization. - /// - /// The used to configure the middleware pipeline. - /// The instance for , containing localization settings to be applied. - public void Configure(IApplicationBuilder app, IOptions options) - { - // runs the RequestLocalizationMiddleware with the provided options - app.UseRequestLocalization(options.Value); - } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/AddRoleRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/AddRoleRequestModel.cs deleted file mode 100644 index 76b9c855..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/AddRoleRequestModel.cs +++ /dev/null @@ -1,16 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents the request model for adding an authorization role. -/// -/// The name of the role. -/// The collection or permissions of the role. -public record AddRoleRequestModel( - string? RoleName, - List? Permissions -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/AuthorizationRequirementModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/AuthorizationRequirementModel.cs deleted file mode 100644 index 139981e2..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/AuthorizationRequirementModel.cs +++ /dev/null @@ -1,27 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Authorization; -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Model for storing the authorization requirements for accessing a resource. -/// -public class AuthorizationRequirementModel -{ - /// - /// The collection of roles required for accessing the resource. - /// - public string[]? Roles { get; set; } - - /// - /// The collection of permissions required for accessing the resource. - /// - public AuthorizationPermission[]? Permissions { get; set; } - - /// - /// The type of the policy required for accessing the resource. - /// - public Type? PolicyType { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/GetAuthorizationResponseModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/GetAuthorizationResponseModel.cs deleted file mode 100644 index 4436f3a9..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/GetAuthorizationResponseModel.cs +++ /dev/null @@ -1,20 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Authorization; -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents the response model for an account authorization request. -/// -/// The unique identifier of the user for whom the authorization is retrieved. -/// The role associated to the user. -/// The collection of permissions associated to the user. -[DebuggerDisplay("UserId: {UserId}")] -public record GetAuthorizationResponse( - Guid UserId, - string? Role, - AuthorizationPermission[] Permissions -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/PermissionModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/PermissionModel.cs deleted file mode 100644 index 7ace0b3d..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/PermissionModel.cs +++ /dev/null @@ -1,16 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Authorization; -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents a model for an authorization permission. -/// -/// The unique identifier of the authorization permission. -/// The authorization permission. -public record PermissionModel( - Guid Id, - AuthorizationPermission PermissionName -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/RoleModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/RoleModel.cs deleted file mode 100644 index bc1a3ac4..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/RoleModel.cs +++ /dev/null @@ -1,15 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents a model for an authorization role. -/// -/// The unique identifier of the authorization role. -/// The authorization role. -public record RoleModel( - Guid Id, - string RoleName -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/RolePermissionsModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/RolePermissionsModel.cs deleted file mode 100644 index ac0496e4..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/RolePermissionsModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents a model for an authorization role with its permissions. -/// -/// The authorization role. -/// The permissions of the authorization role. -public record RolePermissionsModel( - RoleModel Role, - PermissionModel[] Permissions -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateRoleRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateRoleRequestModel.cs deleted file mode 100644 index f70a2f1f..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateRoleRequestModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents the request model for updating an existing authorization role. -/// -/// The unique identifier of the role. -/// The name of the role. -/// The collection of Ids of the permissions of the role. -public record UpdateRoleRequestModel( - Guid RoleId, - string? RoleName, - List? Permissions -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateUserRoleAndPermissionsRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateUserRoleAndPermissionsRequestModel.cs deleted file mode 100644 index a76ce7aa..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/UpdateUserRoleAndPermissionsRequestModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents the request model for updating the authorization role and permissions of a user. -/// -/// The unique identifier of the user. -/// The unique identifier of the role. -/// The collection of Ids of the permissions of the user. -public record UpdateUserRoleAndPermissionsRequestModel( - Guid UserId, - Guid? RoleId, - List? Permissions -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Authorization/UserPermissionsModel.cs b/src/Lumina.Presentation.Web/Common/Models/Authorization/UserPermissionsModel.cs deleted file mode 100644 index 71f0e249..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Authorization/UserPermissionsModel.cs +++ /dev/null @@ -1,15 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.UsersManagement; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Authorization; - -/// -/// Represents a model for a user with its authorization permissions. -/// -/// The user. -/// The authorization permissions of the user. -public record UserPermissionsModel( - UserModel User, - PermissionModel[] Permissions -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/CachedResponseModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/CachedResponseModel.cs deleted file mode 100644 index 3c02aabe..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/CachedResponseModel.cs +++ /dev/null @@ -1,23 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -using System.Net; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Represents a cached HTTP response, including its content and status code. -/// -[DebuggerDisplay("StatusCode: {StatusCode}")] -public class CachedResponseModel -{ - /// - /// Gets or sets the content of the cached HTTP response. - /// - public string Content { get; set; } = string.Empty; - - /// - /// Gets or sets the HTTP status code of the cached response. - /// - public HttpStatusCode StatusCode { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/EmptyModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/EmptyModel.cs deleted file mode 100644 index 3bd1ef69..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/EmptyModel.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Record used for empty requests and responses. -/// -public record struct EmptyModel(); diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/GenreModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/GenreModel.cs deleted file mode 100644 index 720293c9..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/GenreModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Represents a request to get genre information. -/// -[DebuggerDisplay("{Name}")] -public class GenreModel -{ - /// - /// Gets the name of the genre element of the media item. - /// - public string? Name { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/LanguageInfoModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/LanguageInfoModel.cs deleted file mode 100644 index b37f37fa..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/LanguageInfoModel.cs +++ /dev/null @@ -1,27 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Represents a request to get language information. -/// -[DebuggerDisplay("{LanguageName}")] -public class LanguageInfoModel -{ - /// - /// Gets the ISO 639-1 two-letter language code. - /// - public string? LanguageCode { get; set; } - - /// - /// Gets the full name of the language in English. - /// - public string? LanguageName { get; set; } - - /// - /// Gets an optional native name of the language. - /// - public string? NativeName { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/NotificationModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/NotificationModel.cs deleted file mode 100644 index 1540d60a..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/NotificationModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Notifications; -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Model for notifications. -/// -/// The id of the notification. -/// The message of the notification. -/// The type of the notification. -public record struct NotificationModel( - Guid Id, - string Message, - NotificationType Type -); diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/ProblemDetailsModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/ProblemDetailsModel.cs deleted file mode 100644 index 548d4d91..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/ProblemDetailsModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Collections.Generic; -using System.Diagnostics; -using System.Text.Json; -using System.Text.Json.Serialization; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Model that follows the RFC 7807 standard for problem details in HTTP APIs. -/// -[DebuggerDisplay("{Title} ({Status})")] -public class ProblemDetailsModel -{ - /// - /// Gets or sets the URI reference that identifies the problem type. - /// - [JsonPropertyName("type")] - public string? Type { get; set; } - - /// - /// Gets or sets a short, human-readable summary of the problem type. - /// - [JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Gets or sets the HTTP status code generated by the server for this occurrence of the problem. - /// - [JsonPropertyName("status")] - public int? Status { get; set; } - - /// - /// Gets or sets a detailed explanation specific to this occurrence of the problem. - /// - [JsonPropertyName("detail")] - public string? Detail { get; set; } - - /// - /// Gets or sets a URI reference that identifies the specific occurrence of the problem. - /// - [JsonPropertyName("instance")] - public string? Instance { get; set; } - - /// - /// Gets or sets additional extension data that may be included with the problem details. - /// This allows for including extra, non-standard fields in the problem details. - /// - [JsonExtensionData] - public IDictionary? Extensions { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/RatingModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/RatingModel.cs deleted file mode 100644 index f5058da3..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/RatingModel.cs +++ /dev/null @@ -1,27 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Represents a rating. -/// -[DebuggerDisplay("{Value}/{MaxValue}")] -public abstract class RatingModel -{ - /// - /// Gets the numeric value of the rating. - /// - public decimal? Value { get; set; } - - /// - /// Gets the maximum possible rating value. - /// - public decimal? MaxValue { get; set; } - - /// - /// Gets the optional number of votes or reviews this rating is based on. - /// - public int? VoteCount { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/ReleaseInfoModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/ReleaseInfoModel.cs deleted file mode 100644 index 8aa2881d..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/ReleaseInfoModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Represents a request to get release information. -/// -[DebuggerDisplay("{OriginalReleaseDate}")] -public class ReleaseInfoModel -{ - /// - /// Gets the optional original release date of the media item. - /// - public DateOnly? OriginalReleaseDate { get; set; } - - /// - /// Gets the optional original release year of the media item. - /// This is useful when only the year of original release is known. - /// - public int? OriginalReleaseYear { get; set; } - - /// - /// Gets the optional re-release or reissue date of the media item. - /// - public DateOnly? ReReleaseDate { get; set; } - - /// - /// Gets the optional re-release or reissue year of the media item. - /// - public int? ReReleaseYear { get; set; } - - /// - /// Gets the optional country or region of release. - /// - public string? ReleaseCountry { get; set; } - - /// - /// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0") - /// - public string? ReleaseVersion { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Common/TagModel.cs b/src/Lumina.Presentation.Web/Common/Models/Common/TagModel.cs deleted file mode 100644 index d4df4e14..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Common/TagModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Common; - -/// -/// Represents a request to get tag information. -/// -[DebuggerDisplay("{Name}")] -public class TagModel -{ - /// - /// Gets the name of the tag element of the media item. - /// - public string? Name { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Configuration/EncryptionSettingsModel.cs b/src/Lumina.Presentation.Web/Common/Models/Configuration/EncryptionSettingsModel.cs deleted file mode 100644 index 7f8ebbbf..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Configuration/EncryptionSettingsModel.cs +++ /dev/null @@ -1,19 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Configuration; - -/// -/// Model for deserializing media settings. -/// -[DebuggerDisplay("{SECTION_NAME}")] -public class EncryptionSettingsModel -{ - public const string SECTION_NAME = "EncryptionSettings"; - - /// - /// Gets or sets the root directory where media files are stored. - /// - public required string SecretKey { get; init; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Configuration/ServerConfigurationModel.cs b/src/Lumina.Presentation.Web/Common/Models/Configuration/ServerConfigurationModel.cs deleted file mode 100644 index 14810584..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Configuration/ServerConfigurationModel.cs +++ /dev/null @@ -1,29 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Configuration; - -/// -/// Model for deserializing server configuration settings. -/// -[DebuggerDisplay("{SECTION_NAME}")] -public class ServerConfigurationModel -{ - public const string SECTION_NAME = "ServerConfiguration"; - - /// - /// Gets or sets the remote API server path. - /// - public required char ApiVersion { get; init; } - - /// - /// Gets or sets the remote API server path. - /// - public required string BaseAddress { get; init; } - - /// - /// Gets or sets the remote API server port. - /// - public required ushort Port { get; init; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/BlobDataModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/BlobDataModel.cs deleted file mode 100644 index 2811b0b4..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/BlobDataModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Represents a model for storing binary data (blob). -/// -[DebuggerDisplay("{ContentType} (Data.Length)")] -public class BlobDataModel -{ - /// - /// Gets or sets the binary data as a byte array. - /// - public byte[] Data { get; set; } = null!; - - /// - /// Gets or sets the content type (MIME type) of the blob data, such as "image/png" for an image or "application/pdf" for a PDF document. - /// - public string ContentType { get; set; } = null!; -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/DirectoryModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/DirectoryModel.cs deleted file mode 100644 index a5cacc18..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/DirectoryModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Model for directories displayed in custom directory/file browser dialogs. -/// -[DebuggerDisplay("{Path}")] -public class DirectoryModel : FileSystemItemModel -{ - /// - /// Gets or sets the children items of the directory. - /// - public List Items { get; set; } = []; -} diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileModel.cs deleted file mode 100644 index ff4fa39f..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Model for files displayed in custom directory/file browser dialogs. -/// -[DebuggerDisplay("{Path}")] -public class FileModel : FileSystemItemModel -{ - /// - /// Gets or sets the size of the file, in bytes - /// - public long Size { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemItemModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemItemModel.cs deleted file mode 100644 index 4b2d334f..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemItemModel.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Base model for files and directories displayed in custom directory/file browser dialogs. -/// -[DebuggerDisplay("{Path}")] -public abstract class FileSystemItemModel -{ - /// - /// Gets or sets the full path to the file system item. - /// - public string? Path { get; set; } - - /// - /// Gets or sets the name of the file system item. - /// - public string? Name { get; set; } - - /// - /// Gets or sets the creation date of the file system item. - /// - public DateTime DateCreated { get; set; } - - /// - /// Gets or sets the modification date of the file system item. - /// - public DateTime DateModified { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTreeNodeModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTreeNodeModel.cs deleted file mode 100644 index fec72137..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTreeNodeModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.FileSystem; -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Generic file system node. -/// -[DebuggerDisplay("{Path}")] -public class FileSystemTreeNodeModel -{ - /// - /// Gets or sets the full path of the file or directory. - /// - public string Path { get; set; } = null!; - - /// - /// Gets or sets the name of the file or directory. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the type of the item, indicating whether it is a file, directory, or drive. - /// - public FileSystemItemType ItemType { get; set; } - - /// - /// Gets or sets a value indicating whether the node is expanded. - /// - public bool IsExpanded { get; set; } - - /// - /// Gets or sets a value indicating whether the child nodes have been loaded. - /// - public bool ChildrenLoaded { get; set; } - - /// - /// Gets or sets the list of child nodes. - /// - public List Children { get; set; } = []; -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTypeModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTypeModel.cs deleted file mode 100644 index 21794b67..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/FileSystemTypeModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.FileSystem; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Model containing the file system platform type. -/// ` -[DebuggerDisplay("{PlatformType}")] -public class FileSystemTypeModel -{ - /// - /// Gets or sets the file system platform type. - /// - public PlatformType PlatformType { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathExistsModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathExistsModel.cs deleted file mode 100644 index 5eb3caee..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathExistsModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Represents a response to the inquiry about the existence of a file system path. -/// -/// Whether a file system path exists or not. -[DebuggerDisplay("{Exists}")] -public record PathExistsModel( - bool Exists -); \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSegmentModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSegmentModel.cs deleted file mode 100644 index 82da26d3..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSegmentModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Represents a response containing a file system path. -/// -[DebuggerDisplay("{Path}")] -public class PathSegmentModel -{ - /// - /// Gets or sets the returned path. - /// - public string Path { get; set; } = null!; -} diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSeparatorModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSeparatorModel.cs deleted file mode 100644 index d778bea0..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathSeparatorModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// A model representing a file system path separator. -/// -/// The system's path separator. -[DebuggerDisplay("{Separator}")] -public record PathSeparatorModel( - string Separator -); \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathValidModel.cs b/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathValidModel.cs deleted file mode 100644 index 1954f357..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/FileSystemManagement/PathValidModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.FileSystemManagement; - -/// -/// Represents a response to the inquiry about the validity of a file system path. -/// -/// Whether a file system path is valid or not. -[DebuggerDisplay("{IsValid}")] -public record PathValidModel( - bool IsValid -); \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/BookLibraryItemsQueryModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/BookLibraryItemsQueryModel.cs deleted file mode 100644 index 3cfe6f3e..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/BookLibraryItemsQueryModel.cs +++ /dev/null @@ -1,56 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Common; -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents the query parameters used to retrieve the lightweight details of the books of a media library. -/// -[DebuggerDisplay("LibraryId: {LibraryId}")] -public class BookLibraryItemsQueryModel -{ - /// - /// Gets or sets the Id of the media library whose books are retrieved. - /// - public Guid LibraryId { get; set; } - - /// - /// Gets or sets the page of results to retrieve. - /// - public int? CurrentPage { get; set; } - - /// - /// Gets or sets the maximum number of books to retrieve per page. - /// - public int? PerPage { get; set; } - - /// - /// Gets or sets the search term used to filter results. - /// - public string? SearchTerm { get; set; } - - /// - /// Gets or sets the alpha key used to filter the results by the first character of their title, for the alpha picker. - /// Can be to disable alpha filtering, a single ASCII letter (case-insensitive) to filter by that letter, - /// "#" to filter by titles whose first character is a digit, or "*" to filter by titles whose first character is neither a letter nor a digit. - /// - public string? FilterAlphaKey { get; set; } - - /// - /// Gets or sets whether the leading "The " prefix of a title is ignored when computing the alpha key, or not. - /// - public bool IgnoreThePrefixForAlphaPicker { get; set; } - - /// - /// Gets or sets the name of the field by which to sort the results. - /// - public string? SortBy { get; set; } - - /// - /// Gets or sets the direction in which to sort the results. - /// - public SortOrder? SortOrder { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/BookLiteModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/BookLiteModel.cs deleted file mode 100644 index ee124a74..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/BookLiteModel.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents a lightweight book element, containing only the properties needed by the client for card-style navigation. -/// -[DebuggerDisplay("Title: {Title}")] -public class BookLiteModel -{ - /// - /// Gets or sets the Id of the book. - /// - public Guid Id { get; set; } - - /// - /// Gets or sets the title of the book. - /// - public string Title { get; set; } = string.Empty; - - /// - /// Gets or sets the release year of the book (re-release year, if available, or original release year), if known. - /// - public int? ReleaseYear { get; set; } - - /// - /// Gets or sets the path of the image representing the cover of the book, if available. - /// - public string? CoverPath { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryModel.cs deleted file mode 100644 index e52dfb97..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryModel.cs +++ /dev/null @@ -1,71 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Library; -using System; -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents a library element. -/// -[DebuggerDisplay("{Title}")] -public class LibraryModel -{ - /// - /// Gets or sets the unique identifier of the media library. - /// - public Guid? Id { get; set; } - - /// - /// Gets or sets the unique identifier of the user owning the media library. - /// - public Guid? UserId { get; set; } - - /// - /// Gets or sets the title of the library. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the type of the library. - /// - public string? LibraryType { get; set; } - - /// - /// Gets or sets the path of the image file used as the cover for the library. - /// - public string? CoverImage { get; set; } - - /// - /// Gets or sets the collection of directories that contain the library files. - /// - public List ContentLocations { get; set; } = []; - - /// - /// Gets or sets whether this media library is enabled or not. A disabled media library is never shown or changed. - /// - public bool IsEnabled { get; set; } = true; - - /// - /// Gets or sets whether this media library is locked or not. A locked media library is displayed, but is never changed or updated. - /// - public bool IsLocked { get; set; } = false; - - /// - /// Gets or sets whether this media library should update the metadata of its elements from the web, or not. - /// - public bool DownloadMetadataFromWeb { get; set; } = true; - - /// - /// Gets or sets whether this media library should copy the downloaded metadata into the media library content locations, or not. - /// - public bool ShouldSaveMetadataInMediaDirectories { get; set; } = false; - - /// - /// Gets or sets whether this media library should skip the directories whose contents have not changed since the last scan, during the scan. This is an opt-in setting, because it relies on directory metadata, - /// which does not change when the contents of an existing file are edited, and such edits could be missed while this setting is enabled. - /// - public bool ShouldSkipUnchangedDirectoriesDuringScan { get; set; } = false; -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanJobProgressModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanJobProgressModel.cs deleted file mode 100644 index b961d4d9..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanJobProgressModel.cs +++ /dev/null @@ -1,32 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents a media library scan job progress model. -/// -[DebuggerDisplay("CompletedItems: {CompletedItems}; TotalItems: {TotalItems}")] -public class LibraryScanJobProgressModel -{ - /// - /// Gets or sets the number of completed items of the media library scan job. - /// - public int CompletedItems { get; set; } - - /// - /// Gets or sets the total number of items of the media library scan job. - /// - public int TotalItems { get; set; } - - /// - /// Gets or sets the current operation being performed by the media library scan job. - /// - public string? CurrentOperation { get; set; } - - /// - /// Gets or sets the ratio between the total number and the completed number of items, as a percentage. - /// - public decimal ProgressPercentage { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanProgressModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanProgressModel.cs deleted file mode 100644 index d9a8462e..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/LibraryScanProgressModel.cs +++ /dev/null @@ -1,53 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents a media library scan progress model. -/// -[DebuggerDisplay("ScanId: {ScanId}; UserId: {UserId}; LibraryId: {LibraryId}")] -public class LibraryScanProgressModel -{ - /// - /// Gets or sets the unique identifier of the media library scan. - /// - public Guid ScanId { get; set; } - - /// - /// Gets or sets the unique identifier of the user initiating this media library scan. - /// - public Guid UserId { get; set; } - - /// - /// Gets or sets the unique identifier of the media library that is scanned. - /// - public Guid LibraryId { get; set; } - - /// - /// Gets or sets the number of completed jobs of the media library scan job. - /// - public int CompletedJobs { get; set; } - - /// - /// Gets or sets the total number of jobs of the media library scan job. - /// - public int TotalJobs { get; set; } - - /// - /// Gets or sets the optional current job progress of the media library scan. - /// - public LibraryScanJobProgressModel? CurrentJobProgress { get; set; } - - /// - /// Gets or sets the status of the media library scan. - /// - public string? Status { get; set; } - - /// - /// Gets or sets the ratio between the total number and the completed number of jobs, as a percentage. - /// - public decimal OverallProgressPercentage { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/PaginatedBookLiteModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/PaginatedBookLiteModel.cs deleted file mode 100644 index daed24fd..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/PaginatedBookLiteModel.cs +++ /dev/null @@ -1,38 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents a paginated collection of lightweight book elements, together with pagination metadata. -/// -[DebuggerDisplay("CurrentPage: {CurrentPage}; Count: {Count}")] -public class PaginatedBookLiteModel -{ - /// - /// Gets or sets the collection of lightweight book elements associated with this instance. - /// - public IReadOnlyList Data { get; set; } = []; - - /// - /// Gets or sets the current page number in a paginated collection. - /// - public int CurrentPage { get; set; } - - /// - /// Gets or sets the number of items to include per page in paginated results. - /// - public int PerPage { get; set; } - - /// - /// Gets or sets the total number of elements available in the paginated result set. - /// - public int Count { get; set; } - - /// - /// Gets or sets the total number of pages based on elements available in the result set and per page. - /// - public int NumberOfPages { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Libraries/ScanLibraryModel.cs b/src/Lumina.Presentation.Web/Common/Models/Libraries/ScanLibraryModel.cs deleted file mode 100644 index eadddf2d..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Libraries/ScanLibraryModel.cs +++ /dev/null @@ -1,23 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Libraries; - -/// -/// Represents a media library scan response. -/// -[DebuggerDisplay("ScanId: {ScanId} LibraryId: {LibraryId}")] -public class ScanLibraryModel -{ - /// - /// Gets or sets the Id of the media library scan. - /// - public Guid? ScanId { get; set; } - - /// - /// Gets or sets the Id of the scanned media library. - /// - public Guid? LibraryId { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorModel.cs b/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorModel.cs deleted file mode 100644 index c1e3a418..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.MediaContributors; - -/// -/// Represents a media contributor. -/// -[DebuggerDisplay("{Name}")] -public class MediaContributorModel -{ - /// - /// Gets the name of the contributor. - /// - public MediaContributorNameModel? Name { get; set; } - - /// - /// Gets the role of the contributor. - /// - public MediaContributorRoleModel? Role { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorNameModel.cs b/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorNameModel.cs deleted file mode 100644 index 37b211c4..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorNameModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.MediaContributors; - -/// -/// Represents a media contributor name. -/// -[DebuggerDisplay("{DisplayName}")] -public class MediaContributorNameModel -{ - /// - /// Gets the name by which the contributor is popularly known. - /// - public string? DisplayName { get; set; } - - /// - /// Gets the legal name of the contributor. - /// - public string? LegalName { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorRoleModel.cs b/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorRoleModel.cs deleted file mode 100644 index a735b674..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/MediaContributors/MediaContributorRoleModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.MediaContributors; - -/// -/// Represents a media contributor role. -/// -[DebuggerDisplay("{Name}")] -public class MediaContributorRoleModel -{ - /// - /// Gets the value representing this object. - /// - public string? Name { get; set; } - - /// - /// Gets the category of this object. - /// - public string? Category { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/LibraryMetadataProviderModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/LibraryMetadataProviderModel.cs deleted file mode 100644 index 04f5e442..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/LibraryMetadataProviderModel.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Represents a metadata provider configured for a media library. -/// -[DebuggerDisplay("Name: {Name}")] -public class LibraryMetadataProviderModel -{ - /// - /// Gets or sets the unique identifier of the plugin providing the metadata. - /// - public Guid PluginId { get; set; } - - /// - /// Gets or sets the display name of the metadata provider. - /// - public string Name { get; set; } = string.Empty; - - /// - /// Gets or sets whether the metadata provider is enabled for the media library. - /// - public bool IsEnabled { get; set; } - - /// - /// Gets or sets the rank of the metadata provider, determining the order in which providers are tried. - /// - public int Rank { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginModel.cs deleted file mode 100644 index 3b1bbbfa..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginModel.cs +++ /dev/null @@ -1,55 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Plugins; -using System; -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Represents a detected plugin. -/// -[DebuggerDisplay("Name: {Name}")] -public class PluginModel -{ - /// - /// Gets or sets the unique identifier of the plugin. - /// - public Guid Id { get; set; } - - /// - /// Gets or sets the display name of the plugin. - /// - public string Name { get; set; } = string.Empty; - - /// - /// Gets or sets the author of the plugin. - /// - public string Author { get; set; } = string.Empty; - - /// - /// Gets or sets the version of the plugin. - /// - public string Version { get; set; } = string.Empty; - - /// - /// Gets or sets the description of the plugin. - /// - public string Description { get; set; } = string.Empty; - - /// - /// Gets or sets the load status of the plugin. - /// - public PluginLoadStatus LoadStatus { get; set; } - - /// - /// Gets or sets the error message when the plugin failed to load. - /// - public string? LoadError { get; set; } - - /// - /// Gets or sets the settings of the plugin. - /// - public Dictionary? Settings { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingDescriptorModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingDescriptorModel.cs deleted file mode 100644 index 3bc6a917..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingDescriptorModel.cs +++ /dev/null @@ -1,37 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.Plugins; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Describes a single setting of a plugin. -/// -public class PluginSettingDescriptorModel -{ - /// - /// Gets or sets the unique key of the setting. - /// - public string Key { get; set; } = string.Empty; - - /// - /// Gets or sets the display label of the setting. - /// - public string Label { get; set; } = string.Empty; - - /// - /// Gets or sets the type of the setting. - /// - public PluginSettingType Type { get; set; } - - /// - /// Gets or sets the default value of the setting. - /// - public string? DefaultValue { get; set; } - - /// - /// Gets or sets the list of allowed values, when the setting is a selection. - /// - public IReadOnlyList? AllowedValues { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingsModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingsModel.cs deleted file mode 100644 index ac6ea9ad..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/PluginSettingsModel.cs +++ /dev/null @@ -1,27 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Represents the settings of a plugin and their schema. -/// -public class PluginSettingsModel -{ - /// - /// Gets or sets the unique identifier of the plugin. - /// - public Guid PluginId { get; set; } - - /// - /// Gets or sets the schema of the plugin settings. - /// - public List Schema { get; set; } = []; - - /// - /// Gets or sets the current values of the plugin settings. - /// - public Dictionary? Settings { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/ReorderLibraryMetadataProvidersModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/ReorderLibraryMetadataProvidersModel.cs deleted file mode 100644 index f4331250..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/ReorderLibraryMetadataProvidersModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Represents a request to reorder the metadata providers of a media library. -/// -public class ReorderLibraryMetadataProvidersModel -{ - /// - /// Gets or sets the Id of the media library whose metadata providers are reordered. - /// - public Guid LibraryId { get; set; } - - /// - /// Gets or sets the plugin Ids in the new order, from highest to lowest rank. - /// - public List PluginIds { get; set; } = []; -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/SetLibraryMetadataProviderEnabledModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/SetLibraryMetadataProviderEnabledModel.cs deleted file mode 100644 index 7d7a4eae..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/SetLibraryMetadataProviderEnabledModel.cs +++ /dev/null @@ -1,27 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Represents a request to enable or disable a metadata provider for a media library. -/// -public class SetLibraryMetadataProviderEnabledModel -{ - /// - /// Gets or sets the Id of the media library whose metadata provider is enabled or disabled. - /// - public Guid LibraryId { get; set; } - - /// - /// Gets or sets the unique identifier of the plugin providing the metadata. - /// - public Guid PluginId { get; set; } - - /// - /// Gets or sets whether the metadata provider should be enabled for the media library. - /// - public bool IsEnabled { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/Plugins/UpdatePluginSettingsModel.cs b/src/Lumina.Presentation.Web/Common/Models/Plugins/UpdatePluginSettingsModel.cs deleted file mode 100644 index 246211a4..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/Plugins/UpdatePluginSettingsModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Collections.Generic; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.Plugins; - -/// -/// Represents a request to update the settings of a plugin. -/// -public class UpdatePluginSettingsModel -{ - /// - /// Gets or sets the unique identifier of the plugin. - /// - public Guid PluginId { get; set; } - - /// - /// Gets or sets the settings of the plugin. - /// - public Dictionary? Settings { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordRequestModel.cs deleted file mode 100644 index 85b51598..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordRequestModel.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the request model for account password change. -/// -/// The username of the account. -/// The current password of the account. -/// The new password of the account. -/// The confirmation of the new password of the account. -public record ChangePasswordRequestModel( - string? Username, - string? CurrentPassword, - string? NewPassword, - string? NewPasswordConfirm -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordResponseModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordResponseModel.cs deleted file mode 100644 index 4befdb83..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/ChangePasswordResponseModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the response model for an account password change request. -/// -/// Whether the password was changed or not. -[DebuggerDisplay("IsPasswordChanged: {IsPasswordChanged}")] -public record ChangePasswordResponseModel( - bool IsPasswordChanged -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/InitializationModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/InitializationModel.cs deleted file mode 100644 index 68a0dc52..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/InitializationModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Model for verifying the initialization status of the application. -/// -[DebuggerDisplay("IsInitialized: {IsInitialized}")] -public class InitializationModel -{ - /// - /// Gets or sets a value indicating whether the application has been run before, and the super admin account has been created. - /// - public bool IsInitialized { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginRequestModel.cs deleted file mode 100644 index 650ff42c..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginRequestModel.cs +++ /dev/null @@ -1,20 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the request model for user authentication. -/// -/// The username used to authenticate. -/// The password used to authenticate. -/// The TOTP (Time-Based One-Time Password) code used for two-factor authentication. -/// The URL to return to, after login. -[DebuggerDisplay("Username: {Username}")] -public record LoginRequestModel( - string? Username = null, - string? Password = null, - string? TotpCode = null, - string? ReturnUrl = null -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginResponseModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginResponseModel.cs deleted file mode 100644 index 18989cb0..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/LoginResponseModel.cs +++ /dev/null @@ -1,21 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the response model for a user authentication. -/// -/// The unique identifier of the logged in user. -/// The username of the logged in user. -/// The JWT authentication token, if authentication failed or TOTP is required. -/// Indicates whether the user has Two-Factor Authentication enabled, or not. -[DebuggerDisplay("Username: {Username}")] -public record LoginResponseModel( - Guid Id, - string? Username, - string? Token, - bool UsesTotp -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordRequestModel.cs deleted file mode 100644 index 1668a464..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordRequestModel.cs +++ /dev/null @@ -1,16 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the request model for account password recovery. -/// -/// The username of the account for which to recover the password. -/// The TOTP (Time-Based One-Time Password) code used to recover the password. -[DebuggerDisplay("Username: {Username}")] -public record RecoverPasswordRequestModel( - string? Username, - string? TotpCode -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordResponseModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordResponseModel.cs deleted file mode 100644 index 4a5703f1..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RecoverPasswordResponseModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the response model for an account password reset request. -/// -/// Whether the password was reset or not. -[DebuggerDisplay("IsPasswordReset: {IsPasswordReset}")] -public record RecoverPasswordResponseModel( - bool IsPasswordReset -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterRequestModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterRequestModel.cs deleted file mode 100644 index 082b8108..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterRequestModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the request model for user registration. -/// -/// The desired username for the new account. -/// The password for the new account. -/// The confirmation of the entered password, used to ensure consistency. -/// Specifies the type of registration, e.g., "Admin" or "User". -/// Indicates whether two-factor authentication (2FA) should be enabled for the new account. -[DebuggerDisplay("Username: {Username}")] -public record RegisterRequestModel( - string? Username, - string? Password, - string? PasswordConfirm, - string? RegistrationType, - bool Use2fa = true -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterResponseModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterResponseModel.cs deleted file mode 100644 index 7a43ba88..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/RegisterResponseModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the response model for a successful registration. -/// -/// The username of the registered user. -/// The TOTP (Time-Based One-Time Password) secret used for two-factor authentication. -[DebuggerDisplay("Username: {Username}")] -public record RegisterResponseModel( - string? Username, - string? TotpSecret -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserModel.cs deleted file mode 100644 index bee24edf..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserModel.cs +++ /dev/null @@ -1,15 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents a model for a user. -/// -/// The unique identifier of the user. -/// The username of the user. -public record UserModel( - Guid Id, - string Username -); diff --git a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserSettingsModel.cs b/src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserSettingsModel.cs deleted file mode 100644 index e72cc0d8..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/UsersManagement/UserSettingsModel.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.UsersManagement; - -/// -/// Represents the settings of a user. -/// -[DebuggerDisplay("IsPaginationEnabled: {IsPaginationEnabled}; ItemsPerPage: {ItemsPerPage}")] -public class UserSettingsModel -{ - /// - /// Gets or sets the unique identifier of the user that owns these settings. - /// - public Guid? UserId { get; set; } - - /// - /// Gets or sets whether pagination is enabled for the user, or not. - /// - public bool IsPaginationEnabled { get; set; } = true; - - /// - /// Gets or sets the number of library items displayed per page when pagination is enabled. - /// - public int ItemsPerPage { get; set; } = 48; - - /// - /// Gets or sets whether the "The" prefix of library item titles is ignored by the alpha picker, or not. - /// - public bool IgnoreThePrefixForAlphaPicker { get; set; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookModel.cs deleted file mode 100644 index d5780444..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookModel.cs +++ /dev/null @@ -1,216 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrary; - -/// -/// Represents a book. -/// -[DebuggerDisplay("{Title}")] -public class BookModel -{ - /// - /// Gets the Id of the media item. - /// - public Guid Id { get; init; } - - /// - /// Gets the Id of the media library this book belongs to. - /// - public Guid LibraryId { get; init; } - - /// - /// Gets the file system path of the book. - /// - public string Path { get; init; } = null!; - - /// - /// Gets the title of the media item. - /// - public string Title { get; init; } = null!; - - /// - /// Gets the original title of the media item. - /// - public string? OriginalTitle { get; init; } - - /// - /// Gets the optional description of the media item. - /// - public string? Description { get; init; } - - /// - /// Gets the optional original release date of the media item. - /// - public DateOnly? OriginalReleaseDate { get; init; } - - /// - /// Gets the optional original release year of the media item. - /// This is useful when only the year of original release is known. - /// - public int? OriginalReleaseYear { get; init; } - - /// - /// Gets the optional re-release or reissue date of the media item. - /// - public DateOnly? ReReleaseDate { get; init; } - - /// - /// Gets the optional re-release or reissue year of the media item. - /// - public int? ReReleaseYear { get; init; } - - /// - /// Gets the optional country or region of release. - /// - public string? ReleaseCountry { get; init; } - - /// - /// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0") - /// - public string? ReleaseVersion { get; init; } - - /// - /// Gets the ISO 639-1 two-letter language code. - /// - public string? LanguageCode { get; init; } - - /// - /// Gets the full name of the language in English. - /// - public string? LanguageName { get; init; } - - /// - /// Gets an optional native name of the language. - /// - public string? LanguageNativeName { get; init; } - - /// - /// Gets the optional ISO 639-1 two-letter original language code. - /// - public string? OriginalLanguageCode { get; init; } - - /// - /// Gets the optional full name of the original language in English. - /// - public string? OriginalLanguageName { get; init; } - - /// - /// Gets an optional native name of the original language. - /// - public string? OriginalLanguageNativeName { get; init; } - - /// - /// Gets the list of tags associated with the media item. - /// - public HashSet Tags { get; set; } = []; - - /// - /// Gets the list of genres associated with the media item. - /// - public HashSet Genres { get; set; } = []; - - /// - /// Gets the publisher of the written content. - /// - public string? Publisher { get; init; } - - /// - /// Gets the number of pages in the written content. - /// - public int? PageCount { get; init; } - - /// - /// Gets the format of the book (e.g., Hardcover, Paperback), if applicable. - /// - public string Format { get; init; } = null!; - - /// - /// Gets the edition of the book, if applicable. - /// - public string? Edition { get; init; } - - /// - /// Gets the volume or book number in the series, if applicable. - /// - public int? VolumeNumber { get; init; } - - /// - /// Gets the series id, if the book is part of a series. - /// - //public Guid? BookSeriesId { get; init; } = null; - - /// - /// Gets the ASIN (Amazon Standard Identification Number) of the book. - /// - public string? ASIN { get; init; } = null!; - - /// - /// Gets the Goodreads ID of the book. - /// - public string? GoodreadsId { get; init; } = null!; - - /// - /// Gets the Library of Congress Control Number (LCCN) of the book. - /// - public string? LCCN { get; init; } = null!; - - /// - /// Gets the OCLC Number (WorldCat identifier) of the book. - /// - public string? OCLCNumber { get; init; } = null!; - - /// - /// Gets the Open Library ID of the book. - /// - public string? OpenLibraryId { get; init; } = null!; - - /// - /// Gets the LibraryThing ID of the book. - /// - public string? LibraryThingId { get; init; } = null!; - - /// - /// Gets the Google Books ID of the book. - /// - public string? GoogleBooksId { get; init; } = null!; - - /// - /// Gets the Barnes & Noble ID of the book. - /// - public string? BarnesAndNobleId { get; init; } = null!; - - /// - /// Gets the Apple Books ID of the book. - /// - public string? AppleBooksId { get; init; } = null!; - - /// - /// Gets the list of ISBN (International Standard Book Number) of the book. - /// - public List ISBNs { get; set; } = []; - - /// - /// Gets the list of media contributors (actors, directors, etc) starring in this book. - /// - //public List ContributorIds { get; init; } = []; - - /// - /// Gets the list of ratings for this book. - /// - public List Ratings { get; init; } = []; - - /// - /// Gets the time and date when the entity was added. - /// - public DateTime Created { get; set; } - - /// - /// Gets the optional time and date when the entity was updated. - /// - public DateTime? Updated { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookRatingModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookRatingModel.cs deleted file mode 100644 index 3370d93a..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookRatingModel.cs +++ /dev/null @@ -1,19 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.BookLibrary; -using Lumina.Presentation.Web.Common.Models.Common; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrary; - -/// -/// Represents a book rating. -/// -[DebuggerDisplay("{Value}/{MaxValue}")] -public class BookRatingModel : RatingModel -{ - /// - /// Gets or sets the source of the book rating (e.g., a specific website or platform). - /// - public BookRatingSource? Source { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookSeriesModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookSeriesModel.cs deleted file mode 100644 index ef9ba60c..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BookSeriesModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrary; - -/// -/// Represents a request to get book series information. -/// -[DebuggerDisplay("{Title}")] -public class BookSeriesModel -{ - /// - /// Gets or sets the title of the book series. - /// - public string? Title { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BooksModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BooksModel.cs deleted file mode 100644 index 96565d6e..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/BooksModel.cs +++ /dev/null @@ -1,16 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrary; - -/// -/// Represents a book. -/// -[DebuggerDisplay("{Title}")] -public class BooksModel -{ -} diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/IsbnModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/IsbnModel.cs deleted file mode 100644 index f0defca0..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/IsbnModel.cs +++ /dev/null @@ -1,23 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.BookLibrary; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrary; - -/// -/// Represents a request to get ISBN information. -/// -[DebuggerDisplay("{Value} ({Format})")] -public class IsbnModel -{ - /// - /// Gets or sets the ISBN value. - /// - public string? Value { get; set; } - - /// - /// Gets or sets the format of the ISBN (e.g., ISBN-10 or ISBN-13). - /// - public IsbnFormat? Format { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/LightBookModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/LightBookModel.cs deleted file mode 100644 index 0da7e882..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/BookLibrary/LightBookModel.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using System; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrary; - -/// -/// Represents a preview of important properties of a book. -/// -[DebuggerDisplay("{Title}")] -public class LightBookModel -{ - /// - /// Gets the Id of the media item. - /// - public required Guid Id { get; init; } - - /// - /// Gets the title of the media item. - /// - public required string Title { get; init; } - - /// - /// Gets the optional release year (either re-release year, if available, or original release year, if known) of the media item. - /// - public int? ReleaseYear { get; init; } - - /// - /// Gets the optional path of the image representing the cover of this book. - /// - public string? CoverPath { get; init; } -} diff --git a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/WrittenContentMetadataModel.cs b/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/WrittenContentMetadataModel.cs deleted file mode 100644 index 36e33e09..00000000 --- a/src/Lumina.Presentation.Web/Common/Models/WrittenContentLibrary/WrittenContentMetadataModel.cs +++ /dev/null @@ -1,64 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Common; -using System.Collections.Generic; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary; - -/// -/// Represents written content metadata. -/// -[DebuggerDisplay("{Title}")] -public class WrittenContentMetadataModel -{ - /// - /// Gets or sets the title of the written content. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the original title of the written content, if different from the current title. - /// - public string? OriginalTitle { get; set; } - - /// - /// Gets or sets a brief description or summary of the written content. - /// - public string? Description { get; set; } - - /// - /// Gets or sets the release information, including release date and other relevant details. - /// - public ReleaseInfoModel? ReleaseInfo { get; set; } - - /// - /// Gets or sets the list of genres associated with the written content. - /// - public List? Genres { get; set; } - - /// - /// Gets or sets the list of tags that further describe or categorize the written content. - /// - public List? Tags { get; set; } - - /// - /// Gets or sets the language in which the written content is written. - /// - public LanguageInfoModel? Language { get; set; } - - /// - /// Gets or sets the original language of the written content, if it has been translated. - /// - public LanguageInfoModel? OriginalLanguage { get; set; } - - /// - /// Gets or sets the name of the publisher of the written content. - /// - public string? Publisher { get; set; } - - /// - /// Gets or sets the number of pages in the written content. - /// - public int? PageCount { get; set; } -} \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Controllers/AdminController.cs b/src/Lumina.Presentation.Web/Controllers/AdminController.cs deleted file mode 100644 index d09fc47d..00000000 --- a/src/Lumina.Presentation.Web/Controllers/AdminController.cs +++ /dev/null @@ -1,154 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Attributes; -using Lumina.Presentation.Web.Common.Models.Authorization; -using Lumina.Presentation.Web.Common.Models.UsersManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers; - -/// -/// Controller for administrator related operations. -/// -[Authorize] -[RequireRole("Admin")] -[Route("{culture}/admin")] -public class AdminController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public AdminController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Displays the view for managing authorization roles. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("manage-roles")] - public async Task ManageRoles(CancellationToken cancellationToken) - { - // get the list of roles and permissions from the API - ViewData["roles"] = await _apiHttpClient.GetAsync($"auth/roles/", cancellationToken).ConfigureAwait(false); - ViewData["permissions"] = await _apiHttpClient.GetAsync($"auth/permissions/", cancellationToken).ConfigureAwait(false); - return View(); - } - - /// - /// Displays the view for managing authorization permissions. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("manage-permissions")] - public async Task ManagePermissions(CancellationToken cancellationToken) - { - ViewData["users"] = await _apiHttpClient.GetAsync($"auth/users", cancellationToken).ConfigureAwait(false); - ViewData["roles"] = await _apiHttpClient.GetAsync($"auth/roles/", cancellationToken).ConfigureAwait(false); - ViewData["permissions"] = await _apiHttpClient.GetAsync($"auth/permissions/", cancellationToken).ConfigureAwait(false); - return View(); - } - - /// - /// Gets the authorization permissions of a role identified by . - /// - /// The unique identifier of the role for which to get the list of permissions. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-permissions-by-role-id/{roleId}")] - public async Task GetPermissionsByRoleId(Guid roleId, CancellationToken cancellationToken) - { - RolePermissionsModel response = await _apiHttpClient.GetAsync($"auth/roles/{roleId}/permissions", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Gets the authorization permissions of a user identified by . - /// - /// The unique identifier of the user for whom to get the list of permissions. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-permissions-by-user-id/{userId}")] - public async Task GetPermissionsByUserId(Guid userId, CancellationToken cancellationToken) - { - PermissionModel[] response = await _apiHttpClient.GetAsync($"auth/users/{userId}/permissions", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Gets the authorization role of a user identified by . - /// - /// The unique identifier of the user for whom to get the role. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-role-by-user-id/{userId}")] - public async Task GetRoleByUserId(Guid userId, CancellationToken cancellationToken) - { - RoleModel? response = await _apiHttpClient.GetAsync($"auth/users/{userId}/role", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Gets the collection of authorization roles. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-roles")] - public async Task GetRoles(CancellationToken cancellationToken) - { - RoleModel[] response = await _apiHttpClient.GetAsync($"auth/roles/", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Creates an authorization role with the specified name and associated permissions. - /// - /// The model containing the data of the role to be created. - /// Cancellation token that can be used to stop the execution. - [HttpPost("api-create-role")] - public async Task CreateRole([FromBody] AddRoleRequestModel model, CancellationToken cancellationToken) - { - RolePermissionsModel response = await _apiHttpClient.PostAsync($"auth/roles/", model, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Updates an authorization role with the specified name and associated permissions. - /// - /// The model containing the data of the role to be updated. - /// Cancellation token that can be used to stop the execution. - [HttpPut("api-update-role")] - public async Task UpdateRole([FromBody] UpdateRoleRequestModel model, CancellationToken cancellationToken) - { - RolePermissionsModel response = await _apiHttpClient.PutAsync($"auth/roles/", model, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Deletes an authorization role. - /// - /// The unique identifier of the role to be deleted. - /// Cancellation token that can be used to stop the execution. - [HttpDelete("api-delete-role/{roleId}")] - public async Task DeleteRole(Guid roleId, CancellationToken cancellationToken) - { - await _apiHttpClient.DeleteAsync($"auth/roles/{roleId}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } - - /// - /// Updates an authorization role with the specified name and associated permissions. - /// - /// The model containing the data of the role to be updated. - /// Cancellation token that can be used to stop the execution. - [HttpPut("api-update-user-authorization")] - public async Task UpdateUserAuthorization([FromBody] UpdateUserRoleAndPermissionsRequestModel model, CancellationToken cancellationToken) - { - GetAuthorizationResponse response = await _apiHttpClient.PutAsync($"auth/users/{model.UserId}/role-and-permissions", model, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DirectoriesController.cs b/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DirectoriesController.cs deleted file mode 100644 index d81b169d..00000000 --- a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DirectoriesController.cs +++ /dev/null @@ -1,45 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.FileSystemManagement; - -/// -/// Controller for managing file system directories. -/// -[Authorize] -[Route("directories")] -public class DirectoriesController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public DirectoriesController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Gets the directories of . - /// - /// The path for which to get the directories. - /// Whether to include hidden file system elements or not. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-directories")] - public async Task GetDirectories([FromQuery] string path, [FromQuery] bool includeHiddenElements, CancellationToken cancellationToken) - { - IEnumerable response = await _apiHttpClient.GetAsync( - $"directories/get-directories?path={Uri.EscapeDataString(path)}&includeHiddenElements={includeHiddenElements}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DrivesController.cs b/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DrivesController.cs deleted file mode 100644 index b3b5efe9..00000000 --- a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/DrivesController.cs +++ /dev/null @@ -1,40 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.FileSystemManagement; - -/// -/// Controller for managing file system drives. -/// -[Authorize] -[Route("drives")] -public class DrivesController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public DrivesController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Controller action for getting the list of all file system drives. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-drives")] - public async Task GetDrives(CancellationToken cancellationToken) - { - FileSystemTreeNodeModel[] response = await _apiHttpClient.GetAsync($"drives/get-drives", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { drives = response } }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FileSystemController.cs b/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FileSystemController.cs deleted file mode 100644 index 3844edaf..00000000 --- a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FileSystemController.cs +++ /dev/null @@ -1,40 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.FileSystemManagement; - -/// -/// Controller for managing file systems. -/// -[Authorize] -[Route("file-system")] -public class FileSystemController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public FileSystemController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Gets the type of the file system. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-type")] - public async Task GetType(CancellationToken cancellationToken) - { - FileSystemTypeModel response = await _apiHttpClient.GetAsync($"file-system/get-type", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { platformType = response.PlatformType.ToString() } }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FilesController.cs b/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FilesController.cs deleted file mode 100644 index ab1a5517..00000000 --- a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/FilesController.cs +++ /dev/null @@ -1,60 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.FileSystemManagement; - -/// -/// Controller for managing file system files. -/// -[Authorize] -[Route("files")] -public class FilesController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public FilesController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Gets the files of . - /// - /// The path for which to get the files. - /// Whether to include hidden file system elements or not. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-tree-files")] - public async Task GetTreeFiles([FromQuery] string path, [FromQuery] bool includeHiddenElements, CancellationToken cancellationToken) - { - IEnumerable response = await _apiHttpClient.GetAsync( - $"files/get-tree-files?path={Uri.EscapeDataString(path)}&includeHiddenElements={includeHiddenElements}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Gets the files of . - /// - /// The path for which to get the files. - /// Whether to include hidden file system elements or not. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-files")] - public async Task GetFiles([FromQuery] string path, [FromQuery] bool includeHiddenElements, CancellationToken cancellationToken) - { - // TODO: check if it's really used - IEnumerable response = await _apiHttpClient.GetAsync( - $"files/get-files?path={Uri.EscapeDataString(path)}&includeHiddenElements={includeHiddenElements}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/PathController.cs b/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/PathController.cs deleted file mode 100644 index 177a63a8..00000000 --- a/src/Lumina.Presentation.Web/Controllers/FileSystemManagement/PathController.cs +++ /dev/null @@ -1,104 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.FileSystemManagement; - -/// -/// Controller for managing file system paths. -/// -[Authorize] -[Route("path")] -public class PathController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public PathController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Gets the root of . - /// - /// The path for which to get the root. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-path-root")] - public async Task GetPathRoot([FromQuery] string path, CancellationToken cancellationToken) - { - // TODO: check if it's really used - PathSegmentModel response = await _apiHttpClient.GetAsync($"path/get-path-root?path={Uri.EscapeDataString(path)}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { root = response } }); - } - - /// - /// Gets the path separator character of the file system. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-path-separator")] - public async Task GetPathSeparator(CancellationToken cancellationToken) - { - PathSeparatorModel response = await _apiHttpClient.GetAsync($"path/get-path-separator", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { pathSeparator = response.Separator } }); - } - - /// - /// Gets the path separator character of the file system. - /// - /// The path for which to get the parent path. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-path-parent")] - public async Task GetPathParent([FromQuery] string path, CancellationToken cancellationToken) - { - PathSegmentModel[] response = await _apiHttpClient.GetAsync($"path/get-path-parent?path={Uri.EscapeDataString(path)}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { pathSegments = response } }); - } - - /// - /// Gets the path components of . - /// - /// The path for which to get the path segments. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-split")] - public async Task SplitPath([FromQuery] string path, CancellationToken cancellationToken) - { - PathSegmentModel[] response = await _apiHttpClient.GetAsync($"path/split?path={Uri.EscapeDataString(path)}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { pathSegments = response } }); - } - - /// - /// Validates the validity of . - /// - /// The path to be validated. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-validate")] - public async Task ValidatePath([FromQuery] string path, CancellationToken cancellationToken) - { - PathValidModel response = await _apiHttpClient.GetAsync($"path/validate?path={Uri.EscapeDataString(path)}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { isValid = response.IsValid } }); - } - - /// - /// Checks whether exists or not. - /// - /// The path to be checked. - /// Whether to include hidden file system elements or not. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-check-path-exists")] - public async Task CheckPathExists([FromQuery] string path, [FromQuery] bool includeHiddenElements, CancellationToken cancellationToken) - { - PathExistsModel response = await _apiHttpClient.GetAsync( - $"path/check-path-exists?path={Uri.EscapeDataString(path)}&includeHiddenElements={includeHiddenElements}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { exists = response.Exists } }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/HomeController.cs b/src/Lumina.Presentation.Web/Controllers/HomeController.cs deleted file mode 100644 index fd9dcf02..00000000 --- a/src/Lumina.Presentation.Web/Controllers/HomeController.cs +++ /dev/null @@ -1,66 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Models; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using System.Diagnostics; -#endregion - -namespace Lumina.Presentation.Web.Controllers; - -/// -/// Controller for home page. -/// -[Authorize] -[Route("")] // handle root path - this is needed because app.UseCultureRedirect will redirect to the correct route -[Route("{culture}")] // culture-specific routes -public class HomeController : Controller -{ - private readonly ILogger _logger; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for logging. - public HomeController(ILogger logger) - { - _logger = logger; - } - - /// - /// Displays the view for the home page. - /// - [HttpGet("")] - public IActionResult Index() - { - return View(); - } - - /// - /// Displays the view for privacy. - /// - [HttpGet("privacy")] - public IActionResult Privacy() - { - return View(); - } - - /// - /// Displays the view for errors. - /// - [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] - [HttpGet("error")] - public IActionResult Error() - { - return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); - } - - /// - /// Displays the view for errors. - /// - [HttpGet("not-found")] - public IActionResult NotFoundView() - { - return View("/Views/Shared/NotFound.cshtml"); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/Library/Management/LibraryManagementController.cs b/src/Lumina.Presentation.Web/Controllers/Library/Management/LibraryManagementController.cs deleted file mode 100644 index 57d511b9..00000000 --- a/src/Lumina.Presentation.Web/Controllers/Library/Management/LibraryManagementController.cs +++ /dev/null @@ -1,212 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Attributes; -using Lumina.Presentation.Web.Common.Enums.Authorization; -using Lumina.Presentation.Web.Common.Models.Common; -using Lumina.Presentation.Web.Common.Models.Libraries; -using Lumina.Presentation.Web.Common.Models.Plugins; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.Library.Management; - -/// -/// Controller for media libraries related operations. -/// -[Authorize] -[Route("{culture}/libraries/manage")] -public class LibraryManagementController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public LibraryManagementController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Displays the view for displaying the list of media libraries. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("")] - public IActionResult Index() - { - return View("/Views/Library/Management/Index.cshtml"); - } - - /// - /// Displays the view for adding a media library. - /// - [HttpGet("item")] - public IActionResult AddLibrary() - { - LibraryModel library = new(); - return View("/Views/Library/Management/Item.cshtml", library); - } - - /// - /// Displays the view for editing a media library. - /// - /// The id of the media library to edit. - /// Cancellation token that can be used to stop the execution. - [HttpGet("item/{id}")] - public async Task EditLibrary(Guid id, CancellationToken cancellationToken = default) - { - LibraryModel response = await _apiHttpClient.GetAsync($"libraries/{id}", cancellationToken).ConfigureAwait(false); - return View("/Views/Library/Management/Item.cshtml", response); - } - - /// - /// Gets the list of media libraries. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-libraries")] - public async Task GetLibraries(CancellationToken cancellationToken = default) - { - LibraryModel[] response = await _apiHttpClient.GetAsync($"libraries/", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Gets the list of enabled media libraries. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-enabled-libraries")] - public async Task GetEnabledLibraries(CancellationToken cancellationToken = default) - { - LibraryModel[] response = await _apiHttpClient.GetAsync($"libraries/enabled/", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Adds a new media library, or updates an existing one. - /// - /// The model containing the new library data. - /// Cancellation token that can be used to stop the execution. - [ValidateAntiForgeryToken] - [HttpPost("api-item")] - [RequirePermission(AuthorizationPermission.CanCreateLibraries)] - public async Task SaveLibrary([FromBody] LibraryModel data, CancellationToken cancellationToken) - { - // TODO: 1. this also needs to send the image files themselves to the API, since the server could be remote; for now, it assumes local paths which it can later read, which works only if the server is local too - // call different API endpoints based on whether this is a new library or an existing one - LibraryModel response = data.Id.HasValue - ? await _apiHttpClient.PutAsync($"libraries/{data.Id}", data, cancellationToken).ConfigureAwait(false) - : await _apiHttpClient.PostAsync("libraries", data, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Deletes a media library. - /// - /// The id of the media library to delete. - /// Cancellation token that can be used to stop the execution. - [HttpDelete("api-item/{id}")] - public async Task DeleteLibrary(Guid id, CancellationToken cancellationToken = default) - { - await _apiHttpClient.DeleteAsync($"libraries/{id}", cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } - - /// - /// Gets the list of ongoing media library scans. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-running-library-scans")] - public async Task GetRunningLibraryScans(CancellationToken cancellationToken = default) - { - LibraryScanProgressModel[] response = await _apiHttpClient.GetAsync($"libraries/scans/running/", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Initiates the scan of all media libraries. - /// - /// Cancellation token that can be used to stop the execution. - [HttpPost("api-scan-libraries")] - public async Task ScanAllLibraries(CancellationToken cancellationToken = default) - { - ScanLibraryModel[] response = await _apiHttpClient.PostAsync($"libraries/scans", new EmptyModel(), cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Initiates the scan of a media library. - /// - /// The id of the media library whose scan is started. - /// Cancellation token that can be used to stop the execution. - [HttpPost("api-scan-library/{id}")] - public async Task ScanLibrary(Guid id, CancellationToken cancellationToken = default) - { - ScanLibraryModel response = await _apiHttpClient.PostAsync($"libraries/{id}/scans", new EmptyModel(), cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Cancels the previously started scan of all media libraries. - /// - /// Cancellation token that can be used to stop the execution. - [HttpPost("api-cancel-libraries-scan")] - public async Task CancelLibrariesScan(CancellationToken cancellationToken = default) - { - await _apiHttpClient.PostAsync($"libraries/scans/cancel", new EmptyModel(), cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } - - /// - /// Cancels the previously started scan of a media library. - /// - /// The id of the media library whose scan is cancelled. - /// The id of the scan to cancel. - /// Cancellation token that can be used to stop the execution. - [HttpPost("{libraryId:guid}/api-cancel-library-scan/{scanId:guid}")] - public async Task CancelLibraryScan(Guid libraryId, Guid scanId, CancellationToken cancellationToken = default) - { - await _apiHttpClient.PostAsync($"libraries/{libraryId}/scans/{scanId}/cancel", new EmptyModel(), cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } - - /// - /// Gets the metadata providers configured for the media library identified by . - /// - /// The id of the media library whose metadata providers are retrieved. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-metadata-providers/{libraryId}")] - public async Task GetMetadataProviders(Guid libraryId, CancellationToken cancellationToken = default) - { - LibraryMetadataProviderModel[] response = await _apiHttpClient.GetAsync($"libraries/{libraryId}/metadata-providers", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Enables or disables the metadata provider for the media library described by . - /// - /// The model containing the Ids of the media library and of the metadata provider. - /// Cancellation token that can be used to stop the execution. - [HttpPut("api-set-metadata-provider-enabled")] - public async Task SetMetadataProviderEnabled([FromBody] SetLibraryMetadataProviderEnabledModel model, CancellationToken cancellationToken = default) - { - await _apiHttpClient.PutAsync($"libraries/{model.LibraryId}/metadata-providers/{model.PluginId}/enabled", model, cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } - - /// - /// Reorders the metadata providers of the media library described by . - /// - /// The model containing the Id of the media library and the plugin Ids in the new order. - /// Cancellation token that can be used to stop the execution. - [HttpPut("api-reorder-metadata-providers")] - public async Task ReorderMetadataProviders([FromBody] ReorderLibraryMetadataProvidersModel model, CancellationToken cancellationToken = default) - { - await _apiHttpClient.PutAsync($"libraries/{model.LibraryId}/metadata-providers/reorder", model, cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs b/src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs deleted file mode 100644 index fa138956..00000000 --- a/src/Lumina.Presentation.Web/Controllers/Library/WrittenContentLibrary/BookLibrary/BooksController.cs +++ /dev/null @@ -1,92 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.Libraries; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.Library.WrittenContentLibrary.BookLibrary; - -/// -/// Controller for books related operations. -/// -[Authorize] -[Route("{culture}/library/written-content-library/books-library/books")] -public class BooksController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public BooksController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Displays the view for browsing the books of a media library. - /// - /// The Id of the media library whose books are browsed. - /// Cancellation token that can be used to stop the execution. - [HttpGet("")] - public async Task Index(Guid? libraryId, CancellationToken cancellationToken = default) - { - if (libraryId is null) - return RedirectToAction("Index", "Home"); - - LibraryModel library = await _apiHttpClient.GetAsync($"libraries/{libraryId}", cancellationToken).ConfigureAwait(false); - return View("/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml", library); - } - - /// - /// Gets the lightweight details of the books of a media library. - /// - /// The model containing the parameters used to retrieve the books. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-library-items")] - public async Task GetLibraryItems([FromQuery] BookLibraryItemsQueryModel query, CancellationToken cancellationToken = default) - { - PaginatedBookLiteModel response = await _apiHttpClient.GetAsync(BuildItemsEndpoint(query), cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Displays the view for a single book. - /// - /// The Id of the book to display. - [HttpGet("{id}")] - public IActionResult EditBook(Guid id) - { - return View("/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml"); - } - - /// - /// Builds the API endpoint used to retrieve the lightweight details of the books of a media library, from the provided . - /// - /// The model containing the parameters used to retrieve the books. - /// The API endpoint to which the retrieval request is sent. - private static string BuildItemsEndpoint(BookLibraryItemsQueryModel query) - { - StringBuilder endpoint = new($"books/lite?libraryId={query.LibraryId}"); - if (query.CurrentPage is not null) - endpoint.Append($"¤tPage={query.CurrentPage}"); - if (query.PerPage is not null) - endpoint.Append($"&perPage={query.PerPage}"); - if (!string.IsNullOrWhiteSpace(query.SearchTerm)) - endpoint.Append($"&searchTerm={Uri.EscapeDataString(query.SearchTerm)}"); - if (!string.IsNullOrWhiteSpace(query.FilterAlphaKey)) - endpoint.Append($"&filterAlphaKey={Uri.EscapeDataString(query.FilterAlphaKey)}"); - endpoint.Append($"&ignoreThePrefixForAlphaPicker={query.IgnoreThePrefixForAlphaPicker}"); - if (!string.IsNullOrWhiteSpace(query.SortBy)) - endpoint.Append($"&sortBy={Uri.EscapeDataString(query.SortBy)}"); - if (query.SortOrder is not null) - endpoint.Append($"&sortOrder={query.SortOrder}"); - return endpoint.ToString(); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/Plugins/PluginsController.cs b/src/Lumina.Presentation.Web/Controllers/Plugins/PluginsController.cs deleted file mode 100644 index 4bfaff8b..00000000 --- a/src/Lumina.Presentation.Web/Controllers/Plugins/PluginsController.cs +++ /dev/null @@ -1,89 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Attributes; -using Lumina.Presentation.Web.Common.Enums.Plugins; -using Lumina.Presentation.Web.Common.Models.Common; -using Lumina.Presentation.Web.Common.Models.Plugins; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.Plugins; - -/// -/// Controller for the plugin management related operations. -/// -[Authorize] -[RequireRole("Admin")] -[Route("{culture}/plugins")] -public class PluginsController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public PluginsController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Displays the view for managing the plugins and their settings. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("")] - public async Task Index(CancellationToken cancellationToken) - { - PluginModel[] plugins = await _apiHttpClient.GetAsync("plugins", cancellationToken).ConfigureAwait(false); - - // load the settings of the loaded plugins, so that the settings forms can be rendered on the server - Dictionary settingsByPluginId = []; - foreach (PluginModel plugin in plugins) - if (plugin.LoadStatus == PluginLoadStatus.Loaded) - settingsByPluginId[plugin.Id] = await _apiHttpClient.GetAsync($"plugins/{plugin.Id}/settings", cancellationToken).ConfigureAwait(false); - - ViewData["pluginSettings"] = settingsByPluginId; - return View(plugins); - } - - /// - /// Gets the list of the detected plugins. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-plugins")] - public async Task GetPlugins(CancellationToken cancellationToken = default) - { - PluginModel[] response = await _apiHttpClient.GetAsync("plugins/", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Gets the settings and their schema of the plugin identified by . - /// - /// The unique identifier of the plugin. - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-plugin-settings/{pluginId}")] - public async Task GetPluginSettings(Guid pluginId, CancellationToken cancellationToken = default) - { - PluginSettingsModel response = await _apiHttpClient.GetAsync($"plugins/{pluginId}/settings", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Updates the settings of the plugin identified by . - /// - /// The model containing the Id of the plugin and its settings. - /// Cancellation token that can be used to stop the execution. - [HttpPut("api-update-plugin-settings")] - public async Task UpdatePluginSettings([FromBody] UpdatePluginSettingsModel model, CancellationToken cancellationToken) - { - await _apiHttpClient.PutAsync($"plugins/{model.PluginId}/settings", model, cancellationToken).ConfigureAwait(false); - return Json(new { success = true }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/Tools/LanguageController.cs b/src/Lumina.Presentation.Web/Controllers/Tools/LanguageController.cs deleted file mode 100644 index 6d40f560..00000000 --- a/src/Lumina.Presentation.Web/Controllers/Tools/LanguageController.cs +++ /dev/null @@ -1,72 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Services; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Localization; -using Microsoft.AspNetCore.Mvc; -using System; -#endregion - -namespace Lumina.Presentation.Web.Controllers.Tools; - -/// -/// Controller for language related operations. -/// -[Route("{culture}/tools/language")] -public class LanguageController : Controller -{ - private readonly IUrlService _urlService; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for generating URLs from action and controller names, with localization. - public LanguageController(IUrlService urlService) - { - _urlService = urlService; - } - - /// - /// Sets the culture used in the application. - /// - /// The new culture to set. - /// The URL to return to after setting the new culture. - [HttpGet("set-language")] - public IActionResult SetLanguage(string newCulture, string returnUrl) - { - // store culture preference in cookie - Response.Cookies.Append( - CookieRequestCultureProvider.DefaultCookieName, - CookieRequestCultureProvider.MakeCookieValue(new RequestCulture(newCulture)), - new CookieOptions - { - Expires = DateTimeOffset.UtcNow.AddYears(1), - IsEssential = true, - SameSite = SameSiteMode.Lax, - Path = "/" // ensure cookie works across all paths - } - ); - // ensure returnUrl includes the correct culture - if (string.IsNullOrEmpty(returnUrl)) - returnUrl = _urlService.GetAbsoluteUrl("Index", "Home")!; // default fallback URL - // handle culture replacement in return URL - string? currentCulture = HttpContext.Request.RouteValues["culture"]?.ToString() ?? "en-us"; - if (currentCulture != null) - { - // ensure we handle both with and without trailing slashes - string culturePath = $"/{currentCulture.ToLower()}/"; - string newCulturePath = $"/{newCulture.ToLower()}/"; - - // Handle base path if present - if (!string.IsNullOrEmpty(Request.PathBase)) - returnUrl = returnUrl.Replace(Request.PathBase.Value!, "", StringComparison.OrdinalIgnoreCase); - // replace culture in URL - returnUrl = returnUrl.Replace(culturePath, newCulturePath, StringComparison.OrdinalIgnoreCase); - - // re-apply base path if present - if (!string.IsNullOrEmpty(Request.PathBase)) - returnUrl = Request.PathBase.Value + returnUrl; - } - // redirect to the original page - return LocalRedirect(returnUrl); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/Tools/SettingsController.cs b/src/Lumina.Presentation.Web/Controllers/Tools/SettingsController.cs deleted file mode 100644 index c61b2196..00000000 --- a/src/Lumina.Presentation.Web/Controllers/Tools/SettingsController.cs +++ /dev/null @@ -1,64 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Models.Common; -using Lumina.Presentation.Web.Common.Models.UsersManagement; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.Tools; - -/// -/// Controller for the settings of the current user. -/// -[Authorize] -[Route("{culture}/tools/settings")] -public class SettingsController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - public SettingsController(IApiHttpClient apiHttpClient) - { - _apiHttpClient = apiHttpClient; - } - - /// - /// Displays the view for editing the settings of the current user. - /// - [HttpGet("")] - public IActionResult Index() - { - UserSettingsModel settings = new(); - return View("/Views/Tools/Settings.cshtml", settings); - } - - /// - /// Gets the settings of the current user. - /// - /// Cancellation token that can be used to stop the execution. - [HttpGet("api-get-user-settings")] - public async Task GetUserSettings(CancellationToken cancellationToken = default) - { - UserSettingsModel response = await _apiHttpClient.GetAsync("users/me/settings", cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Updates the settings of the current user. - /// - /// The model containing the new settings of the current user. - /// Cancellation token that can be used to stop the execution. - [ValidateAntiForgeryToken] - [HttpPost("api-update-user-settings")] - public async Task UpdateUserSettings([FromBody] UserSettingsModel data, CancellationToken cancellationToken) - { - await _apiHttpClient.PutAsync("users/me/settings", data, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = new { isUpdated = true } }); - } -} diff --git a/src/Lumina.Presentation.Web/Controllers/UsersManagement/AuthController.cs b/src/Lumina.Presentation.Web/Controllers/UsersManagement/AuthController.cs deleted file mode 100644 index 59b689de..00000000 --- a/src/Lumina.Presentation.Web/Controllers/UsersManagement/AuthController.cs +++ /dev/null @@ -1,260 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Api; -using Lumina.Presentation.Web.Common.Exceptions; -using Lumina.Presentation.Web.Common.Filters.ActionFilters; -using Lumina.Presentation.Web.Common.Http; -using Lumina.Presentation.Web.Common.Models.UsersManagement; -using Lumina.Presentation.Web.Common.Security; -using Lumina.Presentation.Web.Common.Services; -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Primitives; -using System; -using System.Collections.Generic; -using System.Security.Claims; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -#endregion - -namespace Lumina.Presentation.Web.Controllers.UsersManagement; - -/// -/// Controller for authentication related operations. -/// -[Authorize] -[Route("{culture}/auth")] -public class AuthController : Controller -{ - private readonly IApiHttpClient _apiHttpClient; - private readonly ICryptographyService _cryptographyService; - private readonly IUrlService _urlService; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for interactions with the API. - /// Injected service for cryptographic functionality. - /// Injected service for generating URLs from action and controller names, with localization. - public AuthController(IApiHttpClient apiHttpClient, ICryptographyService cryptographyService, IUrlService urlService) - { - _apiHttpClient = apiHttpClient; - _cryptographyService = cryptographyService; - _urlService = urlService; - } - - /// - /// Displays the view for registering a new account. - /// - [AllowAnonymous] - [InitializationCheck] - [HttpGet("register")] - public IActionResult Register() - { - // check if this is the initial super admin setup - string? isPendingSuperAdminSetup = HttpContext.Session.GetString(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP); - ViewData["RegistrationType"] = isPendingSuperAdminSetup == "true" ? "Admin" : "User"; - return View(); - } - - /// - /// Displays the view for logging in. - /// - /// The url to return to, after login (if any). - [AllowAnonymous] - [InitializationCheck] - [HttpGet("login/{returnUrl?}")] - public IActionResult Login(string? returnUrl = null) - { - ViewData["ReturnUrl"] = returnUrl; - // if the user is already logged in, redirect them to the home page - if (User?.Identity?.IsAuthenticated == true) - return Redirect(_urlService.GetAbsoluteUrl("Index", "Home")!); - // check if the application is initialized (does contain at least the super user account); if it's not, redirect to registration view - string? isPendingSuperAdminSetup = HttpContext.Session.GetString(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP); - if (isPendingSuperAdminSetup == "true") - // TODO: should be: - // return View("~/Views/Auth/Register", new RegisterRequestDto()); - // but doesn't work because of an ASP.NET bug: https://github.com/dotnet/AspNetCore.Docs/issues/25157 - return Redirect(_urlService.GetAbsoluteUrl("Register", "Auth")!); - return View(new LoginRequestModel()); - } - - /// - /// Displays the view for recovering the password of an account. - /// - [AllowAnonymous] - [InitializationCheck] - [HttpGet("recover-password")] - public IActionResult RecoverPassword() - { - // if the user is already logged in, redirect them to the home page - if (User?.Identity?.IsAuthenticated == true) - return Redirect(_urlService.GetAbsoluteUrl("Index", "Home")!); - return View(); - } - - /// - /// Displays the view for changing the password of an account. - /// - [HttpGet("change-password")] - public IActionResult ChangePassword() - { - return View(); - } - - /// - /// Displays the view for registering a new account. - /// - [HttpGet("profile")] - public IActionResult Profile() - { - return View(); - } - - /// - /// Displays the view for registering a new account. - /// - [AllowAnonymous] - [HttpGet("access-denied")] - public IActionResult AccessDenied() - { - return View(); - } - - /// - /// Registers a new account. - /// - /// User credentials used for registration. - /// Cancellation token that can be used to stop the execution. - [AllowAnonymous] - [ValidateAntiForgeryToken] - [HttpPost("api-register")] - public async Task RegisterPost([FromBody] RegisterRequestModel data, CancellationToken cancellationToken) - { - // call different endpoints based on the view hidden field - registration for normal users, or initial application admin account setup - string endpoint = data.RegistrationType == "Admin" ? "initialization" : "auth/register"; - // attempt API registration - RegisterResponseModel response = await _apiHttpClient.PostAsync(endpoint, data, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Logs in an account. - /// - /// User credentials used for login. - /// Cancellation token that can be used to stop the execution. - [AllowAnonymous] - [ValidateAntiForgeryToken] - [HttpPost("api-login")] - public async Task LoginPost([FromBody] LoginRequestModel data, CancellationToken cancellationToken) - { - try - { - // attempt API registration - LoginResponseModel response = await _apiHttpClient.PostAsync("auth/login", data, cancellationToken).ConfigureAwait(false); - // store the received token in a secure cookie - Response.Cookies.Delete("Token"); - Response.Cookies.Append("Token", _cryptographyService.Encrypt(response.Token!), new CookieOptions - { - Expires = DateTimeOffset.UtcNow.AddMonths(1), - Path = "/", - HttpOnly = true, - Secure = true, - IsEssential = true, - SameSite = SameSiteMode.Strict - }); - // tell asp.net we are logged in - List claims = - [ - new Claim(ClaimTypes.Name, response.Username!), - new Claim(ClaimTypes.NameIdentifier, response.Id.ToString()!), - new Claim("Token", response.Token!), - ]; - ClaimsIdentity claimsIdentity = new(claims, CookieAuthenticationDefaults.AuthenticationScheme); - await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(claimsIdentity)).ConfigureAwait(false); - // get current culture from route data or use default if not set - string currentCulture = HttpContext.Request.RouteValues["culture"]?.ToString() ?? "en-US"; - // handle ReturnUrl and ensure it includes the correct culture - string redirectUrl; - if (!string.IsNullOrEmpty(data.ReturnUrl) && Url.IsLocalUrl(data.ReturnUrl)) // ensure that return URL contains the correct culture - redirectUrl = data.ReturnUrl.StartsWith($"/{currentCulture}/") ? data.ReturnUrl : $"/{currentCulture}{data.ReturnUrl}"; - else - { - // if no ReturnUrl is provided or it's invalid, use a default URL with respect to base paths - redirectUrl = Url.Content("~/"); - - // handle reverse proxy scenarios by respecting any base path or forwarded headers - if (HttpContext.Request.Headers.TryGetValue("X-Forwarded-Prefix", out StringValues pathBase)) - redirectUrl = pathBase + redirectUrl; - - // ensure that default redirect contains the correct culture - if (!redirectUrl.StartsWith($"/{currentCulture}/")) - redirectUrl = $"/{currentCulture}{redirectUrl}"; - } - - // return success status and redirect URL - return Json(new { success = true, data = redirectUrl }); - } - catch (ApiException ex) - { - // in this particular case, we DO NOT want to let the ApiExceptionFilter take care of this exception, because when the user has 2FA enabled, the first auth step involves sending - // only the username and password, in which case the server API will respond with a validation error, that TOTP code is not valid (empty); it is then that we catch this error here - // and display the form that asks the user for the TOTP code - if (ex.ProblemDetails is not null && ex.ProblemDetails.Extensions?.Count > 0 && ex.ProblemDetails.Extensions.TryGetValue("errors", out JsonElement errorsObj)) - if (errorsObj is JsonElement jsonElement && jsonElement.ValueKind == JsonValueKind.Object) - foreach (JsonProperty error in jsonElement.EnumerateObject()) - if (error.Value.ValueKind == JsonValueKind.Array) - foreach (JsonElement errorValue in error.Value.EnumerateArray()) - if (errorValue.ValueKind == JsonValueKind.String && errorValue.GetString() == "InvalidTotpCode" && string.IsNullOrEmpty(data.TotpCode)) - return Json(new { success = true, data = new { isTotpRequired = true } }); // only get here when user did not enter a TOTP code at all, otherwise rethrow the validation error - throw; - } - } - - /// - /// Logs out an account and redirects to the login page. - /// - [HttpGet("logout")] - public async Task Logout() - { - // if the user is not logged in, redirect them to the home page - if (User?.Identity?.IsAuthenticated == false) - return Redirect(_urlService.GetAbsoluteUrl("Index", "Home")!); - Response.Cookies.Delete("Token"); - await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme).ConfigureAwait(false); - return Redirect(_urlService.GetAbsoluteUrl("Login", "Auth")!); - } - - /// - /// Recovers the password of an account. - /// - /// User credentials used for password recovery. - /// Cancellation token that can be used to stop the execution. - [AllowAnonymous] - [ValidateAntiForgeryToken] - [HttpPost("api-recover-password")] - public async Task RecoverPasswordPost([FromBody] RecoverPasswordRequestModel data, CancellationToken cancellationToken) - { - RecoverPasswordResponseModel response = await _apiHttpClient.PostAsync("auth/recover-password", data, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } - - /// - /// Changes the password of an account. - /// - /// User credentials used for password change. - /// Cancellation token that can be used to stop the execution. - [ValidateAntiForgeryToken] - [HttpPost("api-change-password")] - public async Task ChangePasswordPost([FromBody] ChangePasswordRequestModel data, CancellationToken cancellationToken) - { - data = data with { Username = User?.Identity?.Name }; // assign the currently logged in user as the user for which to change the password - ChangePasswordResponseModel response = await _apiHttpClient.PostAsync("auth/change-password", data, cancellationToken).ConfigureAwait(false); - return Json(new { success = true, data = response }); - } -} diff --git a/src/Lumina.Presentation.Web/Models/ErrorViewModel.cs b/src/Lumina.Presentation.Web/Models/ErrorViewModel.cs deleted file mode 100644 index 5775d1f6..00000000 --- a/src/Lumina.Presentation.Web/Models/ErrorViewModel.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Lumina.Presentation.Web.Models; - -public class ErrorViewModel -{ - public string? RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); -} diff --git a/src/Lumina.Presentation.Web/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs b/src/Lumina.Presentation.Web/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs deleted file mode 100644 index 02466425..00000000 --- a/src/Lumina.Presentation.Web/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace Lumina.Presentation.Web.Renderers.Library.WrittenContentLibrary.BookLibrary.Books; - -public class BooksTemplateRenderer -{ -} diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx deleted file mode 100644 index c5328293..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Administrator-Konto wurde bereits erstellt! - - - Die Admin-Rolle kann nicht gelöscht werden! - - - Anwendungsdesign darf nicht leer sein! - - - ASIN muss 10 Zeichen lang sein! - - - Die Barnes&Noble-ID muss 10 Zeichen lang sein! - - - Bitrate muss eine positive Zahl sein! - - - Buch existiert bereits! - - - Navigation nach oben nicht möglich! - - - Der letzte zugewiesene Admin-Rolle kann nicht entfernt werden! - - - Codec darf nicht leer sein! - - - Anzeigename des Mitwirkenden darf nicht leer sein! - - - Anzeigename des Mitwirkenden darf maximal 100 Zeichen lang sein! - - - Rechtlicher Name des Mitwirkenden darf maximal 100 Zeichen lang sein! - - - Name des Mitwirkenden darf nicht leer sein! - - - Rolle des Mitwirkenden darf nicht null sein! - - - Liste der Mitwirkenden darf nicht null sein! - - - Ländercode muss 2 Zeichen lang sein! - - - Aktuelles Passwort darf nicht leer sein! - - - Datenbank-Verbindungszeichenfolge darf nicht leer sein! - - - Beschreibung darf maximal 2000 Zeichen lang sein! - - - Verzeichnis existiert bereits! - - - Fehler beim Kopieren des Verzeichnisses! - - - Fehler beim Verschieben des Verzeichnisses! - - - Verzeichnis nicht gefunden! - - - Ausgabe darf maximal 50 Zeichen lang sein! - - - Verschlüsselungsschlüssel darf nicht leer sein! - - - Verschlüsselungsschlüssel muss eine Base64-Zeichenkette sein! - - - Fehler beim Speichern der Autorisierungsrolle! - - - Fehler beim Speichern der Medienbibliothek! - - - Dateierweiterung darf nicht leer sein! - - - Datei existiert bereits! - - - Fehler beim Kopieren der Datei! - - - Fehler beim Verschieben der Datei! - - - Datei nicht gefunden! - - - Validierung - - - Genrename darf nicht leer sein! - - - Genrename darf maximal 50 Zeichen lang sein! - - - Genreliste darf nicht null sein! - - - Die Goodreads-ID muss numerisch sein! - - - Google Books-ID muss 12 Zeichen lang sein! - - - Bildqualität muss zwischen 0 und 100 liegen! - - - Ungültiges AppleBooks-ID-Format! - - - Ungültiges Barnes&Noble-ID-Format! - - - Ungültiges aktuelles Passwort! - - - Ungültiges Google Books-ID-Format! - - - Ungültiges ISBN10-Format! - - - Ungültiges ISBN13-Format! - - - Ungültiger ISO-Code! - - - Ungültiges LCCN-Format! - - - Ungültiges OCLC-Format! - - - Ungültige OpenLibrary-ID! - - - Ungültiges Passwort! - - - Ungültiger Pfad! - - - Ungültiger TOTP-Code! - - - Ungültiger Benutzername! - - - Ungültiger Benutzername oder Passwort! - - - ISBN-Liste darf nicht null sein! - - - ISBN-Wert darf nicht leer sein! - - - JWT-Zielgruppe darf nicht leer sein! - - - JWT-Ablaufzeit in Minuten muss positiv sein! - - - JWT-Aussteller darf nicht leer sein! - - - JWT-Geheimschlüssel darf nicht leer sein! - - - JWT-Geheimschlüssel zu kurz! - - - Sprachcode darf nicht leer sein! - - - Sprachcode muss 2 Zeichen lang sein! - - - Sprachname darf nicht leer sein! - - - Sprachname darf maximal 50 Zeichen lang sein! - - - Eigenname der Sprache darf maximal 50 Zeichen lang sein! - - - Bibliothek existiert bereits! - - - Bibliotheks-ID darf nicht leer sein! - - - Bibliothek nicht gefunden! - - - LibraryThing-ID darf maximal 50 Zeichen lang sein! - - - Bibliothekstyp darf nicht null sein! - - - Medien-Stammverzeichnis darf nicht leer sein! - - - Metadaten dürfen nicht null sein! - - - Name darf nicht leer sein! - - - Neues Passwort darf nicht leer sein! - - - Neue Passwortbestätigung darf nicht leer sein! - - - Sie sind nicht berechtigt, diese Ressource anzusehen! - - - Sie sind nicht berechtigt, diesen Vorgang auszuführen! - - - Die angegebene Ressource wurde nicht gefunden! - - - Kein Vorschaubild! - - - Ein oder mehrere Validierungsfehler sind aufgetreten - - - Originalveröffentlichungsdatum und -jahr müssen übereinstimmen! - - - Ursprüngliches Erscheinungsjahr muss zwischen 1 und 9999 liegen! - - - Originaltitel darf maximal 255 Zeichen lang sein! - - - Seitenzahl muss größer als null sein! - - - Übergeordneter Knoten darf nicht null sein! - - - Passwort darf nicht leer sein! - - - Passwortbestätigung darf nicht leer sein! - - - Passwortzurücksetzung wurde bereits angefordert! - - - Passwörter stimmen nicht überein! - - - Pfad darf nicht leer sein! - - - Der Pfad darf maximal 260 Zeichen lang s - - - Pfadliste darf nicht leer sein! - - - Pfadliste darf nicht null sein! - - - Die Berechtigungsliste darf nicht leer sein! - - - Die Berechtigungsliste darf nicht null sein! - - - Verlag darf maximal 100 Zeichen lang sein! - - - Maximaler Bewertungswert muss positiv sein! - - - Bewertungsliste darf nicht null sein! - - - Bewertungswert darf nicht größer als der Maximalwert sein! - - - Bewertungswert muss positiv sein! - - - Anzahl der Bewertungen muss positiv sein! - - - Veröffentlichungsinformationen dürfen nicht null sein! - - - Veröffentlichungsversion darf maximal 50 Zeichen lang sein! - - - Wiederveröffentlichungsdatum und -jahr müssen übereinstimmen! - - - Wiederveröffentlichungsdatum darf nicht vor dem ursprünglichen Veröffentlichungsdatum liegen! - - - Wiederveröffentlichungsjahr darf nicht vor dem ursprünglichen Erscheinungsjahr liegen! - - - Wiederveröffentlichungsjahr muss zwischen 1 und 9999 liegen! - - - Rolle existiert bereits! - - - Rollenkategorie darf nicht leer sein! - - - Rollenkategorie darf maximal 50 Zeichen lang sein! - - - Rollen-ID darf nicht leer sein! - - - Rollenname darf nicht leer sein! - - - Rollenname darf maximal 50 Zeichen lang sein! - - - Rolle nicht gefunden - - - Stream-ID darf nicht leer sein! - - - Schlagwort darf nicht leer sein! - - - Schlagwort darf maximal 50 Zeichen lang sein! - - - Schlagwortliste darf nicht null sein! - - - Temporäres Passwort ist abgelaufen! - - - Das Buch ist bereits in der Serie! - - - Das Buch ist nicht in der Serie! - - - Titel darf nicht leer sein! - - - Titel darf maximal 255 Zeichen lang sein! - - - Zu viele Anfragen! Bitte versuchen Sie es in 15 Minuten erneut! - - - Der TOTP-Code darf nicht leer sein! - - - Sie sind nicht berechtigt, auf diese Ressource zuzugreifen! - - - Unbekanntes Buchformat! - - - Unbekanntes ISBN-Format! - - - Unbekannter Bibliothekstyp! - - - Benutzer existiert bereits! - - - Benutzer existiert nicht! - - - Benutzer-ID darf nicht leer sein! - - - Benutzer muss entweder Rollen- oder direkte Berechtigungen haben! - - - Benutzername existiert bereits! - - - Benutzername darf nicht leer sein! - - - Benutzername existiert nicht! - - - Der Benutzername muss zwischen 3 und 255 Zeichen lang sein! - - - Bandnummer muss größer als null sein! - - - Die Coverdatei muss ein Bild sein! - - - Eine deaktivierte Bibliothek kann nicht gescannt werden! - - - Eine gesperrte Bibliothek kann nicht gescannt werden! - - - Nur ausstehende Scans können gestartet werden! - - - Nur laufende Scans können abgebrochen werden! - - - Scan-ID darf nicht leer sein! - - - Die Bibliothek wird bereits gescannt! - - - Gesamtanzahl der Scan-Aufträge muss positiv sein! - - - Anzahl der abgeschlossenen Scan-Aufträge muss positiv sein! - - - Die Anzahl der abgeschlossenen Scan-Aufträge darf die Gesamtanzahl der Scan-Aufträge nicht überschreiten! - - - Aktuelle Scan-Operation darf nicht leer sein! - - - Die Scan-ID der Bibliothek darf nicht leer sein! - - - Gesamtanzahl der Scan-Aufträge muss positiv sein! - - - Anzahl der abgeschlossenen Scan-Aufträge muss positiv sein! - - - Anzahl der abgeschlossenen Scan-Aufträge darf die Gesamtanzahl der Scan-Aufträge nicht überschreiten! - - - CORS-Origins dürfen nicht leer sein! - - - Ungültiger CORS-Origin! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx deleted file mode 100644 index 53a1ee57..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Admin account already created! - - - Admin role cannot be deleted! - - - Application theme cannot be empty! - - - ASIN must be 10 characters long! - - - Barnes&Nobles Id must be 10 characters long! - - - Bitrate must be a positive number! - - - Book already exists! - - - Cannot navigate up! - - - Cannot remove the last Admin role assigned to a user! - - - Codec cannot be empty! - - - Contributor display name cannot be empty! - - - Contributor display name must be maximum 100 characters long! - - - Contributor legal name must be maximum 100 characters long! - - - Contributor name cannot be empty! - - - Contributor role cannot be null! - - - Contributors list cannot be null! - - - Country code must be 2 characters long! - - - Current password cannot be empty! - - - Database connection string cannot be empty! - - - Description must be maximum 2000 characters long! - - - Directory already exists! - - - Error copying the directory! - - - Error moving the directory! - - - Directory not found! - - - Edition must be maximum 50 characters long! - - - Encryption secret key cannot be empty! - - - Encryption secret key must be a Base64 string! - - - Error persisting authorization role! - - - Error persisting media library! - - - Extension cannot be empty! - - - File already exists! - - - Error copying the file! - - - Error moving the file! - - - File not found! - - - Validation - - - Genre name cannot be empty! - - - Genre name must be maximum 50 characters long! - - - Genres list cannot be null! - - - Goodreads Id must be numeric! - - - Google Books Id must be 12 characters long! - - - Image quality must be between 0 and 100! - - - Invalid AppleBooks Id format! - - - Invalid Barnes&Nobles Id format! - - - Invalid current password! - - - Invalid Google Books Id format! - - - Invalid ISBN10 format! - - - Invalid ISBN13 format! - - - Invalid ISO code! - - - Invalid LCCN format! - - - Invalid OCLC format! - - - Invalid OpenLibrary Id! - - - Invalid password! - - - Invalid path! - - - Invalid TOTP code! - - - Invalid username! - - - Invalid username or password! - - - ISBN list cannot be null! - - - ISBN value cannot be empty! - - - JWT audience cannot be empty! - - - JWT expiry minutes must be positive! - - - JWT issuer cannot be empty! - - - JWT secret key cannot be empty! - - - JWT secret key too short! - - - Language code cannot be empty! - - - Language code must be 2 characters long! - - - Language name cannot be empty! - - - Language name must be maximum 50 characters long! - - - Language native name must be maximum 50 characters long! - - - Library already exists! - - - Library Id cannot be empty! - - - Library not found! - - - LibraryThing Id must be maximum 50 characters long! - - - Library type cannot be null! - - - Media root directory cannot be empty! - - - Metadata cannot be null! - - - Name cannot be empty! - - - New password cannot be empty! - - - New password confirm cannot be empty! - - - You are not authorized to view this resource! - - - You are not authorized to perform this operation! - - - Specified resource was not found! - - - No thumbnail! - - - One or more validation errors occurred - - - Original release date and year must match! - - - Original release year must be between 1 and 9999! - - - Original title must be maximum 255 characters long! - - - Page count must be greater than zero! - - - Parent node cannot be null! - - - Password cannot be empty! - - - Password confirm cannot be empty! - - - Password reset already requested! - - - Passwords do not match! - - - Path cannot be empty! - - - Path must be maximum 260 characters long! - - - Paths list cannot be empty! - - - Paths list cannot be null! - - - Permissions list cannot be empty! - - - Permissions list cannot be null! - - - Publisher must be maximum 100 characters long! - - - Rating maximum value must be positive! - - - Ratings list cannot be null! - - - Rating value cannot be greater than maximum value! - - - Rating value must be positive! - - - Rating vote count must be positive! - - - Release info cannot be null! - - - Release version must be maximum 50 characters long! - - - Re-release date and year must match! - - - Re-release date cannot be earlier than original release date! - - - Re-release year cannot be earlier than original release year! - - - Re-release year must be between 1 and 9999! - - - Role already exists! - - - Role category cannot be empty! - - - Role category must be maximum 50 characters long! - - - Role Id cannot be empty! - - - Role name cannot be empty! - - - Role name must be maximum 50 characters long! - - - Role not found - - - Stream Id cannot be empty! - - - Tag name cannot be empty! - - - Tag name must be maximum 50 characters long! - - - Tags list cannot be null! - - - Temporary password has expired! - - - The book is already in the series! - - - The book is not in the series! - - - Title cannot be empty! - - - Title must be maximum 255 characters long! - - - Too many requests! Please try again later! - - - The TOTP code cannot be empty! - - - You are not authorized to access this resource! - - - Unknown book format! - - - Unknown ISBN format! - - - Unknown library type! - - - User already exists! - - - User does not exist! - - - User Id cannot be empty! - - - User must have permissions either from role permissions or direct user permissions - - - Username already exists! - - - Username cannot be empty! - - - Username does not exist! - - - Username must be between 3 and 255 characters long! - - - Volume number must be greater than zero! - - - Cover file must be an image! - - - Cannot scan a disabled library! - - - Cannot scan a locked library! - - - Can only start pending scans! - - - Can only cancel running scans! - - - Scan Id cannot be empty! - - - Library is already being scanned! - - - Total scan job items count must be positive! - - - Completed scan job items count must be positive! - - - Completed scan job items count can't exceed total scan job items count! - - - Scan job current operation cannot be empty! - - - Library scan Id cannot be empty! - - - Total scan jobs count must be positive! - - - Completed scan jobs count must be positive! - - - Completed scan jobs count can't exceed total scan jobs count! - - - CORS origins cannot be empty! - - - CORS origin is invalid! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx deleted file mode 100644 index 5b86070e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ¡La cuenta de administrador ya está creada! - - - ¡El rol de administrador no puede ser eliminado! - - - ¡El tema de la aplicación no puede estar vacío! - - - ¡El ASIN debe tener 10 caracteres! - - - ¡El ID de Barnes&Noble debe tener 10 caracteres! - - - ¡La tasa de bits debe ser un número positivo! - - - ¡El libro ya existe! - - - ¡No se puede navegar hacia arriba! - - - ¡No se puede eliminar el último rol de Admin asignado al usuario! - - - ¡El códec no puede estar vacío! - - - ¡El nombre mostrado del colaborador no puede estar vacío! - - - ¡El nombre mostrado del colaborador debe tener máximo 100 caracteres! - - - ¡El nombre legal del colaborador debe tener máximo 100 caracteres! - - - ¡El nombre del colaborador no puede estar vacío! - - - ¡El rol del colaborador no puede ser nulo! - - - ¡La lista de colaboradores no puede ser nula! - - - ¡El código de país debe tener 2 caracteres! - - - ¡La contraseña actual no puede estar vacía! - - - ¡La cadena de conexión a la base de datos no puede estar vacía! - - - ¡La descripción debe tener máximo 2000 caracteres! - - - ¡El directorio ya existe! - - - ¡Error al copiar el directorio! - - - ¡Error al mover el directorio! - - - ¡Directorio no encontrado! - - - ¡La edición debe tener máximo 50 caracteres! - - - ¡La clave secreta de cifrado no puede estar vacía! - - - ¡La clave secreta de cifrado debe ser una cadena Base64! - - - ¡Error al persistir el rol de autorización! - - - ¡Error al guardar la biblioteca multimedia! - - - ¡La extensión no puede estar vacía! - - - ¡El archivo ya existe! - - - Error al copiar el archivo! - - - ¡Error al mover el archivo! - - - ¡Archivo no encontrado! - - - Validación - - - ¡El nombre del género no puede estar vacío! - - - ¡El nombre del género debe tener máximo 50 caracteres! - - - ¡La lista de géneros no puede ser nula! - - - ¡El ID de Goodreads debe ser numérico! - - - ¡El ID de Google Books debe tener 12 caracteres! - - - ¡La calidad de la imagen debe estar entre 0 y 100! - - - ¡Formato de ID de Apple Books inválido! - - - ¡Formato de ID de Barnes&Noble inválido! - - - ¡Contraseña actual inválida! - - - ¡Formato de ID de Google Books inválido! - - - ¡Formato ISBN10 inválido! - - - ¡Formato ISBN13 inválido! - - - ¡Código ISO inválido! - - - ¡Formato LCCN inválido! - - - ¡Formato OCLC inválido! - - - ¡ID de OpenLibrary inválido! - - - ¡Contraseña inválida! - - - ¡Ruta no válida! - - - ¡Código TOTP inválido! - - - ¡Nombre de usuario inválido! - - - ¡Nombre de usuario o contraseña inválidos! - - - ¡La lista ISBN no puede ser nula! - - - ¡El valor ISBN no puede estar vacío! - - - ¡La audiencia JWT no puede estar vacía! - - - ¡Los minutos de expiración JWT deben ser positivos! - - - ¡El emisor JWT no puede estar vacío! - - - ¡La clave secreta JWT no puede estar vacía! - - - ¡La clave secreta JWT es demasiado corta! - - - ¡El código de idioma no puede estar vacío! - - - ¡El código de idioma debe tener 2 caracteres! - - - ¡El nombre del idioma no puede estar vacío! - - - ¡El nombre del idioma debe tener máximo 50 caracteres! - - - ¡El nombre nativo del idioma debe tener máximo 50 caracteres! - - - ¡La biblioteca ya existe! - - - ¡El ID de la biblioteca no puede estar vacío! - - - ¡Biblioteca no encontrada! - - - ¡El ID de LibraryThing debe tener máximo 50 caracteres! - - - ¡El tipo de biblioteca no puede ser nulo! - - - ¡El directorio raíz de medios no puede estar vacío! - - - ¡Los metadatos no pueden ser nulos! - - - ¡El nombre no puede estar vacío! - - - ¡La nueva contraseña no puede estar vacía! - - - ¡La confirmación de la nueva contraseña no puede estar vacía! - - - ¡No estás autorizado para ver este recurso! - - - ¡No está autorizado para realizar esta operación! - - - ¡El recurso especificado no fue encontrado! - - - ¡Sin miniatura! - - - Se produjeron uno o más errores de validación - - - ¡La fecha y el año de lanzamiento original deben coincidir! - - - ¡El año de lanzamiento original debe estar entre 1 y 9999! - - - ¡El título original debe tener máximo 255 caracteres! - - - ¡El número de páginas debe ser mayor que cero! - - - ¡El nodo padre no puede ser nulo! - - - ¡La contraseña no puede estar vacía! - - - ¡La confirmación de contraseña no puede estar vacía! - - - ¡El restablecimiento de contraseña ya ha sido solicitado! - - - ¡Las contraseñas no coinciden! - - - ¡La ruta no puede estar vacía! - - - ¡La ruta no debe exceder los 260 caracteres! - - - ¡La lista de rutas no puede estar vacía! - - - ¡La lista de rutas no puede ser nula! - - - ¡La lista de permisos no puede estar vacía! - - - ¡La lista de permisos no puede ser nula! - - - ¡El nombre de la editorial debe tener máximo 100 caracteres! - - - ¡El valor máximo de la calificación debe ser positivo! - - - ¡La lista de calificaciones no puede ser nula! - - - ¡El valor de la calificación no puede ser mayor que el valor máximo! - - - ¡El valor de la calificación debe ser positivo! - - - ¡El número de votos de calificación debe ser positivo! - - - ¡La información de lanzamiento no puede ser nula! - - - ¡La versión de lanzamiento debe tener máximo 50 caracteres! - - - ¡La fecha y el año de relanzamiento deben coincidir! - - - ¡La fecha de relanzamiento no puede ser anterior a la fecha de lanzamiento original! - - - ¡El año de relanzamiento no puede ser anterior al año de lanzamiento original! - - - ¡El año de relanzamiento debe estar entre 1 y 9999! - - - ¡El rol ya existe! - - - ¡La categoría del rol no puede estar vacía! - - - ¡La categoría del rol debe tener máximo 50 caracteres! - - - ¡El ID del rol no puede estar vacío! - - - ¡El nombre del rol no puede estar vacío! - - - ¡El nombre del rol debe tener máximo 50 caracteres! - - - Rol no encontrado - - - ¡El ID del flujo no puede estar vacío! - - - ¡El nombre de la etiqueta no puede estar vacío! - - - ¡El nombre de la etiqueta debe tener máximo 50 caracteres! - - - ¡La lista de etiquetas no puede ser nula! - - - ¡La contraseña temporal ha expirado! - - - ¡El libro ya está en la serie! - - - ¡El libro no está en la serie! - - - ¡El título no puede estar vacío! - - - ¡El título debe tener máximo 255 caracteres! - - - ¡Demasiadas solicitudes! ¡Por favor, inténtelo en 15 minutos! - - - ¡El código TOTP no puede estar vacío! - - - ¡No está autorizado para acceder a este recurso! - - - ¡Formato de libro desconocido! - - - ¡Formato ISBN desconocido! - - - ¡Tipo de biblioteca desconocido! - - - ¡El usuario ya existe! - - - ¡El usuario no existe! - - - ¡El ID de usuario no puede estar vacío! - - - ¡El usuario debe tener permisos de rol o permisos directos! - - - ¡El nombre de usuario ya existe! - - - ¡El nombre de usuario no puede estar vacío! - - - ¡El nombre de usuario no existe! - - - ¡El nombre de usuario debe tener entre 3 y 255 caracteres! - - - ¡El número de volumen debe ser mayor que cero! - - - ¡El archivo de portada debe ser una imagen! - - - ¡No se puede escanear una biblioteca desactivada! - - - ¡No se puede escanear una biblioteca bloqueada! - - - ¡Solo se pueden iniciar escaneos pendientes! - - - ¡Solo se pueden cancelar los escaneos en ejecución! - - - ¡El ID de escaneo no puede estar vacío! - - - ¡La biblioteca ya está siendo escaneada! - - - ¡El número total de elementos a escanear debe ser positivo! - - - ¡El número de elementos escaneados completados debe ser positivo! - - - ¡El número de elementos escaneados completados no puede exceder el número total de elementos a escanear! - - - ¡La operación actual del escaneo no puede estar vacía! - - - ¡El ID de escaneo de la biblioteca no puede estar vacío! - - - ¡El número total de trabajos de escaneo debe ser positivo! - - - ¡El número de trabajos de escaneo completados debe ser positivo! - - - ¡El número de trabajos de escaneo completados no puede exceder el número total de trabajos de escaneo! - - - ¡Las origines CORS no pueden estar vacías! - - - ¡Origen CORS no válido! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx deleted file mode 100644 index b100f70c..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Le compte administrateur existe déjà! - - - Le rôle d'administrateur ne peut pas être supprimé ! - - - Le thème de l'application ne peut pas être vide! - - - L'ASIN doit faire 10 caractères ! - - - L'identifiant Barnes&Noble doit faire 10 caractères ! - - - Le débit doit être un nombre positif ! - - - Le livre existe déjà ! - - - Impossible de remonter le dossier ! - - - Impossible de supprimer le dernier rôle Admin attribué à l'utilisateur! - - - Le codec ne peut pas être vide ! - - - Le nom d'affichage du contributeur ne peut pas être vide ! - - - Le nom d'affichage du contributeur ne doit pas dépasser 100 caractères ! - - - Le nom légal du contributeur ne doit pas dépasser 100 caractères ! - - - Le nom du contributeur ne peut pas être vide ! - - - Le rôle du contributeur ne peut pas être nul ! - - - La liste des contributeurs ne peut pas être nulle ! - - - Le code pays doit faire 2 caractères ! - - - Le mot de passe actuel ne peut pas être vide! - - - La chaîne de connexion à la base de données ne peut pas être vide! - - - La description ne doit pas dépasser 2000 caractères ! - - - Le répertoire existe déjà ! - - - Erreur lors de la copie du répertoire! - - - Erreur lors du déplacement du répertoire! - - - Répertoire introuvable ! - - - L'édition ne doit pas dépasser 50 caractères ! - - - La clé secrète de chiffrement ne peut pas être vide! - - - La clé secrète de chiffrement doit être une chaîne Base64! - - - Erreur lors de la persistance du rôle d'autorisation ! - - - Erreur lors de l'enregistrement de la bibliothèque multimédia! - - - L'extension ne peut pas être vide ! - - - Le fichier existe déjà ! - - - Erreur lors de la copie du fichier! - - - Erreur lors du déplacement du fichier! - - - Fichier introuvable! - - - Validation - - - Le nom du genre ne peut pas être vide ! - - - Le nom du genre ne doit pas dépasser 50 caractères ! - - - La liste des genres ne peut pas être nulle ! - - - L'identifiant Goodreads doit être numérique ! - - - L'identifiant Google Books doit faire 12 caractères ! - - - La qualité de l'image doit être comprise entre 0 et 100 ! - - - Format d'identifiant Apple Books invalide ! - - - Format d'identifiant Barnes&Noble invalide ! - - - Mot de passe actuel invalide! - - - Format d'identifiant Google Books invalide ! - - - Format ISBN10 invalide ! - - - Format ISBN13 invalide ! - - - Code ISO invalide ! - - - Format LCCN invalide ! - - - Format OCLC invalide ! - - - Identifiant OpenLibrary invalide ! - - - Mot de passe invalide! - - - Chemin invalide ! - - - Code TOTP invalide! - - - Nom d'utilisateur invalide! - - - Nom d'utilisateur ou mot de passe invalide! - - - La liste des ISBN ne peut pas être nulle ! - - - La valeur ISBN ne peut pas être vide ! - - - L'audience JWT ne peut pas être vide! - - - La durée d'expiration JWT en minutes doit être positive! - - - L'émetteur JWT ne peut pas être vide! - - - La clé secrète JWT ne peut pas être vide! - - - La clé secrète JWT est trop courte! - - - Le code de langue ne peut pas être vide ! - - - Le code de langue doit faire 2 caractères ! - - - Le nom de la langue ne peut pas être vide ! - - - Le nom de la langue ne doit pas dépasser 50 caractères ! - - - Le nom natif de la langue ne doit pas dépasser 50 caractères ! - - - La bibliothèque existe déjà ! - - - L'identifiant de la bibliothèque ne peut pas être vide ! - - - Bibliothèque introuvable ! - - - L'identifiant LibraryThing ne doit pas dépasser 50 caractères ! - - - Le type de bibliothèque ne peut pas être nul ! - - - Le répertoire racine des médias ne peut pas être vide! - - - Les métadonnées ne peuvent pas être nulles ! - - - Le nom ne peut pas être vide ! - - - Le nouveau mot de passe ne peut pas être vide! - - - La confirmation du nouveau mot de passe ne peut pas être vide! - - - Vous n'êtes pas autorisé à voir cette ressource ! - - - Vous n'êtes pas autorisé à effectuer cette opération! - - - La ressource spécifiée n'a pas été trouvée ! - - - Pas de vignette ! - - - Une ou plusieurs erreurs de validation sont survenues - - - La date et l'année de sortie originale doivent correspondre ! - - - L'année de sortie originale doit être comprise entre 1 et 9999 ! - - - Le titre original ne doit pas dépasser 255 caractères ! - - - Le nombre de pages doit être supérieur à zéro ! - - - Le nœud parent ne peut pas être nul! - - - Le mot de passe ne peut pas être vide! - - - La confirmation du mot de passe ne peut pas être vide! - - - La réinitialisation du mot de passe a déjà été demandée! - - - Les mots de passe ne correspondent pas! - - - Le chemin ne peut pas être vide ! - - - Le chemin ne doit pas dépasser 260 caractères! - - - La liste des chemins ne peut pas être vide ! - - - La liste des chemins ne peut pas être nulle ! - - - La liste des permissions ne peut pas être vide ! - - - La liste des permissions ne peut pas être nulle ! - - - Le nom de l'éditeur ne doit pas dépasser 100 caractères ! - - - La valeur maximale de l'évaluation doit être positive ! - - - La liste des évaluations ne peut pas être nulle ! - - - La valeur de l'évaluation ne peut pas être supérieure à la valeur maximale ! - - - La valeur de l'évaluation doit être positive ! - - - Le nombre de votes d'évaluation doit être positif ! - - - Les informations de sortie ne peuvent pas être nulles ! - - - La version de sortie ne doit pas dépasser 50 caractères ! - - - La date et l'année de réédition doivent correspondre ! - - - La date de réédition ne peut pas être antérieure à la date de sortie originale ! - - - L'année de réédition ne peut pas être antérieure à l'année de sortie originale ! - - - L'année de réédition doit être comprise entre 1 et 9999 ! - - - Le rôle existe déjà ! - - - La catégorie du rôle ne peut pas être vide ! - - - La catégorie du rôle ne doit pas dépasser 50 caractères ! - - - L'ID du rôle ne peut pas être vide ! - - - Le nom du rôle ne peut pas être vide ! - - - Le nom du rôle ne doit pas dépasser 50 caractères ! - - - Rôle non trouvé - - - L'identifiant du flux ne peut pas être vide ! - - - Le nom de l'étiquette ne peut pas être vide ! - - - Le nom de l'étiquette ne doit pas dépasser 50 caractères ! - - - La liste des étiquettes ne peut pas être nulle ! - - - Le mot de passe temporaire a expiré! - - - Le livre est déjà dans la série ! - - - Le livre n'est pas dans la série ! - - - Le titre ne peut pas être vide ! - - - Le titre ne doit pas dépasser 255 caractères ! - - - Trop de requêtes ! Veuillez réessayer dans 15 minutes ! - - - Le code TOTP ne peut pas être vide! - - - Vous n'êtes pas autorisé à accéder à cette ressource ! - - - Format de livre inconnu ! - - - Format ISBN inconnu ! - - - Type de bibliothèque inconnu ! - - - L'utilisateur existe déjà ! - - - L'utilisateur n'existe pas ! - - - L'identifiant utilisateur ne peut pas être vide ! - - - L'utilisateur doit avoir des permissions de rôle ou des permissions directes! - - - Le nom d'utilisateur existe déjà! - - - Le nom d'utilisateur ne peut pas être vide! - - - Le nom d'utilisateur n'existe pas! - - - Le nom d'utilisateur doit contenir entre 3 et 255 caractères! - - - Le numéro de volume doit être supérieur à zéro ! - - - Le fichier de couverture doit être une image! - - - Impossible de scanner une bibliothèque désactivée! - - - Impossible de scanner une bibliothèque verrouillée! - - - Seuls les scans en attente peuvent être démarrés ! - - - Seuls les scans en cours peuvent être annulés ! - - - L'ID de scan ne peut pas être vide ! - - - La bibliothèque est déjà en cours de scan ! - - - Le nombre total d'éléments à scanner doit être positif ! - - - Le nombre d'éléments scannés terminés doit être positif ! - - - Le nombre d'éléments scannés terminés ne peut pas dépasser le nombre total d'éléments à scanner ! - - - L'opération actuelle du scan ne peut pas être vide ! - - - L'ID de scan de la bibliothèque ne peut pas être vide! - - - Le nombre total de tâches de scan doit être positif ! - - - Le nombre de tâches de scan terminées doit être positif ! - - - Le nombre de tâches de scan terminées ne peut pas dépasser le nombre total de tâches de scan ! - - - Les origines CORS ne peuvent pas être vides ! - - - Origine CORS invalide ! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx deleted file mode 100644 index 16584872..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - L'account amministratore è già stato creato! - - - Il ruolo di amministratore non può essere eliminato! - - - Il tema dell'applicazione non può essere vuoto! - - - L'ASIN deve essere lungo 10 caratteri! - - - L'ID Barnes&Noble deve essere lungo 10 caratteri! - - - Il bitrate deve essere un numero positivo! - - - Il libro esiste già! - - - Impossibile navigare verso l'alto! - - - Impossibile rimuovere l'ultimo ruolo Admin assegnato all'utente! - - - Il codec non può essere vuoto! - - - Il nome visualizzato del contributore non può essere vuoto! - - - Il nome visualizzato del contributore deve essere lungo al massimo 100 caratteri! - - - Il nome legale del contributore deve essere lungo al massimo 100 caratteri! - - - Il nome del contributore non può essere vuoto! - - - Il ruolo del contributore non può essere nullo! - - - La lista dei contributori non può essere nulla! - - - Il codice paese deve essere lungo 2 caratteri! - - - La password attuale non può essere vuota! - - - La stringa di connessione al database non può essere vuota! - - - La descrizione deve essere lunga al massimo 2000 caratteri! - - - La cartella esiste già! - - - Errore durante la copia della cartella! - - - Errore durante lo spostamento della cartella! - - - Cartella non trovata! - - - L'edizione deve essere lunga al massimo 50 caratteri! - - - La chiave segreta di crittografia non può essere vuota! - - - La chiave segreta di crittografia deve essere una stringa Base64! - - - Errore nel salvare il ruolo di autorizzazione! - - - Errore durante il salvataggio della libreria multimediale! - - - L'estensione non può essere vuota! - - - Il file esiste già! - - - Errore durante la copia del file! - - - Errore durante lo spostamento del file! - - - File non trovato! - - - Convalida - - - Il nome del genere non può essere vuoto! - - - Il nome del genere deve essere lungo al massimo 50 caratteri! - - - La lista dei generi non può essere nulla! - - - L'ID Goodreads deve essere numerico! - - - L'ID di Google Books deve essere lungo 12 caratteri! - - - La qualità dell'immagine deve essere compresa tra 0 e 100! - - - Formato ID Apple Books non valido! - - - Formato ID Barnes&Noble non valido! - - - Password attuale non valida! - - - Formato ID Google Books non valido! - - - Formato ISBN10 non valido! - - - Formato ISBN13 non valido! - - - Codice ISO non valido! - - - Formato LCCN non valido! - - - Formato OCLC non valido! - - - ID OpenLibrary non valido! - - - Password non valida! - - - Percorso non valido! - - - Codice TOTP non valido! - - - Nome utente non valido! - - - Nome utente o password non validi! - - - La lista ISBN non può essere nulla! - - - Il valore ISBN non può essere vuoto! - - - Il destinatario JWT non può essere vuoto! - - - I minuti di scadenza JWT devono essere positivi! - - - L'emittente JWT non può essere vuoto! - - - La chiave segreta JWT non può essere vuota! - - - La chiave segreta JWT è troppo corta! - - - Il codice della lingua non può essere vuoto! - - - Il codice della lingua deve essere lungo 2 caratteri! - - - Il nome della lingua non può essere vuoto! - - - Il nome della lingua deve essere lungo al massimo 50 caratteri! - - - Il nome nativo della lingua deve essere lungo al massimo 50 caratteri! - - - La libreria esiste già! - - - L'ID della libreria non può essere vuoto! - - - Libreria non trovata! - - - L'ID LibraryThing deve essere lungo al massimo 50 caratteri! - - - Il tipo di libreria non può essere nullo! - - - La directory principale dei media non può essere vuota! - - - I metadati non possono essere nulli! - - - Il nome non può essere vuoto! - - - La nuova password non può essere vuota! - - - La conferma della nuova password non può essere vuota! - - - Non sei autorizzato a visualizzare questa risorsa! - - - Non sei autorizzato a eseguire questa operazione! - - - La risorsa specificata non è stata trovata! - - - Nessuna miniatura! - - - Si sono verificati uno o più errori di convalida - - - La data e l'anno di uscita originale devono corrispondere! - - - L'anno di uscita originale deve essere compreso tra 1 e 9999! - - - Il titolo originale deve essere lungo al massimo 255 caratteri! - - - Il numero di pagine deve essere maggiore di zero! - - - Il nodo padre non può essere nullo! - - - La password non può essere vuota! - - - La conferma della password non può essere vuota! - - - Il ripristino della password è già stato richiesto! - - - Le password non coincidono! - - - Il percorso non può essere vuoto! - - - Il percorso non deve superare i 260 caratteri! - - - La lista dei percorsi non può essere vuota! - - - La lista dei percorsi non può essere nulla! - - - L'elenco dei permessi non può essere vuoto! - - - L'elenco dei permessi non può essere nullo! - - - Il nome dell'editore deve essere lungo al massimo 100 caratteri! - - - Il valore massimo della valutazione deve essere positivo! - - - La lista delle valutazioni non può essere nulla! - - - Il valore della valutazione non può essere superiore al valore massimo! - - - Il valore della valutazione deve essere positivo! - - - Il numero di voti della valutazione deve essere positivo! - - - Le informazioni di rilascio non possono essere nulle! - - - La versione di rilascio deve essere lunga al massimo 50 caratteri! - - - La data e l'anno di ripubblicazione devono corrispondere! - - - La data di ripubblicazione non può essere precedente alla data di uscita originale! - - - L'anno di ripubblicazione non può essere precedente all'anno di uscita originale! - - - L'anno di ripubblicazione deve essere compreso tra 1 e 9999! - - - Il ruolo esiste già! - - - La categoria del ruolo non può essere vuota! - - - La categoria del ruolo deve essere lunga al massimo 50 caratteri! - - - L'ID del ruolo non può essere vuoto! - - - Il nome del ruolo non può essere vuoto! - - - Il nome del ruolo deve essere lungo al massimo 50 caratteri! - - - Ruolo non trovato - - - L'ID del flusso non può essere vuoto! - - - Il nome del tag non può essere vuoto! - - - Il nome del tag deve essere lungo al massimo 50 caratteri! - - - La lista dei tag non può essere nulla! - - - La password temporanea è scaduta! - - - Il libro è già presente nella serie! - - - Il libro non è presente nella serie! - - - Il titolo non può essere vuoto! - - - Il titolo deve essere lungo al massimo 255 caratteri! - - - Troppe richieste! Si prega di riprovare tra 15 minuti! - - - Il codice TOTP non può essere vuoto! - - - Non sei autorizzato ad accedere a questa risorsa! - - - Formato libro sconosciuto! - - - Formato ISBN sconosciuto! - - - Tipo di libreria sconosciuto! - - - L'utente esiste già! - - - L'utente non esiste! - - - L'ID utente non può essere vuoto! - - - L'utente deve avere permessi da ruolo o permessi diretti! - - - Il nome utente esiste già! - - - Il nome utente non può essere vuoto! - - - Il nome utente non esiste! - - - Il nome utente deve essere compreso tra 3 e 255 caratteri! - - - Il numero del volume deve essere maggiore di zero! - - - Il file di copertina deve essere un'immagine! - - - Impossibile scansionare una libreria disabilitata! - - - Impossibile scansionare una libreria bloccata! - - - È possibile avviare solo le scansioni in sospeso! - - - È possibile annullare solo le scansioni in esecuzione! - - - L'ID della scansione non può essere vuoto! - - - La libreria è già in fase di scansione! - - - Il numero totale degli elementi da scansionare deve essere positivo! - - - Il numero di elementi scansionati completati deve essere positivo! - - - Il numero di elementi scansionati completati non può superare il numero totale di elementi da scansionare! - - - L'operazione corrente della scansione non può essere vuota! - - - L'ID della scansione della libreria non può essere vuoto! - - - Il numero totale dei lavori di scansione deve essere positivo! - - - Il numero dei lavori di scansione completati deve essere positivo! - - - Il numero dei lavori di scansione completati non può superare il numero totale dei lavori di scansione! - - - Le origini CORS non possono essere vuote! - - - Origine CORS non valida! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx deleted file mode 100644 index 5f1e06e0..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 管理者アカウントは既に作成されています! - - - 管理者ロールは削除できません! - - - アプリケーションのテーマを選択してください! - - - ASINは10文字でなければなりません! - - - Barnes&NobleのIDは10文字でなければなりません! - - - ビットレートは正の数でなければなりません! - - - 本はすでに存在します! - - - 上の階層に移動できません! - - - 最後の管理者権限を削除できません! - - - コーデックを空にすることはできません! - - - 出演者の表示名を空にすることはできません! - - - 出演者の表示名は最大100文字までです! - - - 出演者の本名は最大100文字までです! - - - 出演者名を空にすることはできません! - - - 出演者の役割をnullにすることはできません! - - - 出演者リストをnullにすることはできません! - - - 国コードは2文字でなければなりません! - - - 現在のパスワードを入力してください! - - - データベース接続文字列を入力してください! - - - 説明文は最大2000文字までです! - - - ディレクトリはすでに存在します! - - - ディレクトリのコピーに失敗しました! - - - ディレクトリの移動に失敗しました! - - - ディレクトリが見つかりません! - - - 版の名称は最大50文字までです! - - - 暗号化シークレットキーを入力してください! - - - 暗号化シークレットキーはBase64形式の文字列である必要があります! - - - 認可ロールの保存中にエラーが発生しました! - - - メディアライブラリの保存に失敗しました! - - - ファイルの拡張子を空にすることはできません! - - - ファイルはすでに存在します! - - - ファイルのコピーに失敗しました! - - - ファイルの移動に失敗しました! - - - ファイルが見つかりません! - - - 検証 - - - ジャンル名を空にすることはできません! - - - ジャンル名は最大50文字までです! - - - ジャンルリストをnullにすることはできません! - - - GoodreadsのIDは数値でなければなりません! - - - Google BooksのIDは12文字でなければなりません! - - - 画質は0から100の間でなければなりません! - - - Apple BooksのID形式が無効です! - - - Barnes&NobleのID形式が無効です! - - - 現在のパスワードが無効です! - - - Google BooksのID形式が無効です! - - - 無効なISBN10形式です! - - - 無効なISBN13形式です! - - - 無効なISOコードです! - - - 無効なLCCN形式です! - - - 無効なOCLC形式です! - - - OpenLibraryのIDが無効です! - - - パスワードが無効です! - - - 無効なパスです! - - - TOTPコードが無効です! - - - ユーザー名が無効です! - - - ユーザー名またはパスワードが無効です! - - - ISBNリストをnullにすることはできません! - - - ISBN値を空にすることはできません! - - - JWT対象者を入力してください! - - - JWT有効期限(分)は正の値である必要があります! - - - JWT発行者を入力してください! - - - JWT秘密鍵を入力してください! - - - JWT秘密鍵が短すぎます! - - - 言語コードを空にすることはできません! - - - 言語コードは2文字でなければなりません! - - - 言語名を空にすることはできません! - - - 言語名は最大50文字までです! - - - 言語の固有名は最大50文字までです! - - - ライブラリはすでに存在します! - - - ライブラリIDを空にすることはできません! - - - ライブラリが見つかりません! - - - LibraryThingのIDは最大50文字までです! - - - ライブラリタイプをnullにすることはできません! - - - メディアのルートディレクトリを入力してください! - - - メタデータをnullにすることはできません! - - - 名前を空にすることはできません! - - - 新しいパスワードを入力してください! - - - 新しいパスワードの確認を入力してください! - - - このリソースを表示する権限がありません! - - - この操作を実行する権限がありません! - - - 指定されたリソースが見つかりませんでした! - - - サムネイルがありません! - - - 一つ以上の検証エラーが発生しました - - - 公開日と公開年が一致しなければなりません! - - - 公開年は1から9999の間でなければなりません! - - - 原題は最大255文字までです! - - - ページ数は0より大きくなければなりません! - - - 親ノードをnullにすることはできません! - - - パスワードを入力してください! - - - パスワード確認を入力してください! - - - パスワードリセットは既に申請済みです! - - - パスワードが一致しません! - - - パスを空にすることはできません! - - - パスは最大260文字までです! - - - パスリストを空にすることはできません! - - - パスリストをnullにすることはできません! - - - 権限リストは空にできません! - - - 権限リストはnullにできません! - - - 出版社名は最大100文字までです! - - - 評価の最大値は正の数でなければなりません! - - - 評価リストをnullにすることはできません! - - - 評価値は最大値を超えることはできません! - - - 評価値は正の数でなければなりません! - - - 評価の投票数は正の数でなければなりません! - - - リリース情報をnullにすることはできません! - - - リリースバージョンは最大50文字までです! - - - 再公開日と再公開年が一致しなければなりません! - - - 再公開日は公開日より前であってはなりません! - - - 再公開年は公開年より前であってはなりません! - - - 再公開年は1から9999の間でなければなりません! - - - ロールはすでに存在します! - - - 役割カテゴリを空にすることはできません! - - - 役割カテゴリは最大50文字までです! - - - ロールIDは空にできません! - - - 役割名を空にすることはできません! - - - 役割名は最大50文字までです! - - - ロールが見つかりません - - - ストリームIDを空にすることはできません! - - - タグ名を空にすることはできません! - - - タグ名は最大50文字までです! - - - タグリストをnullにすることはできません! - - - 仮パスワードの有効期限が切れました! - - - この本はすでにシリーズに含まれています! - - - この本はシリーズに含まれていません! - - - タイトルを空にすることはできません! - - - タイトルは最大255文字までです! - - - リクエストが多すぎます!15分後にもう一度お試しください! - - - TOTPコードを入力してください! - - - このリソースにアクセスする権限がありません! - - - 不明な書籍フォーマットです! - - - 不明なISBN形式です! - - - ライブラリタイプが不明です! - - - ユーザーはすでに存在します! - - - ユーザーが存在しません! - - - ユーザーIDを空にすることはできません! - - - ユーザーにはロール権限か直接権限のいずれかが必要です! - - - このユーザー名は既に使用されています! - - - ユーザー名を入力してください! - - - このユーザー名は存在しません! - - - ユーザー名は3文字から255文字の間で入力してください! - - - 巻数は0より大きくなければなりません! - - - カバーファイルは画像である必要があります! - - - 無効化されたライブラリはスキャンできません! - - - ロックされたライブラリはスキャンできません! - - - 保留中のスキャンのみ開始できます! - - - 実行中のスキャンのみキャンセル可能です! - - - スキャンIDを空にすることはできません! - - - ライブラリは既にスキャン中です! - - - スキャン項目の合計数は正の値でなければなりません! - - - 完了したスキャン項目数は正の値でなければなりません! - - - 完了したスキャン項目数は合計スキャン項目数を超えることはできません! - - - スキャンの現在の操作を空にすることはできません! - - - ライブラリスキャンIDを空にすることはできません! - - - スキャンジョブの合計数は正の値でなければなりません! - - - 完了したスキャンジョブ数は正の値でなければなりません! - - - 完了したスキャンジョブ数は合計スキャンジョブ数を超えることはできません! - - - CORSオリジンは空ではいけません! - - - CORSオリジンが無効です! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx deleted file mode 100644 index 1c28604f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Admin account already created! - - - Admin role cannot be deleted! - - - Application theme cannot be empty! - - - ASIN must be 10 characters long! - - - Barnes&Nobles Id must be 10 characters long! - - - Bitrate must be a positive number! - - - Book already exists! - - - Cannot navigate up! - - - Cannot remove the last Admin role assigned to a user! - - - Codec cannot be empty! - - - Contributor display name cannot be empty! - - - Contributor display name must be maximum 100 characters long! - - - Contributor legal name must be maximum 100 characters long! - - - Contributor name cannot be empty! - - - Contributor role cannot be null! - - - Contributors list cannot be null! - - - Country code must be 2 characters long! - - - Current password cannot be empty! - - - Database connection string cannot be empty! - - - Description must be maximum 2000 characters long! - - - Directory already exists! - - - Error copying the directory! - - - Error moving the directory! - - - Directory not found! - - - Edition must be maximum 50 characters long! - - - Encryption secret key cannot be empty! - - - Encryption secret key must be a Base64 string! - - - Error persisting authorization role! - - - Error persisting media library! - - - Extension cannot be empty! - - - File already exists! - - - Error copying the file! - - - Error moving the file! - - - File not found! - - - Validation - - - Genre name cannot be empty! - - - Genre name must be maximum 50 characters long! - - - Genres list cannot be null! - - - Goodreads Id must be numeric! - - - Google Books Id must be 12 characters long! - - - Image quality must be between 0 and 100! - - - Invalid AppleBooks Id format! - - - Invalid Barnes&Nobles Id format! - - - Invalid current password! - - - Invalid Google Books Id format! - - - Invalid ISBN10 format! - - - Invalid ISBN13 format! - - - Invalid ISO code! - - - Invalid LCCN format! - - - Invalid OCLC format! - - - Invalid OpenLibrary Id! - - - Invalid password! - - - Invalid path! - - - Invalid TOTP code! - - - Invalid username! - - - Invalid username or password! - - - ISBN list cannot be null! - - - ISBN value cannot be empty! - - - JWT audience cannot be empty! - - - JWT expiry minutes must be positive! - - - JWT issuer cannot be empty! - - - JWT secret key cannot be empty! - - - JWT secret key too short! - - - Language code cannot be empty! - - - Language code must be 2 characters long! - - - Language name cannot be empty! - - - Language name must be maximum 50 characters long! - - - Language native name must be maximum 50 characters long! - - - Library already exists! - - - Library Id cannot be empty! - - - Library not found! - - - LibraryThing Id must be maximum 50 characters long! - - - Library type cannot be null! - - - Media root directory cannot be empty! - - - Metadata cannot be null! - - - Name cannot be empty! - - - New password cannot be empty! - - - New password confirm cannot be empty! - - - You are not authorized to view this resource! - - - You are not authorized to perform this operation! - - - Specified resource was not found! - - - No thumbnail! - - - One or more validation errors occurred - - - Original release date and year must match! - - - Original release year must be between 1 and 9999! - - - Original title must be maximum 255 characters long! - - - Page count must be greater than zero! - - - Parent node cannot be null! - - - Password cannot be empty! - - - Password confirm cannot be empty! - - - Password reset already requested! - - - Passwords do not match! - - - Path cannot be empty! - - - Path must be maximum 260 characters long! - - - Paths list cannot be empty! - - - Paths list cannot be null! - - - Permissions list cannot be empty! - - - Permissions list cannot be null! - - - Publisher must be maximum 100 characters long! - - - Rating maximum value must be positive! - - - Ratings list cannot be null! - - - Rating value cannot be greater than maximum value! - - - Rating value must be positive! - - - Rating vote count must be positive! - - - Release info cannot be null! - - - Release version must be maximum 50 characters long! - - - Re-release date and year must match! - - - Re-release date cannot be earlier than original release date! - - - Re-release year cannot be earlier than original release year! - - - Re-release year must be between 1 and 9999! - - - Role already exists! - - - Role category cannot be empty! - - - Role category must be maximum 50 characters long! - - - Role Id cannot be empty! - - - Role name cannot be empty! - - - Role name must be maximum 50 characters long! - - - Role not found - - - Stream Id cannot be empty! - - - Tag name cannot be empty! - - - Tag name must be maximum 50 characters long! - - - Tags list cannot be null! - - - Temporary password has expired! - - - The book is already in the series! - - - The book is not in the series! - - - Title cannot be empty! - - - Title must be maximum 255 characters long! - - - Too many requests! Please try again in 15 minutes! - - - The TOTP code cannot be empty! - - - You are not authorized to access this resource! - - - Unknown book format! - - - Unknown ISBN format! - - - Unknown library type! - - - User already exists! - - - User does not exist! - - - User Id cannot be empty! - - - User must have permissions either from role permissions or direct user permissions - - - Username already exists! - - - Username cannot be empty! - - - Username does not exist! - - - Username must be between 3 and 255 characters long! - - - Volume number must be greater than zero! - - - Cover file must be an image! - - - Cannot scan a disabled library! - - - Cannot scan a locked library! - - - Can only start pending scans! - - - Can only cancel running scans! - - - Scan Id cannot be empty! - - - Library is already being scanned! - - - Total scan job items count must be positive! - - - Completed scan job items count must be positive! - - - Completed scan job items count can't exceed total scan job items count! - - - Scan job current operation cannot be empty! - - - Library scan Id cannot be empty! - - - Total scan jobs count must be positive! - - - Completed scan jobs count must be positive! - - - Completed scan jobs count can't exceed total scan jobs count! - - - CORS origins cannot be empty! - - - CORS origin is invalid! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx deleted file mode 100644 index c526acfc..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Contul de administrator a fost deja creat! - - - Rolul de administrator nu poate fi șters! - - - Tema aplicației nu poate fi goală! - - - ASIN trebuie să aibă 10 caractere! - - - ID-ul Barnes&Noble trebuie să aibă 10 caractere! - - - Rata de biți trebuie să fie un număr pozitiv! - - - Cartea există deja! - - - Nu se poate naviga în sus! - - - Nu se poate elimina ultimul rol de Admin atribuit unui utilizator! - - - Codecul nu poate fi gol! - - - Numele de afișare al contributorului nu poate fi gol! - - - Numele de afișare al contributorului trebuie să aibă maximum 100 caractere! - - - Numele legal al contributorului trebuie să aibă maximum 100 caractere! - - - Numele contributorului nu poate fi gol! - - - Rolul contributorului nu poate fi nul! - - - Lista contributorilor nu poate fi nulă! - - - Codul țării trebuie să aibă 2 caractere! - - - Parola curentă nu poate fi goală! - - - Șirul de conexiune la bază de date nu poate fi gol! - - - Descrierea trebuie să aibă maximum 2000 caractere! - - - Directorul există deja! - - - Eroare la copierea dosarului! - - - Eroare la mutarea directorului! - - - Dosarul nu a fost găsit! - - - Ediția trebuie să aibă maximum 50 caractere! - - - Cheia secretă de criptare nu poate fi goală! - - - Cheia secretă de criptare trebuie să fie un șir Base64! - - - Eroare la salvarea rolului de autorizare! - - - Eroare la salvarea bibliotecii media! - - - Extensia nu poate fi goală! - - - Fișierul există deja! - - - Eroare la copierea fișierului! - - - Eroare la mutarea fișierului! - - - Fișierul nu a fost găsit! - - - Validare - - - Numele genului nu poate fi gol! - - - Numele genului trebuie să aibă maximum 50 caractere! - - - Lista genurilor nu poate fi nulă! - - - ID-ul Goodreads trebuie să fie numeric! - - - ID-ul Google Books trebuie să aibă 12 caractere! - - - Calitatea imaginii trebuie să fie între 0 și 100! - - - Format invalid pentru ID-ul Apple Books! - - - Format invalid pentru ID-ul Barnes&Noble! - - - Parola curentă invalidă! - - - Format invalid pentru ID-ul Google Books! - - - Format ISBN10 invalid! - - - Format ISBN13 invalid! - - - Cod ISO invalid! - - - Format LCCN invalid! - - - Format OCLC invalid! - - - ID OpenLibrary invalid! - - - Parolă invalidă! - - - Cale invalidă! - - - Cod TOTP invalid! - - - Nume de utilizator invalid! - - - Nume de utilizator sau parolă invalidă! - - - Lista ISBN nu poate fi nulă! - - - Valoarea ISBN nu poate fi goală! - - - Audiența JWT nu poate fi goală! - - - Minutele de expirare JWT trebuie să fie pozitive! - - - Emitentul JWT nu poate fi gol! - - - Cheia secretă JWT nu poate fi goală! - - - Cheia secretă JWT este prea scurtă! - - - Codul limbii nu poate fi gol! - - - Codul limbii trebuie să aibă 2 caractere! - - - Numele limbii nu poate fi gol! - - - Numele limbii trebuie să aibă maximum 50 caractere! - - - Numele nativ al limbii trebuie să aibă maximum 50 caractere! - - - Biblioteca există deja! - - - ID-ul bibliotecii nu poate fi gol! - - - Biblioteca nu a fost găsită! - - - ID-ul LibraryThing trebuie să aibă maximum 50 caractere! - - - Tipul bibliotecii nu poate fi nul! - - - Dosarul rădăcină media nu poate fi gol! - - - Metadatele nu pot fi nule! - - - Numele nu poate fi gol! - - - Noua parolă nu poate fi goală! - - - Confirmarea noii parole nu poate fi goală! - - - Nu aveți autorizația necesară pentru vizualizarea aceastei resurse! - - - Nu sunteți autorizat să efectuați această operațiune! - - - Resursa specificată nu a fost găsită! - - - Fără pictograma! - - - Au apărut una sau mai multe erori de validare - - - Data și anul lansării originale trebuie să corespundă! - - - Anul lansării originale trebuie să fie între 1 și 9999! - - - Titlul original trebuie să aibă maximum 255 caractere! - - - Numărul de pagini trebuie să fie mai mare decât zero! - - - Nodul părinte nu poate fi nul! - - - Parola nu poate fi goală! - - - Confirmarea parolei nu poate fi goală! - - - Resetarea parolei a fost deja solicitată! - - - Parolele nu se potrivesc! - - - Calea nu poate fi goală! - - - Calea nu trebuie să depășească 260 de caractere! - - - Lista de căi nu poate fi goală! - - - Lista de căi nu poate fi nulă! - - - Lista de permisiuni nu poate fi goală! - - - Lista de permisiuni nu poate fi nulă! - - - Editura trebuie să aibă maximum 100 caractere! - - - Valoarea maximă a evaluării trebuie să fie pozitivă! - - - Lista evaluărilor nu poate fi nulă! - - - Valoarea evaluării nu poate fi mai mare decât valoarea maximă! - - - Valoarea evaluării trebuie să fie pozitivă! - - - Numărul de voturi pentru evaluare trebuie să fie pozitiv! - - - Informațiile despre lansare nu pot fi nule! - - - Versiunea lansării trebuie să aibă maximum 50 caractere! - - - Data și anul relansării trebuie să corespundă! - - - Data relansării nu poate fi anterioară datei lansării originale! - - - Anul relansării nu poate fi anterior anului lansării originale! - - - Anul relansării trebuie să fie între 1 și 9999! - - - Rolul există deja! - - - Categoria rolului nu poate fi goală! - - - Categoria rolului trebuie să aibă maximum 50 caractere! - - - ID-ul rolului nu poate fi gol! - - - Numele rolului nu poate fi gol! - - - Numele rolului trebuie să aibă maximum 50 caractere! - - - Rolul nu a fost găsit - - - ID-ul fluxului nu poate fi gol! - - - Numele etichetei nu poate fi gol! - - - Numele etichetei trebuie să aibă maximum 50 caractere! - - - Lista de etichete nu poate fi nulă! - - - Parola temporară a expirat! - - - Cartea este deja în serie! - - - Cartea nu este în serie! - - - Titlul nu poate fi gol! - - - Titlul trebuie să aibă maximum 255 caractere! - - - Prea multe cereri! Vă rugăm să încercați din nou în 15 minute! - - - Codul TOTP nu poate fi gol! - - - Nu sunteți autorizat să accesați această resursă! - - - Format de carte necunoscut! - - - Format ISBN necunoscut! - - - Tip de bibliotecă necunoscut! - - - Utilizatorul există deja! - - - Utilizatorul nu există! - - - ID-ul utilizatorului nu poate fi gol! - - - Utilizatorul trebuie să aibă permisiuni din rol sau permisiuni directe! - - - Numele de utilizator există deja! - - - Numele de utilizator nu poate fi gol! - - - Numele de utilizator nu există! - - - Numele de utilizator trebuie să aibă între 3 și 255 caractere! - - - Numărul volumului trebuie să fie mai mare decât zero! - - - Fișierul copertă trebuie să fie o imagine! - - - Nu se poate scana o bibliotecă dezactivată! - - - Nu se poate scana o bibliotecă blocată! - - - Se pot porni doar scanări în așteptare! - - - Se pot anula doar scanările în curs! - - - ID-ul de scanare nu poate fi gol! - - - Biblioteca este deja în curs de scanare! - - - Numărul total de elemente de scanat trebuie să fie pozitiv! - - - Numărul de elemente scanate complet trebuie să fie pozitiv! - - - Numărul de elemente scanate complet nu poate depăși numărul total de elemente de scanat! - - - Operația curentă de scanare nu poate fi goală! - - - ID-ul de scanare al bibliotecii nu poate fi gol! - - - Numărul total de job-uri de scanare trebuie să fie pozitiv! - - - Numărul de job-uri de scanare completate trebuie să fie pozitiv! - - - Numărul de job-uri de scanare completate nu poate depăși numărul total de job-uri de scanare! - - - Originile CORS nu pot fi goale! - - - Origine CORS invalidă! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx deleted file mode 100644 index 0b91bfb2..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Учетная запись администратора уже создана! - - - Роль администратора не может быть удалена! - - - Тема приложения не может быть пустой! - - - ASIN должен состоять из 10 символов! - - - Идентификатор Barnes&Noble должен состоять из 10 символов! - - - Битрейт должен быть положительным числом! - - - Книга уже существует! - - - Невозможно перейти на уровень выше! - - - Невозможно удалить последнюю роль администратора, назначенную пользователю! - - - Кодек не может быть пустым! - - - Отображаемое имя участника не может быть пустым! - - - Отображаемое имя участника не должно превышать 100 символов! - - - Официальное имя участника не должно превышать 100 символов! - - - Имя участника не может быть пустым! - - - Роль участника не может быть пустой! - - - Список участников не может быть пустым! - - - Код страны должен состоять из 2 символов! - - - Текущий пароль не может быть пустым! - - - Строка подключения к базе данных не может быть пустой! - - - Описание не должно превышать 2000 символов! - - - Каталог уже существует! - - - Ошибка копирования каталога! - - - Ошибка при перемещении каталога! - - - Каталог не найден! - - - Название издания не должно превышать 50 символов! - - - Секретный ключ шифрования не может быть пустым! - - - Секретный ключ шифрования должен быть строкой в формате Base64! - - - Ошибка при сохранении роли авторизации! - - - Ошибка при сохранении медиатеки! - - - Расширение файла не может быть пустым! - - - Файл уже существует! - - - Ошибка копирования файла! - - - Ошибка при перемещении файла! - - - Файл не найден! - - - Проверка - - - Название жанра не может быть пустым! - - - Название жанра не должно превышать 50 символов! - - - Список жанров не может быть пустым! - - - Идентификатор Goodreads должен быть числовым! - - - Идентификатор Google Books должен состоять из 12 символов! - - - Качество изображения должно быть между 0 и 100! - - - Неверный формат идентификатора Apple Books! - - - Неверный формат идентификатора Barnes&Noble! - - - Неверный текущий пароль! - - - Неверный формат идентификатора Google Books! - - - Неверный формат ISBN10! - - - Неверный формат ISBN13! - - - Недействительный ISO-код! - - - Неверный формат LCCN! - - - Неверный формат OCLC! - - - Недействительный идентификатор OpenLibrary! - - - Неверный пароль! - - - Недопустимый путь! - - - Неверный код TOTP! - - - Неверное имя пользователя! - - - Неверное имя пользователя или пароль! - - - Список ISBN не может быть пустым! - - - Значение ISBN не может быть пустым! - - - Целевая аудитория JWT не может быть пустой! - - - Время истечения JWT в минутах должно быть положительным! - - - Издатель JWT не может быть пустым! - - - Секретный ключ JWT не может быть пустым! - - - Секретный ключ JWT слишком короткий! - - - Код языка не может быть пустым! - - - Код языка должен состоять из 2 символов! - - - Название языка не может быть пустым! - - - Название языка не должно превышать 50 символов! - - - Исходное название языка не должно превышать 50 символов! - - - Библиотека уже существует! - - - Идентификатор библиотеки не может быть пустым! - - - Библиотека не найдена! - - - Идентификатор LibraryThing не должен превышать 50 символов! - - - Тип библиотеки не может быть пустым! - - - Корневая папка медиафайлов не может быть пустой! - - - Метаданные не могут быть пустыми! - - - Имя не может быть пустым! - - - Новый пароль не может быть пустым! - - - Подтверждение нового пароля не может быть пустым! - - - У вас нет прав для просмотра этого ресурса! - - - У вас нет прав для выполнения этой операции! - - - Указанный ресурс не найден! - - - Нет миниатюры! - - - Обнаружена одна или несколько ошибок проверки - - - Дата и год первого выпуска должны совпадать! - - - Год первого выпуска должен быть между 1 и 9999! - - - Оригинальное название не должно превышать 255 символов! - - - Количество страниц должно быть больше нуля! - - - Родительский узел не может быть пустым! - - - Пароль не может быть пустым! - - - Подтверждение пароля не может быть пустым! - - - Сброс пароля уже запрошен! - - - Пароли не совпадают! - - - Путь не может быть пустым! - - - Путь не должен превышать 260 символов! - - - Список путей не может быть пустым! - - - Список путей не может быть пустым! - - - Список разрешений не может быть пустым! - - - Список разрешений не может быть пустым! - - - Название издательства не должно превышать 100 символов! - - - Максимальное значение рейтинга должно быть положительным! - - - Список рейтингов не может быть пустым! - - - Значение рейтинга не может быть больше максимального значения! - - - Значение рейтинга должно быть положительным! - - - Количество голосов рейтинга должно быть положительным! - - - Информация о выпуске не может быть пустой! - - - Версия релиза не должна превышать 50 символов! - - - Дата и год переиздания должны совпадать! - - - Дата переиздания не может быть раньше даты первого выпуска! - - - Год переиздания не может быть раньше года первого выпуска! - - - Год переиздания должен быть между 1 и 9999! - - - Роль уже существует! - - - Категория роли не может быть пустой! - - - Категория роли не должна превышать 50 символов! - - - Идентификатор роли не может быть пустым! - - - Название роли не может быть пустым! - - - Название роли не должно превышать 50 символов! - - - Роль не найдена - - - Идентификатор потока не может быть пустым! - - - Название тега не может быть пустым! - - - Название тега не должно превышать 50 символов! - - - Список тегов не может быть пустым! - - - Временный пароль истек! - - - Книга уже входит в серию! - - - Книга не входит в серию! - - - Название не может быть пустым! - - - Название не должно превышать 255 символов! - - - Слишком много запросов! Пожалуйста, повторите попытку через 15 минут! - - - Код TOTP не может быть пустым! - - - У вас нет прав доступа к этому ресурсу! - - - Неизвестный формат книги! - - - Неизвестный формат ISBN! - - - Неизвестный тип библиотеки! - - - Пользователь уже существует! - - - Пользователь не существует! - - - Идентификатор пользователя не может быть пустым! - - - У пользователя должны быть разрешения роли или прямые разрешения! - - - Имя пользователя уже существует! - - - Имя пользователя не может быть пустым! - - - Имя пользователя не существует! - - - Имя пользователя должно содержать от 3 до 255 символов! - - - Номер тома должен быть больше нуля! - - - Файл обложки должен быть изображением! - - - Невозможно сканировать отключенную библиотеку! - - - Невозможно сканировать заблокированную библиотеку! - - - Можно запускать только ожидающие сканирования! - - - Можно отменить только запущенные сканирования! - - - Идентификатор сканирования не может быть пустым! - - - Библиотека уже сканируется! - - - Общее количество элементов для сканирования должно быть положительным! - - - Количество завершенных отсканированных элементов должно быть положительным! - - - Количество завершенных отсканированных элементов не может превышать общее количество элементов для сканирования! - - - Текущая операция сканирования не может быть пустой! - - - Идентификатор сканирования библиотеки не может быть пустым! - - - Общее количество заданий сканирования должно быть положительным! - - - Количество завершенных заданий сканирования должно быть положительным! - - - Количество завершенных заданий сканирования не может превышать общее количество заданий сканирования! - - - Список CORS-источников не может быть пустым! - - - Недействительный CORS-источник! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx deleted file mode 100644 index bfc9dadc..00000000 --- a/src/Lumina.Presentation.Web/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx +++ /dev/null @@ -1,594 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 管理员账号已创建! - - - 管理员角色无法删除! - - - 应用主题不能为空! - - - ASIN必须是10个字符! - - - Barnes&Noble ID必须是10个字符! - - - 比特率必须是正数! - - - 图书已存在! - - - 无法向上导航! - - - 无法删除用户的最后一个管理员角色! - - - 编解码器不能为空! - - - 参与者显示名称不能为空! - - - 参与者显示名称最多只能有100个字符! - - - 参与者法定姓名最多只能有100个字符! - - - 参与者姓名不能为空! - - - 参与者角色不能为空! - - - 参与者列表不能为空! - - - 国家代码必须是2个字符! - - - 当前密码不能为空! - - - 数据库连接字符串不能为空! - - - 描述最多只能有2000个字符! - - - 目录已存在! - - - 复制目录时出错! - - - 移动目录时出错! - - - 找不到目录! - - - 版本最多只能有50个字符! - - - 加密密钥不能为空! - - - 加密密钥必须是Base64字符串! - - - 持久化授权角色时出错! - - - 保存媒体库时出错! - - - 文件扩展名不能为空! - - - 文件已存在! - - - 复制文件时出错! - - - 移动文件时出错! - - - 找不到文件! - - - 验证 - - - 类型名称不能为空! - - - 类型名称最多只能有50个字符! - - - 类型列表不能为空! - - - Goodreads ID必须是数字! - - - Google Books ID必须是12个字符! - - - 图像质量必须在0到100之间! - - - Apple Books ID格式无效! - - - Barnes&Noble ID格式无效! - - - 当前密码无效! - - - Google Books ID格式无效! - - - 无效的ISBN10格式! - - - 无效的ISBN13格式! - - - 无效的ISO代码! - - - 无效的LCCN格式! - - - 无效的OCLC格式! - - - 无效的OpenLibrary ID! - - - 密码无效! - - - 路径无效! - - - TOTP验证码无效! - - - 用户名无效! - - - 用户名或密码无效! - - - ISBN列表不能为空! - - - ISBN值不能为空! - - - JWT受众不能为空! - - - JWT过期时间(分钟)必须为正数! - - - JWT颁发者不能为空! - - - JWT密钥不能为空! - - - JWT密钥太短! - - - 语言代码不能为空! - - - 语言代码必须是2个字符! - - - 语言名称不能为空! - - - 语言名称最多只能有50个字符! - - - 语言本地名称最多只能有50个字符! - - - 库已存在! - - - 库ID不能为空! - - - 找不到库! - - - LibraryThing ID最多只能有50个字符! - - - 库类型不能为空! - - - 媒体根目录不能为空! - - - 元数据不能为空! - - - 名称不能为空! - - - 新密码不能为空! - - - 新密码确认不能为空! - - - 您无权查看此资源! - - - 您无权执行此操作! - - - 指定的资源未找到! - - - 没有缩略图! - - - 发生一个或多个验证错误 - - - 原始发行日期和年份必须匹配! - - - 原始发行年份必须在1到9999之间! - - - 原始标题最多只能有255个字符! - - - 页数必须大于零! - - - 父节点不能为空! - - - 密码不能为空! - - - 确认密码不能为空! - - - 密码重置请求已发送! - - - 密码不匹配! - - - 路径不能为空! - - - 路径不得超过260个字符! - - - 路径列表不能为空! - - - 路径列表不能为空! - - - 权限列表不能为空! - - - 权限列表不能为空! - - - 出版社名称最多只能有100个字符! - - - 评分最大值必须为正数! - - - 评分列表不能为空! - - - 评分值不能大于最大值! - - - 评分值必须为正数! - - - 评分投票数必须为正数! - - - 发行信息不能为空! - - - 发行版本最多只能有50个字符! - - - 重发行日期和年份必须匹配! - - - 重发行日期不能早于原始发行日期! - - - 重发行年份不能早于原始发行年份! - - - 重发行年份必须在1到9999之间! - - - 角色已存在! - - - 角色类别不能为空! - - - 角色类别最多只能有50个字符! - - - 角色ID不能为空! - - - 角色名称不能为空! - - - 角色名称最多只能有50个字符! - - - 角色未找到 - - - 流ID不能为空! - - - 标签名称不能为空! - - - 标签名称最多只能有50个字符! - - - 标签列表不能为空! - - - 临时密码已过期! - - - 该图书已在系列中! - - - 该图书不在系列中! - - - 标题不能为空! - - - 标题最多只能有255个字符! - - - 请求过多!请15分钟后重试! - - - TOTP验证码不能为空! - - - 您无权访问此资源! - - - 未知的图书格式! - - - 未知的ISBN格式! - - - 未知的库类型! - - - 用户已存在! - - - 用户不存在! - - - 用户ID不能为空! - - - 用户必须具有角色权限或直接权限! - - - 用户名已存在! - - - 用户名不能为空! - - - 用户名不存在! - - - 用户名必须在3到255个字符之间! - - - 卷号必须大于零! - - - 封面文件必须是图片! - - - 无法扫描已禁用的库! - - - 无法扫描已锁定的库! - - - 只能启动待处理的扫描! - - - 只能取消正在运行的扫描! - - - 扫描ID不能为空! - - - 库已在扫描中! - - - 扫描任务项目总数必须为正数! - - - 已完成扫描项目数量必须为正数! - - - 已完成扫描项目数量不能超过扫描项目总数! - - - 扫描任务当前操作不能为空! - - - 库扫描ID不能为空! - - - 扫描任务总数必须为正数! - - - 已完成扫描任务数量必须为正数! - - - 已完成扫描任务数量不能超过扫描任务总数! - - - CORS来源不能为空! - - - CORS来源无效! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.de-DE.resx deleted file mode 100644 index cc009918..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.de-DE.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Kann Mediatheken erstellen - - - Kann Benutzer löschen - - - Kann Benutzer registrieren - - - Kann Benutzer anzeigen - - - Rollen - - - Wählen Sie eine Rolle - - - Benutzer auswählen - - - Aktualisieren - - - Benutzerberechtigung aktualisiert! - - - Benutzer - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.en-US.resx deleted file mode 100644 index 2371da2e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.en-US.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Can create libraries - - - Can delete users - - - Can register users - - - Can view users - - - Roles - - - Select a role - - - Select a user - - - Update - - - User authorization updated! - - - Users - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.es-ES.resx deleted file mode 100644 index 45ff854c..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.es-ES.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Puede crear bibliotecas - - - Puede eliminar usuarios - - - Puede registrar usuarios - - - Puede ver usuarios - - - Roles - - - Selecciona un rol - - - Seleccionar usuario - - - Actualizar - - - ¡Autorización de usuario actualizada! - - - Usuarios - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.fr-FR.resx deleted file mode 100644 index 3971ce5c..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.fr-FR.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Peut créer des médiathèques - - - Peut supprimer des utilisateurs - - - Peut enregistrer des utilisateurs - - - Peut voir les utilisateurs - - - Rôles - - - Sélectionnez un rôle - - - Sélectionner un utilisateur - - - Mettre à jour - - - Autorisation utilisateur mise à jour! - - - Utilisateurs - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.it-IT.resx deleted file mode 100644 index 610e11b2..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.it-IT.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Può creare librerie - - - Può eliminare utenti - - - Può registrare utenti - - - Può visualizzare utenti - - - Ruoli - - - Seleziona un ruolo - - - Seleziona utente - - - Aggiorna - - - Autorizzazione utente aggiornata! - - - Utenti - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ja-JP.resx deleted file mode 100644 index 04c51b58..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ja-JP.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ライブラリを作成可能 - - - ユーザーを削除できます - - - ユーザーを登録できます - - - ユーザーを表示できます - - - ロール - - - ロールを選択してください - - - ユーザーを選択 - - - 更新 - - - ユーザー権限を更新しました! - - - ユーザー - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.resx deleted file mode 100644 index 2371da2e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Can create libraries - - - Can delete users - - - Can register users - - - Can view users - - - Roles - - - Select a role - - - Select a user - - - Update - - - User authorization updated! - - - Users - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ro-RO.resx deleted file mode 100644 index defadc98..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ro-RO.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Poate crea biblioteci - - - Poate șterge utilizatori - - - Poate înregistra utilizatori - - - Poate vizualiza utilizatori - - - Roluri - - - Selectare rol - - - Selectare utilizator - - - Actualizare - - - Autorizare utilizator actualizată! - - - Utilizatori - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ru-RU.resx deleted file mode 100644 index 729c7e0e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.ru-RU.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Может создавать библиотеки - - - Может удалять пользователей - - - Может регистрировать пользователей - - - Может просматривать пользователей - - - Роли - - - Выберите роль - - - Выбрать пользователя - - - Обновить - - - Авторизация пользователя обновлена! - - - Пользователи - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.zh-CN.resx deleted file mode 100644 index 3bffe53e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManagePermissions.zh-CN.resx +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 可以创建媒体库 - - - 可以删除用户 - - - 可以注册用户 - - - 可以查看用户 - - - 角色 - - - 选择一个角色 - - - 选择用户 - - - 更新 - - - 用户授权已更新! - - - 用户 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.de-DE.resx deleted file mode 100644 index 1c6204f4..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.de-DE.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Kann Mediatheken erstellen - - - Kann Benutzer löschen - - - Kann Benutzer registrieren - - - Kann Benutzer anzeigen - - - Rolle erstellen - - - Rolle löschen - - - Sind Sie sicher, dass Sie die ausgewählte Rolle löschen möchten? - - - Die Rolle wurde erstellt! - - - Die Rolle wurde gelöscht! - - - Rollenname - - - Rollen - - - Die Rolle wurde aktualisiert! - - - Wählen Sie eine Rolle - - - Rolle aktualisieren - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.en-US.resx deleted file mode 100644 index a842f279..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.en-US.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Can create libraries - - - Can delete users - - - Can register users - - - Can view users - - - Create role - - - Delete role - - - Are you sure you want to delete the selected role? - - - The role has been created! - - - The role has been deleted! - - - Role name - - - Roles - - - The role has been updated! - - - Select a role - - - Update role - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.es-ES.resx deleted file mode 100644 index 92dbe451..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.es-ES.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Puede crear bibliotecas - - - Puede eliminar usuarios - - - Puede registrar usuarios - - - Puede ver usuarios - - - Crear un rol - - - Eliminar rol - - - ¿Está seguro de que desea eliminar el rol seleccionado? - - - ¡El rol ha sido creado! - - - ¡El rol ha sido eliminado! - - - Nombre del rol - - - Roles - - - ¡El rol ha sido actualizado! - - - Selecciona un rol - - - Actualizar rol - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.fr-FR.resx deleted file mode 100644 index 1a8e040b..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.fr-FR.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Peut créer des médiathèques - - - Peut supprimer des utilisateurs - - - Peut enregistrer des utilisateurs - - - Peut voir les utilisateurs - - - Créer un rôle - - - Supprimer le rôle - - - Êtes-vous sûr de vouloir supprimer le rôle sélectionné ? - - - Le rôle a été créé ! - - - Le rôle a été supprimé ! - - - Nom du rôle - - - Rôles - - - Le rôle a été mis à jour ! - - - Sélectionnez un rôle - - - Mettre à jour le rôle - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.it-IT.resx deleted file mode 100644 index 805672aa..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.it-IT.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Può creare librerie - - - Può eliminare utenti - - - Può registrare utenti - - - Può visualizzare utenti - - - Creare un ruolo - - - Elimina ruolo - - - Sei sicuro di voler eliminare il ruolo selezionato? - - - Il ruolo è stato creato! - - - Il ruolo è stato eliminato! - - - Nome del ruolo - - - Ruoli - - - Il ruolo è stato aggiornato! - - - Seleziona un ruolo - - - Aggiorna ruolo - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ja-JP.resx deleted file mode 100644 index 9b5e74d7..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ja-JP.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ライブラリを作成可能 - - - ユーザーを削除できます - - - ユーザーを登録できます - - - ユーザーを表示できます - - - ロールを作成する - - - ロールを削除する - - - 選択したロールを削除してもよろしいですか? - - - ロールが作成されました! - - - ロールが削除されました! - - - ロール名 - - - ロール - - - ロールが更新されました! - - - ロールを選択してください - - - ロールを更新する - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.resx deleted file mode 100644 index a842f279..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Can create libraries - - - Can delete users - - - Can register users - - - Can view users - - - Create role - - - Delete role - - - Are you sure you want to delete the selected role? - - - The role has been created! - - - The role has been deleted! - - - Role name - - - Roles - - - The role has been updated! - - - Select a role - - - Update role - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ro-RO.resx deleted file mode 100644 index 01689d29..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ro-RO.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Poate crea biblioteci - - - Poate șterge utilizatori - - - Poate înregistra utilizatori - - - Poate vizualiza utilizatori - - - Creare rol - - - Ștergere rol - - - Sunteți sigur că doriți să ștergeți rolul selectat? - - - Rolul a fost creat! - - - Rolul a fost șters! - - - Numele rolului - - - Roluri - - - Rolul a fost actualizat! - - - Selectare rol - - - Actualizare rol - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ru-RU.resx deleted file mode 100644 index 46e83d40..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.ru-RU.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Может создавать библиотеки - - - Может удалять пользователей - - - Может регистрировать пользователей - - - Может просматривать пользователей - - - Создать роль - - - Удалить роль - - - Вы уверены, что хотите удалить выбранную роль? - - - Роль была создана! - - - Роль была удалена! - - - Название роли - - - Роли - - - Роль была обновлена! - - - Выберите роль - - - Обновить роль - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.zh-CN.resx deleted file mode 100644 index 537300f7..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Admin/ManageRoles.zh-CN.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 可以创建媒体库 - - - 可以删除用户 - - - 可以注册用户 - - - 可以查看用户 - - - 创建角色 - - - 删除角色 - - - 您确定要删除选定的角色吗? - - - 角色已创建! - - - 角色已删除! - - - 角色名称 - - - 角色 - - - 角色已更新! - - - 选择一个角色 - - - 更新角色 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.de-DE.resx deleted file mode 100644 index fb95d9d4..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.de-DE.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Sie sind nicht berechtigt, diese Ressource anzusehen! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.en-US.resx deleted file mode 100644 index 441b394b..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.en-US.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - You are not authorized to view this resource! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.es-ES.resx deleted file mode 100644 index ccf8d818..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.es-ES.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ¡No estás autorizado para ver este recurso! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.fr-FR.resx deleted file mode 100644 index 57bc9522..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.fr-FR.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Vous n'êtes pas autorisé à voir cette ressource ! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.it-IT.resx deleted file mode 100644 index e6c1e88f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.it-IT.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Non sei autorizzato a visualizzare questa risorsa! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ja-JP.resx deleted file mode 100644 index be86e714..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ja-JP.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - このリソースを表示する権限がありません! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.resx deleted file mode 100644 index 14b04d86..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - You are not authorized to view this resource! - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ro-RO.resx deleted file mode 100644 index 4ed99e9e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ro-RO.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Nu aveți autorizația necesară pentru vizualizarea aceastei resurse! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ru-RU.resx deleted file mode 100644 index e251493f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.ru-RU.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - У вас нет прав для просмотра этого ресурса! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.zh-CN.resx deleted file mode 100644 index 9fd49ef0..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/AccessDenied.zh-CN.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 您无权查看此资源! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.Designer.cs b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.Designer.cs deleted file mode 100644 index e8cb32ae..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.Designer.cs +++ /dev/null @@ -1,135 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Lumina.Presentation.Web.Resources.Views.Auth { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class ChangePassword { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal ChangePassword() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Resources.Views.Auth.ChangePassword", typeof(ChangePassword).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Change Password. - /// - public static string ChangePasswordKey { - get { - return ResourceManager.GetString("ChangePasswordKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Current Password. - /// - public static string CurrentPassword { - get { - return ResourceManager.GetString("CurrentPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enter your existing password to verify your identity. - /// - public static string DescriptionCurrentPassword { - get { - return ResourceManager.GetString("DescriptionCurrentPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password must be at least 8 characters and include letters, numbers, and symbols. - /// - public static string DescriptionNewPassword { - get { - return ResourceManager.GetString("DescriptionNewPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Re-enter your new password to ensure it matches. - /// - public static string DescriptionNewPasswordConfirm { - get { - return ResourceManager.GetString("DescriptionNewPasswordConfirm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Password. - /// - public static string NewPassword { - get { - return ResourceManager.GetString("NewPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to New Password Confirm. - /// - public static string NewPasswordConfirm { - get { - return ResourceManager.GetString("NewPasswordConfirm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password Changed. - /// - public static string PasswordChanged { - get { - return ResourceManager.GetString("PasswordChanged", resourceCulture); - } - } - } -} diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.de-DE.resx deleted file mode 100644 index 5ca879ab..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.de-DE.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Kennwort Ändern - - - Aktuelles Kennwort - - - Geben sie ihr bestehendes Kennwort ein um ihre Identität zu bestätigen - - - Kennwort muss mindestens 8 Zeichen lang sein und Buchstaben, Zahlen und Sonderzeichen enthalten - - - Geben sie ihr neues Kennwort erneut ein um sicherzustellen, dass es übereinstimmt - - - Neues Kennwort - - - Neues Kennwort Bestätigen - - - Kennwort Geändert - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.en-US.resx deleted file mode 100644 index 45ce9f52..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.en-US.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Change Password - - - Current Password - - - Enter your existing password to verify your identity - - - Password must be at least 8 characters and include letters, numbers, and symbols - - - Re-enter your new password to ensure it matches - - - New Password - - - New Password Confirm - - - Password Changed - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.es-ES.resx deleted file mode 100644 index ff74d782..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.es-ES.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cambiar Contraseña - - - Contraseña Vigente - - - Introduce tu contraseña actual para verificar tu identidad - - - La contraseña debe tener al menos 8 caracteres e incluir letras, números y símbolos - - - Vuelve a introducir tu nueva contraseña para asegurar que coincida - - - Nueva Contraseña - - - Confirmar Nueva Contraseña - - - Contraseña Cambiada - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.fr-FR.resx deleted file mode 100644 index 0563e8dc..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.fr-FR.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Modifier Le Mot De Passe - - - Mot De Passe Actuel - - - Saisissez votre mot de passe actuel pour vérifier votre identité - - - Le mot de passe doit contenir au moins 8 caractères et inclure des lettres, des chiffres et des symboles - - - Saisissez à nouveau votre mot de passe pour confirmer la correspondance - - - Nouveau Mot De Passe - - - Confirmer Le Nouveau Mot De Passe - - - Mot De Passe Modifié - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.it-IT.resx deleted file mode 100644 index f98a6e87..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.it-IT.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Modifica Password - - - Password Corrente - - - Inserisci la password attuale per verificare la tua identità - - - La password deve contenere almeno 8 caratteri e includere lettere, numeri e simboli - - - Inserisci di nuovo la nuova password per assicurare la corrispondenza - - - Nuova Password - - - Conferma Nuova Password - - - Password Modificata - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ja-JP.resx deleted file mode 100644 index 0a8e7576..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ja-JP.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - パスワード変更 - - - 使用中パスワード - - - 本人確認のため現在のパスワードを入力してください - - - パスワードは8文字以上で、文字、数字、記号を含める必要があります - - - 確認のため新しいパスワードをもう一度入力してください - - - 新規パスワード - - - 新規パスワード確認 - - - パスワード変更完了 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.resx deleted file mode 100644 index 45ce9f52..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Change Password - - - Current Password - - - Enter your existing password to verify your identity - - - Password must be at least 8 characters and include letters, numbers, and symbols - - - Re-enter your new password to ensure it matches - - - New Password - - - New Password Confirm - - - Password Changed - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ro-RO.resx deleted file mode 100644 index 7809355c..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ro-RO.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Schimbare Parolă - - - Parolă Curentă - - - Introduceți parola actuală pentru verificarea identității - - - Parola trebuie să conțină cel puțin 8 caractere și să includă litere, cifre și simboluri - - - Reintroduceți parola nouă pentru a verifica potrivirea - - - Parolă Nouă - - - Confirmare Parolă Nouă - - - Parolă Schimbată - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ru-RU.resx deleted file mode 100644 index c9465635..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.ru-RU.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Изменить Пароль - - - Действующий Пароль - - - Введите ваш текущий пароль для подтверждения личности - - - Пароль должен содержать не менее 8 символов и включать буквы, цифры и специальные знаки - - - Введите новый пароль повторно для проверки совпадения - - - Новый Пароль - - - Подтверждение Нового Пароля - - - Пароль Изменён - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.zh-CN.resx deleted file mode 100644 index 7a9ce879..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/ChangePassword.zh-CN.resx +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 修改密码 - - - 现用密码 - - - 请输入当前密码以验证身份 - - - 密码必须至少8个字符且包含字母、数字和符号 - - - 请再次输入新密码以确保匹配 - - - 新密码 - - - 确认新密码 - - - 密码已修改 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.Designer.cs b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.Designer.cs deleted file mode 100644 index e014b269..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.Designer.cs +++ /dev/null @@ -1,117 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Lumina.Presentation.Web.Resources.Views.Auth { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class Login { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Login() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Resources.Views.Auth.Login", typeof(Login).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Login. - /// - public static string LoginKey { - get { - return ResourceManager.GetString("LoginKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// - public static string Password { - get { - return ResourceManager.GetString("Password", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Recover Password. - /// - public static string RecoverPassword { - get { - return ResourceManager.GetString("RecoverPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TOTP Code. - /// - public static string TotpCode { - get { - return ResourceManager.GetString("TotpCode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username. - /// - public static string Username { - get { - return ResourceManager.GetString("Username", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Validate Code. - /// - public static string ValidateCode { - get { - return ResourceManager.GetString("ValidateCode", resourceCulture); - } - } - } -} diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.de-DE.resx deleted file mode 100644 index 805bdf5a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.de-DE.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Anmelden - - - Passwort - - - Passwort Wiederherstellen - - - Einmalcode (TOTP) - - - Benutzername - - - Code Bestätigen - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.en-US.resx deleted file mode 100644 index 6cfbfb3d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.en-US.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Login - - - Password - - - Recover Password - - - TOTP Code - - - Username - - - Validate Code - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.es-ES.resx deleted file mode 100644 index a3f7f570..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.es-ES.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Iniciar Sesión - - - Contraseña - - - Recuperar Contraseña - - - Código Temporal (TOTP) - - - Nombre de usuario - - - Validar Código - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.fr-FR.resx deleted file mode 100644 index d03e9750..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.fr-FR.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Connexion - - - Mot De Passe - - - Récupérer Le Mot De Passe - - - Code Temporaire (TOTP) - - - Nom d'utilisateur - - - Valider Le Code - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.it-IT.resx deleted file mode 100644 index f8a11d66..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.it-IT.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Accedi - - - Password - - - Recupera Password - - - Codice Temporaneo (TOTP) - - - Nome utente - - - Convalida Codice - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ja-JP.resx deleted file mode 100644 index f5f7ec4f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ja-JP.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ログイン - - - パスワード - - - パスワード再設定 - - - ワンタイムパスコード (TOTP) - - - ユーザー名 - - - コード認証 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.resx deleted file mode 100644 index 6cfbfb3d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Login - - - Password - - - Recover Password - - - TOTP Code - - - Username - - - Validate Code - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ro-RO.resx deleted file mode 100644 index f345c41b..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ro-RO.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Autentificare - - - Parolă - - - Recuperare Parolă - - - Cod Temporar (TOTP) - - - Nume utilizator - - - Validare Cod - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ru-RU.resx deleted file mode 100644 index 9f6c8eaf..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.ru-RU.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Вход - - - Пароль - - - Восстановить Пароль - - - Временный Код (TOTP) - - - Имя пользователя - - - Подтвердить Код - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.zh-CN.resx deleted file mode 100644 index cb724877..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Login.zh-CN.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 登录 - - - 密码 - - - 找回密码 - - - 动态验证码 (TOTP) - - - 用户名 - - - 验证代码 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.Designer.cs b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.Designer.cs deleted file mode 100644 index b349f29d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.Designer.cs +++ /dev/null @@ -1,117 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Lumina.Presentation.Web.Resources.Views.Auth { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class RecoverPassword { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal RecoverPassword() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Resources.Views.Auth.RecoverPassword", typeof(RecoverPassword).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Back To Login. - /// - public static string BackToLogin { - get { - return ResourceManager.GetString("BackToLogin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Login. - /// - public static string Login { - get { - return ResourceManager.GetString("Login", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password Temporarily Reset. - /// - public static string PasswordTemporarilyReset { - get { - return ResourceManager.GetString("PasswordTemporarilyReset", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TOTP Code. - /// - public static string TotpCode { - get { - return ResourceManager.GetString("TotpCode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username. - /// - public static string Username { - get { - return ResourceManager.GetString("Username", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Validate Code. - /// - public static string ValidateCode { - get { - return ResourceManager.GetString("ValidateCode", resourceCulture); - } - } - } -} diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.de-DE.resx deleted file mode 100644 index 7352a2a1..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.de-DE.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Zurück Zur Anmeldung - - - Anmelden - - - Kennwort Vorübergehend Zurückgesetzt - - - Einmalcode (TOTP) - - - Benutzername - - - Code Bestätigen - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.en-US.resx deleted file mode 100644 index bf4ea752..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.en-US.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Back To Login - - - Login - - - Password Temporarily Reset - - - TOTP Code - - - Username - - - Validate Code - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.es-ES.resx deleted file mode 100644 index bd02be40..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.es-ES.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Volver Al Inicio De Sesión - - - Iniciar Sesión - - - Contraseña Restablecida Temporalmente - - - Código Temporal (TOTP) - - - Nombre de usuario - - - Validar Código - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.fr-FR.resx deleted file mode 100644 index 0ad62adf..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.fr-FR.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Retour À La Connexion - - - Connexion - - - Mot De Passe Temporairement Réinitialisé - - - Code Temporaire (TOTP) - - - Nom d'utilisateur - - - Valider Le Code - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.it-IT.resx deleted file mode 100644 index a3427ea8..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.it-IT.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Torna Al Login - - - Accedi - - - Password Reimpostata Temporaneamente - - - Codice Temporaneo (TOTP) - - - Nome utente - - - Convalida Codice - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ja-JP.resx deleted file mode 100644 index 999da7d9..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ja-JP.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ログインに戻る - - - ログイン - - - パスワードを一時的にリセットしました - - - ワンタイムパスコード (TOTP) - - - ユーザー名 - - - コード認証 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.resx deleted file mode 100644 index bf4ea752..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Back To Login - - - Login - - - Password Temporarily Reset - - - TOTP Code - - - Username - - - Validate Code - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ro-RO.resx deleted file mode 100644 index 42154c27..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ro-RO.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Înapoi La Autentificare - - - Autentificare - - - Parolă Resetată Temporar - - - Cod Temporar (TOTP) - - - Nume utilizator - - - Validare Cod - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ru-RU.resx deleted file mode 100644 index 324eb74c..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.ru-RU.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Вернуться Ко Входу - - - Вход - - - Пароль Временно Сброшен - - - Временный Код (TOTP) - - - Имя пользователя - - - Подтвердить Код - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.zh-CN.resx deleted file mode 100644 index fc7024fe..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/RecoverPassword.zh-CN.resx +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 返回登录 - - - 登录 - - - 密码已临时重置 - - - 动态验证码 (TOTP) - - - 用户名 - - - 验证代码 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.Designer.cs b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.Designer.cs deleted file mode 100644 index 43187706..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.Designer.cs +++ /dev/null @@ -1,189 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Lumina.Presentation.Web.Resources.Views.Auth { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class Register { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Register() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Resources.Views.Auth.Register", typeof(Register).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Account Created. - /// - public static string AccountCreated { - get { - return ResourceManager.GetString("AccountCreated", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Admin account registration. - /// - public static string AdminAccountRegistration { - get { - return ResourceManager.GetString("AdminAccountRegistration", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Recommended for account security and required for password recovery. - /// - public static string Description2Fa { - get { - return ResourceManager.GetString("Description2Fa", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password must be at least 8 characters and include letters, numbers, and symbols. - /// - public static string DescriptionPassword { - get { - return ResourceManager.GetString("DescriptionPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Re-enter your password to ensure it matches. - /// - public static string DescriptionPasswordConfirm { - get { - return ResourceManager.GetString("DescriptionPasswordConfirm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Choose a unique username for your account (3-20 characters). - /// - public static string DescriptionUsername { - get { - return ResourceManager.GetString("DescriptionUsername", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password recovery is allowed only if two factor authentication is enabled!. - /// - public static string DisclaimerTwoFactor { - get { - return ResourceManager.GetString("DisclaimerTwoFactor", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enable two factor authentication. - /// - public static string EnableTwoFactorAuthentication { - get { - return ResourceManager.GetString("EnableTwoFactorAuthentication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Login. - /// - public static string Login { - get { - return ResourceManager.GetString("Login", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password. - /// - public static string Password { - get { - return ResourceManager.GetString("Password", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Password Confirm. - /// - public static string PasswordConfirm { - get { - return ResourceManager.GetString("PasswordConfirm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Register. - /// - public static string RegisterKey { - get { - return ResourceManager.GetString("RegisterKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Scan TOTP Code. - /// - public static string ScanTotpCode { - get { - return ResourceManager.GetString("ScanTotpCode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Username. - /// - public static string Username { - get { - return ResourceManager.GetString("Username", resourceCulture); - } - } - } -} diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.de-DE.resx deleted file mode 100644 index 38faee9a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.de-DE.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Konto Erstellt - - - Administrator-Konto Registrierung - - - Empfohlen für Kontosicherheit und erforderlich für Kennwortzurücksetzung - - - Das Kennwort muss mindestens 8 Zeichen lang sein und Buchstaben, Zahlen und Sonderzeichen enthalten - - - Geben sie ihr Kennwort erneut ein um sicherzustellen, dass es übereinstimmt - - - Wählen sie einen eindeutigen Benutzernamen für ihr Konto (3-255 Zeichen) - - - Kennwortzurücksetzung ist nur bei aktivierter Zwei-Faktor-Authentifizierung möglich! - - - Zwei-Faktor-Authentifizierung Aktivieren - - - Anmelden - - - Passwort - - - Kennwort Bestätigen - - - Registrieren - - - TOTP-Code Scannen - - - Benutzername - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.en-US.resx deleted file mode 100644 index c7f45d67..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.en-US.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Account Created - - - Admin account registration - - - Recommended for account security and required for password recovery - - - Password must be at least 8 characters and include letters, numbers, and symbols - - - Re-enter your password to ensure it matches - - - Choose a unique username for your account (3-20 characters) - - - Password recovery is allowed only if two factor authentication is enabled! - - - Enable two factor authentication - - - Login - - - Password - - - Password Confirm - - - Register - - - Scan TOTP Code - - - Username - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.es-ES.resx deleted file mode 100644 index 64e73555..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.es-ES.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cuenta Creada - - - Registro De Cuenta Administrador - - - Recomendado para la seguridad de la cuenta y requerido para la recuperación de contraseña - - - La contraseña debe tener al menos 8 caracteres e incluir letras, números y símbolos - - - Vuelve a introducir tu contraseña para asegurar que coincida - - - Elige un nombre de usuario único para tu cuenta (3-255 caracteres) - - - La recuperación de contraseña solo está permitida con la autenticación de dos factores activada! - - - Activar Autenticación De Dos Factores - - - Iniciar Sesión - - - Contraseña - - - Confirmar Contraseña - - - Registrarse - - - Escanear Código TOTP - - - Nombre de usuario - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.fr-FR.resx deleted file mode 100644 index 80076ae8..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.fr-FR.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Compte Créé - - - Inscription Compte Administrateur - - - Recommandé pour la sécurité du compte et requis pour la récupération du mot de passe - - - Le mot de passe doit contenir au moins 8 caractères et inclure des lettres, des chiffres et des symboles - - - Saisissez à nouveau votre mot de passe pour confirmer la correspondance - - - Choisissez un nom d'utilisateur unique pour votre compte (3-255 caractères) - - - La récupération du mot de passe n'est possible qu'avec l'authentification à deux facteurs activée! - - - Activer L'authentification À Deux Facteurs - - - Connexion - - - Mot De Passe - - - Confirmer Le Mot De Passe - - - S'inscrire - - - Scanner Le Code TOTP - - - Nom d'utilisateur - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.it-IT.resx deleted file mode 100644 index 2a00b9fc..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.it-IT.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Account Creato - - - Registrazione Account Amministratore - - - Raccomandato per la sicurezza dell'account e richiesto per il recupero della password - - - La password deve contenere almeno 8 caratteri e includere lettere, numeri e simboli - - - Inserisci di nuovo la password per assicurare la corrispondenza - - - Scegli un nome utente univoco per il tuo account (3-255 caratteri) - - - Il recupero della password è consentito solo con l'autenticazione a due fattori attivata! - - - Attiva Autenticazione A Due Fattori - - - Accedi - - - Password - - - Conferma Password - - - Registrati - - - Scansiona Codice TOTP - - - Nome utente - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ja-JP.resx deleted file mode 100644 index 1275d3ee..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ja-JP.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - アカウント作成完了 - - - 管理者アカウント登録 - - - アカウントのセキュリティに推奨され、パスワード再設定に必要です - - - パスワードは8文字以上で、文字、数字、記号を含める必要があります - - - 確認のためパスワードをもう一度入力してください - - - アカウントのユーザー名を設定してください(3-255文字) - - - パスワードの再設定は二要素認証が有効な場合のみ許可されます! - - - 二要素認証を有効にする - - - ログイン - - - パスワード - - - パスワード確認 - - - 登録 - - - TOTPコードをスキャン - - - ユーザー名 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.resx deleted file mode 100644 index c7f45d67..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Account Created - - - Admin account registration - - - Recommended for account security and required for password recovery - - - Password must be at least 8 characters and include letters, numbers, and symbols - - - Re-enter your password to ensure it matches - - - Choose a unique username for your account (3-20 characters) - - - Password recovery is allowed only if two factor authentication is enabled! - - - Enable two factor authentication - - - Login - - - Password - - - Password Confirm - - - Register - - - Scan TOTP Code - - - Username - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ro-RO.resx deleted file mode 100644 index f68ac038..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ro-RO.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cont Creat - - - Înregistrare Cont Administrator - - - Recomandat pentru securitatea contului și necesar pentru recuperarea parolei - - - Parola trebuie să conțină cel puțin 8 caractere și să includă litere, cifre și simboluri - - - Reintroduceți parola pentru a verifica potrivirea - - - Alegeți un nume de utilizator unic pentru cont (3-255 caractere) - - - Recuperarea parolei este permisă doar cu autentificarea în doi pași activată! - - - Activare Autentificare În Doi Pași - - - Autentificare - - - Parolă - - - Confirmare Parolă - - - Înregistrare - - - Scanare Cod TOTP - - - Nume utilizator - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ru-RU.resx deleted file mode 100644 index d1c2dd7d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.ru-RU.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Учетная Запись Создана - - - Регистрация Учетной Записи Администратора - - - Рекомендуется для безопасности учетной записи и требуется для восстановления пароля - - - Пароль должен содержать не менее 8 символов и включать буквы, цифры и специальные знаки - - - Введите пароль повторно для проверки совпадения - - - Выберите уникальное имя пользователя для учетной записи (3-255 символов) - - - Восстановление пароля возможно только при включенной двухфакторной аутентификации! - - - Включить Двухфакторную Аутентификацию - - - Вход - - - Пароль - - - Подтверждение Пароля - - - Регистрация - - - Сканировать TOTP-код - - - Имя пользователя - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.zh-CN.resx deleted file mode 100644 index b80b2d11..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Auth/Register.zh-CN.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 账号已创建 - - - 管理员账号注册 - - - 推荐用于账户安全且密码找回必需 - - - 密码必须至少8个字符且包含字母、数字和符号 - - - 请再次输入密码以确保匹配 - - - 为账号选择一个独特的用户名(3-255个字符) - - - 仅在启用双重认证后才允许密码找回! - - - 启用双重认证 - - - 登录 - - - 密码 - - - 确认密码 - - - 注册 - - - 扫描TOTP验证码 - - - 用户名 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.de-DE.resx deleted file mode 100644 index 45dca514..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.de-DE.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Keine Bibliotheken - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.en-US.resx deleted file mode 100644 index d3883307..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.en-US.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - No libraries - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.es-ES.resx deleted file mode 100644 index 5eb2e603..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.es-ES.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Sin bibliotecas - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.fr-FR.resx deleted file mode 100644 index 4fb27e5a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.fr-FR.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Aucune bibliothèque - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.it-IT.resx deleted file mode 100644 index a018f86d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.it-IT.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Nessuna libreria - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ja-JP.resx deleted file mode 100644 index b826da97..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ja-JP.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ライブラリがありません - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.resx deleted file mode 100644 index 5bc23ade..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - No libraries - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ro-RO.resx deleted file mode 100644 index c44563bc..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ro-RO.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Nicio bibliotecă - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ru-RU.resx deleted file mode 100644 index 1b297550..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.ru-RU.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Нет библиотек - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Home/Index.zh-CN.resx deleted file mode 100644 index 9552d9c3..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Home/Index.zh-CN.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 无库 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.de-DE.resx deleted file mode 100644 index fd3f500c..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.de-DE.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Wissenschaftliche Arbeit - - - Aktionen - - - Anime - - - Hörbuch - - - Buch - - - Buchreihe - - - Abgebrochen - - - Scan Abbrechen - - - Comic-Heft - - - Comic-Serie - - - Datei-Hashes werden verglichen... - - - Abgeschlossen - - - Konzert - - - Coverversion - - - Sind Sie sicher, dass Sie die ausgewählte Bibliothek löschen möchten? - - - Dateien werden erkannt... - - - Dokumentarfilm - - - E-Buch - - - Bearbeiten - - - Aktiviert - - - Fehlgeschlagen - - - Filmfranchise - - - Filmreihe - - - Metadaten werden angereichert... - - - Berechne die Datei-Hashes... - - - Grafischer Roman - - - Interview - - - Bibliotheken - - - Die Bibliothek wurde gelöscht! - - - Bibliothekstyp - - - Live-Auftritt - - - Gesperrt - - - Zeitschrift - - - Manga - - - Spielfilm - - - Musik - - - Nein - - - Keine Bibliotheken - - - Sonstige - - - Persönlich - - - Fotoalbum - - - Podcast - - - Radiosendung - - - Neuabmischung - - - Entfernen - - - Scandaten werden gespeichert... - - - Scannen - - - Alle Bibliotheken Scannen - - - Drehbuch - - - Notenblatt - - - Soundeffekt - - - Titel - - - Anleitung - - - Fernsehserie - - - Videoclip - - - Ja - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.en-US.resx deleted file mode 100644 index b5b3f263..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.en-US.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Academic Paper - - - Actions - - - Anime - - - Audio Book - - - Book - - - Book Series - - - Canceled - - - Cancel Scan - - - Comic Book - - - Comic Series - - - Comparing file hashes... - - - Completed - - - Concert - - - Cover - - - Are you sure you want to delete the specified library? - - - Discovering files... - - - Documentary - - - E Book - - - Edit - - - Enabled - - - Failed - - - Film Franchise - - - Film Series - - - Enriching metadata... - - - Hashing file contents... - - - Graphic Novel - - - Interview - - - Libraries - - - The library has been deleted! - - - Library Type - - - Live Performance - - - Locked - - - Magazine - - - Manga - - - Movie - - - Music - - - No - - - No libraries - - - Other - - - Personal - - - Photo Album - - - Podcast - - - Radio Show - - - Remix - - - Remove - - - Saving scan data... - - - Scan - - - Scan All Libraries - - - Screenplay - - - Sheet Music - - - Sound Effect - - - Title - - - Tutorial - - - Tv Show - - - Videoclip - - - Yes - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.es-ES.resx deleted file mode 100644 index 18ea70c2..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.es-ES.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Artículo Académico - - - Acciones - - - Anime - - - Audiolibro - - - Libro - - - Serie de Libros - - - Cancelado - - - Cancelar Escaneo - - - Cómic - - - Serie de Cómics - - - Se están comparando hashes de archivos... - - - Completado - - - Concierto - - - Versión - - - ¿Está seguro de que desea eliminar la biblioteca especificada? - - - Descubriendo archivos... - - - Documental - - - Libro Electrónico - - - Editar - - - Activado - - - Fallido - - - Franquicia Cinematográfica - - - Saga Cinematográfica - - - Enriqueciendo metadatos... - - - Calculando los hashes de los archivos... - - - Novela Gráfica - - - Entrevista - - - Bibliotecas - - - ¡La biblioteca ha sido eliminada! - - - Tipo de Biblioteca - - - Actuación en Vivo - - - Bloqueado - - - Revista - - - Manga - - - Película - - - Música - - - No - - - Sin bibliotecas - - - Otro - - - Personal - - - Álbum de Fotos - - - Podcast - - - Programa de Radio - - - Remezcla - - - Eliminar - - - Guardando datos del escaneo... - - - Escanear - - - Escanear Todas Las Bibliotecas - - - Guión - - - Partitura Musical - - - Efecto de Sonido - - - Título - - - Tutorial - - - Serie de Televisión - - - Videoclip - - - Sí - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.fr-FR.resx deleted file mode 100644 index 3ca27a25..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.fr-FR.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Article Académique - - - Actions - - - Animé - - - Livre Audio - - - Livre - - - Série de Livres - - - Annulé - - - Annuler Le Scan - - - Bande Dessinée - - - Série de Bandes Dessinées - - - Comparer les hachages de fichiers... - - - Terminé - - - Concert - - - Reprise - - - Êtes-vous sûr de vouloir supprimer la bibliothèque spécifiée? - - - Découverte des fichiers... - - - Documentaire - - - Livre Numérique - - - Modifier - - - Activé - - - Échec - - - Franchise Cinématographique - - - Saga Cinématographique - - - Enrichissement des métadonnées... - - - Calcul des hachages des fichiers... - - - Roman Graphique - - - Entretien - - - Bibliothèques - - - La bibliothèque a été supprimée! - - - Type de Bibliothèque - - - Concert Live - - - Verrouillé - - - Magazine - - - Manga - - - Film - - - Musique - - - Non - - - Aucune bibliothèque - - - Autre - - - Personnel - - - Album Photo - - - Podcast - - - Émission Radio - - - Remixage - - - Supprimer - - - Sauvegarde des données de scan en cours... - - - Scanner - - - Scanner Toutes Les Bibliothèques - - - Scénario - - - Partition Musicale - - - Effet Sonore - - - Titre - - - Tutoriel - - - Série Télévisée - - - Clip Vidéo - - - Oui - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.it-IT.resx deleted file mode 100644 index 9387d8eb..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.it-IT.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Articolo Accademico - - - Azioni - - - Anime - - - Audiolibro - - - Libro - - - Serie di Libri - - - Annullato - - - Annulla Scansione - - - Fumetto - - - Serie di Fumetti - - - Si stanno confrontando gli hash dei file... - - - Completato - - - Concerto - - - Reinterpretazione - - - È sicuro di voler eliminare la libreria specificata? - - - Rilevamento dei file... - - - Documentario - - - E-Book - - - Modifica - - - Attivato - - - Fallito - - - Franchise Cinematografico - - - Saga Cinematografica - - - Arricchimento dei metadati... - - - Calcolo degli hash dei file... - - - Romanzo Grafico - - - Intervista - - - Librerie - - - La libreria è stata eliminata! - - - Tipo di Libreria - - - Esibizione dal Vivo - - - Bloccato - - - Rivista - - - Manga - - - Film - - - Musica - - - No - - - Nessuna libreria - - - Altro - - - Personale - - - Album Fotografico - - - Podcast - - - Programma Radiofonico - - - Remissaggio - - - Rimuovere - - - Salvataggio dei dati di scansione... - - - Scansiona - - - Scansiona Tutte Le Librerie - - - Sceneggiatura - - - Spartito Musicale - - - Effetto Sonoro - - - Titolo - - - Tutorial - - - Serie Televisiva - - - Videoclip - - - Sì - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ja-JP.resx deleted file mode 100644 index a88d1ea1..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ja-JP.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 学術論文 - - - アクション - - - アニメ - - - オーディオブック - - - 本 - - - 本シリーズ - - - キャンセル済み - - - スキャンを中止 - - - 漫画 - - - 漫画シリーズ - - - ファイルのハッシュを比較中... - - - 完了 - - - コンサート - - - カバー曲 - - - 指定されたライブラリを削除してもよろしいですか? - - - ファイルを検出中... - - - ドキュメンタリー - - - 電子書籍 - - - 編集 - - - 有効 - - - 失敗 - - - 映画フランチャイズ - - - 映画シリーズ - - - メタデータを補完しています... - - - ファイルのハッシュを計算中... - - - グラフィックノベル - - - インタビュー - - - ライブラリ - - - ライブラリが削除されました! - - - ライブラリの種類 - - - ライブパフォーマンス - - - ロック済 - - - 雑誌 - - - 漫画 - - - 映画 - - - 音楽 - - - いいえ - - - ライブラリがありません - - - その他 - - - 個人的な - - - フォトアルバム - - - ポッドキャスト - - - ラジオ番組 - - - リミックス - - - 削除 - - - スキャンデータを保存中... - - - スキャン - - - すべてのライブラリをスキャン - - - 脚本 - - - 楽譜 - - - 効果音 - - - タイトル - - - チュートリアル - - - テレビドラマ - - - 動画クリップ - - - はい - - - ユーチューブ - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.resx deleted file mode 100644 index b5b3f263..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Academic Paper - - - Actions - - - Anime - - - Audio Book - - - Book - - - Book Series - - - Canceled - - - Cancel Scan - - - Comic Book - - - Comic Series - - - Comparing file hashes... - - - Completed - - - Concert - - - Cover - - - Are you sure you want to delete the specified library? - - - Discovering files... - - - Documentary - - - E Book - - - Edit - - - Enabled - - - Failed - - - Film Franchise - - - Film Series - - - Enriching metadata... - - - Hashing file contents... - - - Graphic Novel - - - Interview - - - Libraries - - - The library has been deleted! - - - Library Type - - - Live Performance - - - Locked - - - Magazine - - - Manga - - - Movie - - - Music - - - No - - - No libraries - - - Other - - - Personal - - - Photo Album - - - Podcast - - - Radio Show - - - Remix - - - Remove - - - Saving scan data... - - - Scan - - - Scan All Libraries - - - Screenplay - - - Sheet Music - - - Sound Effect - - - Title - - - Tutorial - - - Tv Show - - - Videoclip - - - Yes - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ro-RO.resx deleted file mode 100644 index b1735455..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ro-RO.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Lucrare Academică - - - Acțiuni - - - Anime - - - Carte Audio - - - Carte - - - Serie de Cărți - - - Anulat - - - Anulează Scanarea - - - Bandă Desenată - - - Serie de Benzi Desenate - - - Se compară hash-urile fișierelor... - - - Finalizat - - - Concert - - - Preluare - - - Sunteți sigur că doriți să ștergeți biblioteca specificată? - - - Se descoperă fișierele... - - - Documentar - - - Carte Electronică - - - Editează - - - Activat - - - Eșuat - - - Franciză de Film - - - Serie de Filme - - - Se îmbogățesc metadatele... - - - Se calculează hash-urile fișierelor... - - - Roman Grafic - - - Interviu - - - Biblioteci - - - Biblioteca a fost ștearsă! - - - Tip Bibliotecă - - - Spectacol Live - - - Blocat - - - Revistă - - - Manga - - - Film - - - Muzică - - - Nu - - - Nicio bibliotecă - - - Altceva - - - Personal - - - Album Foto - - - Podcast - - - Emisiune Radio - - - Remix - - - Șterge - - - Se salvează datele de scanare... - - - Scanează - - - Scanează Toate Bibliotecile - - - Scenariu - - - Partitură Muzicală - - - Efect Sonor - - - Titlu - - - Tutorial - - - Serial TV - - - Videoclip - - - Da - - - YouTube - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ru-RU.resx deleted file mode 100644 index 98adbae1..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.ru-RU.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Научная Статья - - - Действия - - - Аниме - - - Аудиокнига - - - Книга - - - Книжная Серия - - - Отменено - - - Отменить Сканирование - - - Комикс - - - Серия Комиксов - - - Сравнение хешей файлов... - - - Завершено - - - Концерт - - - Кавер - - - Вы уверены, что хотите удалить указанную библиотеку? - - - Обнаружение файлов... - - - Документальный Фильм - - - Электронная Книга - - - Редактировать - - - Включено - - - Ошибка - - - Кинофраншиза - - - Киносерия - - - Обогащение метаданных... - - - Вычисление хешей файлов... - - - Графический Роман - - - Интервью - - - Библиотеки - - - Библиотека удалена! - - - Тип Библиотеки - - - Живое Выступление - - - Заблокировано - - - Журнал - - - Манга - - - Фильм - - - Музыка - - - Нет - - - Нет библиотек - - - Другой - - - Личный - - - Фотоальбом - - - Подкаст - - - Радиопередача - - - Ремикс - - - Удалить - - - Сохранение данных сканирования... - - - Сканировать - - - Сканировать Все Библиотеки - - - Сценарий - - - Нотная Запись - - - Звуковой Эффект - - - Заголовок - - - Учебник - - - Телесериал - - - Видеоролик - - - Да - - - Ютуб - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.zh-CN.resx deleted file mode 100644 index fa8f6f81..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Index.zh-CN.resx +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 学术论文 - - - 操作 - - - 动画 - - - 有声书 - - - 书 - - - 丛书 - - - 已取消 - - - 取消扫描 - - - 漫画 - - - 漫画系列 - - - 正在比较文件哈希值... - - - 已完成 - - - 音乐会 - - - 翻唱 - - - 您确定要删除指定的库吗? - - - 正在发现文件... - - - 纪录片 - - - 电子书 - - - 编辑 - - - 已启用 - - - 失败 - - - 电影系列品牌 - - - 电影系列 - - - 正在丰富元数据... - - - 正在计算文件哈希... - - - 图像小说 - - - 访谈 - - - 库 - - - 库已删除! - - - 库类型 - - - 现场表演 - - - 已锁定 - - - 杂志 - - - 漫画 - - - 电影 - - - 音乐 - - - 否 - - - 无库 - - - 其他 - - - 个人的 - - - 相册 - - - 播客 - - - 广播节目 - - - 混音版 - - - 删除 - - - 正在保存扫描数据... - - - 扫描 - - - 扫描所有库 - - - 剧本 - - - 乐谱 - - - 音效 - - - 标题 - - - 教程 - - - 电视连续剧 - - - 视频短片 - - - 是 - - - 油管 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.Designer.cs b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.Designer.cs deleted file mode 100644 index 63eaff32..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.Designer.cs +++ /dev/null @@ -1,639 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Lumina.Presentation.Web.Resources.Views.Library.Management { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class Item { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Item() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Resources.Views.Library.Management.Item", typeof(Item).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Academic Paper. - /// - public static string AcademicPaper { - get { - return ResourceManager.GetString("AcademicPaper", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add directory. - /// - public static string AddDirectory { - get { - return ResourceManager.GetString("AddDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add image. - /// - public static string AddImage { - get { - return ResourceManager.GetString("AddImage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Add New Library. - /// - public static string AddNewLibrary { - get { - return ResourceManager.GetString("AddNewLibrary", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Advanced Settings. - /// - public static string AdvancedSettings { - get { - return ResourceManager.GetString("AdvancedSettings", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Anime. - /// - public static string Anime { - get { - return ResourceManager.GetString("Anime", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Audio Book. - /// - public static string AudioBook { - get { - return ResourceManager.GetString("AudioBook", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Audio Content. - /// - public static string AudioContent { - get { - return ResourceManager.GetString("AudioContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Back To Libraries. - /// - public static string BackToLibraries { - get { - return ResourceManager.GetString("BackToLibraries", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Book. - /// - public static string Book { - get { - return ResourceManager.GetString("Book", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Book Series. - /// - public static string BookSeries { - get { - return ResourceManager.GetString("BookSeries", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Comic Book. - /// - public static string ComicBook { - get { - return ResourceManager.GetString("ComicBook", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Comic Series. - /// - public static string ComicSeries { - get { - return ResourceManager.GetString("ComicSeries", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Concert. - /// - public static string Concert { - get { - return ResourceManager.GetString("Concert", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cover. - /// - public static string Cover { - get { - return ResourceManager.GetString("Cover", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cover Image. - /// - public static string CoverImage { - get { - return ResourceManager.GetString("CoverImage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the image file that will be used as the cover for this library. - /// - public static string DescriptionCover { - get { - return ResourceManager.GetString("DescriptionCover", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the folders containing the media files of this library. - /// - public static string DescriptionDirectories { - get { - return ResourceManager.GetString("DescriptionDirectories", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Whether this media library should get the metadata of it elements by downloading it from the Internet, or not.. - /// - public static string DescriptionDownloadMetadataFromWeb { - get { - return ResourceManager.GetString("DescriptionDownloadMetadataFromWeb", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Whether this media library is disabled or not. A disabled library is not displayed to the users, scanned, updated, etc.. - /// - public static string DescriptionEnabled { - get { - return ResourceManager.GetString("DescriptionEnabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Select the type of media content this library will contain. - /// - public static string DescriptionLibraryType { - get { - return ResourceManager.GetString("DescriptionLibraryType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Whether this media library is locked or not. A locked library is displayed to the users, but it is never scanned, updated, modified, etc.. - /// - public static string DescriptionLocked { - get { - return ResourceManager.GetString("DescriptionLocked", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Whether to save a copy of the downloaded metadata in the media library content locations directories, or not. This only has an effect if downloading metadata from the web is active.. - /// - public static string DescriptionShouldSaveMetadataInMediaDirectories { - get { - return ResourceManager.GetString("DescriptionShouldSaveMetadataInMediaDirectories", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A name to identify this library. - /// - public static string DescriptionTitle { - get { - return ResourceManager.GetString("DescriptionTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Directories. - /// - public static string Directories { - get { - return ResourceManager.GetString("Directories", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Documentary. - /// - public static string Documentary { - get { - return ResourceManager.GetString("Documentary", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Download Metadata From The Web. - /// - public static string DownloadMetadataFromWeb { - get { - return ResourceManager.GetString("DownloadMetadataFromWeb", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to E Book. - /// - public static string EBook { - get { - return ResourceManager.GetString("EBook", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Edit Library. - /// - public static string EditLibrary { - get { - return ResourceManager.GetString("EditLibrary", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Enabled. - /// - public static string Enabled { - get { - return ResourceManager.GetString("Enabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Film Franchise. - /// - public static string FilmFranchise { - get { - return ResourceManager.GetString("FilmFranchise", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Film Series. - /// - public static string FilmSeries { - get { - return ResourceManager.GetString("FilmSeries", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to General Information. - /// - public static string GeneralInformation { - get { - return ResourceManager.GetString("GeneralInformation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Graphic Novel. - /// - public static string GraphicNovel { - get { - return ResourceManager.GetString("GraphicNovel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Interview. - /// - public static string Interview { - get { - return ResourceManager.GetString("Interview", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Library Saved. - /// - public static string LibrarySaved { - get { - return ResourceManager.GetString("LibrarySaved", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Library Type. - /// - public static string LibraryType { - get { - return ResourceManager.GetString("LibraryType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Live Performance. - /// - public static string LivePerformance { - get { - return ResourceManager.GetString("LivePerformance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Locked. - /// - public static string Locked { - get { - return ResourceManager.GetString("Locked", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Magazine. - /// - public static string Magazine { - get { - return ResourceManager.GetString("Magazine", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Manga. - /// - public static string Manga { - get { - return ResourceManager.GetString("Manga", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Miscellaneous Content. - /// - public static string MiscellaneousContent { - get { - return ResourceManager.GetString("MiscellaneousContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Movie. - /// - public static string Movie { - get { - return ResourceManager.GetString("Movie", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Music. - /// - public static string Music { - get { - return ResourceManager.GetString("Music", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Other. - /// - public static string Other { - get { - return ResourceManager.GetString("Other", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Personal. - /// - public static string Personal { - get { - return ResourceManager.GetString("Personal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Photo Album. - /// - public static string PhotoAlbum { - get { - return ResourceManager.GetString("PhotoAlbum", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Podcast. - /// - public static string Podcast { - get { - return ResourceManager.GetString("Podcast", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Radio Show. - /// - public static string RadioShow { - get { - return ResourceManager.GetString("RadioShow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remix. - /// - public static string Remix { - get { - return ResourceManager.GetString("Remix", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Remove. - /// - public static string Remove { - get { - return ResourceManager.GetString("Remove", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save. - /// - public static string Save { - get { - return ResourceManager.GetString("Save", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Save Metadata In Media Directories. - /// - public static string ShouldSaveMetadataInMediaDirectories { - get { - return ResourceManager.GetString("ShouldSaveMetadataInMediaDirectories", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Screenplay. - /// - public static string Screenplay { - get { - return ResourceManager.GetString("Screenplay", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sheet Music. - /// - public static string SheetMusic { - get { - return ResourceManager.GetString("SheetMusic", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sound Effect. - /// - public static string Soundeffect { - get { - return ResourceManager.GetString("Soundeffect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Title. - /// - public static string Title { - get { - return ResourceManager.GetString("Title", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tutorial. - /// - public static string Tutorial { - get { - return ResourceManager.GetString("Tutorial", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Tv Show. - /// - public static string TvShow { - get { - return ResourceManager.GetString("TvShow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Videoclip. - /// - public static string Videoclip { - get { - return ResourceManager.GetString("Videoclip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Video Content. - /// - public static string VideoContent { - get { - return ResourceManager.GetString("VideoContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Visual Content. - /// - public static string VisualContent { - get { - return ResourceManager.GetString("VisualContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Written Content. - /// - public static string WrittenContent { - get { - return ResourceManager.GetString("WrittenContent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to YouTube. - /// - public static string YouTube { - get { - return ResourceManager.GetString("YouTube", resourceCulture); - } - } - } -} diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.de-DE.resx deleted file mode 100644 index 78b24eb2..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.de-DE.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Wissenschaftliche Arbeit - - - Verzeichnis hinzufügen - - - Bild hinzufügen - - - Neue Bibliothek Hinzufügen - - - Erweiterte Einstellungen - - - Anime - - - Hörbuch - - - Audioinhalt - - - Zurück Zu Bibliotheken - - - Buch - - - Buchreihe - - - Comic-Heft - - - Comic-Serie - - - Konzert - - - Coverversion - - - Titelbild - - - Wählen Sie die Bilddatei aus, die als Cover für diese Bibliothek verwendet wird - - - Wählen Sie die Ordner mit den Mediendateien dieser Bibliothek aus - - - Ob diese Medienbibliothek die Metadaten ihrer Elemente aus dem Internet herunterladen soll oder nicht. - - - Ob diese Medienbibliothek deaktiviert ist oder nicht. Eine deaktivierte Bibliothek wird den Benutzern nicht angezeigt, nicht gescannt, nicht aktualisiert, usw. - - - Wählen Sie die Art der Medieninhalte aus, die diese Bibliothek enthalten soll - - - Ob diese Medienbibliothek gesperrt ist oder nicht. Eine gesperrte Bibliothek wird den Benutzern angezeigt, wird aber nie gescannt, aktualisiert, verändert, usw. - - - Ob eine Kopie der heruntergeladenen Metadaten in den Verzeichnissen der Medienbibliothek gespeichert werden soll oder nicht. Dies hat nur eine Auswirkung, wenn das Herunterladen von Metadaten aus dem Web aktiv ist. - - - Wenn diese Option aktiviert ist, verwendet sie Verzeichnismetadaten, um Verzeichnisse zu überspringen, die sich seit dem letzten Scan nicht geändert haben. Dies kann die Scans _erheblich_ beschleunigen, aber beachten Sie, dass sich die Metadaten von Verzeichnissen _nicht_ ändern/aktualisieren, wenn vorhandene Dateien bearbeitet werden, sondern nur, wenn neue Dateien hinzugefügt oder vorhandene gelöscht werden. Aktivieren Sie diese Option nur, wenn Sie keine vorhandenen Dateien ändern. - - - Eine Bezeichnung für diese Bibliothek - - - Verzeichnisse - - - Dokumentarfilm - - - Metadaten Aus Dem Web Herunterladen - - - E-Buch - - - Bibliothek Bearbeiten - - - Aktiviert - - - Filmfranchise - - - Filmreihe - - - Allgemeine Informationen - - - Grafischer Roman - - - Interview - - - Bibliothek Gespeichert - - - Bibliothekstyp - - - Live-Auftritt - - - Gesperrt - - - Zeitschrift - - - Manga - - - Verschiedene Inhalte - - - Spielfilm - - - Musik - - - Sonstige - - - Persönlich - - - Fotoalbum - - - Podcast - - - Radiosendung - - - Neuabmischung - - - Entfernen - - - Speichern - - - Metadaten In Medienverzeichnissen Speichern - - - Unveränderte Ordner Beim Scannen Überspringen - - - Drehbuch - - - Notenblatt - - - Soundeffekt - - - Titel - - - Anleitung - - - Fernsehserie - - - Videoclip - - - Videoinhalt - - - Visueller Inhalt - - - Schriftliche Inhalte - - - YouTube - - - Name - - - Metadatenanbieter - - - Reihenfolge - - - Nach oben - - - Nach unten - - - Reihenfolge gespeichert - - - Die Metadatenanbieter, die verwendet werden, um die Elemente dieser Bibliothek anzureichern, in der Reihenfolge, in der sie versucht werden. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.en-US.resx deleted file mode 100644 index 2b704429..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.en-US.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Academic Paper - - - Add directory - - - Add image - - - Add New Library - - - Advanced Settings - - - Anime - - - Audio Book - - - Audio Content - - - Back To Libraries - - - Book - - - Book Series - - - Comic Book - - - Comic Series - - - Concert - - - Cover - - - Cover Image - - - Select the image file that will be used as the cover for this library - - - Select the folders containing the media files of this library - - - Whether this media library should get the metadata of it elements by downloading it from the Internet, or not. - - - Whether this media library is disabled or not. A disabled library is not displayed to the users, scanned, updated, etc. - - - Select the type of media content this library will contain - - - Whether this media library is locked or not. A locked library is displayed to the users, but it is never scanned, updated, modified, etc. - - - Whether to save a copy of the downloaded metadata in the media library content locations directories, or not. This only has an effect if downloading metadata from the web is active. - - - When enabled, this option uses directory metadata to skip directories that have not changed since the last scan. This can _significantly_ speed up scans, but be aware that directories metadata _does not_ change/update when editing existing files, it does so only when adding new files or deleting existing ones. Only enable this if you don't modify existing files. - - - A name to identify this library - - - Directories - - - Documentary - - - Download Metadata From The Web - - - E Book - - - Edit Library - - - Enabled - - - Film Franchise - - - Film Series - - - General Information - - - Graphic Novel - - - Interview - - - Library Saved - - - Library Type - - - Live Performance - - - Locked - - - Magazine - - - Manga - - - Miscellaneous Content - - - Movie - - - Music - - - Other - - - Personal - - - Photo Album - - - Podcast - - - Radio Show - - - Remix - - - Remove - - - Save - - - Save Metadata In Media Directories - - - Skip Unchanged Directories During Scan - - - Screenplay - - - Sheet Music - - - Sound Effect - - - Title - - - Tutorial - - - Tv Show - - - Videoclip - - - Video Content - - - Visual Content - - - Written Content - - - YouTube - - - Name - - - Metadata providers - - - Order - - - Move up - - - Move down - - - Order saved - - - The metadata providers used to enrich the items of this library, in the order they are tried. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.es-ES.resx deleted file mode 100644 index b900c27a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.es-ES.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Artículo Académico - - - Agregar directorio - - - Añadir imagen - - - Agregar Nueva Biblioteca - - - Configuración Avanzada - - - Anime - - - Audiolibro - - - Contenido de Audio - - - Volver A Las Bibliotecas - - - Libro - - - Serie de Libros - - - Cómic - - - Serie de Cómics - - - Concierto - - - Versión - - - Imagen De Portada - - - Seleccione el archivo de imagen que se usará como portada para esta biblioteca - - - Selecciona las carpetas que contienen los archivos multimedia de esta biblioteca - - - Si esta biblioteca multimedia debe obtener los metadatos de sus elementos descargándolos de Internet o no. - - - Si esta biblioteca multimedia está desactivada o no. Una biblioteca desactivada no se muestra a los usuarios, no se escanea, no se actualiza, etc. - - - Selecciona el tipo de contenido multimedia que contendrá esta biblioteca - - - Si esta biblioteca multimedia está bloqueada o no. Una biblioteca bloqueada se muestra a los usuarios, pero nunca se escanea, actualiza, modifica, etc. - - - Si guardar o no una copia de los metadatos descargados en los directorios de contenido de la biblioteca multimedia. Esto solo tiene efecto si la descarga de metadatos desde la web está activa. - - - Cuando esta opción está habilitada, utiliza los metadatos de los directorios para omitir los directorios que no han cambiado desde el último escaneo. Esto puede acelerar _significativamente_ los escaneos, pero tenga en cuenta que los metadatos de los directorios _no_ cambian/actualizan al editar archivos existentes, solo lo hacen al agregar archivos nuevos o eliminar archivos existentes. Habilite esta opción solo si no modifica archivos existentes. - - - Un nombre para identificar esta biblioteca - - - Directorios - - - Documental - - - Descargar Metadatos Desde La Web - - - Libro Electrónico - - - Editar Biblioteca - - - Activado - - - Franquicia Cinematográfica - - - Saga Cinematográfica - - - Información General - - - Novela Gráfica - - - Entrevista - - - Biblioteca Guardada - - - Tipo de Biblioteca - - - Actuación en Vivo - - - Bloqueado - - - Revista - - - Manga - - - Contenido Diverso - - - Película - - - Música - - - Otro - - - Personal - - - Álbum de Fotos - - - Podcast - - - Programa de Radio - - - Remezcla - - - Eliminar - - - Guardar - - - Guardar Metadatos En Los Directorios Multimedia - - - Omitir Carpetas Sin Cambios Durante El Escaneo - - - Guión - - - Partitura Musical - - - Efecto de Sonido - - - Título - - - Tutorial - - - Serie de Televisión - - - Videoclip - - - Contenido de Video - - - Contenido Visual - - - Contenido Escrito - - - YouTube - - - Nombre - - - Proveedores de metadatos - - - Orden - - - Subir - - - Bajar - - - Orden guardado - - - Los proveedores de metadatos utilizados para enriquecer los elementos de esta biblioteca, en el orden en que se prueban. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.fr-FR.resx deleted file mode 100644 index 97ab6e8a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.fr-FR.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Article Académique - - - Ajouter un répertoire - - - Ajouter une image - - - Ajouter Une Nouvelle Bibliothèque - - - Paramètres Avancés - - - Animé - - - Livre Audio - - - Contenu Audio - - - Retour Aux Bibliothèques - - - Livre - - - Série de Livres - - - Bande Dessinée - - - Série de Bandes Dessinées - - - Concert - - - Reprise - - - Image De Couverture - - - Sélectionnez le fichier image qui servira de couverture pour cette bibliothèque - - - Sélectionnez les dossiers contenant les fichiers multimédias de cette bibliothèque - - - Si cette médiathèque doit obtenir les métadonnées de ses éléments en les téléchargeant depuis Internet ou non. - - - Si cette médiathèque est désactivée ou non. Une bibliothèque désactivée n'est pas affichée aux utilisateurs, ni analysée, ni mise à jour, etc. - - - Choisissez le type de contenu multimédia que contiendra cette bibliothèque - - - Si cette médiathèque est verrouillée ou non. Une bibliothèque verrouillée est affichée aux utilisateurs, mais n'est jamais analysée, mise à jour, modifiée, etc. - - - Si une copie des métadonnées téléchargées doit être sauvegardée dans les répertoires de contenu de la médiathèque ou non. Ceci n'a d'effet que si le téléchargement des métadonnées depuis le web est actif. - - - Lorsque cette option est activée, elle utilise les métadonnées des dossiers pour ignorer les dossiers qui n'ont pas changé depuis la dernière analyse. Cela peut accélérer _considérablement_ les analyses, mais sachez que les métadonnées des dossiers _ne_ changent/mettent _pas_ à jour lors de la modification de fichiers existants, seulement lors de l'ajout de nouveaux fichiers ou de la suppression de fichiers existants. N'activez cette option que si vous ne modifiez pas les fichiers existants. - - - Un nom pour identifier cette bibliothèque - - - Répertoires - - - Documentaire - - - Télécharger Les Métadonnées Depuis Le Web - - - Livre Numérique - - - Modifier La Bibliothèque - - - Activé - - - Franchise Cinématographique - - - Saga Cinématographique - - - Informations Générales - - - Roman Graphique - - - Entretien - - - Bibliothèque Enregistrée - - - Type de Bibliothèque - - - Concert Live - - - Verrouillé - - - Magazine - - - Manga - - - Contenu Divers - - - Film - - - Musique - - - Autre - - - Personnel - - - Album Photo - - - Podcast - - - Émission Radio - - - Remixage - - - Supprimer - - - Enregistrer - - - Sauvegarder Les Métadonnées Dans Les Répertoires Média - - - Ignorer Les Dossiers Inchangés Lors De L'Analyse - - - Scénario - - - Partition Musicale - - - Effet Sonore - - - Titre - - - Tutoriel - - - Série Télévisée - - - Clip Vidéo - - - Contenu Vidéo - - - Contenu Visuel - - - Contenu Écrit - - - YouTube - - - Nom - - - Fournisseurs de métadonnées - - - Ordre - - - Monter - - - Descendre - - - Ordre enregistré - - - 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. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.it-IT.resx deleted file mode 100644 index c0fda72d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.it-IT.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Articolo Accademico - - - Aggiungi directory - - - Aggiungi immagine - - - Aggiungi Nuova Libreria - - - Impostazioni Avanzate - - - Anime - - - Audiolibro - - - Contenuto Audio - - - Ritorno Alle Biblioteche - - - Libro - - - Serie di Libri - - - Fumetto - - - Serie di Fumetti - - - Concerto - - - Reinterpretazione - - - Immagine Di Copertina - - - Seleziona il file immagine che sarà utilizzato come copertina per questa libreria - - - Seleziona le cartelle che contengono i file multimediali di questa biblioteca - - - Se questa libreria multimediale deve ottenere i metadati dei suoi elementi scaricandoli da Internet o meno. - - - Se questa libreria multimediale è disabilitata o meno. Una libreria disabilitata non viene mostrata agli utenti, scansionata, aggiornata, ecc. - - - Seleziona il tipo di contenuti multimediali che questa biblioteca conterrà - - - Se questa libreria multimediale è bloccata o meno. Una libreria bloccata viene mostrata agli utenti, ma non viene mai scansionata, aggiornata, modificata, ecc. - - - Se salvare o meno una copia dei metadati scaricati nelle directory dei contenuti della libreria multimediale. Questo ha effetto solo se il download dei metadati dal web è attivo. - - - Quando questa opzione è abilitata, utilizza i metadati delle cartelle per saltare le cartelle che non sono cambiate dall'ultima scansione. Questo può accelerare _significativamente_ le scansioni, ma tieni presente che i metadati delle cartelle _non_ cambiano/aggiornano quando si modificano file esistenti, lo fanno solo quando si aggiungono nuovi file o si eliminano file esistenti. Abilita questa opzione solo se non modifichi i file esistenti. - - - Un nome per identificare questa biblioteca - - - Directory - - - Documentario - - - Scarica I Metadati Dal Web - - - E-Book - - - Modifica La Libreria - - - Attivato - - - Franchise Cinematografico - - - Saga Cinematografica - - - Informazioni Generali - - - Romanzo Grafico - - - Intervista - - - Biblioteca Salvata - - - Tipo di Libreria - - - Esibizione dal Vivo - - - Bloccato - - - Rivista - - - Manga - - - Contenuti Vari - - - Film - - - Musica - - - Altro - - - Personale - - - Album Fotografico - - - Podcast - - - Programma Radiofonico - - - Remissaggio - - - Rimuovere - - - Salva - - - Salvare I Metadati Nelle Directory Multimediali - - - Salta Cartelle Invariate Durante La Scansione - - - Sceneggiatura - - - Spartito Musicale - - - Effetto Sonoro - - - Titolo - - - Tutorial - - - Serie Televisiva - - - Videoclip - - - Contenuto Video - - - Contenuto Visivo - - - Contenuto Scritto - - - YouTube - - - Nome - - - Fornitori di metadati - - - Ordine - - - Sposta su - - - Sposta giù - - - Ordine salvato - - - I fornitori di metadati utilizzati per arricchire gli elementi di questa libreria, nell'ordine in cui vengono provati. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ja-JP.resx deleted file mode 100644 index 471fbf00..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ja-JP.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 学術論文 - - - ディレクトリを追加 - - - 画像を追加 - - - 新しい ライブラリ 追加 - - - 詳細設定 - - - アニメ - - - オーディオブック - - - 音声コンテンツ - - - 図書館に戻る - - - 本 - - - 本シリーズ - - - 漫画 - - - 漫画シリーズ - - - コンサート - - - カバー曲 - - - カバー画像 - - - このライブラリのカバーとして使用する画像ファイルを選択してください - - - このライブラリのメディアファイルを含むフォルダを選択してください - - - このメディアライブラリの要素のメタデータをインターネットからダウンロードして取得するかどうか。 - - - このメディアライブラリが無効になっているかどうか。無効化されたライブラリはユーザーに表示されず、スキャンされず、更新もされません。 - - - この図書館に含める媒体コンテンツの種類を選択してください - - - このメディアライブラリがロックされているかどうか。ロックされたライブラリはユーザーに表示されますが、スキャン、更新、変更などは一切されません。 - - - ダウンロードしたメタデータのコピーをメディアライブラリのコンテンツディレクトリに保存するかどうか。これはウェブからのメタデータのダウンロードが有効な場合のみ効果があります。 - - - このオプションを有効にすると、ディレクトリのメタデータを使用して、前回のスキャン以降に変更されていないディレクトリをスキップします。これによりスキャンを_大幅に_高速化できますが、既存のファイルを編集してもディレクトリのメタデータは_変更/更新されない_ことに注意してください。変更されるのは、新しいファイルを追加したときや既存のファイルを削除したときだけです。既存のファイルを変更しない場合にのみ有効にしてください。 - - - この図書館を識別するための名称 - - - ディレクトリ - - - ドキュメンタリー - - - ウェブからメタデータをダウンロード - - - 電子書籍 - - - ライブラリ 編集 - - - 有効 - - - 映画フランチャイズ - - - 映画シリーズ - - - 一般情報 - - - グラフィックノベル - - - インタビュー - - - ライブラリを保存しました - - - ライブラリの種類 - - - ライブパフォーマンス - - - ロック済 - - - 雑誌 - - - 漫画 - - - その他のコンテンツ - - - 映画 - - - 音楽 - - - その他 - - - 個人的な - - - フォトアルバム - - - ポッドキャスト - - - ラジオ番組 - - - リミックス - - - 削除 - - - 保存 - - - メディアディレクトリにメタデータを保存 - - - スキャン中に変更のないフォルダをスキップ - - - 脚本 - - - 楽譜 - - - 効果音 - - - タイトル - - - チュートリアル - - - テレビドラマ - - - 動画クリップ - - - 動画コンテンツ - - - 視覚的コンテンツ - - - 文字コンテンツ - - - ユーチューブ - - - 名前 - - - メタデータプロバイダー - - - 順序 - - - 上へ移動 - - - 下へ移動 - - - 順序を保存しました - - - このライブラリのアイテムを補完するために使用されるメタデータプロバイダーを、試行する順序で指定します。 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.resx deleted file mode 100644 index 2b704429..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Academic Paper - - - Add directory - - - Add image - - - Add New Library - - - Advanced Settings - - - Anime - - - Audio Book - - - Audio Content - - - Back To Libraries - - - Book - - - Book Series - - - Comic Book - - - Comic Series - - - Concert - - - Cover - - - Cover Image - - - Select the image file that will be used as the cover for this library - - - Select the folders containing the media files of this library - - - Whether this media library should get the metadata of it elements by downloading it from the Internet, or not. - - - Whether this media library is disabled or not. A disabled library is not displayed to the users, scanned, updated, etc. - - - Select the type of media content this library will contain - - - Whether this media library is locked or not. A locked library is displayed to the users, but it is never scanned, updated, modified, etc. - - - Whether to save a copy of the downloaded metadata in the media library content locations directories, or not. This only has an effect if downloading metadata from the web is active. - - - When enabled, this option uses directory metadata to skip directories that have not changed since the last scan. This can _significantly_ speed up scans, but be aware that directories metadata _does not_ change/update when editing existing files, it does so only when adding new files or deleting existing ones. Only enable this if you don't modify existing files. - - - A name to identify this library - - - Directories - - - Documentary - - - Download Metadata From The Web - - - E Book - - - Edit Library - - - Enabled - - - Film Franchise - - - Film Series - - - General Information - - - Graphic Novel - - - Interview - - - Library Saved - - - Library Type - - - Live Performance - - - Locked - - - Magazine - - - Manga - - - Miscellaneous Content - - - Movie - - - Music - - - Other - - - Personal - - - Photo Album - - - Podcast - - - Radio Show - - - Remix - - - Remove - - - Save - - - Save Metadata In Media Directories - - - Skip Unchanged Directories During Scan - - - Screenplay - - - Sheet Music - - - Sound Effect - - - Title - - - Tutorial - - - Tv Show - - - Videoclip - - - Video Content - - - Visual Content - - - Written Content - - - YouTube - - - Name - - - Metadata providers - - - Order - - - Move up - - - Move down - - - Order saved - - - The metadata providers used to enrich the items of this library, in the order they are tried. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ro-RO.resx deleted file mode 100644 index faa8d55e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ro-RO.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Lucrare Academică - - - Adaugă dosar - - - Adaugă imagine - - - Adaugă Bibliotecă Nouă - - - Setări Avansate - - - Anime - - - Carte Audio - - - Conținut Audio - - - Înapoi La Biblioteci - - - Carte - - - Serie de Cărți - - - Bandă Desenată - - - Serie de Benzi Desenate - - - Concert - - - Preluare - - - Imagine Copertă - - - Selectează fișierul imagine care va fi folosit ca și copertă pentru această bibliotecă - - - Selectează dosarele care conțin fișierele media ale acestei biblioteci - - - Dacă această bibliotecă media ar trebui să obțină metadatele elementelor sale prin descărcare de pe Internet sau nu. - - - Dacă această bibliotecă media este dezactivată sau nu. O bibliotecă dezactivată nu este afișată utilizatorilor, scanată, actualizată, etc. - - - Selectează tipul de conținut media pe care îl va conține această bibliotecă - - - Dacă această bibliotecă media este blocată sau nu. O bibliotecă blocată este afișată utilizatorilor, dar nu este niciodată scanată, actualizată, modificată, etc. - - - Dacă se salvează sau nu o copie a metadatelor descărcate în directoarele cu conținut ale bibliotecii media. Acest lucru are efect doar dacă descărcarea metadatelor de pe web este activă. - - - Când această opțiune este activată, folosește metadatele directorului pentru a sări peste directoarele care nu s-au schimbat de la ultima scanare. Acest lucru poate accelera _semnificativ_ scanările, dar rețineți că metadatele directoarelor _nu_ se schimbă/actualizează atunci când editați fișiere existente, se schimbă doar atunci când adăugați fișiere noi sau ștergeți fișiere existente. Activați această opțiune numai dacă nu modificați fișierele existente. - - - Un nume pentru identificarea acestei biblioteci - - - Dosare - - - Documentar - - - Descarcă Metadate De Pe Web - - - Carte Electronică - - - Editează Bibliotecă - - - Activat - - - Franciză de Film - - - Serie de Filme - - - Informații Generale - - - Roman Grafic - - - Interviu - - - Biblioteca A Fost Salvată - - - Tip Bibliotecă - - - Spectacol Live - - - Blocat - - - Revistă - - - Manga - - - Conținut Divers - - - Film - - - Muzică - - - Altceva - - - Personal - - - Album Foto - - - Podcast - - - Emisiune Radio - - - Remix - - - Șterge - - - Salvează - - - Salvează Metadatele În Directoarele Media - - - Sari Peste Directorarele Neschimbate În Timpul Scanării - - - Scenariu - - - Partitură Muzicală - - - Efect Sonor - - - Titlu - - - Tutorial - - - Serial TV - - - Videoclip - - - Conținut Video - - - Conținut Vizual - - - Conținut Scris - - - YouTube - - - Nume - - - Furnizori de metadate - - - Ordine - - - Mută în sus - - - Mută în jos - - - Ordine salvată - - - Furnizorii de metadate folosiți pentru a îmbogăți elementele acestei biblioteci, în ordinea în care sunt încercați. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ru-RU.resx deleted file mode 100644 index da0a2f07..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.ru-RU.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Научная Статья - - - Добавить директорию - - - Добавить изображение - - - Добавить Новую Библиотеку - - - Расширенные Настройки - - - Аниме - - - Аудиокнига - - - Аудиоконтент - - - Возвращение В Библиотеки - - - Книга - - - Книжная Серия - - - Комикс - - - Серия Комиксов - - - Концерт - - - Кавер - - - Обложка - - - Выберите файл изображения, который будет использоваться в качестве обложки для этой библиотеки - - - Выберите папки, содержащие медиафайлы этой библиотеки - - - Должна ли эта медиатека получать метаданные своих элементов путем загрузки из Интернета или нет. - - - Отключена эта медиатека или нет. Отключенная библиотека не отображается пользователям, не сканируется, не обновляется и т.д. - - - Выберите тип медиаконтента, который будет содержать эта библиотека - - - Заблокирована эта медиатека или нет. Заблокированная библиотека отображается пользователям, но никогда не сканируется, не обновляется, не изменяется и т.д. - - - Сохранять копию загруженных метаданных в каталогах содержимого медиатеки или нет. Это действует только если активна загрузка метаданных из интернета. - - - При включении этой опции используются метаданные каталогов, чтобы пропускать каталоги, не изменявшиеся с момента последнего сканирования. Это может _значительно_ ускорить сканирование, но учтите, что метаданные каталогов _не_ изменяются/обновляются при редактировании существующих файлов, а только при добавлении новых или удалении существующих. Включайте эту опцию только в том случае, если вы не изменяете существующие файлы. - - - Название для этой библиотеки - - - Каталоги - - - Документальный Фильм - - - Загрузить Метаданные Из Интернета - - - Электронная Книга - - - Редактировать Библиотеку - - - Включено - - - Кинофраншиза - - - Киносерия - - - Общая Информация - - - Графический Роман - - - Интервью - - - Библиотека Сохранена - - - Тип Библиотеки - - - Живое Выступление - - - Заблокировано - - - Журнал - - - Манга - - - Разное Содержание - - - Фильм - - - Музыка - - - Другой - - - Личный - - - Фотоальбом - - - Подкаст - - - Радиопередача - - - Ремикс - - - Удалить - - - Сохранить - - - Сохранить Метаданные В Каталогах Медиафайлов - - - Пропускать Неизмененные Папки При Сканировании - - - Сценарий - - - Нотная Запись - - - Звуковой Эффект - - - Заголовок - - - Учебник - - - Телесериал - - - Видеоролик - - - Видеоконтент - - - Визуальный Контент - - - Письменный Контент - - - Ютуб - - - Имя - - - Поставщики метаданных - - - Порядок - - - Вверх - - - Вниз - - - Порядок сохранен - - - Поставщики метаданных, используемые для обогащения элементов этой библиотеки, в порядке, в котором они испытываются. - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.zh-CN.resx deleted file mode 100644 index 01c0cbb5..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/Management/Item.zh-CN.resx +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 学术论文 - - - 添加目录 - - - 添加图片 - - - 添加 新库 - - - 高级设置 - - - 动画 - - - 有声书 - - - 音频内容 - - - 重返图书馆 - - - 书 - - - 丛书 - - - 漫画 - - - 漫画系列 - - - 音乐会 - - - 翻唱 - - - 封面图片 - - - 选择将用作此库封面的图片文件 - - - 选择包含该图书馆媒体文件的文件夹 - - - 此媒体库是否应该从互联网下载其元素的元数据。 - - - 此媒体库是否已禁用。禁用的库不会显示给用户,不会被扫描、更新等。 - - - 选择这个图书馆将包含的媒体内容类型 - - - 此媒体库是否已锁定。锁定的库会显示给用户,但永远不会被扫描、更新、修改等。 - - - 是否在媒体库内容位置目录中保存已下载元数据的副本。这仅在从网络下载元数据处于活动状态时才有效。 - - - 启用此选项后,将使用目录元数据跳过自上次扫描以来未更改的目录。这可以_显著_加快扫描速度,但请注意,编辑现有文件时目录元数据_不会_更改/更新,只有在添加新文件或删除现有文件时才会更改。仅当您不修改现有文件时才启用此选项。 - - - 给这个图书馆起个名字 - - - 目录 - - - 纪录片 - - - 从网络下载元数据 - - - 电子书 - - - 编辑 库 - - - 已启用 - - - 电影系列品牌 - - - 电影系列 - - - 常规信息 - - - 图像小说 - - - 访谈 - - - 图书馆已保存 - - - 库类型 - - - 现场表演 - - - 已锁定 - - - 杂志 - - - 漫画 - - - 杂项内容 - - - 电影 - - - 音乐 - - - 其他 - - - 个人的 - - - 相册 - - - 播客 - - - 广播节目 - - - 混音版 - - - 删除 - - - 保存 - - - 在媒体目录中保存元数据 - - - 扫描时跳过未更改的文件夹 - - - 剧本 - - - 乐谱 - - - 音效 - - - 标题 - - - 教程 - - - 电视连续剧 - - - 视频短片 - - - 视频内容 - - - 视觉内容 - - - 文字内容 - - - 油管 - - - 名称 - - - 元数据提供程序 - - - 顺序 - - - 上移 - - - 下移 - - - 顺序已保存 - - - 用于丰富此库项目内容的元数据提供程序,按其尝试顺序排列。 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx deleted file mode 100644 index e2208b8a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Suchen - - - Sortieren: A-Z - - - Sortieren: Z-A - - - Einträge - - - von - - - Seite - - - Zurück - - - Weiter - - - Alle - - - Diese Bibliothek hat keine Einträge - - - Keine Einträge entsprechen den aktuellen Filtern - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx deleted file mode 100644 index f44c8d5a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Search - - - Sort: A-Z - - - Sort: Z-A - - - items - - - of - - - Page - - - Previous - - - Next - - - All - - - This library has no items - - - No items match the current filters - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx deleted file mode 100644 index ae88931b..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Buscar - - - Ordenar: A-Z - - - Ordenar: Z-A - - - elementos - - - de - - - Página - - - Anterior - - - Siguiente - - - Todos - - - Esta biblioteca no tiene elementos - - - Ningún elemento coincide con los filtros actuales - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx deleted file mode 100644 index 5797b42e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Rechercher - - - Trier : A-Z - - - Trier : Z-A - - - éléments - - - sur - - - Page - - - Précédent - - - Suivant - - - Tous - - - Cette bibliothèque ne contient aucun élément - - - Aucun élément ne correspond aux filtres actuels - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx deleted file mode 100644 index 78cd6fbe..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cerca - - - Ordina: A-Z - - - Ordina: Z-A - - - elementi - - - di - - - Pagina - - - Precedente - - - Successivo - - - Tutti - - - Questa biblioteca non contiene elementi - - - Nessun elemento corrisponde ai filtri correnti - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx deleted file mode 100644 index 2855a774..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 検索 - - - 並べ替え: A-Z - - - 並べ替え: Z-A - - - 件 - - - / - - - ページ - - - 前へ - - - 次へ - - - すべて - - - このライブラリには項目がありません - - - 現在のフィルターに一致する項目はありません - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx deleted file mode 100644 index f44c8d5a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Search - - - Sort: A-Z - - - Sort: Z-A - - - items - - - of - - - Page - - - Previous - - - Next - - - All - - - This library has no items - - - No items match the current filters - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx deleted file mode 100644 index cec2e1d0..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Caută - - - Sortare: A-Z - - - Sortare: Z-A - - - elemente - - - din - - - Pagina - - - Înapoi - - - Înainte - - - Toate - - - Această bibliotecă nu are elemente - - - Niciun element nu corespunde filtrelor curente - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx deleted file mode 100644 index a3c04101..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Поиск - - - Сортировка: А-Я - - - Сортировка: Я-А - - - элементов - - - из - - - Страница - - - Назад - - - Вперёд - - - Все - - - В этой библиотеке нет элементов - - - Ни один элемент не соответствует текущим фильтрам - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx deleted file mode 100644 index d8e628ba..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx +++ /dev/null @@ -1,48 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 搜索 - - - 排序: A-Z - - - 排序: Z-A - - - 项 - - - / - - - 页 - - - 上一页 - - - 下一页 - - - 全部 - - - 此库中没有项目 - - - 没有项目符合当前筛选条件 - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.de-DE.resx deleted file mode 100644 index a7c66925..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.de-DE.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Plugins - - - Name - - - Autor - - - Version - - - Beschreibung - - - Ladestatus - - - Geladen - - - Fehler beim Laden - - - Ladefehler - - - Einstellungen - - - Es wurden keine Plugins erkannt. - - - Speichern - - - Einstellungen gespeichert - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.en-US.resx deleted file mode 100644 index 6971d3db..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.en-US.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Plugins - - - Name - - - Author - - - Version - - - Description - - - Load status - - - Loaded - - - Failed to load - - - Load error - - - Settings - - - No plugins have been detected. - - - Save - - - Settings saved - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.es-ES.resx deleted file mode 100644 index f093ae69..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.es-ES.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Plugins - - - Nombre - - - Autor - - - Versión - - - Descripción - - - Estado de carga - - - Cargado - - - Error al cargar - - - Error de carga - - - Configuración - - - No se han detectado plugins. - - - Guardar - - - Configuración guardada - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.fr-FR.resx deleted file mode 100644 index 8eca2513..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.fr-FR.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Plugins - - - Nom - - - Auteur - - - Version - - - Description - - - État de chargement - - - Chargé - - - Échec du chargement - - - Erreur de chargement - - - Paramètres - - - Aucun plugin n'a été détecté. - - - Enregistrer - - - Paramètres enregistrés - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.it-IT.resx deleted file mode 100644 index 47b7de18..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.it-IT.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Plugin - - - Nome - - - Autore - - - Versione - - - Descrizione - - - Stato di caricamento - - - Caricato - - - Errore di caricamento - - - Errore di caricamento - - - Impostazioni - - - Nessun plugin rilevato. - - - Salva - - - Impostazioni salvate - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ja-JP.resx deleted file mode 100644 index 768a0b13..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ja-JP.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - プラグイン - - - 名前 - - - 作者 - - - バージョン - - - 説明 - - - 読み込み状態 - - - 読み込み済み - - - 読み込みに失敗 - - - 読み込みエラー - - - 設定 - - - プラグインが検出されませんでした。 - - - 保存 - - - 設定を保存しました - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.resx deleted file mode 100644 index 6971d3db..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Plugins - - - Name - - - Author - - - Version - - - Description - - - Load status - - - Loaded - - - Failed to load - - - Load error - - - Settings - - - No plugins have been detected. - - - Save - - - Settings saved - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ro-RO.resx deleted file mode 100644 index 5e9b67a1..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ro-RO.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Pluginuri - - - Nume - - - Autor - - - Versiune - - - Descriere - - - Stare de încărcare - - - Încărcat - - - Încărcare eșuată - - - Eroare de încărcare - - - Setări - - - Nu au fost detectate pluginuri. - - - Salvare - - - Setări salvate - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ru-RU.resx deleted file mode 100644 index 4dee8ba8..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.ru-RU.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Плагины - - - Имя - - - Автор - - - Версия - - - Описание - - - Статус загрузки - - - Загружен - - - Не удалось загрузить - - - Ошибка загрузки - - - Настройки - - - Плагины не обнаружены. - - - Сохранить - - - Настройки сохранены - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.zh-CN.resx deleted file mode 100644 index 38f058f0..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Plugins/Index.zh-CN.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 插件 - - - 名称 - - - 作者 - - - 版本 - - - 说明 - - - 加载状态 - - - 已加载 - - - 加载失败 - - - 加载错误 - - - 设置 - - - 未检测到插件。 - - - 保存 - - - 设置已保存 - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx deleted file mode 100644 index c4d18087..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Zurück - - - Abbrechen - - - Bestätigen - - - Detailansicht - - - Verzeichnis - - - Pfad Bearbeiten - - - Neuen Verzeichnisnamen eingeben: - - - Extragroße Symbolansicht - - - Favoriten-Verzeichnis - - - Vorwärts - - - Große Symbolansicht - - - Listenansicht - - - Mittlere Symbolansicht - - - Name - - - Navigieren - - - Neues Verzeichnis - - - Öffnen - - - Kleine Symbolansicht - - - Versteckte Elemente Umschalten - - - Auswahlmodus Umschalten - - - Miniaturansicht Umschalten - - - Baumansicht Umschalten - - - Eine Ebene Nach Oben - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx deleted file mode 100644 index 88e38636..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Back - - - Cancel - - - Confirm - - - Details View - - - Directory - - - Edit Path - - - Enter new directory name: - - - Extra Large Icons View - - - Favorite Directory - - - Forward - - - Large Icons View - - - List View - - - Medium Icons View - - - Name - - - Navigate - - - New Directory - - - Open - - - Small Icons View - - - Toggle Hidden Items - - - Toggle Selection Mode - - - Toggle Thumbanils - - - Toggle Tree View - - - Up One Level - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx deleted file mode 100644 index ab9749b0..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Atrás - - - Cancelar - - - Confirmar - - - Vista detallada - - - Directorio - - - Editar Ruta - - - Introduzca el nombre del nuevo directorio: - - - Vista iconos extra grandes - - - Carpeta Favorita - - - Adelante - - - Vista iconos grandes - - - Vista de lista - - - Vista iconos medianos - - - Nombre - - - Navegar - - - Nueva Carpeta - - - Abrir - - - Vista iconos pequeños - - - Alternar Elementos Ocultos - - - Alternar Modo Selección - - - Alternar Miniaturas - - - Alternar Vista de Árbol - - - Subir un Nivel - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx deleted file mode 100644 index 3fbaf1d8..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Retour - - - Annuler - - - Confirmer - - - Vue détaillée - - - Répertoire - - - Modifier le Chemin - - - Entrez le nom du nouveau dossier: - - - Vue très grandes icônes - - - Dossier Favori - - - Suivant - - - Vue grandes icônes - - - Vue en liste - - - Vue icônes moyennes - - - Nom - - - Naviguer - - - Nouveau Dossier - - - Ouvrir - - - Vue petites icônes - - - Basculer les Éléments Masqués - - - Basculer le Mode Sélection - - - Basculer les Vignettes - - - Basculer l'Arborescence - - - Remonter d'un Niveau - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx deleted file mode 100644 index e488c2b3..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Indietro - - - Annulla - - - Conferma - - - Vista dettagli - - - Cartella - - - Modifica Percorso - - - Inserisci il nome della nuova cartella: - - - Vista icone molto grandi - - - Cartella Preferita - - - Avanti - - - Vista icone grandi - - - Vista elenco - - - Vista icone medie - - - Nome - - - Navigare - - - Nuova Cartella - - - Apri - - - Vista icone piccole - - - Attiva/Disattiva Elementi Nascosti - - - Attiva/Disattiva Modalità Selezione - - - Attiva/Disattiva Miniature - - - Attiva/Disattiva Vista Struttura - - - Sali di un Livello - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx deleted file mode 100644 index a6a9146e..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 戻る - - - キャンセル - - - 確認 - - - 詳細表示 - - - フォルダ - - - パス編集 - - - 新規フォルダ名を入力: - - - 特大アイコン表示 - - - お気に入りフォルダ - - - 進む - - - 大きいアイコン表示 - - - リスト表示 - - - 中アイコン表示 - - - 名前 - - - 移動 - - - 新規フォルダ - - - 開く - - - 小さいアイコン表示 - - - 隠し項目表示切替 - - - 選択モード切替 - - - サムネイル表示切替 - - - ツリー表示切替 - - - 上の階層へ - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx deleted file mode 100644 index 0e3ba1c7..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Back - - - Cancel - - - Confirm - - - Details View - - - Directory - - - Edit Path - - - Enter new directory name: - - - Extra Large Icons View - - - Favorite Directory - - - Forward - - - LargeIconsView - - - List View - - - Medium Icons View - - - Name - - - Navigate - - - New Directory - - - Open - - - Small Icons View - - - Toggle Hidden Items - - - Toggle Selection Mode - - - Toggle Thumbanils - - - Toggle Tree View - - - Up One Level - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx deleted file mode 100644 index ea1a45cf..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Înapoi - - - Anulare - - - Confirmă - - - Vizualizare detaliată - - - Dosar - - - Editare Cale - - - Introduceți numele noului director: - - - Vizualizare pictograme foarte mari - - - Dosar Favorit - - - Înainte - - - Vizualizare pictograme mari - - - Vizualizare listă - - - Vizualizare pictograme medii - - - Nume - - - Navigare - - - Dosar Nou - - - Deschide - - - Vizualizare pictograme mici - - - Comutare Elemente Ascunse - - - Comutare Mod Selecție - - - Comutare Pictograme - - - Comutare Vizualizare Arbore - - - Un Nivel Mai Sus - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx deleted file mode 100644 index bd079438..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Назад - - - Отмена - - - Подтвердить - - - Подробный вид - - - Папка - - - Изменить Путь - - - Введите имя новой папки: - - - Очень крупные значки - - - Избранная Папка - - - Вперёд - - - Крупные значки - - - Список - - - Средние значки - - - Имя - - - Перейти - - - Новая Папка - - - Открыть - - - Мелкие значки - - - Показать/Скрыть Скрытые Элементы - - - Переключить Режим Выделения - - - Переключить Эскизы - - - Развернуть/Свернуть Дерево - - - На Уровень Выше - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx deleted file mode 100644 index babfbcf0..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 返回 - - - 取消 - - - 确认 - - - 详细视图 - - - 文件夹 - - - 编辑路径 - - - 输入新文件夹名称: - - - 超大图标视图 - - - 收藏文件夹 - - - 前进 - - - 大图标视图 - - - 列表视图 - - - 中等图标视图 - - - 名称 - - - 导航 - - - 新建文件夹 - - - 打开 - - - 小图标视图 - - - 切换隐藏项目 - - - 切换选择模式 - - - 切换缩略图 - - - 切换树形视图 - - - 向上一级 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.de-DE.resx deleted file mode 100644 index 3a1919ca..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.de-DE.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Versuche nicht, diese Seite zu finden. Das ist unmöglich. Stattdessen... versuche nur die Wahrheit zu erkennen: - - - Es gibt keine Seite! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.en-US.resx deleted file mode 100644 index da7e5bf3..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.en-US.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Do not try and find this page. That's impossible. Instead... only try to realize the truth: - - - There is no page! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.es-ES.resx deleted file mode 100644 index 806014ea..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.es-ES.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - No intentes encontrar esta página. Es imposible. En su lugar... solo trata de comprender la verdad: - - - ¡No hay ninguna página! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.fr-FR.resx deleted file mode 100644 index a4512708..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.fr-FR.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - N'essayez pas de trouver cette page. C'est impossible. Au lieu de cela... essayez seulement de réaliser la vérité: - - - Il n'y a pas de page! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.it-IT.resx deleted file mode 100644 index a0be42b9..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.it-IT.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Non provare a trovare questa pagina. È impossibile. Invece... prova solo a realizzare la verità: - - - Non esiste alcuna pagina! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ja-JP.resx deleted file mode 100644 index 2c020d89..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ja-JP.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - このページを探そうとしないで。それは不可能だ。代わりに...真実に気づくだけでいい: - - - ページなんてないのだ! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.resx deleted file mode 100644 index da7e5bf3..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Do not try and find this page. That's impossible. Instead... only try to realize the truth: - - - There is no page! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ro-RO.resx deleted file mode 100644 index 140a18a5..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ro-RO.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Nu încerca să găsești această pagină. Este imposibil. În schimb... încearcă doar să realizezi adevărul: - - - Nu există o pagină! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ru-RU.resx deleted file mode 100644 index cbf49d08..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.ru-RU.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Не пытайся найти эту страницу. Это невозможно. Вместо этого... попытайся осознать истину: - - - Страницы не существует! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.zh-CN.resx deleted file mode 100644 index f35d1192..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/NotFound.zh-CN.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 不要试图寻找这个页面。这是不可能的。相反...只需要领悟真相: - - - 根本没有页面! - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.de-DE.resx deleted file mode 100644 index e9ac8596..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.de-DE.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Abbrechen - - - Abbrechen - - - Bestätigung - - - Fehler - - - Ignorieren - - - Information - - - Navigation fehlgeschlagen! - - - Nein - - - OK - - - Wiederholen - - - Vollhöhe Umschalten - - - Sichtbarkeit Umschalten - - - Warnung - - - Ja - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.en-US.resx deleted file mode 100644 index 6b99cf65..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.en-US.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Abort - - - Cancel - - - Confirmation - - - Error - - - Ignore - - - Information - - - Navigation failed! - - - No - - - OK - - - Retry - - - Toggle Full Height - - - Toggle Visibility - - - Warning - - - Yes - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.es-ES.resx deleted file mode 100644 index 4f09682d..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.es-ES.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Anular - - - Cancelar - - - Confirmación - - - Error - - - Ignorar - - - Información - - - ¡Navegación fallida! - - - No - - - Aceptar - - - Reintentar - - - Alternar Altura Completa - - - Alternar Visibilidad - - - Advertencia - - - Sí - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.fr-FR.resx deleted file mode 100644 index 70581855..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.fr-FR.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Abandonner - - - Annuler - - - Confirmation - - - Erreur - - - Ignorer - - - Information - - - Navigation échouée ! - - - Non - - - OK - - - Réessayer - - - Basculer Hauteur Complète - - - Basculer Visibilité - - - Avertissement - - - Oui - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.it-IT.resx deleted file mode 100644 index 3e510bb1..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.it-IT.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Interrompi - - - Annulla - - - Conferma - - - Errore - - - Ignora - - - Informazione - - - Navigazione fallita! - - - No - - - OK - - - Riprova - - - Attiva/Disattiva Altezza Piena - - - Attiva/Disattiva Visibilità - - - Avviso - - - Sì - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ja-JP.resx deleted file mode 100644 index 25aed7bb..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ja-JP.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 中止する - - - キャンセル - - - 確認 - - - エラー - - - 無視する - - - 情報 - - - ナビゲーションに失敗しました! - - - いいえ - - - OK - - - 再試行 - - - 全高表示切替 - - - 表示切替 - - - 警告 - - - はい - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.resx deleted file mode 100644 index 6b99cf65..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Abort - - - Cancel - - - Confirmation - - - Error - - - Ignore - - - Information - - - Navigation failed! - - - No - - - OK - - - Retry - - - Toggle Full Height - - - Toggle Visibility - - - Warning - - - Yes - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ro-RO.resx deleted file mode 100644 index 24855322..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ro-RO.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Anulare - - - Anulare - - - Confirmare - - - Eroare - - - Ignorare - - - Informație - - - Navigarea a eșuat! - - - Nu - - - OK - - - Reîncercare - - - Comutare Înălțime Completă - - - Comutare Vizibilitate - - - Avertizare - - - Da - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ru-RU.resx deleted file mode 100644 index 4d3fc8d6..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.ru-RU.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Прервать - - - Отмена - - - Подтверждение - - - Ошибка - - - Игнорировать - - - Информация - - - Навигация не удалась! - - - Нет - - - OK - - - Повторить - - - Переключить Полную Высоту - - - Переключить Видимость - - - Предупреждение - - - Да - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.zh-CN.resx deleted file mode 100644 index 12bb510a..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_Layout.zh-CN.resx +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 中止 - - - 取消 - - - 确认 - - - 错误 - - - 忽略 - - - 信息 - - - 导航失败! - - - 否 - - - 确定 - - - 重试 - - - 切换全高 - - - 切换可见性 - - - 警告 - - - 是 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.de-DE.resx deleted file mode 100644 index 03c1b8ff..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.de-DE.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Über - - - Konto - - - Neue bibliothek hinzufügen - - - Administrator - - - Audio - - - Authentifizierung - - - Autorisierung - - - Bücher - - - Kennwort Ändern - - - Dokumentation - - - Hilfe - - - Interviews - - - Sprache - - - Mediathek - - - Anmelden - - - Abmelden - - - Zeitschriften - - - Bibliotheken verwalten - - - Filme - - - Musik - - - Einstellungen - - - Profil - - - Passwort Wiederherstellen - - - Registrieren - - - Berechtigungen verwalten - - - Werkzeuge - - - Fernsehserien - - - Video - - - Schriftliche Inhalte - - - Rollen verwalten - - - Startseite - - - Plugins - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.en-US.resx deleted file mode 100644 index 97405612..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.en-US.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - About - - - Account - - - Add new library - - - Administrator - - - Audio - - - Authentication - - - Authorization - - - Books - - - Change Password - - - Documentation - - - Help - - - Interviews - - - Language - - - Library - - - Login - - - Logout - - - Magazines - - - Manage libraries - - - Movies - - - Music - - - Settings - - - Profile - - - Recover Password - - - Register - - - Manage permissions - - - Tools - - - TV Shows - - - Video - - - Written Content - - - Manage roles - - - Home - - - Plugins - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.es-ES.resx deleted file mode 100644 index f4a8dc79..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.es-ES.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Acerca de - - - Cuenta - - - Agregar nueva biblioteca - - - Administrador - - - Audio - - - Autenticación - - - Autorización - - - Libros - - - Cambiar Contraseña - - - Documentación - - - Ayuda - - - Entrevistas - - - Lenguaje - - - Biblioteca - - - Iniciar Sesión - - - Cerrar Sesión - - - Revistas - - - Administrar bibliotecas - - - Películas - - - Música - - - Configuración - - - Perfil - - - Recuperar Contraseña - - - Registrarse - - - Administrar permisos - - - Herramientas - - - Series de TV - - - Video - - - Contenido Escrito - - - Administrar roles - - - Inicio - - - Plugins - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.fr-FR.resx deleted file mode 100644 index 7b2508f7..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.fr-FR.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - À propos - - - Compte - - - Ajouter une nouvelle bibliothèque - - - Administrateur - - - Audio - - - Authentification - - - Autorisation - - - Livres - - - Modifier Le Mot De Passe - - - Documentation - - - Aide - - - Entretiens - - - Langue - - - Bibliothèque - - - Connexion - - - Déconnexion - - - Magazines - - - Gérer les bibliothèques - - - Films - - - Musique - - - Paramètres - - - Profil - - - Récupérer Le Mot De Passe - - - S'inscrire - - - Gérer les permissions - - - Outils - - - Séries Télé - - - Vidéo - - - Contenu Écrit - - - Gérer les rôles - - - Accueil - - - Plugins - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.it-IT.resx deleted file mode 100644 index da66d075..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.it-IT.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Chi siamo - - - Account - - - Aggiungi nuova libreria - - - Amministratore - - - Audio - - - Autenticazione - - - Autorizzazione - - - Libri - - - Modifica Password - - - Documentazione - - - Aiuto - - - Interviste - - - Lingua - - - Libreria - - - Accedi - - - Esci - - - Riviste - - - Gestisci librerie - - - Film - - - Musica - - - Impostazioni - - - Profilo - - - Recupera Password - - - Registrati - - - Gestire i permessi - - - Strumenti - - - Serie TV - - - Video - - - Contenuto Scritto - - - Gestire i ruoli - - - Home - - - Plugin - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ja-JP.resx deleted file mode 100644 index aa2febca..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ja-JP.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 概要 - - - アカウント - - - 新規ライブラリを追加 - - - 管理者 - - - 音声 - - - 認証 - - - 認可 - - - 書籍 - - - パスワード変更 - - - ドキュメント - - - ヘルプ - - - インタビュー - - - 言語 - - - ライブラリ - - - ログイン - - - ログアウト - - - 雑誌 - - - ライブラリ管理 - - - 映画 - - - 音楽 - - - 設定 - - - プロフィール - - - パスワード再設定 - - - 登録 - - - 権限を管理する - - - ツール - - - テレビドラマ - - - 動画 - - - 文字コンテンツ - - - ロールを管理する - - - ホーム - - - プラグイン - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.resx deleted file mode 100644 index 97405612..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - About - - - Account - - - Add new library - - - Administrator - - - Audio - - - Authentication - - - Authorization - - - Books - - - Change Password - - - Documentation - - - Help - - - Interviews - - - Language - - - Library - - - Login - - - Logout - - - Magazines - - - Manage libraries - - - Movies - - - Music - - - Settings - - - Profile - - - Recover Password - - - Register - - - Manage permissions - - - Tools - - - TV Shows - - - Video - - - Written Content - - - Manage roles - - - Home - - - Plugins - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ro-RO.resx deleted file mode 100644 index 37ac6ac7..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ro-RO.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Despre - - - Cont - - - Adăugare bibliotecă nouă - - - Administrator - - - Audio - - - Autentificare - - - Autorizare - - - Cărți - - - Schimbare Parolă - - - Documentație - - - Ajutor - - - Interviuri - - - Limbă - - - Bibliotecă - - - Autentificare - - - Deconectare - - - Reviste - - - Gestionare biblioteci - - - Filme - - - Muzică - - - Setări - - - Profil - - - Recuperare Parolă - - - Înregistrare - - - Gestionare permisiuni - - - Unelte - - - Seriale TV - - - Video - - - Conținut Scris - - - Gestionare roluri - - - Acasă - - - Pluginuri - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ru-RU.resx deleted file mode 100644 index 07c3cce4..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.ru-RU.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - О программе - - - Учетная Запись - - - Добавить новую библиотеку - - - Администратор - - - Аудио - - - Аутентификация - - - Авторизация - - - Книги - - - Изменить Пароль - - - Документация - - - Справка - - - Интервью - - - Язык - - - Библиотека - - - Вход - - - Выход - - - Журналы - - - Управление библиотеками - - - Фильмы - - - Музыка - - - Настройки - - - Профиль - - - Восстановить Пароль - - - Регистрация - - - Управление разрешениями - - - Инструменты - - - Телесериалы - - - Видео - - - Письменный Контент - - - Управление ролями - - - Главная - - - Плагины - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.zh-CN.resx deleted file mode 100644 index f9ca0bee..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Shared/_NavMenu.zh-CN.resx +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 关于 - - - 账号 - - - 添加新媒体库 - - - 管理员 - - - 音频 - - - 身份验证 - - - 授权 - - - 图书 - - - 修改密码 - - - 文档 - - - 帮助 - - - 面试 - - - 语言 - - - 媒体库 - - - 登录 - - - 退出登录 - - - 杂志 - - - 管理媒体库 - - - 电影 - - - 音乐 - - - 设置 - - - 个人资料 - - - 找回密码 - - - 注册 - - - 管理权限 - - - 工具 - - - 电视剧 - - - 视频 - - - 文字内容 - - - 管理角色 - - - 首页 - - - 插件 - - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.de-DE.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.de-DE.resx deleted file mode 100644 index 7f312406..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.de-DE.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Einstellungen - - - Seitennummerierung aktivieren - - - Elemente pro Seite - - - "The"-Präfix für die Alpha-Auswahl ignorieren - - - Speichern - - - Einstellungen gespeichert - - - Steuert, ob die Bibliothekselemente in Seiten aufgeteilt werden. - - - Die Anzahl der Bibliothekselemente, die bei aktivierter Seitennummerierung auf jeder Seite angezeigt werden. - - - Wenn aktiviert, werden Bibliothekselemente, deren Titel mit "The" beginnt, in der Alpha-Auswahl unter dem ersten Buchstaben des folgenden Wortes gruppiert, z. B. wird "The Rasmus" unter R aufgeführt. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.en-US.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.en-US.resx deleted file mode 100644 index d7ecb8c2..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.en-US.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Settings - - - Enable pagination - - - Items per page - - - Ignore "The" prefix for the alpha picker - - - Save - - - Settings saved - - - Controls whether library items are split into pages. - - - The number of library items displayed on each page when pagination is enabled. - - - When enabled, library items whose title begins with "The" are grouped under the first letter of the following word in the alpha picker, e.g. "The Rasmus" is listed under R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.es-ES.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.es-ES.resx deleted file mode 100644 index 46197a4f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.es-ES.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Configuración - - - Habilitar paginación - - - Elementos por página - - - Ignorar el prefijo "The" en el selector alfabético - - - Guardar - - - Configuración guardada - - - Controla si los elementos de la biblioteca se dividen en páginas. - - - El número de elementos de la biblioteca mostrados en cada página cuando la paginación está habilitada. - - - Cuando está habilitado, los elementos de la biblioteca cuyo título comienza con "The" se agrupan bajo la primera letra de la palabra siguiente en el selector alfabético, por ejemplo, "The Rasmus" se lista bajo R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.fr-FR.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.fr-FR.resx deleted file mode 100644 index 0d086bdd..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.fr-FR.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Paramètres - - - Activer la pagination - - - Éléments par page - - - Ignorer le préfixe "The" dans le sélecteur alphabétique - - - Enregistrer - - - Paramètres enregistrés - - - Contrôle si les éléments de la bibliothèque sont répartis en pages. - - - Le nombre d'éléments de la bibliothèque affichés sur chaque page lorsque la pagination est activée. - - - Lorsque cette option est activée, les éléments de la bibliothèque dont le titre commence par "The" sont regroupés sous la première lettre du mot suivant dans le sélecteur alphabétique, par exemple "The Rasmus" est répertorié sous R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.it-IT.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.it-IT.resx deleted file mode 100644 index f88da291..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.it-IT.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Impostazioni - - - Abilita paginazione - - - Elementi per pagina - - - Ignora il prefisso "The" nel selettore alfabetico - - - Salva - - - Impostazioni salvate - - - Controlla se gli elementi della libreria vengono suddivisi in pagine. - - - Il numero di elementi della libreria visualizzati su ogni pagina quando la paginazione è abilitata. - - - Se abilitato, gli elementi della libreria il cui titolo inizia con "The" vengono raggruppati sotto la prima lettera della parola successiva nel selettore alfabetico, ad esempio "The Rasmus" è elencato sotto R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ja-JP.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ja-JP.resx deleted file mode 100644 index 78c7e46f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ja-JP.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 設定 - - - ページネーションを有効にする - - - ページあたりの項目数 - - - アルファピッカーで「The」の接頭辞を無視する - - - 保存 - - - 設定を保存しました - - - ライブラリの項目をページに分割するかどうかを制御します。 - - - ページネーションが有効な場合に各ページに表示されるライブラリの項目数。 - - - 有効にすると、タイトルが「The」で始まるライブラリの項目は、アルファピッカーで次の単語の最初の文字の下にグループ化されます。たとえば「The Rasmus」は「R」の下に表示されます。 - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.resx deleted file mode 100644 index d7ecb8c2..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Settings - - - Enable pagination - - - Items per page - - - Ignore "The" prefix for the alpha picker - - - Save - - - Settings saved - - - Controls whether library items are split into pages. - - - The number of library items displayed on each page when pagination is enabled. - - - When enabled, library items whose title begins with "The" are grouped under the first letter of the following word in the alpha picker, e.g. "The Rasmus" is listed under R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ro-RO.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ro-RO.resx deleted file mode 100644 index add6888f..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ro-RO.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Setări - - - Activați paginarea - - - Elemente pe pagină - - - Ignorați prefixul "The" pentru selectorul alfabetic - - - Salvați - - - Setările au fost salvate - - - Controlează dacă elementele bibliotecii sunt împărțite în pagini. - - - Numărul de elemente ale bibliotecii afișate pe fiecare pagină atunci când paginarea este activată. - - - Când este activată, elementele bibliotecii al căror titlu începe cu "The" sunt grupate sub prima literă a cuvântului următor în selectorul alfabetic, de exemplu "The Rasmus" este listat sub R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ru-RU.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ru-RU.resx deleted file mode 100644 index 5657d5a6..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.ru-RU.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Настройки - - - Включить разбиение на страницы - - - Элементов на странице - - - Игнорировать префикс "The" в алфавитном указателе - - - Сохранить - - - Настройки сохранены - - - Управляет разделением элементов библиотеки на страницы. - - - Количество элементов библиотеки, отображаемых на каждой странице при включенной разбивке на страницы. - - - При включении элементы библиотеки, название которых начинается с "The", группируются в алфавитном указателе под первой буквой следующего слова, например "The Rasmus" отображается под буквой R. - - diff --git a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.zh-CN.resx b/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.zh-CN.resx deleted file mode 100644 index 00301a1b..00000000 --- a/src/Lumina.Presentation.Web/Resources/Views/Tools/Settings.zh-CN.resx +++ /dev/null @@ -1,42 +0,0 @@ - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 设置 - - - 启用分页 - - - 每页项目数 - - - 在字母选择器中忽略“The”前缀 - - - 保存 - - - 设置已保存 - - - 控制是否将库项目分页显示。 - - - 启用分页时每页显示的库项目数。 - - - 启用后,标题以"The"开头的库项目将在字母选择器中按后一个词的首字母分组,例如"The Rasmus"会列在R下。 - - diff --git a/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs b/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs deleted file mode 100644 index f74eec74..00000000 --- a/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs +++ /dev/null @@ -1,45 +0,0 @@ -#region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Enums.FileSystem; -using Lumina.Presentation.Web.Common.Models.Configuration; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Options; -using System.Runtime.InteropServices; - -#endregion - -namespace Lumina.Presentation.Web.ViewComponents; - -/// -/// View component for the file system browser. -/// -public class FileSystemBrowserViewComponent : ViewComponent -{ - private readonly ServerConfigurationModel _serverConfigurationModel; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for retrieving . - public FileSystemBrowserViewComponent(IOptions serverConfigurationModelOptions) - { - _serverConfigurationModel = serverConfigurationModelOptions.Value; - } - - /// - /// Invokes the view component. - /// - /// - /// An that renders the view with file system browsing configuration. - /// - public IViewComponentResult Invoke() - { - return View(new - { - Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\", - ServerBasePath = $"{_serverConfigurationModel.BaseAddress}:{_serverConfigurationModel.Port}/api/v{_serverConfigurationModel.ApiVersion}/", - ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment - ViewMode = FileSystemViewMode.List, - IconSize = FileSystemIconSize.Large - }); - } -} diff --git a/src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml b/src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml deleted file mode 100644 index eed906a3..00000000 --- a/src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml +++ /dev/null @@ -1,232 +0,0 @@ -@* -/admin/manage-permissions/ -*@ - -@using Lumina.Presentation.Web.Common.Models.UsersManagement -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization -@using Lumina.Presentation.Web.Common.Models.Authorization - -@{ - var roles = ViewData["roles"] as RoleModel[]; - var users = ViewData["users"] as UserModel[]; - var permissions = ViewData["permissions"] as PermissionModel[]; - // 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 - -
-
- - - -
- - -
-
- - -
-
-
@_localizer["SelectAUser"]
- @if (users is not null) - { - @for (int i = 0; i < users.Length; i++) - { -
@users[i].Username
- } - } -
-
-
- - -
- - -
-
- - -
-
-
@_localizer["SelectARole"]
- @if (roles is not null) - { - @for (int i = 0; i < roles.Length; i++) - { -
@roles[i].RoleName
- } - } -
-
-
- - -
-
-
-
- @if (permissions is not null) - { - @foreach (var permission in permissions) - { -
- -
- } - } -
-
-
-
- - -
- -
-
-
- -@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml.css b/src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml.css deleted file mode 100644 index 812d5578..00000000 --- a/src/Lumina.Presentation.Web/Views/Admin/ManagePermissions.cshtml.css +++ /dev/null @@ -1,46 +0,0 @@ -#authorization-permissions-container { - display: flex; - margin: auto; - width: 100%; - height: 100%; - flex-direction: column; - flex-wrap: nowrap; -} - -#authorization-permissions-permissions-container { - flex-grow: 1; - min-width: 135px; - min-height: 0px; -} - -#authorization-permissions-permissions { - border: 1px solid var(--border-color-light-high); - border-top: 1px solid var(--border-color-dark); - border-left: 1px solid var(--border-color-dark); - margin: auto; - padding-left: 5px; - width: 100%; - height: 100%; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: left; - align-items: stretch; -} - -#authorization-permissions-permissions-scroll { - background-color: #232323; - margin: auto; - width: 100%; - height: 100%; -} - -#authorization-permissions-permissions-list { - margin: 1px; - display: flex; - flex-direction: column; - flex-wrap: wrap; - border: 0px solid black; - padding: 0px; - gap: 0px 10px; -} diff --git a/src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml b/src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml deleted file mode 100644 index c82b385c..00000000 --- a/src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml +++ /dev/null @@ -1,263 +0,0 @@ -@* -/admin/manage-roles/ -*@ - -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization -@using Lumina.Presentation.Web.Common.Models.Authorization - -@{ - var roles = ViewData["roles"] as RoleModel[]; - var permissions = ViewData["permissions"] as PermissionModel[]; - // 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 - -
-
- - -
- - -
-
- - -
-
-
@_localizer["SelectARole"]
- @if (roles is not null) - { - @for (int i = 0; i < roles.Length; i++) - { -
@roles[i].RoleName
- } - } -
-
-
- - -
- - -
- - -
-
-
-
- @if (permissions is not null) - { - @foreach (var permission in permissions) - { -
- -
- } - } -
-
-
-
- - -
- - -
-
-
- -@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml.css b/src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml.css deleted file mode 100644 index 8703767a..00000000 --- a/src/Lumina.Presentation.Web/Views/Admin/ManageRoles.cshtml.css +++ /dev/null @@ -1,46 +0,0 @@ -#authorization-roles-container { - display: flex; - margin: auto; - width: 100%; - height: 100%; - flex-direction: column; - flex-wrap: nowrap; -} - -#authorization-roles-permissions-container { - flex-grow: 1; - min-width: 135px; - min-height: 0px; -} - -#authorization-roles-permissions { - border: 1px solid var(--border-color-light-high); - border-top: 1px solid var(--border-color-dark); - border-left: 1px solid var(--border-color-dark); - margin: auto; - padding-left: 5px; - width: 100%; - height: 100%; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: left; - align-items: stretch; -} - -#authorization-roles-permissions-scroll { - background-color: #232323; - margin: auto; - width: 100%; - height: 100%; -} - -#authorization-roles-permissions-list { - margin: 1px; - display: flex; - flex-direction: column; - flex-wrap: wrap; - border: 0px solid black; - padding: 0px; - gap: 0px 10px; -} diff --git a/src/Lumina.Presentation.Web/Views/Auth/AccessDenied.cshtml b/src/Lumina.Presentation.Web/Views/Auth/AccessDenied.cshtml deleted file mode 100644 index cfec2b7a..00000000 --- a/src/Lumina.Presentation.Web/Views/Auth/AccessDenied.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@* -/auth/access-denied/ -*@ - -@using Microsoft.AspNetCore.Mvc.Localization - -@inject IViewLocalizer _localizer - -
-
-
-
-
-

@_localizer["NotAllowedToAccessResource"]

-
-
-
diff --git a/src/Lumina.Presentation.Web/Views/Auth/ChangePassword.cshtml b/src/Lumina.Presentation.Web/Views/Auth/ChangePassword.cshtml deleted file mode 100644 index fb971570..00000000 --- a/src/Lumina.Presentation.Web/Views/Auth/ChangePassword.cshtml +++ /dev/null @@ -1,136 +0,0 @@ -@* -/auth/change-password/ -*@ - -@using Lumina.Presentation.Web.Common.Models.UsersManagement -@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 IUrlService _urlService -@inject IViewLocalizer _localizer - -@model ChangePasswordRequestModel - -
-
-
-
-
- @Html.AntiForgeryToken() - -
- -
-
- - *: -
-
- -
- @_localizer["DescriptionCurrentPassword"] -
- -
-
- - *: -
-
- -
- @_localizer["DescriptionNewPassword"] -
- -
-
- - *: -
-
- -
- @_localizer["DescriptionNewPasswordConfirm"] -
-
- -
-
-
- -
- -
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Auth/Login.cshtml b/src/Lumina.Presentation.Web/Views/Auth/Login.cshtml deleted file mode 100644 index 29615bec..00000000 --- a/src/Lumina.Presentation.Web/Views/Auth/Login.cshtml +++ /dev/null @@ -1,141 +0,0 @@ -@* -/auth/login/ -*@ - -@using Lumina.Presentation.Web.Common.Models.UsersManagement -@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 IUrlService _urlService -@inject IViewLocalizer _localizer - -@model LoginRequestModel - -
-
-
-
-
- @Html.AntiForgeryToken() - -
- -
-
- : -
-
- -
-
- -
-
- : -
-
- -
-
-
- - -
- - -
- -
-
-
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Auth/RecoverPassword.cshtml b/src/Lumina.Presentation.Web/Views/Auth/RecoverPassword.cshtml deleted file mode 100644 index 4174e487..00000000 --- a/src/Lumina.Presentation.Web/Views/Auth/RecoverPassword.cshtml +++ /dev/null @@ -1,137 +0,0 @@ -@* -/auth/recover-password/ -*@ - -@using Lumina.Presentation.Web.Common.Models.UsersManagement -@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 IUrlService _urlService -@inject IViewLocalizer _localizer - -@model RecoverPasswordRequestModel - -
-
-
-
-
- @Html.AntiForgeryToken() -
- -
-
- - *: -
-
- -
-
- -
-
- - *: -
-
- -
-
-
- - -
-
-
- -
- - -
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Auth/Register.cshtml b/src/Lumina.Presentation.Web/Views/Auth/Register.cshtml deleted file mode 100644 index d1634a86..00000000 --- a/src/Lumina.Presentation.Web/Views/Auth/Register.cshtml +++ /dev/null @@ -1,197 +0,0 @@ -@* -/auth/register/ -*@ - -@using Lumina.Presentation.Web.Common.Models.UsersManagement -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization - -@{ - string? registrationType = ViewData["RegistrationType"] as string; - // 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 IUrlService _urlService -@inject IViewLocalizer _localizer - -@model RegisterRequestModel - -
-
-
-
-
- @Html.AntiForgeryToken() - - -
- @if (registrationType == "Admin") - { -
-

@_localizer["AdminAccountRegistration"]

-
- } - -
-
- - *: -
-
- -
- @_localizer["DescriptionUsername"] -
- -
-
- - *: -
-
- -
- @_localizer["DescriptionPassword"] -
- -
-
- - *: -
-
- -
- @_localizer["DescriptionPasswordConfirm"] -
- - -
-
- -
- @_localizer["Description2Fa"] -
-
- -
-
- -
-
-
- -
- - - - @if (User?.Identity?.IsAuthenticated == false) - { - - } -
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Home/Index.cshtml b/src/Lumina.Presentation.Web/Views/Home/Index.cshtml deleted file mode 100644 index 09a2baa7..00000000 --- a/src/Lumina.Presentation.Web/Views/Home/Index.cshtml +++ /dev/null @@ -1,94 +0,0 @@ -@* -/ -*@ - -@using Lumina.Presentation.Web.Common.Models.Libraries -@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 - -
-
- -
-
- -
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Home/Privacy.cshtml b/src/Lumina.Presentation.Web/Views/Home/Privacy.cshtml deleted file mode 100644 index af4fb195..00000000 --- a/src/Lumina.Presentation.Web/Views/Home/Privacy.cshtml +++ /dev/null @@ -1,6 +0,0 @@ -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

- -

Use this page to detail your site's privacy policy.

diff --git a/src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml b/src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml deleted file mode 100644 index 7b4d6646..00000000 --- a/src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml +++ /dev/null @@ -1,630 +0,0 @@ -@* -/library/manage -*@ - -@using Lumina.Presentation.Web.Common.Models.Libraries -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization -@using System.Security.Claims - -@{ - // 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 IUrlService _urlService -@inject IViewLocalizer _localizer - - - -
-
-
-
-
-

- @_localizer["Libraries"] -

-
- - - - - - - - - - - - - - -
- - -
-

@_localizer["NoLibraries"]

-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml.css b/src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml.css deleted file mode 100644 index 5f282702..00000000 --- a/src/Lumina.Presentation.Web/Views/Library/Management/Index.cshtml.css +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Views/Library/Management/Item.cshtml b/src/Lumina.Presentation.Web/Views/Library/Management/Item.cshtml deleted file mode 100644 index c7ea7bdc..00000000 --- a/src/Lumina.Presentation.Web/Views/Library/Management/Item.cshtml +++ /dev/null @@ -1,477 +0,0 @@ -@* -/library/manage/item/{id:guid} -*@ - -@using Lumina.Presentation.Web.Common.Models.Libraries -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization - -@{ - var id = Context.Request.RouteValues["id"] as string; - // 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 IUrlService _urlService -@inject IViewLocalizer _localizer - -@model LibraryModel - -@await Component.InvokeAsync("FileSystemBrowser") - -
-
-
-
-
- @Html.AntiForgeryToken() - - -
-

- @(_localizer[id is not null ? "EditLibrary" : "AddNewLibrary"]) -

-
-
-

@_localizer["GeneralInformation"]

- -
-
- - *: -
-
- -
- @_localizer["DescriptionTitle"] -
- -
-
- - *: -
-
-
-
- - -
-
-
@_localizer["WrittenContent"]
-
@_localizer["Book"]
-
@_localizer["EBook"]
-
@_localizer["BookSeries"]
-
@_localizer["ComicBook"]
-
@_localizer["ComicSeries"]
-
@_localizer["Magazine"]
-
@_localizer["Manga"]
-
@_localizer["GraphicNovel"]
-
@_localizer["AcademicPaper"]
-
@_localizer["SheetMusic"]
-
@_localizer["Screenplay"]
-
@_localizer["VideoContent"]
-
@_localizer["TvShow"]
-
@_localizer["Movie"]
-
@_localizer["FilmSeries"]
-
@_localizer["FilmFranchise"]
-
@_localizer["Concert"]
-
@_localizer["Documentary"]
-
@_localizer["Tutorial"]
-
@_localizer["Personal"]
-
@_localizer["Anime"]
-
@_localizer["Youtube"]
-
@_localizer["Videoclip"]
-
@_localizer["AudioContent"]
-
@_localizer["Music"]
-
@_localizer["AudioBook"]
-
@_localizer["LivePerformance"]
-
@_localizer["Interview"]
-
@_localizer["Cover"]
-
@_localizer["Remix"]
-
@_localizer["Soundeffect"]
-
@_localizer["Podcast"]
-
@_localizer["RadioShow"]
-
@_localizer["VisualContent"]
-
@_localizer["PhotoAlbum"]
-
@_localizer["MiscellaneousContent"]
-
@_localizer["Other"]
-
-
-
- @_localizer["DescriptionLibraryType"] -
- -
-
- : - @_localizer[ -
-
-
-
- @if (Model.CoverImage is not null) - { -
- @Model.CoverImage - @_localizer[ -
- } -
- @_localizer["DescriptionCover"] -
- -
-
- - *: - @_localizer[ -
-
-
-
- @for (int i = 0; i < Model.ContentLocations.Count; i++) - { -
- @Model.ContentLocations[i] - @_localizer[ -
- } -
- @_localizer["DescriptionDirectories"] -
- -

@_localizer["AdvancedSettings"]

-
-
- : -
-
- -
- @_localizer["DescriptionEnabled"] -
-
-
- : -
-
- -
- @_localizer["DescriptionLocked"] -
-
-
- : -
-
- -
- @_localizer["DescriptionDownloadMetadataFromWeb"] -
-
-
- -
-
- -
- @_localizer["DescriptionShouldSaveMetadataInMediaDirectories"] -
-
-
- -
-
- -
- @_localizer["DescriptionShouldSkipUnchangedDirectoriesDuringScan"] -
- @if (id is not null) - { -

@_localizer["MetadataProviders"]

-
- - - - - - - - - - - -
@_localizer["Name"]@_localizer["Enabled"]@_localizer["Order"]
- @_localizer["DescriptionMetadataProviders"] -
- } -
- -
-
-
- -
- - - -
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml b/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml deleted file mode 100644 index e5262832..00000000 --- a/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml +++ /dev/null @@ -1,317 +0,0 @@ -@* -/library/written-content-library/books-library/books?libraryId=... -*@ - -@using Lumina.Presentation.Web.Common.Models.Libraries -@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 LibraryModel - -
-
- -
-
-
-

@(Model.Title ?? string.Empty)

-
-
- - - - -
-
-
- - -
-
-
- -
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml b/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml deleted file mode 100644 index a25adbc1..00000000 --- a/src/Lumina.Presentation.Web/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml +++ /dev/null @@ -1 +0,0 @@ -

A book

diff --git a/src/Lumina.Presentation.Web/Views/Plugins/Index.cshtml b/src/Lumina.Presentation.Web/Views/Plugins/Index.cshtml deleted file mode 100644 index cf0140c2..00000000 --- a/src/Lumina.Presentation.Web/Views/Plugins/Index.cshtml +++ /dev/null @@ -1,200 +0,0 @@ -@* -/plugins -*@ - -@using Lumina.Presentation.Web.Common.Enums.Plugins -@using Lumina.Presentation.Web.Common.Models.Plugins -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization - -@model PluginModel[] - -@{ - var settingsByPluginId = ViewData["pluginSettings"] as Dictionary ?? new Dictionary(); - // 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 IUrlService _urlService -@inject IViewLocalizer _localizer - -
-
-
-
-
-

- @_localizer["Plugins"] -

-
- @if (Model.Length > 0) - { - - - - - - - - - - - - - @foreach (PluginModel plugin in Model) - { - - - - - - - - - @if (plugin.LoadStatus == PluginLoadStatus.FailedToLoad && !string.IsNullOrWhiteSpace(plugin.LoadError)) - { - - - - } - @if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id)) - { - PluginSettingsModel pluginSettings = settingsByPluginId[plugin.Id]; - - - - } - } - -
@_localizer["Name"]@_localizer["Author"]@_localizer["Version"]@_localizer["Description"]@_localizer["LoadStatus"]@_localizer["Settings"]
@plugin.Name@plugin.Author@plugin.Version@plugin.Description - @if (plugin.LoadStatus == PluginLoadStatus.Loaded) - { - @_localizer["Loaded"] - } - else - { - @_localizer["FailedToLoad"] - } - - @if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id)) - { - - } -
- @_localizer["LoadError"]: @plugin.LoadError -
- } - else - { -

@_localizer["NoPlugins"]

- } -
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/Shared/Components/FileSystemBrowser/Default.cshtml b/src/Lumina.Presentation.Web/Views/Shared/Components/FileSystemBrowser/Default.cshtml deleted file mode 100644 index 4043efe0..00000000 --- a/src/Lumina.Presentation.Web/Views/Shared/Components/FileSystemBrowser/Default.cshtml +++ /dev/null @@ -1,549 +0,0 @@ -@using Lumina.Presentation.Web.Common.Models.Common -@using Lumina.Presentation.Web.Common.Api -@using Lumina.Presentation.Web.Common.Enums.FileSystem -@using Lumina.Presentation.Web.Common.Enums.Notifications -@using Lumina.Presentation.Web.Common.Exceptions -@using Lumina.Presentation.Web.Common.Models.FileSystemManagement -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization -@using Microsoft.AspNetCore.Components -@using System.Text.Json -@using System.Text - -@{ - var componentScriptId = ScriptIdentifierHelper.GenerateScriptId(); -} - -@inject IViewLocalizer _localizer - -
-
-
-
-
-
- - - - - - -
-
-
- -
-
-
-
-
-
- -
-
-
-
- @_localizer["Name"] -
-
-
-
-
-
-
-
-
- - -
-
- - -
-
-
- @*
- - - @_localizer["Cancel"] - @_localizer["Confirm"] *@ -
-
-
- - diff --git a/src/Lumina.Presentation.Web/Views/Shared/Error.cshtml b/src/Lumina.Presentation.Web/Views/Shared/Error.cshtml deleted file mode 100644 index a1e04783..00000000 --- a/src/Lumina.Presentation.Web/Views/Shared/Error.cshtml +++ /dev/null @@ -1,25 +0,0 @@ -@model ErrorViewModel -@{ - ViewData["Title"] = "Error"; -} - -

Error.

-

An error occurred while processing your request.

- -@if (Model.ShowRequestId) -{ -

- Request ID: @Model.RequestId -

-} - -

Development Mode

-

- Swapping to Development environment will display more detailed information about the error that occurred. -

-

- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -

diff --git a/src/Lumina.Presentation.Web/Views/Shared/NotFound.cshtml b/src/Lumina.Presentation.Web/Views/Shared/NotFound.cshtml deleted file mode 100644 index cd38a425..00000000 --- a/src/Lumina.Presentation.Web/Views/Shared/NotFound.cshtml +++ /dev/null @@ -1,19 +0,0 @@ -@* -/not-found/ -*@ - -@using Microsoft.AspNetCore.Mvc.Localization - -@inject IViewLocalizer _localizer - -
- -
-
-
-
-

@_localizer["PageNotFound"]

-

@_localizer["ThereIsNoPage"]

-
-
-
diff --git a/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml b/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml deleted file mode 100644 index 3c6c2ad1..00000000 --- a/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml +++ /dev/null @@ -1,88 +0,0 @@ -@using Lumina.Presentation.Web.Common.Models.Configuration -@using Microsoft.AspNetCore.Mvc.Localization -@using Microsoft.Extensions.Options - -@inject IViewLocalizer _localizer -@inject IOptions _serverConfigurationModel - - - - - - - @ViewData["Title"] - Lumina - - - - - - - - - - - - - -
-
- @await Html.PartialAsync("_NavMenu") -
-
-
- @RenderBody() -
-
-
-
- @if (User?.Identity?.IsAuthenticated == true) - { - - - } -
- - - - - - - - -
- @await RenderSectionAsync("Scripts", required: false) -
- - diff --git a/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml.css b/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml.css deleted file mode 100644 index 5f282702..00000000 --- a/src/Lumina.Presentation.Web/Views/Shared/_Layout.cshtml.css +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Views/Shared/_NavMenu.cshtml b/src/Lumina.Presentation.Web/Views/Shared/_NavMenu.cshtml deleted file mode 100644 index e7f6b6e1..00000000 --- a/src/Lumina.Presentation.Web/Views/Shared/_NavMenu.cshtml +++ /dev/null @@ -1,226 +0,0 @@ -@using Lumina.Presentation.Web.Common.Authorization -@using Lumina.Presentation.Web.Common.Enums.Authorization -@using Lumina.Presentation.Web.Common.Services -@using Microsoft.AspNetCore.Mvc.Localization -@using System.Threading - -@inject IUrlService _urlService -@inject IViewLocalizer _localizer -@inject IAuthorizationService _auth - - - - diff --git a/src/Lumina.Presentation.Web/Views/Tools/Settings.cshtml b/src/Lumina.Presentation.Web/Views/Tools/Settings.cshtml deleted file mode 100644 index 09304622..00000000 --- a/src/Lumina.Presentation.Web/Views/Tools/Settings.cshtml +++ /dev/null @@ -1,152 +0,0 @@ -@* -/tools/settings -*@ - -@using Lumina.Presentation.Web.Common.Models.UsersManagement -@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 IUrlService _urlService -@inject IViewLocalizer _localizer - -@model UserSettingsModel - -
-
-
-
-
- @Html.AntiForgeryToken() -
-

- @_localizer["Settings"] -

-
-
- -
-
- : -
-
- -
- @_localizer["DescriptionEnablePagination"] -
- -
-
- - *: -
-
- -
- @_localizer["DescriptionItemsPerPage"] -
- -
-
- : -
-
- -
- @_localizer["DescriptionIgnoreThePrefixForAlphaPicker"] -
-
- -
-
-
-
-
-@section Scripts { - -} diff --git a/src/Lumina.Presentation.Web/Views/_ViewImports.cshtml b/src/Lumina.Presentation.Web/Views/_ViewImports.cshtml deleted file mode 100644 index 739426be..00000000 --- a/src/Lumina.Presentation.Web/Views/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using Lumina.Presentation.Web -@using Lumina.Presentation.Web.Models -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Lumina.Presentation.Web/Views/_ViewStart.cshtml b/src/Lumina.Presentation.Web/Views/_ViewStart.cshtml deleted file mode 100644 index a5f10045..00000000 --- a/src/Lumina.Presentation.Web/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "_Layout"; -} From 733e174cacd83629fe3836b92c1de1a891a5e86d Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:36:55 -0700 Subject: [PATCH 2/8] feat: adds FastEndpoints core infrastructure and contracts to the web project --- .../Common/Api/ApiHttpClient.cs | 36 +-- .../Common/Api/IApiHttpClient.cs | 4 +- .../Authorization/AuthorizationPolicies.cs | 11 + .../Authorization/AuthorizationService.cs | 38 +-- .../Authorization/IAuthorizationService.cs | 16 -- .../InitializationCheckPreProcessor.cs | 32 +++ .../Authorization/InitializationHandler.cs | 14 +- .../PermissionAuthorizationHandler.cs | 42 ++++ .../Authorization/PermissionRequirement.cs | 26 +++ .../Authorization/RoleAuthorizationHandler.cs | 42 ++++ .../Common/Authorization/RoleRequirement.cs | 25 ++ .../Common/DTO/Authorization/PermissionDto.cs | 18 ++ .../Common/DTO/Authorization/RoleDto.cs | 17 ++ .../DTO/Authorization/RolePermissionsDto.cs | 16 ++ .../DTO/Authorization/UserPermissionsDto.cs | 17 ++ .../Common/DTO/Common/ErrorViewDto.cs | 20 ++ .../Common/DTO/Common/GenreDto.cs | 17 ++ .../Common/DTO/Common/LanguageInfoDto.cs | 27 +++ .../Common/DTO/Common/NotificationDto.cs | 20 ++ .../Common/DTO/Common/ProblemDetailsDto.cs | 52 +++++ .../Common/DTO/Common/RatingDto.cs | 27 +++ .../Common/DTO/Common/ReleaseInfoDto.cs | 44 ++++ .../Common/DTO/Common/SuccessResponse.cs | 13 ++ .../Common/DTO/Common/SuccessResponseOfT.cs | 16 ++ .../Common/DTO/Common/TagDto.cs | 17 ++ .../Configuration/EncryptionSettingsDto.cs | 19 ++ .../Configuration/ServerConfigurationDto.cs | 29 +++ .../DTO/FileSystemManagement/BlobDataDto.cs | 22 ++ .../DTO/FileSystemManagement/DirectoryDto.cs | 18 ++ .../DTO/FileSystemManagement/FileDto.cs | 17 ++ .../FileSystemManagement/FileSystemItemDto.cs | 33 +++ .../FileSystemTreeNodeDto.cs | 44 ++++ .../FileSystemManagement/FileSystemTypeDto.cs | 18 ++ .../DTO/FileSystemManagement/PathExistsDto.cs | 14 ++ .../FileSystemManagement/PathSegmentDto.cs | 17 ++ .../FileSystemManagement/PathSeparatorDto.cs | 14 ++ .../DTO/FileSystemManagement/PathValidDto.cs | 14 ++ .../Common/DTO/Libraries/BookLiteDto.cs | 33 +++ .../Common/DTO/Libraries/LibraryDto.cs | 71 ++++++ .../Libraries/LibraryScanJobProgressDto.cs | 32 +++ .../DTO/Libraries/LibraryScanProgressDto.cs | 53 +++++ .../DTO/Libraries/PaginatedBookLiteDto.cs | 38 +++ .../Common/DTO/Libraries/ScanLibraryDto.cs | 23 ++ .../MediaContributors/MediaContributorDto.cs | 22 ++ .../MediaContributorNameDto.cs | 22 ++ .../MediaContributorRoleDto.cs | 22 ++ .../DTO/Plugins/LibraryMetadataProviderDto.cs | 33 +++ .../Common/DTO/Plugins/PluginDto.cs | 55 +++++ .../DTO/Plugins/PluginSettingDescriptorDto.cs | 39 ++++ .../Common/DTO/Plugins/PluginSettingsDto.cs | 29 +++ .../Common/DTO/UsersManagement/UserDto.cs | 17 ++ .../DTO/UsersManagement/UserSettingsDto.cs | 33 +++ .../BookLibrary/BookDto.cs | 216 ++++++++++++++++++ .../BookLibrary/BookRatingDto.cs | 19 ++ .../BookLibrary/BookSeriesDto.cs | 17 ++ .../BookLibrary/IsbnDto.cs | 23 ++ .../BookLibrary/LightBookDto.cs | 33 +++ .../WrittenContentMetadataDto.cs | 64 ++++++ .../PresentationWebLayerConfiguration.cs | 10 +- .../PresentationWebLayerServices.cs | 67 ++++-- .../Common/Exceptions/ApiException.cs | 6 +- .../Common/Http/RazorViewResult.cs | 65 ++++++ .../Localization/CoreHtmlLocalizerFactory.cs | 55 +++++ .../Requests/Authorization/AddRoleRequest.cs | 18 ++ .../Authorization/DeleteRoleRequest.cs | 15 ++ .../GetRolePermissionsRequest.cs | 15 ++ .../GetUserPermissionsRequest.cs | 15 ++ .../Authorization/GetUserRoleRequest.cs | 15 ++ .../Authorization/UpdateRoleRequest.cs | 20 ++ .../UpdateUserRoleAndPermissionsRequest.cs | 20 ++ .../Common/Requests/Common/EmptyRequest.cs | 6 + .../Directories/GetDirectoriesRequest.cs | 16 ++ .../Files/GetFilesRequest.cs | 16 ++ .../Files/GetTreeFilesRequest.cs | 16 ++ .../Path/CheckPathExistsRequest.cs | 16 ++ .../Path/GetPathParentRequest.cs | 14 ++ .../Path/GetPathRootRequest.cs | 14 ++ .../Path/SplitPathRequest.cs | 14 ++ .../Path/ValidatePathRequest.cs | 14 ++ .../Requests/Libraries/GetBooksLiteRequest.cs | 56 +++++ .../Management/CancelLibraryScanRequest.cs | 17 ++ .../Management/DeleteLibraryRequest.cs | 15 ++ .../Library/Management/EditLibraryRequest.cs | 15 ++ .../Management/GetMetadataProvidersRequest.cs | 15 ++ .../Library/Management/ScanLibraryRequest.cs | 15 ++ .../BookLibrary/Books/GetBookRequest.cs | 15 ++ .../BookLibrary/Books/GetBooksViewRequest.cs | 15 ++ .../Plugins/GetPluginSettingsRequest.cs | 15 ++ .../ReorderLibraryMetadataProvidersRequest.cs | 24 ++ ...etLibraryMetadataProviderEnabledRequest.cs | 29 +++ .../Plugins/UpdatePluginSettingsRequest.cs | 24 ++ .../Requests/Tools/SetLanguageRequest.cs | 16 ++ .../Authentication/LoginViewRequest.cs | 14 ++ .../UsersManagement/ChangePasswordRequest.cs | 20 ++ .../Requests/UsersManagement/LoginRequest.cs | 20 ++ .../UsersManagement/RecoverPasswordRequest.cs | 16 ++ .../UsersManagement/RegisterRequest.cs | 22 ++ .../Authorization/GetAuthorizationResponse.cs | 20 ++ .../UsersManagement/ChangePasswordResponse.cs | 14 ++ .../UsersManagement/InitializationResponse.cs | 17 ++ .../UsersManagement/LoginResponse.cs | 21 ++ .../RecoverPasswordResponse.cs | 14 ++ .../UsersManagement/RegisterResponse.cs | 17 ++ .../Common/Routes/ApiRoutes.Authentication.cs | 19 ++ .../Common/Routes/ApiRoutes.Authorization.cs | 18 ++ .../Common/Routes/ApiRoutes.Books.cs | 15 ++ .../Common/Routes/ApiRoutes.Directories.cs | 15 ++ .../Common/Routes/ApiRoutes.Drives.cs | 15 ++ .../Common/Routes/ApiRoutes.FileSystem.cs | 15 ++ .../Common/Routes/ApiRoutes.Files.cs | 16 ++ .../Common/Routes/ApiRoutes.Initialization.cs | 16 ++ .../Common/Routes/ApiRoutes.Libraries.cs | 28 +++ .../Common/Routes/ApiRoutes.Path.cs | 20 ++ .../Common/Routes/ApiRoutes.Permissions.cs | 15 ++ .../Common/Routes/ApiRoutes.Plugins.cs | 17 ++ .../Common/Routes/ApiRoutes.Roles.cs | 19 ++ .../Common/Routes/ApiRoutes.Users.cs | 16 ++ .../Common/Routes/WebRoutes.Admin.cs | 24 ++ .../Common/Routes/WebRoutes.Authentication.cs | 25 ++ .../Common/Routes/WebRoutes.Books.cs | 17 ++ .../Common/Routes/WebRoutes.Directories.cs | 15 ++ .../Common/Routes/WebRoutes.Drives.cs | 15 ++ .../Common/Routes/WebRoutes.FileSystem.cs | 15 ++ .../Common/Routes/WebRoutes.Files.cs | 16 ++ .../Common/Routes/WebRoutes.Home.cs | 19 ++ .../Common/Routes/WebRoutes.Language.cs | 15 ++ .../Routes/WebRoutes.LibraryManagement.cs | 29 +++ .../Common/Routes/WebRoutes.Path.cs | 20 ++ .../Common/Routes/WebRoutes.Plugins.cs | 18 ++ .../Common/Routes/WebRoutes.Settings.cs | 17 ++ .../Common/Security/CryptographyService.cs | 8 +- .../Services/CachedAuthorizationHandler.cs | 5 +- .../Common/Services/CachedResponse.cs | 23 ++ .../Common/Services/IUrlService.cs | 13 +- .../Common/Services/UrlService.cs | 78 ++++--- .../EncryptionSettingsModelValidator.cs | 4 +- .../ServerConfigurationModelValidator.cs | 4 +- 137 files changed, 3139 insertions(+), 158 deletions(-) create mode 100644 src/Lumina.Presentation.Web/Common/Authorization/AuthorizationPolicies.cs create mode 100644 src/Lumina.Presentation.Web/Common/Authorization/InitializationCheckPreProcessor.cs create mode 100644 src/Lumina.Presentation.Web/Common/Authorization/PermissionAuthorizationHandler.cs create mode 100644 src/Lumina.Presentation.Web/Common/Authorization/PermissionRequirement.cs create mode 100644 src/Lumina.Presentation.Web/Common/Authorization/RoleAuthorizationHandler.cs create mode 100644 src/Lumina.Presentation.Web/Common/Authorization/RoleRequirement.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Authorization/PermissionDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Authorization/RoleDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Authorization/RolePermissionsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Authorization/UserPermissionsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/ErrorViewDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/GenreDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/LanguageInfoDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/NotificationDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/ProblemDetailsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/RatingDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/ReleaseInfoDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponseOfT.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Common/TagDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Configuration/EncryptionSettingsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Configuration/ServerConfigurationDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/BlobDataDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/DirectoryDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemItemDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTreeNodeDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTypeDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathExistsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSegmentDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSeparatorDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathValidDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Libraries/BookLiteDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanJobProgressDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanProgressDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Libraries/PaginatedBookLiteDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Libraries/ScanLibraryDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorNameDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorRoleDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Plugins/LibraryMetadataProviderDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingDescriptorDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookRatingDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookSeriesDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/IsbnDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/LightBookDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/WrittenContentMetadataDto.cs create mode 100644 src/Lumina.Presentation.Web/Common/Http/RazorViewResult.cs create mode 100644 src/Lumina.Presentation.Web/Common/Localization/CoreHtmlLocalizerFactory.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/AddRoleRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/DeleteRoleRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/GetRolePermissionsRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserPermissionsRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserRoleRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateRoleRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateUserRoleAndPermissionsRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Common/EmptyRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetFilesRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetTreeFilesRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/CheckPathExistsRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathParentRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathRootRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/SplitPathRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/ValidatePathRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Libraries/GetBooksLiteRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/Management/CancelLibraryScanRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/Management/DeleteLibraryRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/Management/EditLibraryRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/Management/GetMetadataProvidersRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/Management/ScanLibraryRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBookRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksViewRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Plugins/GetPluginSettingsRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Plugins/ReorderLibraryMetadataProvidersRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Plugins/SetLibraryMetadataProviderEnabledRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Plugins/UpdatePluginSettingsRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/Tools/SetLanguageRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/UsersManagement/Authentication/LoginViewRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/UsersManagement/ChangePasswordRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/UsersManagement/LoginRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RecoverPasswordRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RegisterRequest.cs create mode 100644 src/Lumina.Presentation.Web/Common/Responses/Authorization/GetAuthorizationResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/Responses/UsersManagement/ChangePasswordResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/Responses/UsersManagement/InitializationResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/Responses/UsersManagement/LoginResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RecoverPasswordResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RegisterResponse.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authentication.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authorization.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Books.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Directories.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Drives.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.FileSystem.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Files.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Initialization.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Libraries.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Path.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Permissions.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Plugins.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Roles.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Users.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Admin.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Authentication.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Books.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Directories.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Drives.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.FileSystem.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Files.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Home.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Language.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.LibraryManagement.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Path.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Plugins.cs create mode 100644 src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Settings.cs create mode 100644 src/Lumina.Presentation.Web/Common/Services/CachedResponse.cs diff --git a/src/Lumina.Presentation.Web/Common/Api/ApiHttpClient.cs b/src/Lumina.Presentation.Web/Common/Api/ApiHttpClient.cs index 350dce6b..f0651b05 100644 --- a/src/Lumina.Presentation.Web/Common/Api/ApiHttpClient.cs +++ b/src/Lumina.Presentation.Web/Common/Api/ApiHttpClient.cs @@ -1,8 +1,8 @@ #region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Configuration; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; using Lumina.Presentation.Web.Common.Exceptions; -using Lumina.Presentation.Web.Common.Models.Common; -using Lumina.Presentation.Web.Common.Models.Configuration; -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using System; @@ -35,13 +35,13 @@ public class ApiHttpClient : IApiHttpClient /// Injected HttpClient for interacting with the API. /// Injected service for providing the current HTTP context. /// Injected server configuration application settings. - public ApiHttpClient(HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IOptionsSnapshot serverConfigurationOptions) + public ApiHttpClient(HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IOptionsSnapshot serverConfigurationOptions) { _httpClient = httpClient; _httpContext = httpContextAccessor.HttpContext; // read the API server configuration values from the configuration, and assign them to the injected client - ServerConfigurationModel serverConfigurationModel = serverConfigurationOptions.Value; - httpClient.BaseAddress = new Uri($"{serverConfigurationModel.BaseAddress}:{serverConfigurationModel.Port}/api/v{serverConfigurationModel.ApiVersion}/"); + ServerConfigurationDto serverConfiguration = serverConfigurationOptions.Value; + httpClient.BaseAddress = new Uri($"{serverConfiguration.BaseAddress}:{serverConfiguration.Port}/api/v{serverConfiguration.ApiVersion}/"); httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); @@ -101,7 +101,7 @@ public class ApiHttpClient : IApiHttpClient /// The API endpoint where the request is being sent. /// Cancellation token that can be used to stop the execution. /// A model containing the deserialized blob. - public async Task GetBlobAsync(string endpoint, CancellationToken cancellationToken = default) + public async Task GetBlobAsync(string endpoint, CancellationToken cancellationToken = default) { using HttpRequestMessage request = new(HttpMethod.Get, endpoint); AuthenticationHeaderValue? authenticationHeader = GetAuthenticationHeader(); @@ -112,10 +112,10 @@ public class ApiHttpClient : IApiHttpClient { // read the content as a string, for error messages string content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - ProblemDetailsModel? problemDetails = null; + ProblemDetailsDto? problemDetails = null; try { - problemDetails = JsonSerializer.Deserialize(content, _jsonOptions); + problemDetails = JsonSerializer.Deserialize(content, _jsonOptions); } catch { /* if we can't deserialize to ProblemDetails, we'll just use the status code */ } throw new ApiException(problemDetails, response.StatusCode); @@ -123,7 +123,7 @@ public class ApiHttpClient : IApiHttpClient // if the response is successful, read it as a byte array byte[] responseContent = await response.Content.ReadAsByteArrayAsync(cancellationToken).ConfigureAwait(false); string contentType = response.Content.Headers.ContentType?.ToString() ?? "application/octet-stream"; - return new BlobDataModel { Data = responseContent, ContentType = contentType }; + return new BlobDataDto { Data = responseContent, ContentType = contentType }; } /// @@ -142,12 +142,12 @@ public class ApiHttpClient : IApiHttpClient HttpResponseMessage response = await _httpClient.SendAsync(request, cancellationToken).ConfigureAwait(false); if (!response.IsSuccessStatusCode) { - ProblemDetailsModel? problemDetails = null; + ProblemDetailsDto? problemDetails = null; string content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - // attempt to deserialize the response content to ProblemDetailsModel if the request fails + // attempt to deserialize the response content to ProblemDetailsDto if the request fails try { - problemDetails = JsonSerializer.Deserialize(content, _jsonOptions); + problemDetails = JsonSerializer.Deserialize(content, _jsonOptions); } catch { /* if we can't deserialize to ProblemDetails, we'll just use the status code */ } throw new ApiException(problemDetails, response.StatusCode, request.RequestUri?.AbsolutePath); @@ -194,13 +194,13 @@ public class ApiHttpClient : IApiHttpClient /// /// Sends an HTTP request and deserializes the response into the specified type if the request is successful. - /// If the request fails, it attempts to deserialize the response content into a and throws an . + /// If the request fails, it attempts to deserialize the response content into a and throws an . /// /// The expected type of the response content. /// The to be sent. /// Cancellation token that can be used to stop the execution. /// The deserialized response content as an object of type . - /// Thrown if the response is not successful, with the if available. + /// Thrown if the response is not successful, with the if available. private async Task SendRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken) { // send the HTTP request and read the response @@ -216,11 +216,11 @@ public class ApiHttpClient : IApiHttpClient } else { - ProblemDetailsModel? problemDetails = null; - // attempt to deserialize the response content to ProblemDetailsModel if the request fails + ProblemDetailsDto? problemDetails = null; + // attempt to deserialize the response content to ProblemDetailsDto if the request fails try { - problemDetails = JsonSerializer.Deserialize(content, _jsonOptions); + problemDetails = JsonSerializer.Deserialize(content, _jsonOptions); } catch { /* if we can't deserialize to ProblemDetails, we'll just use the status code */ } throw new ApiException(problemDetails, response.StatusCode, request.RequestUri?.AbsolutePath); diff --git a/src/Lumina.Presentation.Web/Common/Api/IApiHttpClient.cs b/src/Lumina.Presentation.Web/Common/Api/IApiHttpClient.cs index 86a1e71d..cfbb30ad 100644 --- a/src/Lumina.Presentation.Web/Common/Api/IApiHttpClient.cs +++ b/src/Lumina.Presentation.Web/Common/Api/IApiHttpClient.cs @@ -1,5 +1,5 @@ #region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.FileSystemManagement; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -36,7 +36,7 @@ public interface IApiHttpClient /// The API endpoint where the request is being sent. /// Cancellation token that can be used to stop the execution. /// A model containing the deserialized blob. - Task GetBlobAsync(string endpoint, CancellationToken cancellationToken = default); + Task GetBlobAsync(string endpoint, CancellationToken cancellationToken = default); /// /// Sends a DELETE request to the specified as an asynchronous operation. diff --git a/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationPolicies.cs b/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationPolicies.cs new file mode 100644 index 00000000..87034320 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationPolicies.cs @@ -0,0 +1,11 @@ +namespace Lumina.Presentation.Web.Common.Authorization; + +/// +/// Contains the names of the authorization policies defined in the Web application. +/// +public static class AuthorizationPolicies +{ + public const string REQUIRE_ADMIN_ROLE = "RequireAdminRole"; + public const string REQUIRE_CREATE_LIBRARIES_PERMISSION = "RequireCreateLibrariesPermission"; + public const string REQUIRE_INITIALIZATION = "RequireInitialization"; +} diff --git a/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs b/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs index f6357404..b47d54e2 100644 --- a/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs +++ b/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs @@ -1,7 +1,7 @@ #region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.Api; using Lumina.Presentation.Web.Common.Enums.Authorization; -using Lumina.Presentation.Web.Common.Models.Authorization; +using Lumina.Presentation.Web.Common.Responses.Authorization; using Microsoft.AspNetCore.Http; using System; using System.Linq; @@ -55,42 +55,6 @@ public class AuthorizationService : IAuthorizationService return authorization.Role == role; } - /// - /// Evaluates whether the currently logged in user meets the conditions defined in the specified authorization policy. - /// - /// The type of authorization policy to evaluate. - /// Cancellation token that can be used to stop the execution. - /// if the currently logged in user satisfies the policy, otherwise. - public Task EvaluatePolicyAsync(CancellationToken cancellationToken) - { - throw new NotImplementedException(); - } - - /// - /// Evaluates whether the currently logged in user meets the conditions defined in the specified authorization requirement. - /// - /// The authorization requirements to check. - /// if the currently logged in user satisfies the requirement, otherwise. - public async Task EvaluateAuthorizationAsync(AuthorizationRequirementModel requirement) - { - GetAuthorizationResponse authorization = await GetUserAuthorizationAsync(CancellationToken.None); - - if (requirement.Roles?.Length > 0 && !requirement.Roles.Any(role => authorization.Role?.Contains(role) == true)) - return false; - - if (requirement.Permissions?.Length > 0 && !requirement.Permissions.Any(permission => authorization.Permissions.Contains(permission))) - return false; - - //if (_requirement.PolicyType is not null) - //{ - // bool response = await _apiHttpClient.PostAsync($"auth/evaluate-policy/{_requirement.PolicyType.Name}", null!); - // if (!response) - // return false; - //} - - return true; - } - /// /// Retrieves user authorization details from the authorization service. /// diff --git a/src/Lumina.Presentation.Web/Common/Authorization/IAuthorizationService.cs b/src/Lumina.Presentation.Web/Common/Authorization/IAuthorizationService.cs index 7a0481be..462ab82d 100644 --- a/src/Lumina.Presentation.Web/Common/Authorization/IAuthorizationService.cs +++ b/src/Lumina.Presentation.Web/Common/Authorization/IAuthorizationService.cs @@ -1,6 +1,5 @@ #region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.Enums.Authorization; -using Lumina.Presentation.Web.Common.Models.Authorization; using System.Threading; using System.Threading.Tasks; #endregion @@ -27,19 +26,4 @@ public interface IAuthorizationService /// Cancellation token that can be used to stop the execution. /// if the currently logged in user is in the specified role, otherwise. Task IsInRoleAsync(string role, CancellationToken cancellationToken); - - /// - /// Evaluates whether the currently logged in user meets the conditions defined in the specified authorization policy. - /// - /// The type of authorization policy to evaluate. - /// Cancellation token that can be used to stop the execution. - /// if the currently logged in user satisfies the policy, otherwise. - Task EvaluatePolicyAsync(CancellationToken cancellationToken); - - /// - /// Evaluates whether the currently logged in user meets the conditions defined in the specified authorization requirement. - /// - /// The authorization requirements to check. - /// if the currently logged in user satisfies the requirement, otherwise. - Task EvaluateAuthorizationAsync(AuthorizationRequirementModel requirement); } diff --git a/src/Lumina.Presentation.Web/Common/Authorization/InitializationCheckPreProcessor.cs b/src/Lumina.Presentation.Web/Common/Authorization/InitializationCheckPreProcessor.cs new file mode 100644 index 00000000..3e84c97d --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Authorization/InitializationCheckPreProcessor.cs @@ -0,0 +1,32 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Common.Authorization; + +/// +/// FastEndpoints pre-processor that runs the application initialization check before the endpoint handler executes. +/// +/// +/// The check runs the RequireInitialization authorization policy, which queries the remote API and records the pending super admin setup state in the session. +/// Its result is deliberately ignored, because the pages that use this processor must be reachable both before and after the application is initialized. +/// +/// The type of the request of the endpoint to which this pre-processor is applied. +public class InitializationCheckPreProcessor : IPreProcessor where TRequest : notnull +{ + /// + /// Runs the initialization check for the current request. + /// + /// The pre-processor context for the current request. + /// Cancellation token that can be used to stop the execution. + public async Task PreProcessAsync(IPreProcessorContext preProcessorContext, CancellationToken cancellationToken) + { + HttpContext httpContext = preProcessorContext.HttpContext; + Microsoft.AspNetCore.Authorization.IAuthorizationService authorizationService = httpContext.RequestServices.GetRequiredService(); + await authorizationService.AuthorizeAsync(httpContext.User, httpContext, AuthorizationPolicies.REQUIRE_INITIALIZATION).ConfigureAwait(false); + } +} diff --git a/src/Lumina.Presentation.Web/Common/Authorization/InitializationHandler.cs b/src/Lumina.Presentation.Web/Common/Authorization/InitializationHandler.cs index 51dd850c..02788de9 100644 --- a/src/Lumina.Presentation.Web/Common/Authorization/InitializationHandler.cs +++ b/src/Lumina.Presentation.Web/Common/Authorization/InitializationHandler.cs @@ -1,7 +1,7 @@ #region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.Api; using Lumina.Presentation.Web.Common.Http; -using Lumina.Presentation.Web.Common.Models.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using System.Threading.Tasks; @@ -28,17 +28,17 @@ public class InitializationHandler : AuthorizationHandler /// Checks the application initialization status and authorizes the requirement if initialized. /// - /// The authorization context. - /// The initialization requirement to be evaluated. - protected override async Task HandleRequirementAsync(AuthorizationHandlerContext context, InitializationRequirement requirement) + /// The authorization context. + /// The initialization requirement to be evaluated. + protected override async Task HandleRequirementAsync(AuthorizationHandlerContext authorizationHandlerContext, InitializationRequirement initializationRequirement) { - InitializationModel result = await _apiHttpClient.GetAsync("initialization/").ConfigureAwait(false); - HttpContext? httpContext = context.Resource as HttpContext; + InitializationResponse result = await _apiHttpClient.GetAsync("initialization/").ConfigureAwait(false); + HttpContext? httpContext = authorizationHandlerContext.Resource as HttpContext; if (result.IsInitialized) { // admin account was registered, remove this requirement from the session httpContext?.Session.Remove(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP); - context.Succeed(requirement); + authorizationHandlerContext.Succeed(initializationRequirement); } else // store in session that super admin setup is needed httpContext?.Session.SetString(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP, "true"); diff --git a/src/Lumina.Presentation.Web/Common/Authorization/PermissionAuthorizationHandler.cs b/src/Lumina.Presentation.Web/Common/Authorization/PermissionAuthorizationHandler.cs new file mode 100644 index 00000000..ce4b912b --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Authorization/PermissionAuthorizationHandler.cs @@ -0,0 +1,42 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Authorization; +using Microsoft.AspNetCore.Authorization; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Common.Authorization; + +/// +/// Handles the by checking the currently logged in user's permissions against the remote API. +/// +public class PermissionAuthorizationHandler : AuthorizationHandler +{ + private readonly IAuthorizationService _authorizationService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for authorization checks against the remote API. + public PermissionAuthorizationHandler(IAuthorizationService authorizationService) + { + _authorizationService = authorizationService; + } + + /// + /// Succeeds the requirement when the currently logged in user holds any of the required permissions. + /// + /// The authorization context. + /// The permission requirement to evaluate. + protected override async Task HandleRequirementAsync(AuthorizationHandlerContext authorizationHandlerContext, PermissionRequirement permissionRequirement) + { + foreach (AuthorizationPermission permission in permissionRequirement.Permissions) + { + if (await _authorizationService.HasPermissionAsync(permission, CancellationToken.None).ConfigureAwait(false)) + { + authorizationHandlerContext.Succeed(permissionRequirement); + return; + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Common/Authorization/PermissionRequirement.cs b/src/Lumina.Presentation.Web/Common/Authorization/PermissionRequirement.cs new file mode 100644 index 00000000..8eb80a9c --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Authorization/PermissionRequirement.cs @@ -0,0 +1,26 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Authorization; +using Microsoft.AspNetCore.Authorization; +#endregion + +namespace Lumina.Presentation.Web.Common.Authorization; + +/// +/// Defines a requirement that the user must hold at least one of the specified permissions. +/// +public class PermissionRequirement : IAuthorizationRequirement +{ + /// + /// Gets the permissions that allow access, of which the user must hold at least one. + /// + public AuthorizationPermission[] Permissions { get; } + + /// + /// Initializes a new instance of the class. + /// + /// The permissions that allow access. + public PermissionRequirement(params AuthorizationPermission[] permissions) + { + Permissions = permissions; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Authorization/RoleAuthorizationHandler.cs b/src/Lumina.Presentation.Web/Common/Authorization/RoleAuthorizationHandler.cs new file mode 100644 index 00000000..30657694 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Authorization/RoleAuthorizationHandler.cs @@ -0,0 +1,42 @@ +#region ========================================================================= USING ===================================================================================== +using Microsoft.AspNetCore.Authorization; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Common.Authorization; + +/// +/// Handles the by checking the currently logged in user's role against the remote API. +/// +public class RoleAuthorizationHandler : AuthorizationHandler +{ + private readonly IAuthorizationService _authorizationService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for authorization checks against the remote API. + public RoleAuthorizationHandler(IAuthorizationService authorizationService) + { + _authorizationService = authorizationService; + } + + /// + /// Succeeds the requirement when the currently logged in user belongs to any of the required roles. + /// + /// The authorization context. + /// The role requirement to evaluate. + protected override async Task HandleRequirementAsync(AuthorizationHandlerContext authorizationHandlerContext, RoleRequirement roleRequirement) + { + foreach (string role in roleRequirement.Roles) + { + if (await _authorizationService.IsInRoleAsync(role, CancellationToken.None).ConfigureAwait(false)) + { + authorizationHandlerContext.Succeed(roleRequirement); + return; + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Common/Authorization/RoleRequirement.cs b/src/Lumina.Presentation.Web/Common/Authorization/RoleRequirement.cs new file mode 100644 index 00000000..eb82ef3c --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Authorization/RoleRequirement.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using Microsoft.AspNetCore.Authorization; +#endregion + +namespace Lumina.Presentation.Web.Common.Authorization; + +/// +/// Defines a requirement that the user must belong to at least one of the specified roles. +/// +public class RoleRequirement : IAuthorizationRequirement +{ + /// + /// Gets the roles that allow access, of which the user must belong to at least one. + /// + public string[] Roles { get; } + + /// + /// Initializes a new instance of the class. + /// + /// The roles that allow access. + public RoleRequirement(params string[] roles) + { + Roles = roles; + } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Authorization/PermissionDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Authorization/PermissionDto.cs new file mode 100644 index 00000000..f2c78c77 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Authorization/PermissionDto.cs @@ -0,0 +1,18 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Authorization; +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Authorization; + +/// +/// Data transfer object for an authorization permission. +/// +/// The unique identifier of the permission. +/// The name of the permission. +[DebuggerDisplay("Id: {Id}, PermissionName: {PermissionName}")] +public record PermissionDto( + Guid Id, + AuthorizationPermission PermissionName +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Authorization/RoleDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Authorization/RoleDto.cs new file mode 100644 index 00000000..d815d97f --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Authorization/RoleDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Authorization; + +/// +/// Data transfer object for an authorization role. +/// +/// The unique identifier of the role. +/// The name of the role. +[DebuggerDisplay("Id: {Id}, RoleName: {RoleName}")] +public record RoleDto( + Guid Id, + string RoleName +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Authorization/RolePermissionsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Authorization/RolePermissionsDto.cs new file mode 100644 index 00000000..218bbb79 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Authorization/RolePermissionsDto.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Authorization; + +/// +/// Data transfer object for a model for an authorization role with its permissions. +/// +/// The authorization role. +/// The permissions of the authorization role. +[DebuggerDisplay("Role: {Role}")] +public record RolePermissionsDto( + RoleDto Role, + PermissionDto[] Permissions +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Authorization/UserPermissionsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Authorization/UserPermissionsDto.cs new file mode 100644 index 00000000..1dc5a417 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Authorization/UserPermissionsDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Authorization; + +/// +/// Data transfer object for a user with its authorization permissions. +/// +/// The user. +/// The authorization permissions of the user. +[DebuggerDisplay("User: {User}")] +public record UserPermissionsDto( + UserDto User, + PermissionDto[] Permissions +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/ErrorViewDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/ErrorViewDto.cs new file mode 100644 index 00000000..2790c5b0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/ErrorViewDto.cs @@ -0,0 +1,20 @@ +using System.Diagnostics; + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for the data shown on the error page. +/// +[DebuggerDisplay("RequestId: {RequestId}, ShowRequestId: {ShowRequestId}")] +public class ErrorViewDto +{ + /// + /// Gets or sets the request identifier to display. + /// + public string? RequestId { get; set; } + + /// + /// Gets a value indicating whether the request identifier should be shown. + /// + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/GenreDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/GenreDto.cs new file mode 100644 index 00000000..5bda54a8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/GenreDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for a request to get genre information. +/// +[DebuggerDisplay("{Name}")] +public class GenreDto +{ + /// + /// Gets the name of the genre element of the media item. + /// + public string? Name { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/LanguageInfoDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/LanguageInfoDto.cs new file mode 100644 index 00000000..9d2689a4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/LanguageInfoDto.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for a request to get language information. +/// +[DebuggerDisplay("{LanguageName}")] +public class LanguageInfoDto +{ + /// + /// Gets the ISO 639-1 two-letter language code. + /// + public string? LanguageCode { get; set; } + + /// + /// Gets the full name of the language in English. + /// + public string? LanguageName { get; set; } + + /// + /// Gets an optional native name of the language. + /// + public string? NativeName { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/NotificationDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/NotificationDto.cs new file mode 100644 index 00000000..3131e6e3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/NotificationDto.cs @@ -0,0 +1,20 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Notifications; +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for notifications. +/// +/// The id of the notification. +/// The message of the notification. +/// The type of the notification. +[DebuggerDisplay("Id: {Id}, Message: {Message}")] +public record struct NotificationDto( + Guid Id, + string Message, + NotificationType Type +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/ProblemDetailsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/ProblemDetailsDto.cs new file mode 100644 index 00000000..915399b4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/ProblemDetailsDto.cs @@ -0,0 +1,52 @@ +#region ========================================================================= USING ===================================================================================== +using System.Collections.Generic; +using System.Diagnostics; +using System.Text.Json; +using System.Text.Json.Serialization; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object that follows the RFC 7807 standard for problem details in HTTP APIs. +/// +[DebuggerDisplay("{Title} ({Status})")] +public class ProblemDetailsDto +{ + /// + /// Gets or sets the URI reference that identifies the problem type. + /// + [JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// Gets or sets a short, human-readable summary of the problem type. + /// + [JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Gets or sets the HTTP status code generated by the server for this occurrence of the problem. + /// + [JsonPropertyName("status")] + public int? Status { get; set; } + + /// + /// Gets or sets a detailed explanation specific to this occurrence of the problem. + /// + [JsonPropertyName("detail")] + public string? Detail { get; set; } + + /// + /// Gets or sets a URI reference that identifies the specific occurrence of the problem. + /// + [JsonPropertyName("instance")] + public string? Instance { get; set; } + + /// + /// Gets or sets additional extension data that may be included with the problem details. + /// This allows for including extra, non-standard fields in the problem details. + /// + [JsonExtensionData] + public IDictionary? Extensions { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/RatingDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/RatingDto.cs new file mode 100644 index 00000000..a9202026 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/RatingDto.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for a rating. +/// +[DebuggerDisplay("Value: {Value}, MaxValue: {MaxValue}")] +public abstract class RatingDto +{ + /// + /// Gets the numeric value of the rating. + /// + public decimal? Value { get; set; } + + /// + /// Gets the maximum possible rating value. + /// + public decimal? MaxValue { get; set; } + + /// + /// Gets the optional number of votes or reviews this rating is based on. + /// + public int? VoteCount { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/ReleaseInfoDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/ReleaseInfoDto.cs new file mode 100644 index 00000000..9050347c --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/ReleaseInfoDto.cs @@ -0,0 +1,44 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for a request to get release information. +/// +[DebuggerDisplay("OriginalReleaseDate: {OriginalReleaseDate}")] +public class ReleaseInfoDto +{ + /// + /// Gets the optional original release date of the media item. + /// + public DateOnly? OriginalReleaseDate { get; set; } + + /// + /// Gets the optional original release year of the media item. + /// This is useful when only the year of original release is known. + /// + public int? OriginalReleaseYear { get; set; } + + /// + /// Gets the optional re-release or reissue date of the media item. + /// + public DateOnly? ReReleaseDate { get; set; } + + /// + /// Gets the optional re-release or reissue year of the media item. + /// + public int? ReReleaseYear { get; set; } + + /// + /// Gets the optional country or region of release. + /// + public string? ReleaseCountry { get; set; } + + /// + /// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0") + /// + public string? ReleaseVersion { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponse.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponse.cs new file mode 100644 index 00000000..b776c4e1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponse.cs @@ -0,0 +1,13 @@ +#region ========================================================================= USING ===================================================================================== +using System.Text.Json.Serialization; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Response data transfer object for the JSON responses of the web application that do not carry a payload. +/// +/// Whether the operation succeeded or not. +public record SuccessResponse( + [property: JsonPropertyName("success")] bool Success +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponseOfT.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponseOfT.cs new file mode 100644 index 00000000..70e8e767 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/SuccessResponseOfT.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Text.Json.Serialization; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Response data transfer object for the JSON responses of the web application that carry a payload. +/// +/// The type of the payload of the response. +/// Whether the operation succeeded or not. +/// The payload of the response. +public record SuccessResponse( + [property: JsonPropertyName("success")] bool Success, + [property: JsonPropertyName("data")] TData? Data +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Common/TagDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Common/TagDto.cs new file mode 100644 index 00000000..ebb1b0f2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Common/TagDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Common; + +/// +/// Data transfer object for a request to get tag information. +/// +[DebuggerDisplay("Name: {Name}")] +public class TagDto +{ + /// + /// Gets the name of the tag element of the media item. + /// + public string? Name { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Configuration/EncryptionSettingsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Configuration/EncryptionSettingsDto.cs new file mode 100644 index 00000000..50c288b1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Configuration/EncryptionSettingsDto.cs @@ -0,0 +1,19 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Configuration; + +/// +/// Data transfer object for deserializing media settings. +/// +[DebuggerDisplay("Section name: {SECTION_NAME}")] +public class EncryptionSettingsDto +{ + public const string SECTION_NAME = "EncryptionSettings"; + + /// + /// Gets or sets the root directory where media files are stored. + /// + public required string SecretKey { get; init; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Configuration/ServerConfigurationDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Configuration/ServerConfigurationDto.cs new file mode 100644 index 00000000..43dbc4f1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Configuration/ServerConfigurationDto.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Configuration; + +/// +/// Data transfer object for deserializing server configuration settings. +/// +[DebuggerDisplay("Section name: {SECTION_NAME}")] +public class ServerConfigurationDto +{ + public const string SECTION_NAME = "ServerConfiguration"; + + /// + /// Gets or sets the remote API server path. + /// + public required char ApiVersion { get; init; } + + /// + /// Gets or sets the remote API server path. + /// + public required string BaseAddress { get; init; } + + /// + /// Gets or sets the remote API server port. + /// + public required ushort Port { get; init; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/BlobDataDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/BlobDataDto.cs new file mode 100644 index 00000000..d88611f4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/BlobDataDto.cs @@ -0,0 +1,22 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for a model for storing binary data (blob). +/// +[DebuggerDisplay("ContentType: {ContentType} (Data.Length)")] +public class BlobDataDto +{ + /// + /// Gets or sets the binary data as a byte array. + /// + public byte[] Data { get; set; } = null!; + + /// + /// Gets or sets the content type (MIME type) of the blob data, such as "image/png" for an image or "application/pdf" for a PDF document. + /// + public string ContentType { get; set; } = null!; +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/DirectoryDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/DirectoryDto.cs new file mode 100644 index 00000000..831c2ccb --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/DirectoryDto.cs @@ -0,0 +1,18 @@ +#region ========================================================================= USING ===================================================================================== +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for directories displayed in custom directory/file browser dialogs. +/// +[DebuggerDisplay("Path: {Path}")] +public class DirectoryDto : FileSystemItemDto +{ + /// + /// Gets or sets the children items of the directory. + /// + public List Items { get; set; } = []; +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileDto.cs new file mode 100644 index 00000000..690451ea --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for files displayed in custom directory/file browser dialogs. +/// +[DebuggerDisplay("Path: {Path}")] +public class FileDto : FileSystemItemDto +{ + /// + /// Gets or sets the size of the file, in bytes + /// + public long Size { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemItemDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemItemDto.cs new file mode 100644 index 00000000..e5cad9fd --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemItemDto.cs @@ -0,0 +1,33 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Base data transfer object for files and directories displayed in custom directory/file browser dialogs. +/// +[DebuggerDisplay("Path: {Path}")] +public abstract class FileSystemItemDto +{ + /// + /// Gets or sets the full path to the file system item. + /// + public string? Path { get; set; } + + /// + /// Gets or sets the name of the file system item. + /// + public string? Name { get; set; } + + /// + /// Gets or sets the creation date of the file system item. + /// + public DateTime DateCreated { get; set; } + + /// + /// Gets or sets the modification date of the file system item. + /// + public DateTime DateModified { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTreeNodeDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTreeNodeDto.cs new file mode 100644 index 00000000..1188fda8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTreeNodeDto.cs @@ -0,0 +1,44 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.FileSystem; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for a file system node. +/// +[DebuggerDisplay("Path: {Path}")] +public class FileSystemTreeNodeDto +{ + /// + /// Gets or sets the full path of the file or directory. + /// + public string Path { get; set; } = null!; + + /// + /// Gets or sets the name of the file or directory. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the type of the item, indicating whether it is a file, directory, or drive. + /// + public FileSystemItemType ItemType { get; set; } + + /// + /// Gets or sets a value indicating whether the node is expanded. + /// + public bool IsExpanded { get; set; } + + /// + /// Gets or sets a value indicating whether the child nodes have been loaded. + /// + public bool ChildrenLoaded { get; set; } + + /// + /// Gets or sets the list of child nodes. + /// + public List Children { get; set; } = []; +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTypeDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTypeDto.cs new file mode 100644 index 00000000..3f7e83b3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/FileSystemTypeDto.cs @@ -0,0 +1,18 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.FileSystem; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object containing the file system platform type. +/// ` +[DebuggerDisplay("PlatformType: {PlatformType}")] +public class FileSystemTypeDto +{ + /// + /// Gets or sets the file system platform type. + /// + public PlatformType PlatformType { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathExistsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathExistsDto.cs new file mode 100644 index 00000000..ed2d13da --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathExistsDto.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for a response to the inquiry about the existence of a file system path. +/// +/// Whether a file system path exists or not. +[DebuggerDisplay("Exists: {Exists}")] +public record PathExistsDto( + bool Exists +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSegmentDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSegmentDto.cs new file mode 100644 index 00000000..12a5cdb9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSegmentDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for a response containing a file system path. +/// +[DebuggerDisplay("Path: {Path}")] +public class PathSegmentDto +{ + /// + /// Gets or sets the returned path. + /// + public string Path { get; set; } = null!; +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSeparatorDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSeparatorDto.cs new file mode 100644 index 00000000..1db9134e --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathSeparatorDto.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for a file system path separator. +/// +/// The system's path separator. +[DebuggerDisplay("Separator: {Separator}")] +public record PathSeparatorDto( + string Separator +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathValidDto.cs b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathValidDto.cs new file mode 100644 index 00000000..c29d4085 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/FileSystemManagement/PathValidDto.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.FileSystemManagement; + +/// +/// Data transfer object for a response to the inquiry about the validity of a file system path. +/// +/// Whether a file system path is valid or not. +[DebuggerDisplay("IsValid: {IsValid}")] +public record PathValidDto( + bool IsValid +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/Libraries/BookLiteDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Libraries/BookLiteDto.cs new file mode 100644 index 00000000..091bd10e --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Libraries/BookLiteDto.cs @@ -0,0 +1,33 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Libraries; + +/// +/// Data transfer object for a lightweight book element, containing only the properties needed by the client for card-style navigation. +/// +[DebuggerDisplay("Title: {Title}")] +public class BookLiteDto +{ + /// + /// Gets or sets the Id of the book. + /// + public Guid Id { get; set; } + + /// + /// Gets or sets the title of the book. + /// + public string Title { get; set; } = string.Empty; + + /// + /// Gets or sets the release year of the book (re-release year, if available, or original release year), if known. + /// + public int? ReleaseYear { get; set; } + + /// + /// Gets or sets the path of the image representing the cover of the book, if available. + /// + public string? CoverPath { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryDto.cs new file mode 100644 index 00000000..bc43dad9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryDto.cs @@ -0,0 +1,71 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Library; +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Libraries; + +/// +/// Data transfer object for a library element. +/// +[DebuggerDisplay("Title: {Title}")] +public class LibraryDto +{ + /// + /// Gets or sets the unique identifier of the media library. + /// + public Guid? Id { get; set; } + + /// + /// Gets or sets the unique identifier of the user owning the media library. + /// + public Guid? UserId { get; set; } + + /// + /// Gets or sets the title of the library. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the type of the library. + /// + public string? LibraryType { get; set; } + + /// + /// Gets or sets the path of the image file used as the cover for the library. + /// + public string? CoverImage { get; set; } + + /// + /// Gets or sets the collection of directories that contain the library files. + /// + public List ContentLocations { get; set; } = []; + + /// + /// Gets or sets whether this media library is enabled or not. A disabled media library is never shown or changed. + /// + public bool IsEnabled { get; set; } = true; + + /// + /// Gets or sets whether this media library is locked or not. A locked media library is displayed, but is never changed or updated. + /// + public bool IsLocked { get; set; } = false; + + /// + /// Gets or sets whether this media library should update the metadata of its elements from the web, or not. + /// + public bool DownloadMetadataFromWeb { get; set; } = true; + + /// + /// Gets or sets whether this media library should copy the downloaded metadata into the media library content locations, or not. + /// + public bool ShouldSaveMetadataInMediaDirectories { get; set; } = false; + + /// + /// Gets or sets whether this media library should skip the directories whose contents have not changed since the last scan, during the scan. This is an opt-in setting, because it relies on directory metadata, + /// which does not change when the contents of an existing file are edited, and such edits could be missed while this setting is enabled. + /// + public bool ShouldSkipUnchangedDirectoriesDuringScan { get; set; } = false; +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanJobProgressDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanJobProgressDto.cs new file mode 100644 index 00000000..bdf38653 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanJobProgressDto.cs @@ -0,0 +1,32 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Libraries; + +/// +/// Data transfer object for a media library scan job progress model. +/// +[DebuggerDisplay("CompletedItems: {CompletedItems}; TotalItems: {TotalItems}")] +public class LibraryScanJobProgressDto +{ + /// + /// Gets or sets the number of completed items of the media library scan job. + /// + public int CompletedItems { get; set; } + + /// + /// Gets or sets the total number of items of the media library scan job. + /// + public int TotalItems { get; set; } + + /// + /// Gets or sets the current operation being performed by the media library scan job. + /// + public string? CurrentOperation { get; set; } + + /// + /// Gets or sets the ratio between the total number and the completed number of items, as a percentage. + /// + public decimal ProgressPercentage { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanProgressDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanProgressDto.cs new file mode 100644 index 00000000..579a5cc4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Libraries/LibraryScanProgressDto.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Libraries; + +/// +/// Data transfer object for a media library scan progress model. +/// +[DebuggerDisplay("ScanId: {ScanId}; UserId: {UserId}; LibraryId: {LibraryId}")] +public class LibraryScanProgressDto +{ + /// + /// Gets or sets the unique identifier of the media library scan. + /// + public Guid ScanId { get; set; } + + /// + /// Gets or sets the unique identifier of the user initiating this media library scan. + /// + public Guid UserId { get; set; } + + /// + /// Gets or sets the unique identifier of the media library that is scanned. + /// + public Guid LibraryId { get; set; } + + /// + /// Gets or sets the number of completed jobs of the media library scan job. + /// + public int CompletedJobs { get; set; } + + /// + /// Gets or sets the total number of jobs of the media library scan job. + /// + public int TotalJobs { get; set; } + + /// + /// Gets or sets the optional current job progress of the media library scan. + /// + public LibraryScanJobProgressDto? CurrentJobProgress { get; set; } + + /// + /// Gets or sets the status of the media library scan. + /// + public string? Status { get; set; } + + /// + /// Gets or sets the ratio between the total number and the completed number of jobs, as a percentage. + /// + public decimal OverallProgressPercentage { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Libraries/PaginatedBookLiteDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Libraries/PaginatedBookLiteDto.cs new file mode 100644 index 00000000..763276e0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Libraries/PaginatedBookLiteDto.cs @@ -0,0 +1,38 @@ +#region ========================================================================= USING ===================================================================================== +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Libraries; + +/// +/// Data transfer object for a paginated collection of lightweight book elements, together with pagination metadata. +/// +[DebuggerDisplay("CurrentPage: {CurrentPage}; Count: {Count}")] +public class PaginatedBookLiteDto +{ + /// + /// Gets or sets the collection of lightweight book elements associated with this instance. + /// + public IReadOnlyList Data { get; set; } = []; + + /// + /// Gets or sets the current page number in a paginated collection. + /// + public int CurrentPage { get; set; } + + /// + /// Gets or sets the number of items to include per page in paginated results. + /// + public int PerPage { get; set; } + + /// + /// Gets or sets the total number of elements available in the paginated result set. + /// + public int Count { get; set; } + + /// + /// Gets or sets the total number of pages based on elements available in the result set and per page. + /// + public int NumberOfPages { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Libraries/ScanLibraryDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Libraries/ScanLibraryDto.cs new file mode 100644 index 00000000..2f99ef7b --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Libraries/ScanLibraryDto.cs @@ -0,0 +1,23 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Libraries; + +/// +/// Data transfer object for a media library scan response. +/// +[DebuggerDisplay("ScanId: {ScanId} LibraryId: {LibraryId}")] +public class ScanLibraryDto +{ + /// + /// Gets or sets the Id of the media library scan. + /// + public Guid? ScanId { get; set; } + + /// + /// Gets or sets the Id of the scanned media library. + /// + public Guid? LibraryId { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorDto.cs b/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorDto.cs new file mode 100644 index 00000000..97587776 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorDto.cs @@ -0,0 +1,22 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.MediaContributors; + +/// +/// Data transfer object for a media contributor. +/// +[DebuggerDisplay("Name: {Name}")] +public class MediaContributorDto +{ + /// + /// Gets the name of the contributor. + /// + public MediaContributorNameDto? Name { get; set; } + + /// + /// Gets the role of the contributor. + /// + public MediaContributorRoleDto? Role { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorNameDto.cs b/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorNameDto.cs new file mode 100644 index 00000000..23831e71 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorNameDto.cs @@ -0,0 +1,22 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.MediaContributors; + +/// +/// Data transfer object for a media contributor name. +/// +[DebuggerDisplay("DisplayName: {DisplayName}")] +public class MediaContributorNameDto +{ + /// + /// Gets the name by which the contributor is popularly known. + /// + public string? DisplayName { get; set; } + + /// + /// Gets the legal name of the contributor. + /// + public string? LegalName { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorRoleDto.cs b/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorRoleDto.cs new file mode 100644 index 00000000..74eaf370 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/MediaContributors/MediaContributorRoleDto.cs @@ -0,0 +1,22 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.MediaContributors; + +/// +/// Data transfer object for a media contributor role. +/// +[DebuggerDisplay("Name: {Name}")] +public class MediaContributorRoleDto +{ + /// + /// Gets the value representing this object. + /// + public string? Name { get; set; } + + /// + /// Gets the category of this object. + /// + public string? Category { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Plugins/LibraryMetadataProviderDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Plugins/LibraryMetadataProviderDto.cs new file mode 100644 index 00000000..787e8562 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Plugins/LibraryMetadataProviderDto.cs @@ -0,0 +1,33 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Plugins; + +/// +/// Data transfer object for a metadata provider configured for a media library. +/// +[DebuggerDisplay("Name: {Name}")] +public class LibraryMetadataProviderDto +{ + /// + /// Gets or sets the unique identifier of the plugin providing the metadata. + /// + public Guid PluginId { get; set; } + + /// + /// Gets or sets the display name of the metadata provider. + /// + public string Name { get; set; } = string.Empty; + + /// + /// Gets or sets whether the metadata provider is enabled for the media library. + /// + public bool IsEnabled { get; set; } + + /// + /// Gets or sets the rank of the metadata provider, determining the order in which providers are tried. + /// + public int Rank { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginDto.cs new file mode 100644 index 00000000..9c67faae --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginDto.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Plugins; +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Plugins; + +/// +/// Data transfer object for a detected plugin. +/// +[DebuggerDisplay("Name: {Name}")] +public class PluginDto +{ + /// + /// Gets or sets the unique identifier of the plugin. + /// + public Guid Id { get; set; } + + /// + /// Gets or sets the display name of the plugin. + /// + public string Name { get; set; } = string.Empty; + + /// + /// Gets or sets the author of the plugin. + /// + public string Author { get; set; } = string.Empty; + + /// + /// Gets or sets the version of the plugin. + /// + public string Version { get; set; } = string.Empty; + + /// + /// Gets or sets the description of the plugin. + /// + public string Description { get; set; } = string.Empty; + + /// + /// Gets or sets the load status of the plugin. + /// + public PluginLoadStatus LoadStatus { get; set; } + + /// + /// Gets or sets the error message when the plugin failed to load. + /// + public string? LoadError { get; set; } + + /// + /// Gets or sets the settings of the plugin. + /// + public Dictionary? Settings { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingDescriptorDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingDescriptorDto.cs new file mode 100644 index 00000000..a5e4c206 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingDescriptorDto.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Plugins; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Plugins; + +/// +/// Data transfer object for a single setting of a plugin. +/// +[DebuggerDisplay("Key: {Key}, Label: {Label}")] +public class PluginSettingDescriptorDto +{ + /// + /// Gets or sets the unique key of the setting. + /// + public string Key { get; set; } = string.Empty; + + /// + /// Gets or sets the display label of the setting. + /// + public string Label { get; set; } = string.Empty; + + /// + /// Gets or sets the type of the setting. + /// + public PluginSettingType Type { get; set; } + + /// + /// Gets or sets the default value of the setting. + /// + public string? DefaultValue { get; set; } + + /// + /// Gets or sets the list of allowed values, when the setting is a selection. + /// + public IReadOnlyList? AllowedValues { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingsDto.cs new file mode 100644 index 00000000..75fd0900 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/Plugins/PluginSettingsDto.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.Plugins; + +/// +/// Data transfer object for the settings of a plugin and their schema. +/// +[DebuggerDisplay("PluginId: {PluginId}")] +public class PluginSettingsDto +{ + /// + /// Gets or sets the unique identifier of the plugin. + /// + public Guid PluginId { get; set; } + + /// + /// Gets or sets the schema of the plugin settings. + /// + public List Schema { get; set; } = []; + + /// + /// Gets or sets the current values of the plugin settings. + /// + public Dictionary? Settings { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserDto.cs b/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserDto.cs new file mode 100644 index 00000000..4a2abdd0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.UsersManagement; + +/// +/// Data transfer object for a user. +/// +/// The unique identifier of the user. +/// The username of the user. +[DebuggerDisplay("Id: {Id}, Username: {Username}")] +public record UserDto( + Guid Id, + string Username +); diff --git a/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs b/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs new file mode 100644 index 00000000..ad009888 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/UsersManagement/UserSettingsDto.cs @@ -0,0 +1,33 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.UsersManagement; + +/// +/// Data transfer object for the settings of a user. +/// +[DebuggerDisplay("IsPaginationEnabled: {IsPaginationEnabled}; ItemsPerPage: {ItemsPerPage}")] +public class UserSettingsDto +{ + /// + /// Gets or sets the unique identifier of the user that owns these settings. + /// + public Guid? UserId { get; set; } + + /// + /// Gets or sets whether pagination is enabled for the user, or not. + /// + public bool IsPaginationEnabled { get; set; } = true; + + /// + /// Gets or sets the number of library items displayed per page when pagination is enabled. + /// + public int ItemsPerPage { get; set; } = 48; + + /// + /// Gets or sets whether the "The" prefix of library item titles is ignored by the alpha picker, or not. + /// + public bool IgnoreThePrefixForAlphaPicker { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookDto.cs b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookDto.cs new file mode 100644 index 00000000..b746cff9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookDto.cs @@ -0,0 +1,216 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Common; +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary; + +/// +/// Data transfer object for a book. +/// +[DebuggerDisplay("Title: {Title}")] +public class BookDto +{ + /// + /// Gets the Id of the media item. + /// + public Guid Id { get; init; } + + /// + /// Gets the Id of the media library this book belongs to. + /// + public Guid LibraryId { get; init; } + + /// + /// Gets the file system path of the book. + /// + public string Path { get; init; } = null!; + + /// + /// Gets the title of the media item. + /// + public string Title { get; init; } = null!; + + /// + /// Gets the original title of the media item. + /// + public string? OriginalTitle { get; init; } + + /// + /// Gets the optional description of the media item. + /// + public string? Description { get; init; } + + /// + /// Gets the optional original release date of the media item. + /// + public DateOnly? OriginalReleaseDate { get; init; } + + /// + /// Gets the optional original release year of the media item. + /// This is useful when only the year of original release is known. + /// + public int? OriginalReleaseYear { get; init; } + + /// + /// Gets the optional re-release or reissue date of the media item. + /// + public DateOnly? ReReleaseDate { get; init; } + + /// + /// Gets the optional re-release or reissue year of the media item. + /// + public int? ReReleaseYear { get; init; } + + /// + /// Gets the optional country or region of release. + /// + public string? ReleaseCountry { get; init; } + + /// + /// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0") + /// + public string? ReleaseVersion { get; init; } + + /// + /// Gets the ISO 639-1 two-letter language code. + /// + public string? LanguageCode { get; init; } + + /// + /// Gets the full name of the language in English. + /// + public string? LanguageName { get; init; } + + /// + /// Gets an optional native name of the language. + /// + public string? LanguageNativeName { get; init; } + + /// + /// Gets the optional ISO 639-1 two-letter original language code. + /// + public string? OriginalLanguageCode { get; init; } + + /// + /// Gets the optional full name of the original language in English. + /// + public string? OriginalLanguageName { get; init; } + + /// + /// Gets an optional native name of the original language. + /// + public string? OriginalLanguageNativeName { get; init; } + + /// + /// Gets the list of tags associated with the media item. + /// + public HashSet Tags { get; set; } = []; + + /// + /// Gets the list of genres associated with the media item. + /// + public HashSet Genres { get; set; } = []; + + /// + /// Gets the publisher of the written content. + /// + public string? Publisher { get; init; } + + /// + /// Gets the number of pages in the written content. + /// + public int? PageCount { get; init; } + + /// + /// Gets the format of the book (e.g., Hardcover, Paperback), if applicable. + /// + public string Format { get; init; } = null!; + + /// + /// Gets the edition of the book, if applicable. + /// + public string? Edition { get; init; } + + /// + /// Gets the volume or book number in the series, if applicable. + /// + public int? VolumeNumber { get; init; } + + /// + /// Gets the series id, if the book is part of a series. + /// + //public Guid? BookSeriesId { get; init; } = null; + + /// + /// Gets the ASIN (Amazon Standard Identification Number) of the book. + /// + public string? ASIN { get; init; } = null!; + + /// + /// Gets the Goodreads ID of the book. + /// + public string? GoodreadsId { get; init; } = null!; + + /// + /// Gets the Library of Congress Control Number (LCCN) of the book. + /// + public string? LCCN { get; init; } = null!; + + /// + /// Gets the OCLC Number (WorldCat identifier) of the book. + /// + public string? OCLCNumber { get; init; } = null!; + + /// + /// Gets the Open Library ID of the book. + /// + public string? OpenLibraryId { get; init; } = null!; + + /// + /// Gets the LibraryThing ID of the book. + /// + public string? LibraryThingId { get; init; } = null!; + + /// + /// Gets the Google Books ID of the book. + /// + public string? GoogleBooksId { get; init; } = null!; + + /// + /// Gets the Barnes & Noble ID of the book. + /// + public string? BarnesAndNobleId { get; init; } = null!; + + /// + /// Gets the Apple Books ID of the book. + /// + public string? AppleBooksId { get; init; } = null!; + + /// + /// Gets the list of ISBN (International Standard Book Number) of the book. + /// + public List ISBNs { get; set; } = []; + + /// + /// Gets the list of media contributors (actors, directors, etc) starring in this book. + /// + //public List ContributorIds { get; init; } = []; + + /// + /// Gets the list of ratings for this book. + /// + public List Ratings { get; init; } = []; + + /// + /// Gets the time and date when the entity was added. + /// + public DateTime Created { get; set; } + + /// + /// Gets the optional time and date when the entity was updated. + /// + public DateTime? Updated { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookRatingDto.cs b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookRatingDto.cs new file mode 100644 index 00000000..488dfa33 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookRatingDto.cs @@ -0,0 +1,19 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.BookLibrary; +using System.Diagnostics; +using Lumina.Presentation.Web.Common.DTO.Common; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary; + +/// +/// Data transfer object for a book rating. +/// +[DebuggerDisplay("Value: {Value}, MaxValue: {MaxValue}")] +public class BookRatingDto : RatingDto +{ + /// + /// Gets or sets the source of the book rating (e.g., a specific website or platform). + /// + public BookRatingSource? Source { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookSeriesDto.cs b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookSeriesDto.cs new file mode 100644 index 00000000..70d36931 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/BookSeriesDto.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary; + +/// +/// Data transfer object for a request to get book series information. +/// +[DebuggerDisplay("Title: {Title}")] +public class BookSeriesDto +{ + /// + /// Gets or sets the title of the book series. + /// + public string? Title { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/IsbnDto.cs b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/IsbnDto.cs new file mode 100644 index 00000000..8df5e093 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/IsbnDto.cs @@ -0,0 +1,23 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.BookLibrary; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary; + +/// +/// Data transfer object for a request to get ISBN information. +/// +[DebuggerDisplay("Value: {Value} ({Format})")] +public class IsbnDto +{ + /// + /// Gets or sets the ISBN value. + /// + public string? Value { get; set; } + + /// + /// Gets or sets the format of the ISBN (e.g., ISBN-10 or ISBN-13). + /// + public IsbnFormat? Format { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/LightBookDto.cs b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/LightBookDto.cs new file mode 100644 index 00000000..047a8dd4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/BookLibrary/LightBookDto.cs @@ -0,0 +1,33 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary; + +/// +/// Data transfer object for a preview of important properties of a book. +/// +[DebuggerDisplay("Title: {Title}")] +public class LightBookDto +{ + /// + /// Gets the Id of the media item. + /// + public required Guid Id { get; init; } + + /// + /// Gets the title of the media item. + /// + public required string Title { get; init; } + + /// + /// Gets the optional release year (either re-release year, if available, or original release year, if known) of the media item. + /// + public int? ReleaseYear { get; init; } + + /// + /// Gets the optional path of the image representing the cover of this book. + /// + public string? CoverPath { get; init; } +} diff --git a/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/WrittenContentMetadataDto.cs b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/WrittenContentMetadataDto.cs new file mode 100644 index 00000000..49ebd592 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/DTO/WrittenContentLibrary/WrittenContentMetadataDto.cs @@ -0,0 +1,64 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Common; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary; + +/// +/// Data transfer object for written content metadata. +/// +[DebuggerDisplay("Title: {Title}")] +public class WrittenContentMetadataDto +{ + /// + /// Gets or sets the title of the written content. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the original title of the written content, if different from the current title. + /// + public string? OriginalTitle { get; set; } + + /// + /// Gets or sets a brief description or summary of the written content. + /// + public string? Description { get; set; } + + /// + /// Gets or sets the release information, including release date and other relevant details. + /// + public ReleaseInfoDto? ReleaseInfo { get; set; } + + /// + /// Gets or sets the list of genres associated with the written content. + /// + public List? Genres { get; set; } + + /// + /// Gets or sets the list of tags that further describe or categorize the written content. + /// + public List? Tags { get; set; } + + /// + /// Gets or sets the language in which the written content is written. + /// + public LanguageInfoDto? Language { get; set; } + + /// + /// Gets or sets the original language of the written content, if it has been translated. + /// + public LanguageInfoDto? OriginalLanguage { get; set; } + + /// + /// Gets or sets the name of the publisher of the written content. + /// + public string? Publisher { get; set; } + + /// + /// Gets or sets the number of pages in the written content. + /// + public int? PageCount { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerConfiguration.cs b/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerConfiguration.cs index d0dc667e..8bea5b86 100644 --- a/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerConfiguration.cs +++ b/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerConfiguration.cs @@ -1,5 +1,5 @@ #region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Configuration; +using Lumina.Presentation.Web.Common.DTO.Configuration; using Lumina.Presentation.Web.Common.Utilities; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -26,13 +26,13 @@ internal static class PresentationWebLayerConfiguration configuration.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true); configuration.AddJsonFile("appsettings.development.json", optional: true, reloadOnChange: true); - serviceCollection.AddOptions() - .Bind(configuration.GetRequiredSection(ServerConfigurationModel.SECTION_NAME)) + serviceCollection.AddOptions() + .Bind(configuration.GetRequiredSection(ServerConfigurationDto.SECTION_NAME)) .ValidateFluently() .ValidateOnStart(); - serviceCollection.AddOptions() - .Bind(configuration.GetRequiredSection(EncryptionSettingsModel.SECTION_NAME)) + serviceCollection.AddOptions() + .Bind(configuration.GetRequiredSection(EncryptionSettingsDto.SECTION_NAME)) .ValidateFluently() .ValidateOnStart(); diff --git a/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs b/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs index 1264f93d..bd606e3a 100644 --- a/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs +++ b/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs @@ -1,13 +1,13 @@ #region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using FastEndpoints.Swagger; using FluentValidation; using Lumina.Presentation.Web.Common.Api; using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Enums.Authorization; using Lumina.Presentation.Web.Common.Exceptions; -using Lumina.Presentation.Web.Common.Filters.ActionFilters; -using Lumina.Presentation.Web.Common.Filters.AuthorizationFilters; using Lumina.Presentation.Web.Common.Http; -using Lumina.Presentation.Web.Common.MiddlewareFilters; -using Lumina.Presentation.Web.Common.Models.Authorization; +using Lumina.Presentation.Web.Common.Localization; using Lumina.Presentation.Web.Common.Security; using Lumina.Presentation.Web.Common.Services; using Microsoft.AspNetCore.Authentication.Cookies; @@ -18,6 +18,7 @@ using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Localization; using Microsoft.AspNetCore.Localization.Routing; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Localization; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.Extensions.DependencyInjection; using Polly; @@ -49,11 +50,7 @@ public static class PresentationWebLayerServices /// The updated . public static IServiceCollection AddPresentationWebLayerServices(this IServiceCollection services) { - services.AddControllersWithViews(mvcOptions => - { - mvcOptions.Filters.Add(new MiddlewareFilterAttribute(typeof(LocalizationPipeline))); // add localization middleware filter - mvcOptions.Filters.Add(); - }) + services.AddControllersWithViews() .AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix) .AddDataAnnotationsLocalization() .AddJsonOptions(jsonOptions => @@ -62,11 +59,50 @@ public static class PresentationWebLayerServices jsonOptions.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles; // needed because file system API responses can have very nested structures jsonOptions.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); }); + + // configure the locations where the Razor view engine looks for views and layouts, since the views live under the Core directory + services.Configure(razorViewEngineOptions => + { + razorViewEngineOptions.ViewLocationFormats.Clear(); + razorViewEngineOptions.ViewLocationFormats.Add("/Core/Views/{1}/{0}.cshtml"); + razorViewEngineOptions.ViewLocationFormats.Add("/Core/Views/Shared/{0}.cshtml"); + }); + + // configure the JSON serialization settings used by Results.Json, so that the JSON responses of the endpoints match the MVC responses they replace + services.Configure(jsonOptions => + { + jsonOptions.SerializerOptions.MaxDepth = 256; + jsonOptions.SerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles; // needed because file system API responses can have very nested structures + jsonOptions.SerializerOptions.Converters.Add(new JsonStringEnumConverter()); + }); + + // register the FastEndpoints library, which replaces the MVC controllers for handling the application routes + services.AddFastEndpoints(); + // add OpenAPI document generation, so that the endpoints exposed by the web application are discoverable and their contracts are visible + services.AddOpenApi(); + services.SwaggerDocument(documentOptions => + { + documentOptions.SerializerSettings = jsonSerializerOptions => + { + jsonSerializerOptions.PropertyNamingPolicy = null; + jsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull; + }; + documentOptions.DocumentSettings = aspNetCoreOpenApiDocumentGeneratorSettings => + { + aspNetCoreOpenApiDocumentGeneratorSettings.DocumentName = "v1"; + aspNetCoreOpenApiDocumentGeneratorSettings.Title = "Lumina Web"; + aspNetCoreOpenApiDocumentGeneratorSettings.Version = "v1"; + }; + documentOptions.RemoveEmptyRequestSchema = true; + documentOptions.ShortSchemaNames = true; + }); // configure URL-based localization services.AddLocalization(localizationOptions => { - localizationOptions.ResourcesPath = "Resources"; + localizationOptions.ResourcesPath = "Core/Resources"; }); + // resolve the resources of the views that live under the Core/Views directory + services.AddSingleton(); services.Configure(requestLocalizationOptions => { @@ -190,9 +226,12 @@ public static class PresentationWebLayerServices }; }); - // add an authorization policy that ensures application is initialized with super admin account before allowing access + // add authorization policies that ensure the application is initialized with the super admin account before allowing access, + // and that restrict access based on the roles and permissions retrieved from the remote API services.AddAuthorizationBuilder() - .AddPolicy("RequireInitialization", authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new InitializationRequirement())); + .AddPolicy(AuthorizationPolicies.REQUIRE_INITIALIZATION, authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new InitializationRequirement())) + .AddPolicy(AuthorizationPolicies.REQUIRE_ADMIN_ROLE, authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new RoleRequirement("Admin"))) + .AddPolicy(AuthorizationPolicies.REQUIRE_CREATE_LIBRARIES_PERMISSION, authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new PermissionRequirement(AuthorizationPermission.CanCreateLibraries))); // add forwarded headers middleware to handle reverse proxy scenarios services.Configure(forwardedHeadersOptions => @@ -237,13 +276,13 @@ public static class PresentationWebLayerServices .AddPolicyHandler(circuitBreakerPolicy); services.AddScoped(); - services.AddScoped(); - services.AddScoped(); // enable access to the current HTTP context in non-controller classes services.AddHttpContextAccessor(); services.AddScoped(); + services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddSingleton(); services.AddSingleton(); diff --git a/src/Lumina.Presentation.Web/Common/Exceptions/ApiException.cs b/src/Lumina.Presentation.Web/Common/Exceptions/ApiException.cs index 5557f482..95c75ae9 100644 --- a/src/Lumina.Presentation.Web/Common/Exceptions/ApiException.cs +++ b/src/Lumina.Presentation.Web/Common/Exceptions/ApiException.cs @@ -1,5 +1,5 @@ #region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Common; +using Lumina.Presentation.Web.Common.DTO.Common; using System; using System.Net; #endregion @@ -19,7 +19,7 @@ public class ApiException : Exception /// /// Gets or sets the problem details represented by this exception. /// - public ProblemDetailsModel? ProblemDetails { get; } + public ProblemDetailsDto? ProblemDetails { get; } /// /// Gets or sets the absolute path of the API endpoint that produced this exception. @@ -32,7 +32,7 @@ public class ApiException : Exception /// The problem details object returned by the API. /// The HTTP status code returned by the API. /// The absolute path of the API endpoint that produced this exception. - public ApiException(ProblemDetailsModel? problemDetails, HttpStatusCode httpStatusCode, string? requestPath = null) : base(problemDetails?.Title ?? "An error occurred.") + public ApiException(ProblemDetailsDto? problemDetails, HttpStatusCode httpStatusCode, string? requestPath = null) : base(problemDetails?.Title ?? "An error occurred.") { ProblemDetails = problemDetails; HttpStatusCode = httpStatusCode; diff --git a/src/Lumina.Presentation.Web/Common/Http/RazorViewResult.cs b/src/Lumina.Presentation.Web/Common/Http/RazorViewResult.cs new file mode 100644 index 00000000..cdb5bd98 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Http/RazorViewResult.cs @@ -0,0 +1,65 @@ +#region ========================================================================= USING ===================================================================================== +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Abstractions; +using Microsoft.AspNetCore.Mvc.Infrastructure; +using Microsoft.AspNetCore.Mvc.ModelBinding; +using Microsoft.AspNetCore.Mvc.ViewFeatures; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using System.Collections.Generic; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Common.Http; + +/// +/// that renders a Razor view through the MVC view engine, enabling FastEndpoints endpoints to serve the Razor views of the application. +/// +/// +/// The class does not expose a method for rendering Razor views, so this custom result reuses the MVC +/// execution machinery, which preserves layouts, sections, view components and tag helpers. +/// +public sealed class RazorViewResult : IResult +{ + private readonly string _viewName; + private readonly object? _model; + private readonly IReadOnlyDictionary _viewData; + + /// + /// Initializes a new instance of the class. + /// + /// The name or path of the view to render. + /// The model to pass to the view. + /// Optional additional view data entries made available to the view via ViewData. + public RazorViewResult(string viewName, object? model = null, IReadOnlyDictionary? viewData = null) + { + _viewName = viewName; + _model = model; + _viewData = viewData ?? new Dictionary(); + } + + /// + /// Renders the configured Razor view to the response. + /// + /// The for the current request. + public async Task ExecuteAsync(HttpContext httpContext) + { + // the only accessible ViewDataDictionary constructors require either a model state or an existing dictionary, so start from an empty one and assign the model + // through the Model setter; the setter rebases the model metadata on the runtime type of the value, which is what makes the asp-for tag helpers resolve the + // properties of the actual model type instead of a plain object + IModelMetadataProvider metadataProvider = httpContext.RequestServices.GetRequiredService(); + ViewDataDictionary viewData = new(metadataProvider, new ModelStateDictionary()) { Model = _model }; + foreach ((string key, object? value) in _viewData) + viewData[key] = value; + + // delegate to the MVC view execution machinery instead of rendering the view manually: it discovers the layout and _ViewStart, evaluates the sections, + // and resolves the view components and tag helpers, none of which the Results class can do since it has no view rendering support + ViewResult viewResult = new() { ViewName = _viewName, ViewData = viewData }; + IActionResultExecutor executor = httpContext.RequestServices.GetRequiredService>(); + // the view engine needs an ActionContext, which FastEndpoints does not provide; synthesize one that carries over the current route data, so that the + // culture route value (and therefore the URL-based localization) keeps working while the view is rendered + ActionContext actionContext = new(httpContext, httpContext.GetRouteData() ?? new RouteData(), new ActionDescriptor()); + await executor.ExecuteAsync(actionContext, viewResult).ConfigureAwait(false); + } +} diff --git a/src/Lumina.Presentation.Web/Common/Localization/CoreHtmlLocalizerFactory.cs b/src/Lumina.Presentation.Web/Common/Localization/CoreHtmlLocalizerFactory.cs new file mode 100644 index 00000000..f560d7b5 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Localization/CoreHtmlLocalizerFactory.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using Microsoft.AspNetCore.Mvc.Localization; +using Microsoft.Extensions.Localization; +using System; +#endregion + +namespace Lumina.Presentation.Web.Common.Localization; + +/// +/// that resolves the resources of the views that live under the Core/Views directory. +/// +/// +/// The view localizer derives the resource base name from the executing view path, so a view at /Core/Views/Auth/Login.cshtml produces the base name +/// {ApplicationName}.Core.Views.Auth.Login. Because the Core segment is only the directory that hosts the views and not part of the resource path, +/// it is stripped here, so that the resources are looked up at {ApplicationName}.Core.Resources.Views.Auth.Login, matching the resource files under +/// Core/Resources/Views/Auth. +/// +public class CoreHtmlLocalizerFactory : IHtmlLocalizerFactory +{ + private readonly HtmlLocalizerFactory _innerFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected factory used to create the underlying string localizers. + public CoreHtmlLocalizerFactory(IStringLocalizerFactory stringLocalizerFactory) + { + _innerFactory = new HtmlLocalizerFactory(stringLocalizerFactory); + } + + /// + /// Creates an for the specified base name and location. + /// + /// The base name of the resource to load strings from. + /// The location to load resources from. + /// The created . + public IHtmlLocalizer Create(string baseName, string location) + { + string prefix = location + ".Core."; + string resourceBaseName = baseName.StartsWith(prefix, StringComparison.Ordinal) + ? location + "." + baseName.Substring(prefix.Length) + : baseName; + return _innerFactory.Create(resourceBaseName, location); + } + + /// + /// Creates an for the specified resource source type. + /// + /// The type of the resource to load strings from. + /// The created . + public IHtmlLocalizer Create(Type resourceSource) + { + return _innerFactory.Create(resourceSource); + } +} diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/AddRoleRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/AddRoleRequest.cs new file mode 100644 index 00000000..55d34f76 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/AddRoleRequest.cs @@ -0,0 +1,18 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents a request for adding an authorization role. +/// +/// The name of the role. Required. +/// The collection or permissions of the role. Required. +[DebuggerDisplay("RoleName: {RoleName}")] +public record AddRoleRequest( + string? RoleName, + List? Permissions +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/DeleteRoleRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/DeleteRoleRequest.cs new file mode 100644 index 00000000..4becd239 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/DeleteRoleRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents a request for deleting an authorization role. +/// +/// The unique identifier of the role. Required. +[DebuggerDisplay("RoleId: {RoleId}")] +public record DeleteRoleRequest( + Guid RoleId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetRolePermissionsRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetRolePermissionsRequest.cs new file mode 100644 index 00000000..738e1b4e --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetRolePermissionsRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents a request to get the authorization permissions of a role identified by . +/// +/// The Id of authorization role. Required. +[DebuggerDisplay("RoleId: {RoleId}")] +public record GetRolePermissionsRequest( + Guid RoleId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserPermissionsRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserPermissionsRequest.cs new file mode 100644 index 00000000..25758d63 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserPermissionsRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents the request model for retrieving the authorization permissions of a user identified by . +/// +/// The unique identifier of the user for whom to get the authorization permissions. Required. +[DebuggerDisplay("UserId: {UserId}")] +public record GetUserPermissionsRequest( + Guid UserId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserRoleRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserRoleRequest.cs new file mode 100644 index 00000000..6080ba49 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/GetUserRoleRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents the request model for retrieving the authorization role of a user identified by . +/// +/// The unique identifier of the user for whom to get the authorization role. Required. +[DebuggerDisplay("UserId: {UserId}")] +public record GetUserRoleRequest( + Guid UserId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateRoleRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateRoleRequest.cs new file mode 100644 index 00000000..de8d4c45 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateRoleRequest.cs @@ -0,0 +1,20 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents a request for updating an existing authorization role. +/// +/// The unique identifier of the role. Required. +/// The name of the role. Required. +/// The collection of Ids of the permissions of the role. Required. +[DebuggerDisplay("RoleName: {RoleName}")] +public record UpdateRoleRequest( + Guid RoleId, + string? RoleName, + List? Permissions +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateUserRoleAndPermissionsRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateUserRoleAndPermissionsRequest.cs new file mode 100644 index 00000000..21e9ad06 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Authorization/UpdateUserRoleAndPermissionsRequest.cs @@ -0,0 +1,20 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Authorization; + +/// +/// Represents a request for updating the authorization role and permissions of a user. +/// +/// The unique identifier of the user. Required. +/// The unique identifier of the role. Optional. +/// The collection of Ids of the permissions of the role. Optional. +[DebuggerDisplay("UserId: {UserId}")] +public record UpdateUserRoleAndPermissionsRequest( + Guid UserId, + Guid? RoleId, + List? Permissions +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Common/EmptyRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Common/EmptyRequest.cs new file mode 100644 index 00000000..12334e34 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Common/EmptyRequest.cs @@ -0,0 +1,6 @@ +namespace Lumina.Presentation.Web.Common.Requests.Common; + +/// +/// Record used for empty requests and responses. +/// +public record struct EmptyRequest(); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequest.cs new file mode 100644 index 00000000..6319e090 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequest.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Directories; + +/// +/// Represents a request to get the directories of a file system path. +/// +/// The file system path for which to get the directories. Required. +/// Whether to include hidden file system elements or not. Optional. +[DebuggerDisplay("Path: {Path}")] +public record GetDirectoriesRequest( + string? Path, + bool IncludeHiddenElements +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetFilesRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetFilesRequest.cs new file mode 100644 index 00000000..0448d103 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetFilesRequest.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files; + +/// +/// Represents a request to get the files at a file system path. +/// +/// The file system path for which to get the files. Required. +/// Whether to include hidden file system elements or not. Optional. +[DebuggerDisplay("Path: {Path}")] +public record GetFilesRequest( + string? Path, + bool IncludeHiddenElements +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetTreeFilesRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetTreeFilesRequest.cs new file mode 100644 index 00000000..f78a9dcc --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Files/GetTreeFilesRequest.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files; + +/// +/// Represents a request to get the files of a file system path. +/// +/// The file system path for which to get the tree files. Required. +/// Whether to include hidden file system elements or not. Optional. +[DebuggerDisplay("Path: {Path}")] +public record GetTreeFilesRequest( + string? Path, + bool IncludeHiddenElements +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/CheckPathExistsRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/CheckPathExistsRequest.cs new file mode 100644 index 00000000..78fb23a8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/CheckPathExistsRequest.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; + +/// +/// Represents a request to check the existence of a file system path. +/// +/// The file system path to check the exitence of. Required. +/// Whether to include hidden elements in the search results, or not. Optional. +[DebuggerDisplay("Path: {Path}, IncludeHiddenElements: {IncludeHiddenElements}")] +public record CheckPathExistsRequest( + string? Path, + bool IncludeHiddenElements +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathParentRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathParentRequest.cs new file mode 100644 index 00000000..c3bb5a7c --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathParentRequest.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; + +/// +/// Represents the request for retrieving the parent path of a file system path. +/// +/// The path for which the parent path is retrieved. +[DebuggerDisplay("Path: {Path}")] +public record GetPathParentRequest( + string? Path +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathRootRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathRootRequest.cs new file mode 100644 index 00000000..6c2660ae --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/GetPathRootRequest.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; + +/// +/// Represents a request to get the root of a file system path. +/// +/// The file system path for which to get the root. Required. +[DebuggerDisplay("Path: {Path}")] +public record GetPathRootRequest( + string? Path +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/SplitPathRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/SplitPathRequest.cs new file mode 100644 index 00000000..f8454901 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/SplitPathRequest.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; + +/// +/// Represents a request to split a file system path. +/// +/// The file system path for which to get the path segments. Required. +[DebuggerDisplay("Path: {Path}")] +public record SplitPathRequest( + string? Path +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/ValidatePathRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/ValidatePathRequest.cs new file mode 100644 index 00000000..b8664b9e --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/FileSystemManagement/Path/ValidatePathRequest.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; + +/// +/// Represents a request to check the validity of a file system path. +/// +/// The file system path to validate. Required. +[DebuggerDisplay("Path: {Path}")] +public record ValidatePathRequest( + string? Path +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Libraries/GetBooksLiteRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Libraries/GetBooksLiteRequest.cs new file mode 100644 index 00000000..d6ccbcd7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Libraries/GetBooksLiteRequest.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Common; +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Libraries; + +/// +/// Represents a request to get the lightweight details of the books of a media library. +/// +[DebuggerDisplay("LibraryId: {LibraryId}")] +public class GetBooksLiteRequest +{ + /// + /// Gets or sets the Id of the media library whose books are retrieved. + /// + public Guid LibraryId { get; set; } + + /// + /// Gets or sets the page of results to retrieve. + /// + public int? CurrentPage { get; set; } + + /// + /// Gets or sets the maximum number of books to retrieve per page. + /// + public int? PerPage { get; set; } + + /// + /// Gets or sets the search term used to filter results. + /// + public string? SearchTerm { get; set; } + + /// + /// Gets or sets the alpha key used to filter the results by the first character of their title, for the alpha picker. + /// Can be to disable alpha filtering, a single ASCII letter (case-insensitive) to filter by that letter, + /// "#" to filter by titles whose first character is a digit, or "*" to filter by titles whose first character is neither a letter nor a digit. + /// + public string? FilterAlphaKey { get; set; } + + /// + /// Gets or sets whether the leading "The " prefix of a title is ignored when computing the alpha key, or not. + /// + public bool IgnoreThePrefixForAlphaPicker { get; set; } + + /// + /// Gets or sets the name of the field by which to sort the results. + /// + public string? SortBy { get; set; } + + /// + /// Gets or sets the direction in which to sort the results. + /// + public SortOrder? SortOrder { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/Management/CancelLibraryScanRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/CancelLibraryScanRequest.cs new file mode 100644 index 00000000..bd358060 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/CancelLibraryScanRequest.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.Management; + +/// +/// Represents a request to cancel the scan of a media library. +/// +/// The unique identifier of the media library whose scan is cancelled. Required. +/// The Id of scan to cancel. Required. +[DebuggerDisplay("LibraryId: {LibraryId}; ScanId: {ScanId}")] +public record CancelLibraryScanRequest( + Guid LibraryId, + Guid ScanId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/Management/DeleteLibraryRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/DeleteLibraryRequest.cs new file mode 100644 index 00000000..928c8ce7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/DeleteLibraryRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.Management; + +/// +/// Represents a request to delete a media library by its Id. +/// +/// The unique identifier of the media library to be deleted. Required. +[DebuggerDisplay("Id: {Id}")] +public record DeleteLibraryRequest( + Guid Id +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/Management/EditLibraryRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/EditLibraryRequest.cs new file mode 100644 index 00000000..93b666b7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/EditLibraryRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.Management; + +/// +/// Represents the request for displaying the media library editing view. +/// +/// The unique identifier of the media library to edit. +[DebuggerDisplay("Id: {Id}")] +public record EditLibraryRequest( + Guid Id +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/Management/GetMetadataProvidersRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/GetMetadataProvidersRequest.cs new file mode 100644 index 00000000..ca866ef0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/GetMetadataProvidersRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.Management; + +/// +/// Represents the request for retrieving the metadata providers of a media library. +/// +/// The unique identifier of the media library whose metadata providers are retrieved. +[DebuggerDisplay("LibraryId: {LibraryId}")] +public record GetMetadataProvidersRequest( + Guid LibraryId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/Management/ScanLibraryRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/ScanLibraryRequest.cs new file mode 100644 index 00000000..dbb07d0f --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/Management/ScanLibraryRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.Management; + +/// +/// Represents a request to scan a media library. +/// +/// The unique identifier of the media library to be scanned. Required. +[DebuggerDisplay("Id: {Id}")] +public record ScanLibraryRequest( + Guid Id +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBookRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBookRequest.cs new file mode 100644 index 00000000..79725234 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBookRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; + +/// +/// Represents a request to get a book by the specified Id. +/// +/// The unique identifier of the book to retrieve. +[DebuggerDisplay("Id: {Id}")] +public record GetBookRequest( + Guid Id +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksViewRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksViewRequest.cs new file mode 100644 index 00000000..7ec4de40 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksViewRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; + +/// +/// Represents the request for displaying the books browsing view. +/// +/// The unique identifier of the media library whose books are browsed. +[DebuggerDisplay("LibraryId: {LibraryId}")] +public record GetBooksViewRequest( + Guid? LibraryId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Plugins/GetPluginSettingsRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Plugins/GetPluginSettingsRequest.cs new file mode 100644 index 00000000..cdbbe52a --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Plugins/GetPluginSettingsRequest.cs @@ -0,0 +1,15 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Plugins; + +/// +/// Represents a request to get the settings of a plugin. +/// +/// The unique identifier of the plugin. Required. +[DebuggerDisplay("PluginId: {PluginId}")] +public record GetPluginSettingsRequest( + Guid PluginId +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/Plugins/ReorderLibraryMetadataProvidersRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Plugins/ReorderLibraryMetadataProvidersRequest.cs new file mode 100644 index 00000000..a88953b3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Plugins/ReorderLibraryMetadataProvidersRequest.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Plugins; + +/// +/// Represents a request to reorder the metadata providers of a media library. +/// +[DebuggerDisplay("LibraryId: {LibraryId}")] +public class ReorderLibraryMetadataProvidersRequest +{ + /// + /// Gets or sets the Id of the media library whose metadata providers are reordered. + /// + public Guid LibraryId { get; set; } + + /// + /// Gets or sets the plugin Ids in the new order, from highest to lowest rank. + /// + public List PluginIds { get; set; } = []; +} diff --git a/src/Lumina.Presentation.Web/Common/Requests/Plugins/SetLibraryMetadataProviderEnabledRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Plugins/SetLibraryMetadataProviderEnabledRequest.cs new file mode 100644 index 00000000..38046da0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Plugins/SetLibraryMetadataProviderEnabledRequest.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Plugins; + +/// +/// Represents a request to enable or disable a metadata provider for a media library. +/// +[DebuggerDisplay("LibraryId: {LibraryId}, PluginId: {PluginId}")] +public class SetLibraryMetadataProviderEnabledRequest +{ + /// + /// Gets or sets the Id of the media library whose metadata provider is enabled or disabled. + /// + public Guid LibraryId { get; set; } + + /// + /// Gets or sets the unique identifier of the plugin providing the metadata. + /// + public Guid PluginId { get; set; } + + /// + /// Gets or sets whether the metadata provider should be enabled for the media library. + /// + public bool IsEnabled { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/Requests/Plugins/UpdatePluginSettingsRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Plugins/UpdatePluginSettingsRequest.cs new file mode 100644 index 00000000..c48bac46 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Plugins/UpdatePluginSettingsRequest.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Plugins; + +/// +/// Represents a request to update the settings of a plugin. +/// +[DebuggerDisplay("PluginId: {PluginId}")] +public class UpdatePluginSettingsRequest +{ + /// + /// Gets or sets the unique identifier of the plugin. + /// + public Guid PluginId { get; set; } + + /// + /// Gets or sets the settings of the plugin. + /// + public Dictionary? Settings { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/Requests/Tools/SetLanguageRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/Tools/SetLanguageRequest.cs new file mode 100644 index 00000000..2db72ecc --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/Tools/SetLanguageRequest.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.Tools; + +/// +/// Represents the request for setting the culture used by the application. +/// +/// The new culture to set. +/// The URL to return to, after setting the new culture. +[DebuggerDisplay("NewCulture: {NewCulture}, ReturnUrl: {ReturnUrl}")] +public record SetLanguageRequest( + string? NewCulture, + string? ReturnUrl +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/Authentication/LoginViewRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/Authentication/LoginViewRequest.cs new file mode 100644 index 00000000..a9dda6d5 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/Authentication/LoginViewRequest.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.UsersManagement.Authentication; + +/// +/// Represents the request for displaying the account login view. +/// +/// The URL to return to, after login. +[DebuggerDisplay("ReturnUrl: {ReturnUrl}")] +public record LoginViewRequest( + string? ReturnUrl = null +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/ChangePasswordRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/ChangePasswordRequest.cs new file mode 100644 index 00000000..b899d829 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/ChangePasswordRequest.cs @@ -0,0 +1,20 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.UsersManagement; + +/// +/// Represents the request model for account password change. +/// +/// The username of the account. Required. +/// The current password of the account. Required. +/// The new password of the account. Required. +/// The confirmation of the new password of the account. Required. +[DebuggerDisplay("Username: {Username}")] +public record ChangePasswordRequest( + string? Username, + string? CurrentPassword, + string? NewPassword, + string? NewPasswordConfirm +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/LoginRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/LoginRequest.cs new file mode 100644 index 00000000..bca229e8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/LoginRequest.cs @@ -0,0 +1,20 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.UsersManagement; + +/// +/// Represents the request model for user authentication. +/// +/// The username of the account to authenticate. Required. +/// The password of the account to authenticate. Required. +/// The TOTP (Time-Based One-Time Password) of the account to authenticate. Optional. +/// The URL to return to, after login. +[DebuggerDisplay("Username: {Username}")] +public record LoginRequest( + string? Username = null, + string? Password = null, + string? TotpCode = null, + string? ReturnUrl = null +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RecoverPasswordRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RecoverPasswordRequest.cs new file mode 100644 index 00000000..e41f7e8a --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RecoverPasswordRequest.cs @@ -0,0 +1,16 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.UsersManagement; + +/// +/// Represents the request model for account password recovery. +/// +/// The username of the account for which to recover the password. Required. +/// The TOTP (Time-Based One-Time Password) of the account for which to recover the password. Required. +[DebuggerDisplay("Username: {Username}")] +public record RecoverPasswordRequest( + string? Username, + string? TotpCode +); diff --git a/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RegisterRequest.cs b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RegisterRequest.cs new file mode 100644 index 00000000..9aa1c105 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Requests/UsersManagement/RegisterRequest.cs @@ -0,0 +1,22 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Requests.UsersManagement; + +/// +/// Represents the request model for user registration. +/// +/// The desired username for the new account. Required. +/// The password for the new account. Required. +/// The confirmation of the entered password, used to ensure consistency. Required. +/// Specifies the type of registration, e.g., "Admin" or "User". Required. +/// Indicates whether two-factor authentication (2FA) should be enabled for the new account. Optional. +[DebuggerDisplay("Username: {Username}")] +public record RegisterRequest( + string? Username, + string? Password, + string? PasswordConfirm, + string? RegistrationType, + bool Use2fa = true +); diff --git a/src/Lumina.Presentation.Web/Common/Responses/Authorization/GetAuthorizationResponse.cs b/src/Lumina.Presentation.Web/Common/Responses/Authorization/GetAuthorizationResponse.cs new file mode 100644 index 00000000..3190ff2d --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Responses/Authorization/GetAuthorizationResponse.cs @@ -0,0 +1,20 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Enums.Authorization; +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Responses.Authorization; + +/// +/// Represents the response model for an account authorization request. +/// +/// The unique identifier of the user for whom the authorization is retrieved. +/// The role associated to the user. +/// The collection of permissions associated to the user. +[DebuggerDisplay("UserId: {UserId}")] +public record GetAuthorizationResponse( + Guid UserId, + string? Role, + AuthorizationPermission[] Permissions +); diff --git a/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/ChangePasswordResponse.cs b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/ChangePasswordResponse.cs new file mode 100644 index 00000000..7bd05bf6 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/ChangePasswordResponse.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Responses.UsersManagement; + +/// +/// Represents the response model for an account password change request. +/// +/// Whether the password was changed or not. +[DebuggerDisplay("IsPasswordChanged: {IsPasswordChanged}")] +public record ChangePasswordResponse( + bool IsPasswordChanged +); diff --git a/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/InitializationResponse.cs b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/InitializationResponse.cs new file mode 100644 index 00000000..6f4582d7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/InitializationResponse.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Responses.UsersManagement; + +/// +/// Model for verifying the initialization status of the application. +/// +[DebuggerDisplay("IsInitialized: {IsInitialized}")] +public class InitializationResponse +{ + /// + /// Gets or sets a value indicating whether the application has been run before, and the super admin account has been created. + /// + public bool IsInitialized { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/LoginResponse.cs b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/LoginResponse.cs new file mode 100644 index 00000000..0cd2dc7a --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/LoginResponse.cs @@ -0,0 +1,21 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Responses.UsersManagement; + +/// +/// Represents the response model for a user authentication. +/// +/// The unique identifier of the logged in user. +/// The username of the logged in user. +/// The JWT authentication token, if authentication failed or TOTP is required. +/// Indicates whether the user has Two-Factor Authentication enabled, or not. +[DebuggerDisplay("Username: {Username}")] +public record LoginResponse( + Guid Id, + string? Username, + string? Token, + bool UsesTotp +); diff --git a/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RecoverPasswordResponse.cs b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RecoverPasswordResponse.cs new file mode 100644 index 00000000..514fc5dc --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RecoverPasswordResponse.cs @@ -0,0 +1,14 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Responses.UsersManagement; + +/// +/// Represents the response model for an account password reset request. +/// +/// Whether the password was reset or not. +[DebuggerDisplay("IsPasswordReset: {IsPasswordReset}")] +public record RecoverPasswordResponse( + bool IsPasswordReset +); diff --git a/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RegisterResponse.cs b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RegisterResponse.cs new file mode 100644 index 00000000..be3fbf96 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Responses/UsersManagement/RegisterResponse.cs @@ -0,0 +1,17 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Diagnostics; +#endregion + +namespace Lumina.Presentation.Web.Common.Responses.UsersManagement; + +/// +/// Represents the response model for a successful registration. +/// +/// The username of the registered user. +/// The TOTP (Time-Based One-Time Password) secret used for two-factor authentication. +[DebuggerDisplay("Username: {Username}")] +public record RegisterResponse( + string? Username, + string? TotpSecret +); diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authentication.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authentication.cs new file mode 100644 index 00000000..0d17674c --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authentication.cs @@ -0,0 +1,19 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the authentication endpoints of the remote API. + /// + public static class Authentication + { + public const string REGISTER_ACCOUNT = "auth/register"; + public const string LOGIN_ACCOUNT = "auth/login"; + public const string RECOVER_PASSWORD = "auth/recover-password"; + public const string CHANGE_PASSWORD = "auth/change-password"; + public const string USERS = "auth/users"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authorization.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authorization.cs new file mode 100644 index 00000000..d1b2a239 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Authorization.cs @@ -0,0 +1,18 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the authorization endpoints of the remote API. + /// + public static class Authorization + { + public const string UPDATE_USER_ROLE_AND_PERMISSIONS_BY_USER_ID = "auth/users/{userId}/role-and-permissions"; + public const string GET_USER_PERMISSIONS_BY_USER_ID = "auth/users/{userId}/permissions"; + public const string GET_USER_ROLE_BY_USER_ID = "auth/users/{userId}/role"; + public const string GET_AUTHORIZATION = "auth/get-authorization"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Books.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Books.cs new file mode 100644 index 00000000..c3aa70eb --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Books.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the books endpoints of the remote API. + /// + public static class Books + { + public const string GET_BOOKS_LITE = "books/lite"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Directories.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Directories.cs new file mode 100644 index 00000000..f79175fb --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Directories.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the directories endpoints of the remote API. + /// + public static class Directories + { + public const string GET_DIRECTORIES = "directories/get-directories"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Drives.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Drives.cs new file mode 100644 index 00000000..288d9d14 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Drives.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the drives endpoints of the remote API. + /// + public static class Drives + { + public const string GET_DRIVES = "drives/get-drives"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.FileSystem.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.FileSystem.cs new file mode 100644 index 00000000..b317b02b --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.FileSystem.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the file system endpoints of the remote API. + /// + public static class FileSystem + { + public const string GET_TYPES = "file-system/get-type"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Files.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Files.cs new file mode 100644 index 00000000..2d5d3c78 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Files.cs @@ -0,0 +1,16 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the files endpoints of the remote API. + /// + public static class Files + { + public const string GET_TREE_FILES = "files/get-tree-files"; + public const string GET_FILES = "files/get-files"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Initialization.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Initialization.cs new file mode 100644 index 00000000..7f7921c0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Initialization.cs @@ -0,0 +1,16 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the initialization endpoint of the remote API. + /// + public static class Initialization + { + public const string SETUP_APPLICATION = "initialization"; + public const string CHECK_INITIALIZATION = "initialization"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Libraries.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Libraries.cs new file mode 100644 index 00000000..ceef0553 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Libraries.cs @@ -0,0 +1,28 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the media libraries endpoints of the remote API. + /// + public static class Libraries + { + public const string GET_LIBRARY_BY_ID = "libraries/{id}"; + public const string GET_LIBRARIES = "libraries"; + public const string GET_ENABLED_LIBRARIES = "libraries/enabled"; + public const string ADD_LIBRARY = "libraries"; + public const string UPDATE_LIBRARY = "libraries/{id}"; + public const string DELETE_LIBRARY = "libraries/{id}"; + public const string SCAN_LIBRARIES = "libraries/scans"; + public const string SCAN_LIBRARY = "libraries/{id}/scans"; + public const string GET_RUNNING_LIBRARIES_SCAN = "libraries/scans/running"; + public const string CANCEL_LIBRARIES_SCAN = "libraries/scans/cancel"; + public const string CANCEL_LIBRARY_SCAN = "libraries/{libraryId}/scans/{scanId}/cancel"; + public const string GET_LIBRARY_METADATA_PROVIDERS = "libraries/{libraryId}/metadata-providers"; + public const string SET_LIBRARY_METADATA_PROVIDER_ENABLED = "libraries/{libraryId}/metadata-providers/{pluginId}/enabled"; + public const string REORDER_LIBRARY_METADATA_PROVIDERS = "libraries/{libraryId}/metadata-providers/reorder"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Path.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Path.cs new file mode 100644 index 00000000..4e056a6a --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Path.cs @@ -0,0 +1,20 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the paths endpoints of the remote API. + /// + public static class Path + { + public const string GET_PATH_ROOT = "path/get-path-root"; + public const string GET_PATH_SEPARATOR = "path/get-path-separator"; + public const string GET_PATH_PARENT = "path/get-path-parent"; + public const string SPLIT = "path/split"; + public const string VALIDATE = "path/validate"; + public const string CHECK_PATH_EXISTS = "path/check-path-exists"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Permissions.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Permissions.cs new file mode 100644 index 00000000..5ccaf316 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Permissions.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the permissions endpoints of the remote API. + /// + public static class Permissions + { + public const string GET_PERMISSIONS = "auth/permissions"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Plugins.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Plugins.cs new file mode 100644 index 00000000..1371d505 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Plugins.cs @@ -0,0 +1,17 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the plugins endpoints of the remote API. + /// + public static class Plugins + { + public const string GET_PLUGINS = "plugins"; + public const string GET_PLUGIN_SETTINGS = "plugins/{pluginId}/settings"; + public const string UPDATE_PLUGIN_SETTINGS = "plugins/{pluginId}/settings"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Roles.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Roles.cs new file mode 100644 index 00000000..09691d9b --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Roles.cs @@ -0,0 +1,19 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the roles endpoints of the remote API. + /// + public static class Roles + { + public const string GET_ROLE_PERMISSIONS_BY_ROLE_ID = "auth/roles/{roleId}/permissions"; + public const string GET_ROLES = "auth/roles"; + public const string CREATE_ROLE = "auth/roles"; + public const string UPDATE_ROLE = "auth/roles"; + public const string DELETE_ROLE = "auth/roles/{roleId}"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Users.cs b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Users.cs new file mode 100644 index 00000000..7ef9fa39 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/ApiRoutes.Users.cs @@ -0,0 +1,16 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of remote API routes called by this Web application. +/// +public static partial class ApiRoutes +{ + /// + /// Routes for the users endpoints of the remote API. + /// + public static class Users + { + public const string GET_USER_SETTINGS = "users/me/settings"; + public const string UPDATE_USER_SETTINGS = "users/me/settings"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Admin.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Admin.cs new file mode 100644 index 00000000..618d0b55 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Admin.cs @@ -0,0 +1,24 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the administrator pages. + /// + public static class Admin + { + public const string MANAGE_ROLES = "{culture}/admin/manage-roles"; + public const string MANAGE_PERMISSIONS = "{culture}/admin/manage-permissions"; + public const string GET_PERMISSIONS_BY_ROLE_ID = "{culture}/admin/api-get-permissions-by-role-id/{roleId}"; + public const string GET_PERMISSIONS_BY_USER_ID = "{culture}/admin/api-get-permissions-by-user-id/{userId}"; + public const string GET_ROLE_BY_USER_ID = "{culture}/admin/api-get-role-by-user-id/{userId}"; + public const string GET_ROLES = "{culture}/admin/api-get-roles"; + public const string CREATE_ROLE = "{culture}/admin/api-create-role"; + public const string UPDATE_ROLE = "{culture}/admin/api-update-role"; + public const string DELETE_ROLE = "{culture}/admin/api-delete-role/{roleId}"; + public const string UPDATE_USER_AUTHORIZATION = "{culture}/admin/api-update-user-authorization"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Authentication.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Authentication.cs new file mode 100644 index 00000000..60cb1ced --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Authentication.cs @@ -0,0 +1,25 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the authentication pages. + /// + public static class Authentication + { + public const string REGISTER_VIEW = "{culture}/auth/register"; + public const string LOGIN_VIEW = "{culture}/auth/login/{returnUrl?}"; + public const string RECOVER_PASSWORD_VIEW = "{culture}/auth/recover-password"; + public const string CHANGE_PASSWORD_VIEW = "{culture}/auth/change-password"; + public const string PROFILE_VIEW = "{culture}/auth/profile"; + public const string ACCESS_DENIED_VIEW = "{culture}/auth/access-denied"; + public const string LOGOUT = "{culture}/auth/logout"; + public const string REGISTER = "{culture}/auth/api-register"; + public const string LOGIN = "{culture}/auth/api-login"; + public const string RECOVER_PASSWORD = "{culture}/auth/api-recover-password"; + public const string CHANGE_PASSWORD = "{culture}/auth/api-change-password"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Books.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Books.cs new file mode 100644 index 00000000..1b5c58c2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Books.cs @@ -0,0 +1,17 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the books pages. + /// + public static class Books + { + public const string INDEX = "{culture}/library/written-content-library/books-library/books"; + public const string GET_LIBRARY_ITEMS = "{culture}/library/written-content-library/books-library/books/api-get-library-items"; + public const string EDIT_BOOK = "{culture}/library/written-content-library/books-library/books/{id}"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Directories.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Directories.cs new file mode 100644 index 00000000..921c3392 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Directories.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the file system directories endpoints. + /// + public static class Directories + { + public const string GET_DIRECTORIES = "directories/api-get-directories"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Drives.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Drives.cs new file mode 100644 index 00000000..23a36942 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Drives.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the file system drives endpoints. + /// + public static class Drives + { + public const string GET_DRIVES = "drives/api-get-drives"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.FileSystem.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.FileSystem.cs new file mode 100644 index 00000000..e1b550de --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.FileSystem.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the file system endpoints. + /// + public static class FileSystem + { + public const string GET_TYPE = "file-system/api-get-type"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Files.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Files.cs new file mode 100644 index 00000000..9756c9c7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Files.cs @@ -0,0 +1,16 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the file system files endpoints. + /// + public static class Files + { + public const string GET_TREE_FILES = "files/api-get-tree-files"; + public const string GET_FILES = "files/api-get-files"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Home.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Home.cs new file mode 100644 index 00000000..9cde8458 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Home.cs @@ -0,0 +1,19 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the home pages. + /// + public static class Home + { + public const string INDEX = "/"; + public const string INDEX_CULTURED = "{culture}"; + public const string PRIVACY = "{culture}/privacy"; + public const string ERROR = "{culture}/error"; + public const string NOT_FOUND = "{culture}/not-found"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Language.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Language.cs new file mode 100644 index 00000000..5c2938e8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Language.cs @@ -0,0 +1,15 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the language tool pages. + /// + public static class Language + { + public const string SET_LANGUAGE = "{culture}/tools/language/set-language"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.LibraryManagement.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.LibraryManagement.cs new file mode 100644 index 00000000..3a54fc3a --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.LibraryManagement.cs @@ -0,0 +1,29 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the media libraries management pages. + /// + public static class LibraryManagement + { + public const string INDEX = "{culture}/libraries/manage"; + public const string ADD_LIBRARY = "{culture}/libraries/manage/item"; + public const string EDIT_LIBRARY = "{culture}/libraries/manage/item/{id}"; + public const string GET_LIBRARIES = "{culture}/libraries/manage/api-get-libraries"; + public const string GET_ENABLED_LIBRARIES = "{culture}/libraries/manage/api-get-enabled-libraries"; + public const string SAVE_LIBRARY = "{culture}/libraries/manage/api-item"; + public const string DELETE_LIBRARY = "{culture}/libraries/manage/api-item/{id}"; + public const string GET_RUNNING_LIBRARY_SCANS = "{culture}/libraries/manage/api-get-running-library-scans"; + public const string SCAN_LIBRARIES = "{culture}/libraries/manage/api-scan-libraries"; + public const string SCAN_LIBRARY = "{culture}/libraries/manage/api-scan-library/{id}"; + public const string CANCEL_LIBRARIES_SCAN = "{culture}/libraries/manage/api-cancel-libraries-scan"; + public const string CANCEL_LIBRARY_SCAN = "{culture}/libraries/manage/{libraryId}/api-cancel-library-scan/{scanId}"; + public const string GET_METADATA_PROVIDERS = "{culture}/libraries/manage/api-get-metadata-providers/{libraryId}"; + public const string SET_METADATA_PROVIDER_ENABLED = "{culture}/libraries/manage/api-set-metadata-provider-enabled"; + public const string REORDER_METADATA_PROVIDERS = "{culture}/libraries/manage/api-reorder-metadata-providers"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Path.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Path.cs new file mode 100644 index 00000000..ebc7bab3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Path.cs @@ -0,0 +1,20 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the file system paths endpoints. + /// + public static class Path + { + public const string GET_PATH_ROOT = "path/api-get-path-root"; + public const string GET_PATH_SEPARATOR = "path/api-get-path-separator"; + public const string GET_PATH_PARENT = "path/api-get-path-parent"; + public const string SPLIT_PATH = "path/api-split"; + public const string VALIDATE_PATH = "path/api-validate"; + public const string CHECK_PATH_EXISTS = "path/api-check-path-exists"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Plugins.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Plugins.cs new file mode 100644 index 00000000..6008922e --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Plugins.cs @@ -0,0 +1,18 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the plugins pages. + /// + public static class Plugins + { + public const string INDEX = "{culture}/plugins"; + public const string GET_PLUGINS = "{culture}/plugins/api-get-plugins"; + public const string GET_PLUGIN_SETTINGS = "{culture}/plugins/api-get-plugin-settings/{pluginId}"; + public const string UPDATE_PLUGIN_SETTINGS = "{culture}/plugins/api-update-plugin-settings"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Settings.cs b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Settings.cs new file mode 100644 index 00000000..267383c8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Routes/WebRoutes.Settings.cs @@ -0,0 +1,17 @@ +namespace Lumina.Presentation.Web.Common.Routes; + +/// +/// Class for the collection of routes defined in the Web application. +/// +public static partial class WebRoutes +{ + /// + /// Routes for the user settings tool pages. + /// + public static class Settings + { + public const string INDEX = "{culture}/tools/settings"; + public const string GET_USER_SETTINGS = "{culture}/tools/settings/api-get-user-settings"; + public const string UPDATE_USER_SETTINGS = "{culture}/tools/settings/api-update-user-settings"; + } +} diff --git a/src/Lumina.Presentation.Web/Common/Security/CryptographyService.cs b/src/Lumina.Presentation.Web/Common/Security/CryptographyService.cs index b8480404..ac298e1f 100644 --- a/src/Lumina.Presentation.Web/Common/Security/CryptographyService.cs +++ b/src/Lumina.Presentation.Web/Common/Security/CryptographyService.cs @@ -1,5 +1,5 @@ #region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Configuration; +using Lumina.Presentation.Web.Common.DTO.Configuration; using Microsoft.Extensions.Options; using System; using System.Security.Cryptography; @@ -18,10 +18,10 @@ public sealed class CryptographyService : ICryptographyService, IDisposable /// /// Initializes a new instance of the class. /// - /// Injected service for retrieving . - public CryptographyService(IOptions encryptionSettingsModelOptions) + /// Injected service for retrieving . + public CryptographyService(IOptions encryptionSettingsOptions) { - _key = Convert.FromBase64String(encryptionSettingsModelOptions.Value.SecretKey); + _key = Convert.FromBase64String(encryptionSettingsOptions.Value.SecretKey); } /// diff --git a/src/Lumina.Presentation.Web/Common/Services/CachedAuthorizationHandler.cs b/src/Lumina.Presentation.Web/Common/Services/CachedAuthorizationHandler.cs index fe999290..da8a46b5 100644 --- a/src/Lumina.Presentation.Web/Common/Services/CachedAuthorizationHandler.cs +++ b/src/Lumina.Presentation.Web/Common/Services/CachedAuthorizationHandler.cs @@ -1,5 +1,4 @@ #region ========================================================================= USING ===================================================================================== -using Lumina.Presentation.Web.Common.Models.Common; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Caching.Hybrid; using System; @@ -53,7 +52,7 @@ public class CachedAuthorizationHandler : DelegatingHandler return await base.SendAsync(request, cancellationToken).ConfigureAwait(false); } // otherwise, check the hybrid cache to see if there is a cached authorization - CachedResponseModel response = await _hybridCache.GetOrCreateAsync( + CachedResponse response = await _hybridCache.GetOrCreateAsync( cacheKey, async (cancellationToken) => { @@ -61,7 +60,7 @@ public class CachedAuthorizationHandler : DelegatingHandler HttpResponseMessage result = await base.SendAsync(request, cancellationToken).ConfigureAwait(false); string content = await result.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); // cache both status code and content - return new CachedResponseModel + return new CachedResponse { Content = content, StatusCode = result.StatusCode diff --git a/src/Lumina.Presentation.Web/Common/Services/CachedResponse.cs b/src/Lumina.Presentation.Web/Common/Services/CachedResponse.cs new file mode 100644 index 00000000..156cc880 --- /dev/null +++ b/src/Lumina.Presentation.Web/Common/Services/CachedResponse.cs @@ -0,0 +1,23 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +using System.Net; +#endregion + +namespace Lumina.Presentation.Web.Common.Services; + +/// +/// Represents a cached HTTP response, including its content and status code. +/// +[DebuggerDisplay("StatusCode: {StatusCode}")] +public class CachedResponse +{ + /// + /// Gets or sets the content of the cached HTTP response. + /// + public string Content { get; set; } = string.Empty; + + /// + /// Gets or sets the HTTP status code of the cached response. + /// + public HttpStatusCode StatusCode { get; set; } +} diff --git a/src/Lumina.Presentation.Web/Common/Services/IUrlService.cs b/src/Lumina.Presentation.Web/Common/Services/IUrlService.cs index 7542a8dd..93663e4d 100644 --- a/src/Lumina.Presentation.Web/Common/Services/IUrlService.cs +++ b/src/Lumina.Presentation.Web/Common/Services/IUrlService.cs @@ -1,16 +1,15 @@ namespace Lumina.Presentation.Web.Common.Services; /// -/// Interface for the service for generating URLs from action and controller names, with URL localization. +/// Interface for the service for generating absolute URLs from the application route templates, with URL localization. /// public interface IUrlService { /// - /// Generates an absolute URL for the specified controller action. + /// Generates an absolute URL for the specified route template. /// - /// The action name within the controller. - /// The controller name. - /// Optional additional route values, like query parameters. - /// An absolute URL to the specified action. - string? GetAbsoluteUrl(string action, string controller, object? additionalRouteValues = null); + /// The route template of the target page or endpoint, taken from the constants. + /// Optional additional route values, like route parameters. + /// An absolute URL to the specified route. + string? GetAbsoluteUrl(string routeTemplate, object? additionalRouteValues = null); } diff --git a/src/Lumina.Presentation.Web/Common/Services/UrlService.cs b/src/Lumina.Presentation.Web/Common/Services/UrlService.cs index 1f3cfd9f..acc29775 100644 --- a/src/Lumina.Presentation.Web/Common/Services/UrlService.cs +++ b/src/Lumina.Presentation.Web/Common/Services/UrlService.cs @@ -1,71 +1,73 @@ #region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Routes; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc.Controllers; -using Microsoft.AspNetCore.Mvc.Infrastructure; -using Microsoft.AspNetCore.Routing; using System; -using System.Linq; +using System.Collections.Generic; using System.Reflection; #endregion namespace Lumina.Presentation.Web.Common.Services; /// -/// Service for generating URLs from action and controller names, with URL localization. +/// Service for generating absolute URLs for the application routes, with URL localization. /// public class UrlService : IUrlService { - private readonly LinkGenerator _linkGenerator; private readonly IHttpContextAccessor _httpContextAccessor; - private readonly IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider; + + /// + /// The collection of route templates defined in the constants, used to validate the requested routes. + /// + private static readonly HashSet s_knownRouteTemplates = GetKnownRouteTemplates(); /// /// Initializes a new instance of the class. /// - /// The ASP.NET Core link generator service. /// Provides access to the current HTTP context. - /// The used to retrieve information about the application's routes and actions. - public UrlService(LinkGenerator linkGenerator, IHttpContextAccessor httpContextAccessor, IActionDescriptorCollectionProvider actionDescriptorCollectionProvider) + public UrlService(IHttpContextAccessor httpContextAccessor) { - _linkGenerator = linkGenerator; _httpContextAccessor = httpContextAccessor; - _actionDescriptorCollectionProvider = actionDescriptorCollectionProvider; } /// - /// Generates an absolute URL for the specified controller action. + /// Generates an absolute URL for the specified route template. /// - /// The action name within the controller. - /// The controller name. - /// Optional additional route values, like query parameters. - /// An absolute URL to the specified action. - public string? GetAbsoluteUrl(string action, string controller, object? additionalRouteValues = null) + /// The route template of the target page or endpoint, taken from the constants. + /// Optional additional route values, like route parameters. + /// An absolute URL to the specified route. + /// Thrown when is not one of the route templates defined in the constants. + public string? GetAbsoluteUrl(string routeTemplate, object? additionalRouteValues = null) { + // fail fast when the route template is not one of the ones defined in the WebRoutes constants, instead of silently generating a broken URL + if (!s_knownRouteTemplates.Contains(routeTemplate)) + throw new ArgumentException($"The route template '{routeTemplate}' is not defined in the WebRoutes constants.", nameof(routeTemplate)); + HttpContext? httpContext = _httpContextAccessor.HttpContext; if (httpContext is null) return null; - string scheme = httpContext.Request.Scheme; string culture = httpContext.Request.RouteValues["culture"]?.ToString() ?? "en-US"; - // find the controller's route template - ControllerActionDescriptor? controllerActionDescriptor = _actionDescriptorCollectionProvider - .ActionDescriptors.Items - .OfType() - .FirstOrDefault(controllerActionDescription => - controllerActionDescription.ControllerName.Equals(controller, StringComparison.OrdinalIgnoreCase) && - controllerActionDescription.ActionName.Equals(action, StringComparison.OrdinalIgnoreCase)); - if (controllerActionDescriptor is null) - return null; - // check if the route template contains {culture} - string? routeTemplate = controllerActionDescriptor.AttributeRouteInfo?.Template; - bool needsCulture = routeTemplate?.Contains("{culture}") == true; - // merge culture and additional values - RouteValueDictionary routeValues = []; - if (needsCulture) - routeValues.Add("culture", culture); + string path = routeTemplate.Replace("{culture}", culture, StringComparison.OrdinalIgnoreCase); if (additionalRouteValues is not null) - foreach (PropertyInfo prop in additionalRouteValues.GetType().GetProperties()) - routeValues.Add(prop.Name, prop.GetValue(additionalRouteValues)); + foreach (PropertyInfo property in additionalRouteValues.GetType().GetProperties()) + path = path.Replace($"{{{property.Name}}}", property.GetValue(additionalRouteValues)?.ToString(), StringComparison.OrdinalIgnoreCase); + // ensure the path starts with a slash, so that it is relative to the server root when concatenated with the host and the path base + if (!path.StartsWith('/')) + path = "/" + path; + // build the absolute URL from the request's scheme, host and path base + return $"{httpContext.Request.Scheme}://{httpContext.Request.Host}{httpContext.Request.PathBase}{path}"; + } - return _linkGenerator.GetUriByAction(httpContext: httpContext, action: action, controller: controller, values: routeValues, scheme: scheme); + /// + /// Collects the values of all route template constants defined in the class. + /// + /// The set of the route templates defined in the constants. + private static HashSet GetKnownRouteTemplates() + { + HashSet routeTemplates = []; + foreach (Type nestedType in typeof(WebRoutes).GetNestedTypes()) + foreach (FieldInfo field in nestedType.GetFields(BindingFlags.Public | BindingFlags.Static)) + if (field.IsLiteral && field.FieldType == typeof(string)) + routeTemplates.Add((string)field.GetValue(null)!); + return routeTemplates; } } diff --git a/src/Lumina.Presentation.Web/Common/Validators/EncryptionSettingsModelValidator.cs b/src/Lumina.Presentation.Web/Common/Validators/EncryptionSettingsModelValidator.cs index b05311bc..d08fbd42 100644 --- a/src/Lumina.Presentation.Web/Common/Validators/EncryptionSettingsModelValidator.cs +++ b/src/Lumina.Presentation.Web/Common/Validators/EncryptionSettingsModelValidator.cs @@ -1,6 +1,6 @@ #region ========================================================================= USING ===================================================================================== using FluentValidation; -using Lumina.Presentation.Web.Common.Models.Configuration; +using Lumina.Presentation.Web.Common.DTO.Configuration; using System; using System.Buffers.Text; #endregion @@ -10,7 +10,7 @@ namespace Lumina.Presentation.Web.Common.Validators; /// /// Validates the needed validation rules for the EncryptionSettings application configuration settings section. /// -public class EncryptionSettingsModelValidator : AbstractValidator +public class EncryptionSettingsModelValidator : AbstractValidator { /// /// Initializes a new instance of the class. diff --git a/src/Lumina.Presentation.Web/Common/Validators/ServerConfigurationModelValidator.cs b/src/Lumina.Presentation.Web/Common/Validators/ServerConfigurationModelValidator.cs index 17dcb612..8d8281f8 100644 --- a/src/Lumina.Presentation.Web/Common/Validators/ServerConfigurationModelValidator.cs +++ b/src/Lumina.Presentation.Web/Common/Validators/ServerConfigurationModelValidator.cs @@ -1,6 +1,6 @@ #region ========================================================================= USING ===================================================================================== using FluentValidation; -using Lumina.Presentation.Web.Common.Models.Configuration; +using Lumina.Presentation.Web.Common.DTO.Configuration; #endregion namespace Lumina.Presentation.Web.Common.Validators; @@ -8,7 +8,7 @@ namespace Lumina.Presentation.Web.Common.Validators; /// /// Validates the needed validation rules for the ServerConfiguration application configuration settings section. /// -public class ServerConfigurationModelValidator : AbstractValidator +public class ServerConfigurationModelValidator : AbstractValidator { /// /// Initializes a new instance of the class. From d3b1c681dc66e51195dd725975dbdf1985ddf6a4 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:37:11 -0700 Subject: [PATCH 3/8] feat: adds FastEndpoints endpoints, views and resources to the web project --- .../Roles/AddRole/AddRoleEndpoint.cs | 57 ++ .../Roles/AddRole/AddRoleEndpointSummary.cs | 38 + .../Roles/DeleteRole/DeleteRoleEndpoint.cs | 56 ++ .../DeleteRole/DeleteRoleEndpointSummary.cs | 29 + .../GetRolePermissionsEndpoint.cs | 56 ++ .../GetRolePermissionsEndpointSummary.cs | 30 + .../Roles/GetRoles/GetRolesEndpoint.cs | 55 ++ .../Roles/GetRoles/GetRolesEndpointSummary.cs | 27 + .../Roles/UpdateRole/UpdateRoleEndpoint.cs | 57 ++ .../UpdateRole/UpdateRoleEndpointSummary.cs | 40 + .../ManagePermissionsViewEndpoint.cs | 60 ++ .../ManagePermissionsViewEndpointSummary.cs | 24 + .../ManageRoles/ManageRolesViewEndpoint.cs | 58 ++ .../ManageRolesViewEndpointSummary.cs | 24 + .../GetUserPermissionsEndpoint.cs | 56 ++ .../GetUserPermissionsEndpointSummary.cs | 30 + .../GetUserRole/GetUserRoleEndpoint.cs | 56 ++ .../GetUserRole/GetUserRoleEndpointSummary.cs | 30 + .../UpdateUserRoleAndPermissionsEndpoint.cs | 57 ++ ...teUserRoleAndPermissionsEndpointSummary.cs | 40 + .../Core/Endpoints/Common/BaseEndpoint.cs | 68 ++ .../GetDirectories/GetDirectoriesEndpoint.cs | 55 ++ .../GetDirectoriesEndpointSummary.cs | 31 + .../Drives/GetDrives/GetDrivesEndpoint.cs | 53 ++ .../GetDrives/GetDrivesEndpointSummary.cs | 26 + .../FileSystem/GetType/GetTypeEndpoint.cs | 53 ++ .../GetType/GetTypeEndpointSummary.cs | 25 + .../Files/GetFiles/GetFilesEndpoint.cs | 55 ++ .../Files/GetFiles/GetFilesEndpointSummary.cs | 31 + .../GetTreeFiles/GetTreeFilesEndpoint.cs | 55 ++ .../GetTreeFilesEndpointSummary.cs | 31 + .../CheckPathExistsEndpoint.cs | 55 ++ .../CheckPathExistsEndpointSummary.cs | 29 + .../GetPathParent/GetPathParentEndpoint.cs | 55 ++ .../GetPathParentEndpointSummary.cs | 29 + .../Path/GetPathRoot/GetPathRootEndpoint.cs | 55 ++ .../GetPathRoot/GetPathRootEndpointSummary.cs | 29 + .../GetPathSeparatorEndpoint.cs | 53 ++ .../GetPathSeparatorEndpointSummary.cs | 25 + .../Path/SplitPath/SplitPathEndpoint.cs | 55 ++ .../SplitPath/SplitPathEndpointSummary.cs | 29 + .../Path/ValidatePath/ValidatePathEndpoint.cs | 55 ++ .../ValidatePathEndpointSummary.cs | 28 + .../Core/Endpoints/Home/HomeErrorEndpoint.cs | 42 + .../Home/HomeErrorEndpointSummary.cs | 25 + .../Core/Endpoints/Home/HomeIndexEndpoint.cs | 39 + .../Home/HomeIndexEndpointSummary.cs | 25 + .../Home/HomeNotFoundViewEndpoint.cs | 39 + .../Home/HomeNotFoundViewEndpointSummary.cs | 25 + .../Endpoints/Home/HomePrivacyEndpoint.cs | 39 + .../Home/HomePrivacyEndpointSummary.cs | 25 + .../AddLibrary/AddLibraryViewEndpoint.cs | 41 + .../AddLibraryViewEndpointSummary.cs | 25 + .../CancelLibrariesScanEndpoint.cs | 53 ++ .../CancelLibrariesScanEndpointSummary.cs | 26 + .../CancelLibraryScanEndpoint.cs | 54 ++ .../CancelLibraryScanEndpointSummary.cs | 30 + .../DeleteLibrary/DeleteLibraryEndpoint.cs | 54 ++ .../DeleteLibraryEndpointSummary.cs | 29 + .../EditLibrary/EditLibraryViewEndpoint.cs | 54 ++ .../EditLibraryViewEndpointSummary.cs | 28 + .../GetEnabledLibrariesEndpoint.cs | 53 ++ .../GetEnabledLibrariesEndpointSummary.cs | 27 + .../GetLibraries/GetLibrariesEndpoint.cs | 53 ++ .../GetLibrariesEndpointSummary.cs | 27 + .../GetMetadataProvidersEndpoint.cs | 54 ++ .../GetMetadataProvidersEndpointSummary.cs | 30 + .../GetRunningLibraryScansEndpoint.cs | 53 ++ .../GetRunningLibraryScansEndpointSummary.cs | 27 + .../Index/LibrariesIndexViewEndpoint.cs | 39 + .../LibrariesIndexViewEndpointSummary.cs | 25 + .../ReorderMetadataProvidersEndpoint.cs | 54 ++ ...ReorderMetadataProvidersEndpointSummary.cs | 39 + .../SaveLibrary/SaveLibraryEndpoint.cs | 58 ++ .../SaveLibrary/SaveLibraryEndpointSummary.cs | 40 + .../ScanLibraries/ScanLibrariesEndpoint.cs | 54 ++ .../ScanLibrariesEndpointSummary.cs | 27 + .../ScanLibrary/ScanLibraryEndpoint.cs | 55 ++ .../ScanLibrary/ScanLibraryEndpointSummary.cs | 30 + .../SetMetadataProviderEnabledEndpoint.cs | 54 ++ ...tMetadataProviderEnabledEndpointSummary.cs | 37 + .../Books/EditBook/EditBookViewEndpoint.cs | 40 + .../EditBook/EditBookViewEndpointSummary.cs | 28 + .../GetLibraryItemsEndpoint.cs | 81 ++ .../GetLibraryItemsEndpointSummary.cs | 37 + .../Books/Index/BooksIndexViewEndpoint.cs | 60 ++ .../Index/BooksIndexViewEndpointSummary.cs | 28 + .../GetPluginSettingsEndpoint.cs | 56 ++ .../GetPluginSettingsEndpointSummary.cs | 30 + .../Plugins/GetPlugins/GetPluginsEndpoint.cs | 55 ++ .../GetPlugins/GetPluginsEndpointSummary.cs | 27 + .../Plugins/Index/PluginsIndexViewEndpoint.cs | 62 ++ .../Index/PluginsIndexViewEndpointSummary.cs | 25 + .../UpdatePluginSettingsEndpoint.cs | 56 ++ .../UpdatePluginSettingsEndpointSummary.cs | 40 + .../SetLanguage/SetLanguageEndpoint.cs | 85 +++ .../SetLanguage/SetLanguageEndpointSummary.cs | 29 + .../GetUserSettingsEndpoint.cs | 53 ++ .../GetUserSettingsEndpointSummary.cs | 27 + .../Tools/Settings/SettingsViewEndpoint.cs | 41 + .../Settings/SettingsViewEndpointSummary.cs | 25 + .../UpdateUserSettingsEndpoint.cs | 54 ++ .../UpdateUserSettingsEndpointSummary.cs | 32 + .../AccessDenied/AccessDeniedViewEndpoint.cs | 40 + .../AccessDeniedViewEndpointSummary.cs | 24 + .../ChangePassword/ChangePasswordEndpoint.cs | 57 ++ .../ChangePasswordEndpointSummary.cs | 39 + .../ChangePasswordViewEndpoint.cs | 41 + .../ChangePasswordViewEndpointSummary.cs | 24 + .../Authentication/Login/LoginEndpoint.cs | 143 ++++ .../Login/LoginEndpointSummary.cs | 38 + .../Authentication/Login/LoginViewEndpoint.cs | 66 ++ .../Login/LoginViewEndpointSummary.cs | 28 + .../Authentication/Logout/LogoutEndpoint.cs | 58 ++ .../Logout/LogoutEndpointSummary.cs | 24 + .../Profile/ProfileViewEndpoint.cs | 39 + .../Profile/ProfileViewEndpointSummary.cs | 24 + .../RecoverPasswordEndpoint.cs | 56 ++ .../RecoverPasswordEndpointSummary.cs | 35 + .../RecoverPasswordViewEndpoint.cs | 59 ++ .../RecoverPasswordViewEndpointSummary.cs | 24 + .../Register/RegisterEndpoint.cs | 59 ++ .../Register/RegisterEndpointSummary.cs | 40 + .../Register/RegisterViewEndpoint.cs | 50 ++ .../Register/RegisterViewEndpointSummary.cs | 24 + .../Books/BooksTemplateRenderer.cs | 8 + .../ExceptionHandlingMiddleware.de-DE.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.en-US.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.es-ES.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.fr-FR.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.it-IT.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.ja-JP.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.ro-RO.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.ru-RU.resx | 594 +++++++++++++++ .../ExceptionHandlingMiddleware.zh-CN.resx | 594 +++++++++++++++ .../Views/Admin/ManagePermissions.de-DE.resx | 150 ++++ .../Views/Admin/ManagePermissions.en-US.resx | 150 ++++ .../Views/Admin/ManagePermissions.es-ES.resx | 150 ++++ .../Views/Admin/ManagePermissions.fr-FR.resx | 150 ++++ .../Views/Admin/ManagePermissions.it-IT.resx | 150 ++++ .../Views/Admin/ManagePermissions.ja-JP.resx | 150 ++++ .../Views/Admin/ManagePermissions.resx | 150 ++++ .../Views/Admin/ManagePermissions.ro-RO.resx | 150 ++++ .../Views/Admin/ManagePermissions.ru-RU.resx | 150 ++++ .../Views/Admin/ManagePermissions.zh-CN.resx | 150 ++++ .../Views/Admin/ManageRoles.de-DE.resx | 162 ++++ .../Views/Admin/ManageRoles.en-US.resx | 162 ++++ .../Views/Admin/ManageRoles.es-ES.resx | 162 ++++ .../Views/Admin/ManageRoles.fr-FR.resx | 162 ++++ .../Views/Admin/ManageRoles.it-IT.resx | 162 ++++ .../Views/Admin/ManageRoles.ja-JP.resx | 162 ++++ .../Resources/Views/Admin/ManageRoles.resx | 162 ++++ .../Views/Admin/ManageRoles.ro-RO.resx | 162 ++++ .../Views/Admin/ManageRoles.ru-RU.resx | 162 ++++ .../Views/Admin/ManageRoles.zh-CN.resx | 162 ++++ .../Views/Auth/AccessDenied.de-DE.resx | 123 +++ .../Views/Auth/AccessDenied.en-US.resx | 123 +++ .../Views/Auth/AccessDenied.es-ES.resx | 123 +++ .../Views/Auth/AccessDenied.fr-FR.resx | 123 +++ .../Views/Auth/AccessDenied.it-IT.resx | 123 +++ .../Views/Auth/AccessDenied.ja-JP.resx | 123 +++ .../Resources/Views/Auth/AccessDenied.resx | 123 +++ .../Views/Auth/AccessDenied.ro-RO.resx | 123 +++ .../Views/Auth/AccessDenied.ru-RU.resx | 123 +++ .../Views/Auth/AccessDenied.zh-CN.resx | 123 +++ .../Views/Auth/ChangePassword.Designer.cs | 135 ++++ .../Views/Auth/ChangePassword.de-DE.resx | 144 ++++ .../Views/Auth/ChangePassword.en-US.resx | 144 ++++ .../Views/Auth/ChangePassword.es-ES.resx | 144 ++++ .../Views/Auth/ChangePassword.fr-FR.resx | 144 ++++ .../Views/Auth/ChangePassword.it-IT.resx | 144 ++++ .../Views/Auth/ChangePassword.ja-JP.resx | 144 ++++ .../Resources/Views/Auth/ChangePassword.resx | 144 ++++ .../Views/Auth/ChangePassword.ro-RO.resx | 144 ++++ .../Views/Auth/ChangePassword.ru-RU.resx | 144 ++++ .../Views/Auth/ChangePassword.zh-CN.resx | 144 ++++ .../Resources/Views/Auth/Login.Designer.cs | 117 +++ .../Resources/Views/Auth/Login.de-DE.resx | 138 ++++ .../Resources/Views/Auth/Login.en-US.resx | 138 ++++ .../Resources/Views/Auth/Login.es-ES.resx | 138 ++++ .../Resources/Views/Auth/Login.fr-FR.resx | 138 ++++ .../Resources/Views/Auth/Login.it-IT.resx | 138 ++++ .../Resources/Views/Auth/Login.ja-JP.resx | 138 ++++ .../Core/Resources/Views/Auth/Login.resx | 138 ++++ .../Resources/Views/Auth/Login.ro-RO.resx | 138 ++++ .../Resources/Views/Auth/Login.ru-RU.resx | 138 ++++ .../Resources/Views/Auth/Login.zh-CN.resx | 138 ++++ .../Views/Auth/RecoverPassword.Designer.cs | 117 +++ .../Views/Auth/RecoverPassword.de-DE.resx | 138 ++++ .../Views/Auth/RecoverPassword.en-US.resx | 138 ++++ .../Views/Auth/RecoverPassword.es-ES.resx | 138 ++++ .../Views/Auth/RecoverPassword.fr-FR.resx | 138 ++++ .../Views/Auth/RecoverPassword.it-IT.resx | 138 ++++ .../Views/Auth/RecoverPassword.ja-JP.resx | 138 ++++ .../Resources/Views/Auth/RecoverPassword.resx | 138 ++++ .../Views/Auth/RecoverPassword.ro-RO.resx | 138 ++++ .../Views/Auth/RecoverPassword.ru-RU.resx | 138 ++++ .../Views/Auth/RecoverPassword.zh-CN.resx | 138 ++++ .../Resources/Views/Auth/Register.Designer.cs | 189 +++++ .../Resources/Views/Auth/Register.de-DE.resx | 162 ++++ .../Resources/Views/Auth/Register.en-US.resx | 162 ++++ .../Resources/Views/Auth/Register.es-ES.resx | 162 ++++ .../Resources/Views/Auth/Register.fr-FR.resx | 162 ++++ .../Resources/Views/Auth/Register.it-IT.resx | 162 ++++ .../Resources/Views/Auth/Register.ja-JP.resx | 162 ++++ .../Core/Resources/Views/Auth/Register.resx | 162 ++++ .../Resources/Views/Auth/Register.ro-RO.resx | 162 ++++ .../Resources/Views/Auth/Register.ru-RU.resx | 162 ++++ .../Resources/Views/Auth/Register.zh-CN.resx | 162 ++++ .../Resources/Views/Home/Index.de-DE.resx | 123 +++ .../Resources/Views/Home/Index.en-US.resx | 123 +++ .../Resources/Views/Home/Index.es-ES.resx | 123 +++ .../Resources/Views/Home/Index.fr-FR.resx | 123 +++ .../Resources/Views/Home/Index.it-IT.resx | 123 +++ .../Resources/Views/Home/Index.ja-JP.resx | 123 +++ .../Core/Resources/Views/Home/Index.resx | 123 +++ .../Resources/Views/Home/Index.ro-RO.resx | 123 +++ .../Resources/Views/Home/Index.ru-RU.resx | 123 +++ .../Resources/Views/Home/Index.zh-CN.resx | 123 +++ .../Views/Library/Management/Index.de-DE.resx | 291 +++++++ .../Views/Library/Management/Index.en-US.resx | 291 +++++++ .../Views/Library/Management/Index.es-ES.resx | 291 +++++++ .../Views/Library/Management/Index.fr-FR.resx | 291 +++++++ .../Views/Library/Management/Index.it-IT.resx | 291 +++++++ .../Views/Library/Management/Index.ja-JP.resx | 291 +++++++ .../Views/Library/Management/Index.resx | 291 +++++++ .../Views/Library/Management/Index.ro-RO.resx | 291 +++++++ .../Views/Library/Management/Index.ru-RU.resx | 291 +++++++ .../Views/Library/Management/Index.zh-CN.resx | 291 +++++++ .../Views/Library/Management/Item.Designer.cs | 720 ++++++++++++++++++ .../Views/Library/Management/Item.de-DE.resx | 339 +++++++++ .../Views/Library/Management/Item.en-US.resx | 339 +++++++++ .../Views/Library/Management/Item.es-ES.resx | 339 +++++++++ .../Views/Library/Management/Item.fr-FR.resx | 339 +++++++++ .../Views/Library/Management/Item.it-IT.resx | 339 +++++++++ .../Views/Library/Management/Item.ja-JP.resx | 339 +++++++++ .../Views/Library/Management/Item.resx | 339 +++++++++ .../Views/Library/Management/Item.ro-RO.resx | 339 +++++++++ .../Views/Library/Management/Item.ru-RU.resx | 339 +++++++++ .../Views/Library/Management/Item.zh-CN.resx | 339 +++++++++ .../BookLibrary/Books/Index.de-DE.resx | 48 ++ .../BookLibrary/Books/Index.en-US.resx | 48 ++ .../BookLibrary/Books/Index.es-ES.resx | 48 ++ .../BookLibrary/Books/Index.fr-FR.resx | 48 ++ .../BookLibrary/Books/Index.it-IT.resx | 48 ++ .../BookLibrary/Books/Index.ja-JP.resx | 48 ++ .../BookLibrary/Books/Index.resx | 48 ++ .../BookLibrary/Books/Index.ro-RO.resx | 48 ++ .../BookLibrary/Books/Index.ru-RU.resx | 48 ++ .../BookLibrary/Books/Index.zh-CN.resx | 48 ++ .../Resources/Views/Plugins/Index.Designer.cs | 180 +++++ .../Resources/Views/Plugins/Index.de-DE.resx | 159 ++++ .../Resources/Views/Plugins/Index.en-US.resx | 159 ++++ .../Resources/Views/Plugins/Index.es-ES.resx | 159 ++++ .../Resources/Views/Plugins/Index.fr-FR.resx | 159 ++++ .../Resources/Views/Plugins/Index.it-IT.resx | 159 ++++ .../Resources/Views/Plugins/Index.ja-JP.resx | 159 ++++ .../Core/Resources/Views/Plugins/Index.resx | 159 ++++ .../Resources/Views/Plugins/Index.ro-RO.resx | 159 ++++ .../Resources/Views/Plugins/Index.ru-RU.resx | 159 ++++ .../Resources/Views/Plugins/Index.zh-CN.resx | 159 ++++ .../FileSystemBrowser/Default.de-DE.resx | 189 +++++ .../FileSystemBrowser/Default.en-US.resx | 189 +++++ .../FileSystemBrowser/Default.es-ES.resx | 189 +++++ .../FileSystemBrowser/Default.fr-FR.resx | 189 +++++ .../FileSystemBrowser/Default.it-IT.resx | 189 +++++ .../FileSystemBrowser/Default.ja-JP.resx | 189 +++++ .../Components/FileSystemBrowser/Default.resx | 189 +++++ .../FileSystemBrowser/Default.ro-RO.resx | 189 +++++ .../FileSystemBrowser/Default.ru-RU.resx | 189 +++++ .../FileSystemBrowser/Default.zh-CN.resx | 189 +++++ .../Views/Shared/NotFound.de-DE.resx | 126 +++ .../Views/Shared/NotFound.en-US.resx | 126 +++ .../Views/Shared/NotFound.es-ES.resx | 126 +++ .../Views/Shared/NotFound.fr-FR.resx | 126 +++ .../Views/Shared/NotFound.it-IT.resx | 126 +++ .../Views/Shared/NotFound.ja-JP.resx | 126 +++ .../Core/Resources/Views/Shared/NotFound.resx | 126 +++ .../Views/Shared/NotFound.ro-RO.resx | 126 +++ .../Views/Shared/NotFound.ru-RU.resx | 126 +++ .../Views/Shared/NotFound.zh-CN.resx | 126 +++ .../Resources/Views/Shared/_Layout.de-DE.resx | 162 ++++ .../Resources/Views/Shared/_Layout.en-US.resx | 162 ++++ .../Resources/Views/Shared/_Layout.es-ES.resx | 162 ++++ .../Resources/Views/Shared/_Layout.fr-FR.resx | 162 ++++ .../Resources/Views/Shared/_Layout.it-IT.resx | 162 ++++ .../Resources/Views/Shared/_Layout.ja-JP.resx | 162 ++++ .../Core/Resources/Views/Shared/_Layout.resx | 162 ++++ .../Resources/Views/Shared/_Layout.ro-RO.resx | 162 ++++ .../Resources/Views/Shared/_Layout.ru-RU.resx | 162 ++++ .../Resources/Views/Shared/_Layout.zh-CN.resx | 162 ++++ .../Views/Shared/_NavMenu.de-DE.resx | 216 ++++++ .../Views/Shared/_NavMenu.en-US.resx | 216 ++++++ .../Views/Shared/_NavMenu.es-ES.resx | 216 ++++++ .../Views/Shared/_NavMenu.fr-FR.resx | 216 ++++++ .../Views/Shared/_NavMenu.it-IT.resx | 216 ++++++ .../Views/Shared/_NavMenu.ja-JP.resx | 216 ++++++ .../Core/Resources/Views/Shared/_NavMenu.resx | 216 ++++++ .../Views/Shared/_NavMenu.ro-RO.resx | 216 ++++++ .../Views/Shared/_NavMenu.ru-RU.resx | 216 ++++++ .../Views/Shared/_NavMenu.zh-CN.resx | 216 ++++++ .../Resources/Views/Tools/Settings.de-DE.resx | 42 + .../Resources/Views/Tools/Settings.en-US.resx | 42 + .../Resources/Views/Tools/Settings.es-ES.resx | 42 + .../Resources/Views/Tools/Settings.fr-FR.resx | 42 + .../Resources/Views/Tools/Settings.it-IT.resx | 42 + .../Resources/Views/Tools/Settings.ja-JP.resx | 42 + .../Core/Resources/Views/Tools/Settings.resx | 42 + .../Resources/Views/Tools/Settings.ro-RO.resx | 42 + .../Resources/Views/Tools/Settings.ru-RU.resx | 42 + .../Resources/Views/Tools/Settings.zh-CN.resx | 42 + .../FileSystemBrowserViewComponent.cs | 45 ++ .../Core/Views/Admin/ManagePermissions.cshtml | 232 ++++++ .../Views/Admin/ManagePermissions.cshtml.css | 46 ++ .../Core/Views/Admin/ManageRoles.cshtml | 263 +++++++ .../Core/Views/Admin/ManageRoles.cshtml.css | 46 ++ .../Core/Views/Auth/AccessDenied.cshtml | 17 + .../Core/Views/Auth/ChangePassword.cshtml | 136 ++++ .../Core/Views/Auth/Login.cshtml | 141 ++++ .../Core/Views/Auth/RecoverPassword.cshtml | 137 ++++ .../Core/Views/Auth/Register.cshtml | 197 +++++ .../Core/Views/Home/Index.cshtml | 94 +++ .../Core/Views/Home/Privacy.cshtml | 6 + .../Views/Library/Management/Index.cshtml | 630 +++++++++++++++ .../Views/Library/Management/Index.cshtml.css | 1 + .../Core/Views/Library/Management/Item.cshtml | 477 ++++++++++++ .../BookLibrary/Books/Index.cshtml | 317 ++++++++ .../BookLibrary/Books/Item.cshtml | 1 + .../Core/Views/Plugins/Index.cshtml | 200 +++++ .../FileSystemBrowser/Default.cshtml | 549 +++++++++++++ .../Core/Views/Shared/Error.cshtml | 26 + .../Core/Views/Shared/NotFound.cshtml | 19 + .../Core/Views/Shared/_Layout.cshtml | 88 +++ .../Core/Views/Shared/_Layout.cshtml.css | 1 + .../Core/Views/Shared/_NavMenu.cshtml | 226 ++++++ .../Core/Views/Tools/Settings.cshtml | 152 ++++ .../Core/Views/_ViewImports.cshtml | 4 + .../Core/Views/_ViewStart.cshtml | 3 + .../Lumina.Presentation.Web.csproj | 211 ++--- src/Lumina.Presentation.Web/Program.cs | 28 +- 341 files changed, 44018 insertions(+), 113 deletions(-) create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Common/BaseEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpoint.cs create mode 100644 src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpointSummary.cs create mode 100644 src/Lumina.Presentation.Web/Core/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.Designer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.Designer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.Designer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.Designer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.Designer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.Designer.cs create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ru-RU.resx create mode 100644 src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx create mode 100644 src/Lumina.Presentation.Web/Core/ViewComponents/FileSystemBrowserViewComponent.cs create mode 100644 src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml.css create mode 100644 src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml.css create mode 100644 src/Lumina.Presentation.Web/Core/Views/Auth/AccessDenied.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Auth/ChangePassword.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Auth/Login.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Auth/RecoverPassword.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Auth/Register.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Home/Index.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Home/Privacy.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml.css create mode 100644 src/Lumina.Presentation.Web/Core/Views/Library/Management/Item.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Plugins/Index.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Shared/Components/FileSystemBrowser/Default.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Shared/Error.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Shared/NotFound.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml.css create mode 100644 src/Lumina.Presentation.Web/Core/Views/Shared/_NavMenu.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/_ViewImports.cshtml create mode 100644 src/Lumina.Presentation.Web/Core/Views/_ViewStart.cshtml diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs new file mode 100644 index 00000000..24c559d0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs @@ -0,0 +1,57 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +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.Admin.Authorization.Roles.AddRole; + +/// +/// API endpoint for the /{culture}/admin/api-create-role route. +/// +public class AddRoleEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public AddRoleEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.Admin.CREATE_ROLE); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + EnableAntiforgery(); + } + + /// + /// Adds an authorization role. + /// + /// The request containing the details of the authorization role to add. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(AddRoleRequest request, CancellationToken cancellationToken) + { + RolePermissionsDto response = await _apiHttpClient.PostAsync(ApiRoutes.Roles.CREATE_ROLE, request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointSummary.cs new file mode 100644 index 00000000..d0ce5710 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointSummary.cs @@ -0,0 +1,38 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.AddRole; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class AddRoleEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public AddRoleEndpointSummary() + { + Summary = "Adds a new role."; + Description = "Creates a new authorization role with the specified permissions."; + RequestParam(r => r.RoleName, "The name of the role. Required."); + RequestParam(r => r.Permissions, "The collection of Ids of the permissions of the role. Required."); + + ExampleRequest = new AddRoleRequest( + RoleName: "Editor", + Permissions: [ + Guid.NewGuid(), + Guid.NewGuid(), + ] + ); + + Response(200, "The role is created.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpoint.cs new file mode 100644 index 00000000..d88725ac --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +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.Admin.Authorization.Roles.DeleteRole; + +/// +/// API endpoint for the /{culture}/admin/api-delete-role/{roleId} route. +/// +public class DeleteRoleEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public DeleteRoleEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.DELETE); + Routes(WebRoutes.Admin.DELETE_ROLE); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + EnableAntiforgery(); + } + + /// + /// Deletes the authorization role identified by the request. + /// + /// The request containing the unique identifier of the authorization role to delete. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(DeleteRoleRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.DeleteAsync(ApiRoutes.Roles.DELETE_ROLE.Replace("{roleId}", request.RoleId.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs new file mode 100644 index 00000000..22a50431 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.DeleteRole; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class DeleteRoleEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public DeleteRoleEndpointSummary() + { + 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."); + + Response(200, "The role is deleted.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpoint.cs new file mode 100644 index 00000000..dbaccd27 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +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.Admin.Authorization.Roles.GetRolePermissions; + +/// +/// API endpoint for the /{culture}/admin/api-get-permissions-by-role-id/{roleId} route. +/// +public class GetRolePermissionsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetRolePermissionsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Admin.GET_PERMISSIONS_BY_ROLE_ID); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Retrieves the permissions of the authorization role identified by the request. + /// + /// The request containing the unique identifier of the role whose permissions are retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetRolePermissionsRequest request, CancellationToken cancellationToken) + { + RolePermissionsDto response = await _apiHttpClient.GetAsync(ApiRoutes.Roles.GET_ROLE_PERMISSIONS_BY_ROLE_ID.Replace("{roleId}", request.RoleId.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpointSummary.cs new file mode 100644 index 00000000..759f99f4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRolePermissions/GetRolePermissionsEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.GetRolePermissions; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetRolePermissionsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetRolePermissionsEndpointSummary() + { + 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."); + + Response(200, "The permissions of the role are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpoint.cs new file mode 100644 index 00000000..940c1420 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +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.Admin.Authorization.Roles.GetRoles; + +/// +/// API endpoint for the /{culture}/admin/api-get-roles route. +/// +public class GetRolesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetRolesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Admin.GET_ROLES); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Retrieves the authorization roles. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + RoleDto[] roles = await _apiHttpClient.GetAsync(ApiRoutes.Roles.GET_ROLES, cancellationToken).ConfigureAwait(false); + return JsonSuccess(roles); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointSummary.cs new file mode 100644 index 00000000..12eb37e9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.Common; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.GetRoles; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetRolesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetRolesEndpointSummary() + { + Summary = "Gets all roles."; + Description = "Retrieves the collection of existing authorization roles."; + + Response(200, "The collection of authorization roles is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpoint.cs new file mode 100644 index 00000000..a5dd223e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpoint.cs @@ -0,0 +1,57 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +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.Admin.Authorization.Roles.UpdateRole; + +/// +/// API endpoint for the /{culture}/admin/api-update-role route. +/// +public class UpdateRoleEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public UpdateRoleEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.PUT); + Routes(WebRoutes.Admin.UPDATE_ROLE); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + EnableAntiforgery(); + } + + /// + /// Updates an existing authorization role. + /// + /// The request containing the updated details of the authorization role. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(UpdateRoleRequest request, CancellationToken cancellationToken) + { + RolePermissionsDto response = await _apiHttpClient.PutAsync(ApiRoutes.Roles.UPDATE_ROLE, request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs new file mode 100644 index 00000000..d514eb18 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/Authorization/Roles/UpdateRole/UpdateRoleEndpointSummary.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.UpdateRole; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class UpdateRoleEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public UpdateRoleEndpointSummary() + { + Summary = "Updates a role."; + Description = "Updates the name and the permissions of an existing authorization role."; + RequestParam(r => r.RoleId, "The unique identifier of the role. Required."); + RequestParam(r => r.RoleName, "The name of the role. Required."); + RequestParam(r => r.Permissions, "The collection of Ids of the permissions of the role. Required."); + + ExampleRequest = new UpdateRoleRequest( + RoleId: Guid.NewGuid(), + RoleName: "Editor", + Permissions: [ + Guid.NewGuid(), + Guid.NewGuid(), + ] + ); + + Response(200, "The role is updated.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpoint.cs new file mode 100644 index 00000000..4bcc95a4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpoint.cs @@ -0,0 +1,60 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.ManagePermissions; + +/// +/// API endpoint for the /{culture}/admin/manage-permissions route. +/// +public class ManagePermissionsViewEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ManagePermissionsViewEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Admin.MANAGE_PERMISSIONS); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Displays the authorization permissions management view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + UserDto[] users = await _apiHttpClient.GetAsync(ApiRoutes.Authentication.USERS, cancellationToken).ConfigureAwait(false); + RoleDto[] roles = await _apiHttpClient.GetAsync(ApiRoutes.Roles.GET_ROLES, cancellationToken).ConfigureAwait(false); + PermissionDto[] permissions = await _apiHttpClient.GetAsync(ApiRoutes.Permissions.GET_PERMISSIONS, cancellationToken).ConfigureAwait(false); + Dictionary viewData = new() { ["users"] = users, ["roles"] = roles, ["permissions"] = permissions }; + return View("/Core/Views/Admin/ManagePermissions.cshtml", viewData: viewData); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpointSummary.cs new file mode 100644 index 00000000..abe4724f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManagePermissions/ManagePermissionsViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.ManagePermissions; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ManagePermissionsViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ManagePermissionsViewEndpointSummary() + { + Summary = "Renders the manage permissions view."; + Description = "Renders the view for managing the authorization permissions."; + + Response(200, "The view for managing the authorization permissions is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpoint.cs new file mode 100644 index 00000000..3203bd0c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpoint.cs @@ -0,0 +1,58 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.ManageRoles; + +/// +/// API endpoint for the /{culture}/admin/manage-roles route. +/// +public class ManageRolesViewEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ManageRolesViewEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Admin.MANAGE_ROLES); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Displays the authorization roles management view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + RoleDto[] roles = await _apiHttpClient.GetAsync(ApiRoutes.Roles.GET_ROLES, cancellationToken).ConfigureAwait(false); + PermissionDto[] permissions = await _apiHttpClient.GetAsync(ApiRoutes.Permissions.GET_PERMISSIONS, cancellationToken).ConfigureAwait(false); + Dictionary viewData = new() { ["roles"] = roles, ["permissions"] = permissions }; + return View("/Core/Views/Admin/ManageRoles.cshtml", viewData: viewData); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpointSummary.cs new file mode 100644 index 00000000..91bca01d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/ManageRoles/ManageRolesViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.ManageRoles; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ManageRolesViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ManageRolesViewEndpointSummary() + { + Summary = "Renders the manage roles view."; + Description = "Renders the view for managing the authorization roles."; + + Response(200, "The view for managing the authorization roles is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpoint.cs new file mode 100644 index 00000000..65bced26 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +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.Admin.UsersManagement.Authorization.GetUserPermissions; + +/// +/// API endpoint for the /{culture}/admin/api-get-permissions-by-user-id/{userId} route. +/// +public class GetUserPermissionsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetUserPermissionsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Admin.GET_PERMISSIONS_BY_USER_ID); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Retrieves the permissions of the user identified by the request. + /// + /// The request containing the unique identifier of the user whose permissions are retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetUserPermissionsRequest request, CancellationToken cancellationToken) + { + PermissionDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Authorization.GET_USER_PERMISSIONS_BY_USER_ID.Replace("{userId}", request.UserId.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpointSummary.cs new file mode 100644 index 00000000..d9646c0e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserPermissions/GetUserPermissionsEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.UsersManagement.Authorization.GetUserPermissions; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetUserPermissionsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetUserPermissionsEndpointSummary() + { + 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."); + + Response(200, "The permissions of the user are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpoint.cs new file mode 100644 index 00000000..872fb48c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +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.Admin.UsersManagement.Authorization.GetUserRole; + +/// +/// API endpoint for the /{culture}/admin/api-get-role-by-user-id/{userId} route. +/// +public class GetUserRoleEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetUserRoleEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Admin.GET_ROLE_BY_USER_ID); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Retrieves the authorization role of the user identified by the request. + /// + /// The request containing the unique identifier of the user whose authorization role is retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetUserRoleRequest request, CancellationToken cancellationToken) + { + RoleDto? response = await _apiHttpClient.GetAsync(ApiRoutes.Authorization.GET_USER_ROLE_BY_USER_ID.Replace("{userId}", request.UserId.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs new file mode 100644 index 00000000..4711f3e7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/GetUserRole/GetUserRoleEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.UsersManagement.Authorization.GetUserRole; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetUserRoleEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetUserRoleEndpointSummary() + { + 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."); + + Response(200, "The role of the user is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpoint.cs new file mode 100644 index 00000000..4d9fdfb4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpoint.cs @@ -0,0 +1,57 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using Lumina.Presentation.Web.Common.Responses.Authorization; +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.Admin.UsersManagement.Authorization.UpdateUserRoleAndPermissions; + +/// +/// API endpoint for the /{culture}/admin/api-update-user-authorization route. +/// +public class UpdateUserRoleAndPermissionsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public UpdateUserRoleAndPermissionsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.PUT); + Routes(WebRoutes.Admin.UPDATE_USER_AUTHORIZATION); + DontAutoTag(); + Options(options => options.WithTags("Admin")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + EnableAntiforgery(); + } + + /// + /// Updates the authorization role and permissions of the user identified by the request. + /// + /// The request containing the updated authorization role and permissions of the user. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(UpdateUserRoleAndPermissionsRequest request, CancellationToken cancellationToken) + { + GetAuthorizationResponse response = await _apiHttpClient.PutAsync(ApiRoutes.Authorization.UPDATE_USER_ROLE_AND_PERMISSIONS_BY_USER_ID.Replace("{userId}", request.UserId.ToString()), request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpointSummary.cs new file mode 100644 index 00000000..1bfb975a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Admin/UsersManagement/Authorization/UpdateUserRoleAndPermissions/UpdateUserRoleAndPermissionsEndpointSummary.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using Lumina.Presentation.Web.Common.Responses.Authorization; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Admin.UsersManagement.Authorization.UpdateUserRoleAndPermissions; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class UpdateUserRoleAndPermissionsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public UpdateUserRoleAndPermissionsEndpointSummary() + { + Summary = "Updates the role and the permissions of a user."; + Description = "Updates the authorization role and the permissions of a user identified by its unique identifier."; + RequestParam(r => r.UserId, "The unique identifier of the user. Required."); + RequestParam(r => r.RoleId, "The unique identifier of the role. Optional."); + RequestParam(r => r.Permissions, "The collection of Ids of the permissions of the role. Optional."); + + ExampleRequest = new UpdateUserRoleAndPermissionsRequest( + UserId: Guid.NewGuid(), + RoleId: Guid.NewGuid(), + Permissions: [ + Guid.NewGuid(), + Guid.NewGuid(), + ] + ); + + Response(200, "The role and the permissions of the user are updated.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Common/BaseEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Common/BaseEndpoint.cs new file mode 100644 index 00000000..62ca2828 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Common/BaseEndpoint.cs @@ -0,0 +1,68 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Http; +using Microsoft.AspNetCore.Http; +using System.Collections.Generic; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Common; + +/// +/// Base class for Web endpoints. +/// +/// The type of the request object. +/// The type of the response object. +public abstract class BaseEndpoint : Endpoint where TRequest : notnull + where TResponse : notnull +{ + /// + /// Gets the current culture taken from the culture route value. + /// + protected string Culture => HttpContext.Request.RouteValues["culture"]?.ToString() ?? "en-US"; + + /// + /// Configures the endpoint. + /// + /// + /// All exceptions are propagated to the application's exception handling middleware instead of being converted to error responses by the library. + /// + public override void Configure() + { + DontCatchExceptions(); + } + + /// + /// Renders a Razor view to the response. + /// + /// The name or path of the view to render. + /// The model to pass to the view. + /// Optional additional view data entries made available to the view via ViewData. + /// An that renders the view. + protected IResult View(string viewName, object? model = null, IReadOnlyDictionary? viewData = null) + { + // store the path of the displayed view in the session, so that the login redirect after the JWT token expires points to it; ignore the login endpoint, + // because it is incorrect to be redirected to the login URL, with the login URL as the return URL + if (HttpContext.Request.Path != "/en-us/auth/login") + HttpContext.Session.SetString(HttpContextItemKeys.LAST_DISPLAYED_VIEW, $"{HttpContext.Request.PathBase}{HttpContext.Request.Path}{HttpContext.Request.QueryString}"); + return new RazorViewResult(viewName, model, viewData); + } + + /// + /// Creates a JSON response indicating a successful operation, optionally wrapping . + /// + /// The payload of the successful response. + /// An containing the success JSON payload. + protected IResult JsonSuccess(object? data) + { + return Results.Json(new { success = true, data }); + } + + /// + /// Creates a JSON response indicating a successful operation without a payload. + /// + /// An containing the success JSON payload. + protected IResult JsonSuccess() + { + return Results.Json(new { success = true }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpoint.cs new file mode 100644 index 00000000..4ef4680a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Directories; +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.FileSystemManagement.Directories.GetDirectories; + +/// +/// API endpoint for the /directories/api-get-directories route. +/// +public class GetDirectoriesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetDirectoriesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Directories.GET_DIRECTORIES); + DontAutoTag(); + Options(options => options.WithTags("Directories")); + } + + /// + /// Retrieves the directories of the file system path identified by the request. + /// + /// The request containing the file system path whose directories are retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetDirectoriesRequest request, CancellationToken cancellationToken) + { + DirectoryDto[] response = await _apiHttpClient.GetAsync($"{ApiRoutes.Directories.GET_DIRECTORIES}?path={Uri.EscapeDataString(request.Path!)}&includeHiddenElements={request.IncludeHiddenElements}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointSummary.cs new file mode 100644 index 00000000..acdde3fd --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointSummary.cs @@ -0,0 +1,31 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Directories; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Directories.GetDirectories; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetDirectoriesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetDirectoriesEndpointSummary() + { + 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."); + + Response(200, "The directories of the file system path are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpoint.cs new file mode 100644 index 00000000..e113f456 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +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.FileSystemManagement.Drives.GetDrives; + +/// +/// API endpoint for the /drives/api-get-drives route. +/// +public class GetDrivesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetDrivesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Drives.GET_DRIVES); + DontAutoTag(); + Options(options => options.WithTags("Drives")); + } + + /// + /// Retrieves the file system drives. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + FileSystemTreeNodeDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Drives.GET_DRIVES, cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { drives = response }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs new file mode 100644 index 00000000..15107bd2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs @@ -0,0 +1,26 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Drives.GetDrives; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetDrivesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetDrivesEndpointSummary() + { + Summary = "Retrieves the file system drives."; + Description = "Retrieves the list of file system drives of the machine."; + + Response(200, "The list of file system drives is returned.", example: new { success = true, data = new { drives = new FileSystemTreeNodeDto[] { } } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpoint.cs new file mode 100644 index 00000000..bb304648 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +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.FileSystemManagement.FileSystem.GetType; + +/// +/// API endpoint for the /file-system/api-get-type route. +/// +public class GetTypeEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetTypeEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.FileSystem.GET_TYPE); + DontAutoTag(); + Options(options => options.WithTags("FileSystem")); + } + + /// + /// Retrieves the file system platform type. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + FileSystemTypeDto response = await _apiHttpClient.GetAsync(ApiRoutes.FileSystem.GET_TYPES, cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { platformType = response.PlatformType.ToString() }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs new file mode 100644 index 00000000..c56308e2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.FileSystem.GetType; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetTypeEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetTypeEndpointSummary() + { + Summary = "Retrieves the file system platform type."; + Description = "Retrieves the platform type of the file system of the machine."; + + Response(200, "The type of the file system is returned.", example: new { success = true, data = new { platformType = "Windows" } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpoint.cs new file mode 100644 index 00000000..3339abf9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files; +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.FileSystemManagement.Files.GetFiles; + +/// +/// API endpoint for the /files/api-get-files route. +/// +public class GetFilesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetFilesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Files.GET_FILES); + DontAutoTag(); + Options(options => options.WithTags("Files")); + } + + /// + /// Retrieves the files of the file system path identified by the request. + /// + /// The request containing the file system path whose files are retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetFilesRequest request, CancellationToken cancellationToken) + { + FileDto[] response = await _apiHttpClient.GetAsync($"{ApiRoutes.Files.GET_FILES}?path={Uri.EscapeDataString(request.Path!)}&includeHiddenElements={request.IncludeHiddenElements}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs new file mode 100644 index 00000000..b1f4bbb7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetFiles/GetFilesEndpointSummary.cs @@ -0,0 +1,31 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Files.GetFiles; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetFilesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetFilesEndpointSummary() + { + 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."); + + Response(200, "The files of the file system path are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpoint.cs new file mode 100644 index 00000000..983877ef --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files; +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.FileSystemManagement.Files.GetTreeFiles; + +/// +/// API endpoint for the /files/api-get-tree-files route. +/// +public class GetTreeFilesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetTreeFilesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Files.GET_TREE_FILES); + DontAutoTag(); + Options(options => options.WithTags("Files")); + } + + /// + /// Retrieves the file system tree of the file system path identified by the request. + /// + /// The request containing the file system path whose file system tree is retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetTreeFilesRequest request, CancellationToken cancellationToken) + { + FileSystemTreeNodeDto[] response = await _apiHttpClient.GetAsync($"{ApiRoutes.Files.GET_TREE_FILES}?path={Uri.EscapeDataString(request.Path!)}&includeHiddenElements={request.IncludeHiddenElements}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpointSummary.cs new file mode 100644 index 00000000..da341087 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Files/GetTreeFiles/GetTreeFilesEndpointSummary.cs @@ -0,0 +1,31 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Files.GetTreeFiles; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetTreeFilesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetTreeFilesEndpointSummary() + { + 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."); + + Response(200, "The file system tree of the file system path is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpoint.cs new file mode 100644 index 00000000..db41a478 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +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.FileSystemManagement.Path.CheckPathExists; + +/// +/// API endpoint for the /path/api-check-path-exists route. +/// +public class CheckPathExistsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public CheckPathExistsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Path.CHECK_PATH_EXISTS); + DontAutoTag(); + Options(options => options.WithTags("Path")); + } + + /// + /// Checks whether the file system path identified by the request exists. + /// + /// The request containing the file system path whose existence is checked. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(CheckPathExistsRequest request, CancellationToken cancellationToken) + { + PathExistsDto response = await _apiHttpClient.GetAsync($"{ApiRoutes.Path.CHECK_PATH_EXISTS}?path={Uri.EscapeDataString(request.Path!)}&includeHiddenElements={request.IncludeHiddenElements}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { exists = response.Exists }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpointSummary.cs new file mode 100644 index 00000000..6868b07c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/CheckPathExists/CheckPathExistsEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.CheckPathExists; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class CheckPathExistsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public CheckPathExistsEndpointSummary() + { + 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."); + + Response(200, "Whether the file system path exists is returned.", example: new { success = true, data = new { exists = true } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpoint.cs new file mode 100644 index 00000000..b98013d9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +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.FileSystemManagement.Path.GetPathParent; + +/// +/// API endpoint for the /path/api-get-path-parent route. +/// +public class GetPathParentEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetPathParentEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Path.GET_PATH_PARENT); + DontAutoTag(); + Options(options => options.WithTags("Path")); + } + + /// + /// Retrieves the parent path of the file system path identified by the request. + /// + /// The request containing the file system path whose parent path is retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetPathParentRequest request, CancellationToken cancellationToken) + { + PathSegmentDto[] response = await _apiHttpClient.GetAsync($"{ApiRoutes.Path.GET_PATH_PARENT}?path={Uri.EscapeDataString(request.Path!)}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { pathSegments = response }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpointSummary.cs new file mode 100644 index 00000000..8403b28e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathParent/GetPathParentEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.GetPathParent; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetPathParentEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetPathParentEndpointSummary() + { + 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."); + + Response(200, "The path segments of the parent path are returned.", example: new { success = true, data = new { pathSegments = new PathSegmentDto[] { } } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpoint.cs new file mode 100644 index 00000000..0b053d0f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +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.FileSystemManagement.Path.GetPathRoot; + +/// +/// API endpoint for the /path/api-get-path-root route. +/// +public class GetPathRootEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetPathRootEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Path.GET_PATH_ROOT); + DontAutoTag(); + Options(options => options.WithTags("Path")); + } + + /// + /// Retrieves the root of the file system path identified by the request. + /// + /// The request containing the file system path whose root is retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetPathRootRequest request, CancellationToken cancellationToken) + { + PathSegmentDto response = await _apiHttpClient.GetAsync($"{ApiRoutes.Path.GET_PATH_ROOT}?path={Uri.EscapeDataString(request.Path!)}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { root = response }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpointSummary.cs new file mode 100644 index 00000000..19ffc881 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathRoot/GetPathRootEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.GetPathRoot; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetPathRootEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetPathRootEndpointSummary() + { + 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."); + + Response(200, "The root of the file system path is returned.", example: new { success = true, data = new { root = new PathSegmentDto() } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpoint.cs new file mode 100644 index 00000000..d62c5666 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +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.FileSystemManagement.Path.GetPathSeparator; + +/// +/// API endpoint for the /path/api-get-path-separator route. +/// +public class GetPathSeparatorEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetPathSeparatorEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Path.GET_PATH_SEPARATOR); + DontAutoTag(); + Options(options => options.WithTags("Path")); + } + + /// + /// Retrieves the file system path separator. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + PathSeparatorDto response = await _apiHttpClient.GetAsync(ApiRoutes.Path.GET_PATH_SEPARATOR, cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { pathSeparator = response.Separator }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs new file mode 100644 index 00000000..a8c70ab7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.GetPathSeparator; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetPathSeparatorEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetPathSeparatorEndpointSummary() + { + Summary = "Retrieves the file system path separator."; + Description = "Retrieves the path separator of the file system of the machine."; + + Response(200, "The file system path separator is returned.", example: new { success = true, data = new { pathSeparator = "\\" } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpoint.cs new file mode 100644 index 00000000..db585f37 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +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.FileSystemManagement.Path.SplitPath; + +/// +/// API endpoint for the /path/api-split route. +/// +public class SplitPathEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public SplitPathEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Path.SPLIT_PATH); + DontAutoTag(); + Options(options => options.WithTags("Path")); + } + + /// + /// Splits the file system path identified by the request into its segments. + /// + /// The request containing the file system path to split. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(SplitPathRequest request, CancellationToken cancellationToken) + { + PathSegmentDto[] response = await _apiHttpClient.GetAsync($"{ApiRoutes.Path.SPLIT}?path={Uri.EscapeDataString(request.Path!)}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { pathSegments = response }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpointSummary.cs new file mode 100644 index 00000000..79708895 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/SplitPath/SplitPathEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.SplitPath; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class SplitPathEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public SplitPathEndpointSummary() + { + 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."); + + Response(200, "The path segments of the file system path are returned.", example: new { success = true, data = new { pathSegments = new PathSegmentDto[] { } } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpoint.cs new file mode 100644 index 00000000..7adc0ffa --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +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.FileSystemManagement.Path.ValidatePath; + +/// +/// API endpoint for the /path/api-validate route. +/// +public class ValidatePathEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ValidatePathEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Path.VALIDATE_PATH); + DontAutoTag(); + Options(options => options.WithTags("Path")); + } + + /// + /// Validates the file system path identified by the request. + /// + /// The request containing the file system path to validate. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(ValidatePathRequest request, CancellationToken cancellationToken) + { + PathValidDto response = await _apiHttpClient.GetAsync($"{ApiRoutes.Path.VALIDATE}?path={Uri.EscapeDataString(request.Path!)}", cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { isValid = response.IsValid }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointSummary.cs new file mode 100644 index 00000000..d27cf78d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointSummary.cs @@ -0,0 +1,28 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.ValidatePath; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ValidatePathEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ValidatePathEndpointSummary() + { + 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."); + + Response(200, "Whether the file system path is valid is returned.", example: new { success = true, data = new { isValid = true } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpoint.cs new file mode 100644 index 00000000..48b3be2a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpoint.cs @@ -0,0 +1,42 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Home; + +/// +/// API endpoint for the /{culture}/error route. +/// +public class HomeErrorEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Home.ERROR); + DontAutoTag(); + Options(options => options.WithTags("Home")); + } + + /// + /// Displays the error page. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + ErrorViewDto errorViewDto = new() { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }; + return Task.FromResult(View("/Core/Views/Shared/Error.cshtml", errorViewDto)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpointSummary.cs new file mode 100644 index 00000000..93cab65c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeErrorEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Home; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class HomeErrorEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public HomeErrorEndpointSummary() + { + Summary = "Renders the error view."; + Description = "Renders the error page of the application."; + + Response(200, "The error view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpoint.cs new file mode 100644 index 00000000..3650c1fc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpoint.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +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.Home; + +/// +/// API endpoint for the / and /{culture} routes. +/// +public class HomeIndexEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Home.INDEX, WebRoutes.Home.INDEX_CULTURED); + DontAutoTag(); + Options(options => options.WithTags("Home")); + } + + /// + /// Displays the home page. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Home/Index.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpointSummary.cs new file mode 100644 index 00000000..ef423cbd --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeIndexEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Home; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class HomeIndexEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public HomeIndexEndpointSummary() + { + Summary = "Renders the home page."; + Description = "Renders the home page of the application."; + + Response(200, "The home page is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpoint.cs new file mode 100644 index 00000000..25e9853a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpoint.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +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.Home; + +/// +/// API endpoint for the /{culture}/not-found route. +/// +public class HomeNotFoundViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Home.NOT_FOUND); + DontAutoTag(); + Options(options => options.WithTags("Home")); + } + + /// + /// Displays the not-found page. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Shared/NotFound.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpointSummary.cs new file mode 100644 index 00000000..167bb51d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomeNotFoundViewEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Home; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class HomeNotFoundViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public HomeNotFoundViewEndpointSummary() + { + Summary = "Renders the not-found view."; + Description = "Renders the page displayed when a requested resource is not found."; + + Response(200, "The not-found view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpoint.cs new file mode 100644 index 00000000..32059fb3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpoint.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +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.Home; + +/// +/// API endpoint for the /{culture}/privacy route. +/// +public class HomePrivacyEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Home.PRIVACY); + DontAutoTag(); + Options(options => options.WithTags("Home")); + } + + /// + /// Displays the privacy page. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Home/Privacy.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpointSummary.cs new file mode 100644 index 00000000..c6f5d5fe --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Home/HomePrivacyEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Home; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class HomePrivacyEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public HomePrivacyEndpointSummary() + { + Summary = "Renders the privacy view."; + Description = "Renders the privacy policy page of the application."; + + Response(200, "The privacy view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpoint.cs new file mode 100644 index 00000000..0396bf28 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpoint.cs @@ -0,0 +1,41 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.AddLibrary; + +/// +/// API endpoint for the /{culture}/libraries/manage/item route. +/// +public class AddLibraryViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.ADD_LIBRARY); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Displays the media library adding view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + LibraryDto library = new(); + return Task.FromResult(View("/Core/Views/Library/Management/Item.cshtml", library)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpointSummary.cs new file mode 100644 index 00000000..c47497e5 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/AddLibrary/AddLibraryViewEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.AddLibrary; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class AddLibraryViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public AddLibraryViewEndpointSummary() + { + Summary = "Renders the add library view."; + Description = "Renders the view for adding a media library."; + + Response(200, "The view for adding a media library is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpoint.cs new file mode 100644 index 00000000..fac161df --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +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.CancelLibrariesScan; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-cancel-libraries-scan route. +/// +public class CancelLibrariesScanEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public CancelLibrariesScanEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.LibraryManagement.CANCEL_LIBRARIES_SCAN); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Cancels the running scans of all the media libraries. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.PostAsync(ApiRoutes.Libraries.CANCEL_LIBRARIES_SCAN, new Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpointSummary.cs new file mode 100644 index 00000000..f5abed3d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibrariesScan/CancelLibrariesScanEndpointSummary.cs @@ -0,0 +1,26 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.CancelLibrariesScan; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class CancelLibrariesScanEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public CancelLibrariesScanEndpointSummary() + { + Summary = "Cancels the scan of all the media libraries."; + Description = "Cancels the running scans of all the media libraries."; + + Response(200, "The scan of all media libraries is cancelled.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpoint.cs new file mode 100644 index 00000000..e3ccb02d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpoint.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +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.CancelLibraryScan; + +/// +/// API endpoint for the /{culture}/libraries/manage/{libraryId}/api-cancel-library-scan/{scanId} route. +/// +public class CancelLibraryScanEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public CancelLibraryScanEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.LibraryManagement.CANCEL_LIBRARY_SCAN); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Cancels a running scan of a media library. + /// + /// The request containing the Ids of the media library and of the scan to cancel. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(CancelLibraryScanRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.PostAsync(ApiRoutes.Libraries.CANCEL_LIBRARY_SCAN.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{scanId}", request.ScanId.ToString()), new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpointSummary.cs new file mode 100644 index 00000000..eca5a54c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/CancelLibraryScan/CancelLibraryScanEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Library.Management; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.CancelLibraryScan; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class CancelLibraryScanEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public CancelLibraryScanEndpointSummary() + { + 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."); + + Response(200, "The scan of the media library is cancelled.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpoint.cs new file mode 100644 index 00000000..b84ee688 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpoint.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +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.DeleteLibrary; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-item/{id} route. +/// +public class DeleteLibraryEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public DeleteLibraryEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.DELETE); + Routes(WebRoutes.LibraryManagement.DELETE_LIBRARY); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Deletes a media library. + /// + /// The request containing the Id of the media library to delete. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(DeleteLibraryRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.DeleteAsync(ApiRoutes.Libraries.DELETE_LIBRARY.Replace("{id}", request.Id.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointSummary.cs new file mode 100644 index 00000000..7b5d012d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Library.Management; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.DeleteLibrary; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class DeleteLibraryEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public DeleteLibraryEndpointSummary() + { + 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."); + + Response(200, "The media library is deleted.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpoint.cs new file mode 100644 index 00000000..b0106ea2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpoint.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.EditLibrary; + +/// +/// API endpoint for the /{culture}/libraries/manage/item/{id} route. +/// +public class EditLibraryViewEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public EditLibraryViewEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.EDIT_LIBRARY); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Displays the media library editing view. + /// + /// The request containing the Id of the media library to edit. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EditLibraryRequest request, CancellationToken cancellationToken) + { + LibraryDto library = await _apiHttpClient.GetAsync(ApiRoutes.Libraries.GET_LIBRARY_BY_ID.Replace("{id}", request.Id.ToString()), cancellationToken).ConfigureAwait(false); + return View("/Core/Views/Library/Management/Item.cshtml", library); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpointSummary.cs new file mode 100644 index 00000000..b4db6b5e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/EditLibrary/EditLibraryViewEndpointSummary.cs @@ -0,0 +1,28 @@ +#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.EditLibrary; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class EditLibraryViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public EditLibraryViewEndpointSummary() + { + 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."); + + Response(200, "The view for editing the media library is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpoint.cs new file mode 100644 index 00000000..44c011ff --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.GetEnabledLibraries; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-get-enabled-libraries route. +/// +public class GetEnabledLibrariesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetEnabledLibrariesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.GET_ENABLED_LIBRARIES); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Retrieves the enabled media libraries. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + LibraryDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Libraries.GET_ENABLED_LIBRARIES, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpointSummary.cs new file mode 100644 index 00000000..66e41840 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetEnabledLibraries/GetEnabledLibrariesEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetEnabledLibraries; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetEnabledLibrariesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetEnabledLibrariesEndpointSummary() + { + Summary = "Retrieves the enabled media libraries."; + Description = "Retrieves the collection of enabled media libraries."; + + Response(200, "The collection of enabled media libraries is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpoint.cs new file mode 100644 index 00000000..6faa7a4a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.GetLibraries; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-get-libraries route. +/// +public class GetLibrariesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetLibrariesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.GET_LIBRARIES); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Retrieves the media libraries. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + LibraryDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Libraries.GET_LIBRARIES, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointSummary.cs new file mode 100644 index 00000000..c6072e51 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetLibraries; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetLibrariesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetLibrariesEndpointSummary() + { + Summary = "Retrieves the media libraries."; + Description = "Retrieves the collection of media libraries."; + + Response(200, "The collection of media libraries is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpoint.cs new file mode 100644 index 00000000..c5f67185 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpoint.cs @@ -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.GetMetadataProviders; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-get-metadata-providers/{libraryId} route. +/// +public class GetMetadataProvidersEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetMetadataProvidersEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.GET_METADATA_PROVIDERS); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Retrieves the metadata providers of a media library. + /// + /// The request containing the Id of the media library whose metadata providers are retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetMetadataProvidersRequest request, CancellationToken cancellationToken) + { + LibraryMetadataProviderDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Libraries.GET_LIBRARY_METADATA_PROVIDERS.Replace("{libraryId}", request.LibraryId.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpointSummary.cs new file mode 100644 index 00000000..78d45f76 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetMetadataProviders/GetMetadataProvidersEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Plugins; +using Lumina.Presentation.Web.Common.Requests.Library.Management; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetMetadataProviders; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetMetadataProvidersEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetMetadataProvidersEndpointSummary() + { + 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."); + + Response(200, "The metadata providers of the media library are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpoint.cs new file mode 100644 index 00000000..676a5cea --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.GetRunningLibraryScans; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-get-running-library-scans route. +/// +public class GetRunningLibraryScansEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetRunningLibraryScansEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.GET_RUNNING_LIBRARY_SCANS); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Retrieves the running media library scans. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + LibraryScanProgressDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Libraries.GET_RUNNING_LIBRARIES_SCAN, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpointSummary.cs new file mode 100644 index 00000000..a2f78a34 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/GetRunningLibraryScans/GetRunningLibraryScansEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetRunningLibraryScans; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetRunningLibraryScansEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetRunningLibraryScansEndpointSummary() + { + Summary = "Retrieves the running media library scans."; + Description = "Retrieves the collection of ongoing media library scans."; + + Response(200, "The collection of ongoing media library scans is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpoint.cs new file mode 100644 index 00000000..f553d0eb --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpoint.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +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.Index; + +/// +/// API endpoint for the /{culture}/libraries/manage route. +/// +public class LibrariesIndexViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.LibraryManagement.INDEX); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + } + + /// + /// Displays the media libraries management view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Library/Management/Index.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpointSummary.cs new file mode 100644 index 00000000..1ae1502c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/Index/LibrariesIndexViewEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.Index; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class LibrariesIndexViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public LibrariesIndexViewEndpointSummary() + { + Summary = "Renders the libraries management view."; + Description = "Renders the view for managing the media libraries."; + + Response(200, "The view for managing the media libraries is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpoint.cs new file mode 100644 index 00000000..89ea7054 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpoint.cs @@ -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.ReorderMetadataProviders; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-reorder-metadata-providers route. +/// +public class ReorderMetadataProvidersEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ReorderMetadataProvidersEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.PUT); + Routes(WebRoutes.LibraryManagement.REORDER_METADATA_PROVIDERS); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Reorders the metadata providers of a media library. + /// + /// The request containing the Id of the media library and the plugin Ids in the new order. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(ReorderLibraryMetadataProvidersRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.PutAsync(ApiRoutes.Libraries.REORDER_LIBRARY_METADATA_PROVIDERS.Replace("{libraryId}", request.LibraryId.ToString()), request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpointSummary.cs new file mode 100644 index 00000000..1e6ff0e6 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ReorderMetadataProviders/ReorderMetadataProvidersEndpointSummary.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Plugins; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.ReorderMetadataProviders; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ReorderMetadataProvidersEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ReorderMetadataProvidersEndpointSummary() + { + Summary = "Reorders the metadata providers of a media library."; + Description = "Reorders the metadata providers of the media library identified by the request."; + RequestParam(r => r.LibraryId, "The Id of the media library whose metadata providers are reordered. Required."); + RequestParam(r => r.PluginIds, "The plugin Ids in the new order, from highest to lowest rank. Required."); + + ExampleRequest = new ReorderLibraryMetadataProvidersRequest + { + LibraryId = Guid.NewGuid(), + PluginIds = [ + Guid.NewGuid(), + Guid.NewGuid(), + ] + }; + + Response(200, "The metadata providers of the media library are reordered.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpoint.cs new file mode 100644 index 00000000..8ccfdefa --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpoint.cs @@ -0,0 +1,58 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.SaveLibrary; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-item route. +/// +public class SaveLibraryEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public SaveLibraryEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.LibraryManagement.SAVE_LIBRARY); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + Policies(AuthorizationPolicies.REQUIRE_CREATE_LIBRARIES_PERMISSION); + } + + /// + /// Creates or updates a media library. + /// + /// The request containing the details of the media library to create or update. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(LibraryDto request, CancellationToken cancellationToken) + { + LibraryDto response = request.Id.HasValue + ? await _apiHttpClient.PutAsync(ApiRoutes.Libraries.UPDATE_LIBRARY.Replace("{id}", request.Id.Value.ToString()), request, cancellationToken).ConfigureAwait(false) + : await _apiHttpClient.PostAsync(ApiRoutes.Libraries.ADD_LIBRARY, request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointSummary.cs new file mode 100644 index 00000000..8f00c2dd --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointSummary.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.SaveLibrary; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class SaveLibraryEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public SaveLibraryEndpointSummary() + { + Summary = "Creates or updates a media library."; + Description = "Creates or updates the media library provided in the request."; + RequestParam(r => r.Id, "The unique identifier of the media library. Optional, when creating a new media library."); + RequestParam(r => r.UserId, "The unique identifier of the user owning the media library. Optional."); + RequestParam(r => r.Title, "The title of the media library. Required."); + RequestParam(r => r.LibraryType, "The type of the media library. Required."); + RequestParam(r => r.CoverImage, "The path of the image file used as the cover of the media library. Optional."); + RequestParam(r => r.ContentLocations, "The collection of directories that contain the media library files. Required."); + RequestParam(r => r.IsEnabled, "Whether the media library is enabled or not. Optional."); + RequestParam(r => r.IsLocked, "Whether the media library is locked or not. Optional."); + RequestParam(r => r.DownloadMetadataFromWeb, "Whether the metadata of the media library items should be downloaded from the web, or not. Optional."); + RequestParam(r => r.ShouldSaveMetadataInMediaDirectories, "Whether the downloaded metadata should be copied into the media library content locations, or not. Optional."); + RequestParam(r => r.ShouldSkipUnchangedDirectoriesDuringScan, "Whether the directories whose contents have not changed since the last scan should be skipped during the scan, or not. Optional."); + + ExampleRequest = new LibraryDto(); + + Response(200, "The media library is created or updated.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpoint.cs new file mode 100644 index 00000000..7c77f6f0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpoint.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.ScanLibraries; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-scan-libraries route. +/// +public class ScanLibrariesEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ScanLibrariesEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.LibraryManagement.SCAN_LIBRARIES); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Initiates the scan of all the media libraries. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + ScanLibraryDto[] response = await _apiHttpClient.PostAsync(ApiRoutes.Libraries.SCAN_LIBRARIES, new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpointSummary.cs new file mode 100644 index 00000000..01cc4ddc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibraries/ScanLibrariesEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.ScanLibraries; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ScanLibrariesEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ScanLibrariesEndpointSummary() + { + Summary = "Starts the scan of all the media libraries."; + Description = "Initiates the scan of all the media libraries."; + + Response(200, "The scan of all media libraries is started.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpoint.cs new file mode 100644 index 00000000..19484e1c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +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.ScanLibrary; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-scan-library/{id} route. +/// +public class ScanLibraryEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ScanLibraryEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.LibraryManagement.SCAN_LIBRARY); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Initiates the scan of a media library. + /// + /// The request containing the Id of the media library to scan. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(ScanLibraryRequest request, CancellationToken cancellationToken) + { + ScanLibraryDto response = await _apiHttpClient.PostAsync(ApiRoutes.Libraries.SCAN_LIBRARY.Replace("{id}", request.Id.ToString()), new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest(), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs new file mode 100644 index 00000000..20c24430 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Requests.Library.Management; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.Management.ScanLibrary; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ScanLibraryEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ScanLibraryEndpointSummary() + { + 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."); + + Response(200, "The scan of the media library is started.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpoint.cs new file mode 100644 index 00000000..c27924c3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpoint.cs @@ -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.SetMetadataProviderEnabled; + +/// +/// API endpoint for the /{culture}/libraries/manage/api-set-metadata-provider-enabled route. +/// +public class SetMetadataProviderEnabledEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public SetMetadataProviderEnabledEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.PUT); + Routes(WebRoutes.LibraryManagement.SET_METADATA_PROVIDER_ENABLED); + DontAutoTag(); + Options(options => options.WithTags("Libraries")); + EnableAntiforgery(); + } + + /// + /// Enables or disables a metadata provider of a media library. + /// + /// The request containing the Ids of the media library and of the plugin, and whether the provider is enabled. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(SetLibraryMetadataProviderEnabledRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.PutAsync(ApiRoutes.Libraries.SET_LIBRARY_METADATA_PROVIDER_ENABLED.Replace("{libraryId}", request.LibraryId.ToString()).Replace("{pluginId}", request.PluginId.ToString()), request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpointSummary.cs new file mode 100644 index 00000000..472df6f1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/Management/SetMetadataProviderEnabled/SetMetadataProviderEnabledEndpointSummary.cs @@ -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.SetMetadataProviderEnabled; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class SetMetadataProviderEnabledEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public SetMetadataProviderEnabledEndpointSummary() + { + Summary = "Enables or disables a metadata provider of a media library."; + Description = "Enables or disables the metadata provider of the media library identified by the request."; + RequestParam(r => r.LibraryId, "The Id of the media library whose metadata provider is enabled or disabled. Required."); + RequestParam(r => r.PluginId, "The unique identifier of the plugin providing the metadata. Required."); + RequestParam(r => r.IsEnabled, "Whether the metadata provider should be enabled for the media library, or not. Required."); + + ExampleRequest = new SetLibraryMetadataProviderEnabledRequest + { + LibraryId = Guid.NewGuid(), + PluginId = Guid.NewGuid(), + IsEnabled = true + }; + + Response(200, "The metadata provider of the media library is enabled or disabled.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpoint.cs new file mode 100644 index 00000000..a6fd1b71 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpoint.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; +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.EditBook; + +/// +/// API endpoint for the /{culture}/library/written-content-library/books-library/books/{id} route. +/// +public class EditBookViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Books.EDIT_BOOK); + DontAutoTag(); + Options(options => options.WithTags("Books")); + } + + /// + /// Displays the book editing view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(GetBookRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpointSummary.cs new file mode 100644 index 00000000..f9024029 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/EditBook/EditBookViewEndpointSummary.cs @@ -0,0 +1,28 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.EditBook; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class EditBookViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public EditBookViewEndpointSummary() + { + 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."); + + Response(200, "The view for editing the book is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpoint.cs new file mode 100644 index 00000000..c8c344d4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpoint.cs @@ -0,0 +1,81 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Requests.Libraries; +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.Text; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetLibraryItems; + +/// +/// API endpoint for the /{culture}/library/written-content-library/books-library/books/api-get-library-items route. +/// +public class GetLibraryItemsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetLibraryItemsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Books.GET_LIBRARY_ITEMS); + DontAutoTag(); + Options(options => options.WithTags("Books")); + } + + /// + /// Retrieves the lightweight details of the books of a media library. + /// + /// The request containing the parameters used to retrieve the books. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetBooksLiteRequest request, CancellationToken cancellationToken) + { + PaginatedBookLiteDto response = await _apiHttpClient.GetAsync(BuildItemsEndpoint(request), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } + + /// + /// Builds the API endpoint used to retrieve the lightweight details of the books of a media library, from the provided . + /// + /// The request containing the parameters used to retrieve the books. + /// The API endpoint to which the retrieval request is sent. + private static string BuildItemsEndpoint(GetBooksLiteRequest query) + { + StringBuilder endpoint = new(ApiRoutes.Books.GET_BOOKS_LITE); + endpoint.Append($"?libraryId={query.LibraryId}"); + if (query.CurrentPage is not null) + endpoint.Append($"¤tPage={query.CurrentPage}"); + if (query.PerPage is not null) + endpoint.Append($"&perPage={query.PerPage}"); + if (!string.IsNullOrWhiteSpace(query.SearchTerm)) + endpoint.Append($"&searchTerm={Uri.EscapeDataString(query.SearchTerm)}"); + if (!string.IsNullOrWhiteSpace(query.FilterAlphaKey)) + endpoint.Append($"&filterAlphaKey={Uri.EscapeDataString(query.FilterAlphaKey)}"); + endpoint.Append($"&ignoreThePrefixForAlphaPicker={query.IgnoreThePrefixForAlphaPicker}"); + if (!string.IsNullOrWhiteSpace(query.SortBy)) + endpoint.Append($"&sortBy={Uri.EscapeDataString(query.SortBy)}"); + if (query.SortOrder is not null) + endpoint.Append($"&sortOrder={query.SortOrder}"); + return endpoint.ToString(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointSummary.cs new file mode 100644 index 00000000..b8f32be7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointSummary.cs @@ -0,0 +1,37 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Requests.Libraries; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetLibraryItems; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetLibraryItemsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetLibraryItemsEndpointSummary() + { + 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.IgnoreThePrefixForAlphaPicker, "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."); + + Response(200, "The lightweight details of the books of the media library are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpoint.cs new file mode 100644 index 00000000..51c5a6b1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpoint.cs @@ -0,0 +1,60 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +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.Index; + +/// +/// API endpoint for the /{culture}/library/written-content-library/books-library/books route. +/// +public class BooksIndexViewEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + private readonly IUrlService _urlService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + /// Injected service for generating URLs from action and controller names, with localization. + public BooksIndexViewEndpoint(IApiHttpClient apiHttpClient, IUrlService urlService) + { + _apiHttpClient = apiHttpClient; + _urlService = urlService; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Books.INDEX); + DontAutoTag(); + Options(options => options.WithTags("Books")); + } + + /// + /// Displays the books browsing view. + /// + /// The request containing the Id of the media library whose books are browsed. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetBooksViewRequest request, CancellationToken cancellationToken) + { + if (request.LibraryId is null) + return Results.Redirect(_urlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED)!); + LibraryDto library = await _apiHttpClient.GetAsync(ApiRoutes.Libraries.GET_LIBRARY_BY_ID.Replace("{id}", request.LibraryId.Value.ToString()), cancellationToken).ConfigureAwait(false); + return View("/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml", library); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointSummary.cs new file mode 100644 index 00000000..cd6b461f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointSummary.cs @@ -0,0 +1,28 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Index; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class BooksIndexViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public BooksIndexViewEndpointSummary() + { + 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."); + + Response(200, "The view for browsing the books of the media library is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpoint.cs new file mode 100644 index 00000000..9d0be7f7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Plugins; +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.Plugins.GetPluginSettings; + +/// +/// API endpoint for the /{culture}/plugins/api-get-plugin-settings/{pluginId} route. +/// +public class GetPluginSettingsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetPluginSettingsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Plugins.GET_PLUGIN_SETTINGS); + DontAutoTag(); + Options(options => options.WithTags("Plugins")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Retrieves the settings of the plugin identified by the request. + /// + /// The request containing the unique identifier of the plugin whose settings are retrieved. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(GetPluginSettingsRequest request, CancellationToken cancellationToken) + { + PluginSettingsDto response = await _apiHttpClient.GetAsync(ApiRoutes.Plugins.GET_PLUGIN_SETTINGS.Replace("{pluginId}", request.PluginId.ToString()), cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpointSummary.cs new file mode 100644 index 00000000..70dfcd95 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPluginSettings/GetPluginSettingsEndpointSummary.cs @@ -0,0 +1,30 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Plugins; +using Lumina.Presentation.Web.Common.Requests.Plugins; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.GetPluginSettings; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetPluginSettingsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetPluginSettingsEndpointSummary() + { + 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."); + + Response(200, "The settings and their schema of the plugin are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpoint.cs new file mode 100644 index 00000000..56e66099 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpoint.cs @@ -0,0 +1,55 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.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.Plugins.GetPlugins; + +/// +/// API endpoint for the /{culture}/plugins/api-get-plugins route. +/// +public class GetPluginsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetPluginsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Plugins.GET_PLUGINS); + DontAutoTag(); + Options(options => options.WithTags("Plugins")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Retrieves the plugins. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + PluginDto[] response = await _apiHttpClient.GetAsync(ApiRoutes.Plugins.GET_PLUGINS, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointSummary.cs new file mode 100644 index 00000000..b4841d86 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Plugins; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.GetPlugins; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetPluginsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetPluginsEndpointSummary() + { + Summary = "Retrieves the plugins."; + Description = "Retrieves the collection of detected plugins."; + + Response(200, "The collection of detected plugins is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpoint.cs new file mode 100644 index 00000000..b75707f4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpoint.cs @@ -0,0 +1,62 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.DTO.Plugins; +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.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.Index; + +/// +/// API endpoint for the /{culture}/plugins route. +/// +public class PluginsIndexViewEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public PluginsIndexViewEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Plugins.INDEX); + DontAutoTag(); + Options(options => options.WithTags("Plugins")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + } + + /// + /// Displays the plugins index view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + PluginDto[] plugins = await _apiHttpClient.GetAsync(ApiRoutes.Plugins.GET_PLUGINS, cancellationToken).ConfigureAwait(false); + Dictionary settingsByPluginId = []; + foreach (PluginDto plugin in plugins) + if (plugin.LoadStatus == Lumina.Presentation.Web.Common.Enums.Plugins.PluginLoadStatus.Loaded) + settingsByPluginId[plugin.Id] = await _apiHttpClient.GetAsync(ApiRoutes.Plugins.GET_PLUGIN_SETTINGS.Replace("{pluginId}", plugin.Id.ToString()), cancellationToken).ConfigureAwait(false); + Dictionary viewData = new() { ["pluginSettings"] = settingsByPluginId }; + return View("/Core/Views/Plugins/Index.cshtml", plugins, viewData); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpointSummary.cs new file mode 100644 index 00000000..9bf4802a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/Index/PluginsIndexViewEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.Index; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class PluginsIndexViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public PluginsIndexViewEndpointSummary() + { + Summary = "Renders the plugins management view."; + Description = "Renders the view for managing the plugins and their settings."; + + Response(200, "The view for managing the plugins and their settings is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpoint.cs new file mode 100644 index 00000000..0cd1aba1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +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.Plugins.UpdatePluginSettings; + +/// +/// API endpoint for the /{culture}/plugins/api-update-plugin-settings route. +/// +public class UpdatePluginSettingsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public UpdatePluginSettingsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.PUT); + Routes(WebRoutes.Plugins.UPDATE_PLUGIN_SETTINGS); + DontAutoTag(); + Options(options => options.WithTags("Plugins")); + Policies(AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + EnableAntiforgery(); + } + + /// + /// Updates the settings of the plugin identified by the request. + /// + /// The request containing the updated settings of the plugin. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(UpdatePluginSettingsRequest request, CancellationToken cancellationToken) + { + await _apiHttpClient.PutAsync(ApiRoutes.Plugins.UPDATE_PLUGIN_SETTINGS.Replace("{pluginId}", request.PluginId.ToString()), request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointSummary.cs new file mode 100644 index 00000000..80029d6d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointSummary.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.Plugins; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.UpdatePluginSettings; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class UpdatePluginSettingsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public UpdatePluginSettingsEndpointSummary() + { + Summary = "Updates the settings of a plugin."; + Description = "Updates the settings of the plugin identified by the request."; + RequestParam(r => r.PluginId, "The unique identifier of the plugin. Required."); + RequestParam(r => r.Settings, "The settings of the plugin. Optional."); + + ExampleRequest = new UpdatePluginSettingsRequest + { + PluginId = Guid.NewGuid(), + Settings = new Dictionary + { + { "preferredLanguage", "fr" }, + { "selectionStrategy", "first" } + } + }; + + Response(200, "The settings of the plugin are updated.", example: new SuccessResponse(true)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs new file mode 100644 index 00000000..f7e1c7e1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs @@ -0,0 +1,85 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.Tools; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Localization; +using Microsoft.AspNetCore.Routing; +using System; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Tools.Language.SetLanguage; + +/// +/// API endpoint for the /{culture}/tools/language/set-language route. +/// +public class SetLanguageEndpoint : BaseEndpoint +{ + private readonly IUrlService _urlService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for generating URLs from action and controller names, with localization. + public SetLanguageEndpoint(IUrlService urlService) + { + _urlService = urlService; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Language.SET_LANGUAGE); + DontAutoTag(); + Options(options => options.WithTags("Language")); + } + + /// + /// Sets the culture used by the application. + /// + /// The request containing the new culture to set and the URL to return to. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(SetLanguageRequest request, CancellationToken cancellationToken) + { + // store the culture preference in a cookie + HttpContext.Response.Cookies.Append( + CookieRequestCultureProvider.DefaultCookieName, + CookieRequestCultureProvider.MakeCookieValue(new RequestCulture(request.NewCulture!)), + new CookieOptions + { + Expires = DateTimeOffset.UtcNow.AddYears(1), + IsEssential = true, + SameSite = SameSiteMode.Lax, + Path = "/" // ensure the cookie works across all paths + } + ); + // ensure the return URL includes the correct culture + string returnUrl = string.IsNullOrEmpty(request.ReturnUrl) ? _urlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED)! : request.ReturnUrl; + // handle the culture replacement in the return URL + string currentCulture = Culture; + string culturePath = $"/{currentCulture.ToLower()}/"; + string newCulturePath = $"/{request.NewCulture!.ToLower()}/"; + + // handle the base path if present + if (!string.IsNullOrEmpty(HttpContext.Request.PathBase)) + returnUrl = returnUrl.Replace(HttpContext.Request.PathBase.Value!, string.Empty, StringComparison.OrdinalIgnoreCase); + // replace the culture in the URL + returnUrl = returnUrl.Replace(culturePath, newCulturePath, StringComparison.OrdinalIgnoreCase); + + // re-apply the base path if present + if (!string.IsNullOrEmpty(HttpContext.Request.PathBase)) + returnUrl = HttpContext.Request.PathBase.Value + returnUrl; + + // redirect to the original page + return Results.LocalRedirect(returnUrl); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointSummary.cs new file mode 100644 index 00000000..33243485 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointSummary.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.Tools; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Tools.Language.SetLanguage; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class SetLanguageEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public SetLanguageEndpointSummary() + { + 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."); + + Response(200, "The culture preference is stored in a cookie, and the browser is redirected back."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpoint.cs new file mode 100644 index 00000000..9dd135dc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpoint.cs @@ -0,0 +1,53 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +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.Tools.Settings.GetUserSettings; + +/// +/// API endpoint for the /{culture}/tools/settings/api-get-user-settings route. +/// +public class GetUserSettingsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public GetUserSettingsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Settings.GET_USER_SETTINGS); + DontAutoTag(); + Options(options => options.WithTags("Settings")); + } + + /// + /// Retrieves the settings of the current user. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + UserSettingsDto response = await _apiHttpClient.GetAsync(ApiRoutes.Users.GET_USER_SETTINGS, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointSummary.cs new file mode 100644 index 00000000..aaa64482 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointSummary.cs @@ -0,0 +1,27 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Tools.Settings.GetUserSettings; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class GetUserSettingsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public GetUserSettingsEndpointSummary() + { + Summary = "Retrieves the settings of the current user."; + Description = "Retrieves the settings of the current user."; + + Response(200, "The settings of the current user are returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpoint.cs new file mode 100644 index 00000000..ece92a34 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpoint.cs @@ -0,0 +1,41 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +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.Tools.Settings; + +/// +/// API endpoint for the /{culture}/tools/settings route. +/// +public class SettingsViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Settings.INDEX); + DontAutoTag(); + Options(options => options.WithTags("Settings")); + } + + /// + /// Displays the user settings view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + UserSettingsDto settings = new(); + return Task.FromResult(View("/Core/Views/Tools/Settings.cshtml", settings)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpointSummary.cs new file mode 100644 index 00000000..87cb9911 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/SettingsViewEndpointSummary.cs @@ -0,0 +1,25 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Tools.Settings; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class SettingsViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public SettingsViewEndpointSummary() + { + Summary = "Renders the user settings view."; + Description = "Renders the view for editing the settings of the current user."; + + Response(200, "The view for editing the settings of the current user is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpoint.cs new file mode 100644 index 00000000..044f7440 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpoint.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +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.Tools.Settings.UpdateUserSettings; + +/// +/// API endpoint for the /{culture}/tools/settings/api-update-user-settings route. +/// +public class UpdateUserSettingsEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public UpdateUserSettingsEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.Settings.UPDATE_USER_SETTINGS); + DontAutoTag(); + Options(options => options.WithTags("Settings")); + EnableAntiforgery(); + } + + /// + /// Updates the settings of the current user. + /// + /// The request containing the updated settings of the current user. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(UserSettingsDto request, CancellationToken cancellationToken) + { + await _apiHttpClient.PutAsync(ApiRoutes.Users.UPDATE_USER_SETTINGS, request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(new { isUpdated = true }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointSummary.cs new file mode 100644 index 00000000..ead45202 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointSummary.cs @@ -0,0 +1,32 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.Tools.Settings.UpdateUserSettings; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class UpdateUserSettingsEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public UpdateUserSettingsEndpointSummary() + { + Summary = "Updates the settings of the current user."; + Description = "Updates the settings of the current user."; + RequestParam(r => r.UserId, "The unique identifier of the user that owns the settings. Optional."); + RequestParam(r => r.IsPaginationEnabled, "Whether pagination is enabled for the user, or not. Optional."); + RequestParam(r => r.ItemsPerPage, "The number of library items displayed per page when pagination is enabled. Optional."); + RequestParam(r => r.IgnoreThePrefixForAlphaPicker, "Whether the leading 'The' prefix of library item titles is ignored by the alpha picker, or not. Optional."); + + ExampleRequest = new UserSettingsDto(); + + Response(200, "The settings of the current user are updated.", example: new { success = true, data = new { isUpdated = true } }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpoint.cs new file mode 100644 index 00000000..2139b2db --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpoint.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +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.UsersManagement.Authentication.AccessDenied; + +/// +/// API endpoint for the /{culture}/auth/access-denied route. +/// +public class AccessDeniedViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.ACCESS_DENIED_VIEW); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + } + + /// + /// Displays the access denied view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Auth/AccessDenied.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpointSummary.cs new file mode 100644 index 00000000..9d06908b --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/AccessDenied/AccessDeniedViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.AccessDenied; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class AccessDeniedViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public AccessDeniedViewEndpointSummary() + { + Summary = "Renders the access denied view."; + Description = "Renders the view that is shown when the user is not authorized to access a resource."; + + Response(200, "The access denied view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpoint.cs new file mode 100644 index 00000000..2e26cf91 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpoint.cs @@ -0,0 +1,57 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +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.UsersManagement.Authentication.ChangePassword; + +/// +/// API endpoint for the /{culture}/auth/api-change-password route. +/// +public class ChangePasswordEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public ChangePasswordEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.Authentication.CHANGE_PASSWORD); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + EnableAntiforgery(); + } + + /// + /// Changes the password of the currently logged in account. + /// + /// The request containing the account credentials. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(ChangePasswordRequest request, CancellationToken cancellationToken) + { + // assign the currently logged in user as the user for which to change the password + ChangePasswordRequest changePasswordRequest = request with { Username = User?.Identity?.Name }; + ChangePasswordResponse response = await _apiHttpClient.PostAsync(ApiRoutes.Authentication.CHANGE_PASSWORD, changePasswordRequest, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs new file mode 100644 index 00000000..8d146614 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordEndpointSummary.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.ChangePassword; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ChangePasswordEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ChangePasswordEndpointSummary() + { + Summary = "Changes the account password."; + Description = "Changes the password of the currently logged in account."; + RequestParam(r => r.Username, "The username of the account. Required."); + RequestParam(r => r.CurrentPassword, "The current password of the account. Required."); + RequestParam(r => r.NewPassword, "The new password of the account. Required."); + RequestParam(r => r.NewPasswordConfirm, "The confirmation of the new password of the account. Required."); + + ExampleRequest = new ChangePasswordRequest( + Username: "JohnDoe", + CurrentPassword: "Abcd123$", + NewPassword: "Abcd1234$", + NewPasswordConfirm: "Abcd1234$" + ); + + Response(200, "The account password is changed.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpoint.cs new file mode 100644 index 00000000..166cfc86 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpoint.cs @@ -0,0 +1,41 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +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.UsersManagement.Authentication.ChangePassword; + +/// +/// API endpoint for the /{culture}/auth/change-password route. +/// +public class ChangePasswordViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.CHANGE_PASSWORD_VIEW); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + } + + /// + /// Displays the account password change view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + ChangePasswordRequest changePasswordRequest = new(Username: null, CurrentPassword: null, NewPassword: null, NewPasswordConfirm: null); + return Task.FromResult(View("/Core/Views/Auth/ChangePassword.cshtml", changePasswordRequest)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpointSummary.cs new file mode 100644 index 00000000..2cbfeda4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/ChangePassword/ChangePasswordViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.ChangePassword; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ChangePasswordViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ChangePasswordViewEndpointSummary() + { + Summary = "Renders the change password view."; + Description = "Renders the view for changing the password of the account."; + + Response(200, "The view for changing the account password is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpoint.cs new file mode 100644 index 00000000..936620e7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpoint.cs @@ -0,0 +1,143 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Exceptions; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Security; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Authentication; +using Microsoft.AspNetCore.Authentication.Cookies; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Abstractions; +using Microsoft.AspNetCore.Mvc.Routing; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Collections.Generic; +using System.Security.Claims; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// API endpoint for the /{culture}/auth/api-login route. +/// +public class LoginEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + private readonly ICryptographyService _cryptographyService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + /// Injected service for cryptographic functionality. + public LoginEndpoint(IApiHttpClient apiHttpClient, ICryptographyService cryptographyService) + { + _apiHttpClient = apiHttpClient; + _cryptographyService = cryptographyService; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.Authentication.LOGIN); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + EnableAntiforgery(); + } + + /// + /// Authenticates an account and signs the user in. + /// + /// The request containing the account credentials. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(LoginRequest request, CancellationToken cancellationToken) + { + try + { + // attempt API login + LoginResponse response = await _apiHttpClient.PostAsync(ApiRoutes.Authentication.LOGIN_ACCOUNT, request, cancellationToken).ConfigureAwait(false); + // store the received token in a secure cookie + HttpContext.Response.Cookies.Delete("Token"); + HttpContext.Response.Cookies.Append("Token", _cryptographyService.Encrypt(response.Token!), new CookieOptions + { + Expires = DateTimeOffset.UtcNow.AddMonths(1), + Path = "/", + HttpOnly = true, + Secure = true, + IsEssential = true, + SameSite = SameSiteMode.Strict + }); + // tell asp.net we are logged in + List claims = + [ + new Claim(ClaimTypes.Name, response.Username!), + new Claim(ClaimTypes.NameIdentifier, response.Id.ToString()!), + new Claim("Token", response.Token!), + ]; + ClaimsIdentity claimsIdentity = new(claims, CookieAuthenticationDefaults.AuthenticationScheme); + await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(claimsIdentity)).ConfigureAwait(false); + // get current culture from route data or use default if not set + string currentCulture = Culture; + // handle ReturnUrl and ensure it includes the correct culture + string redirectUrl; + if (!string.IsNullOrEmpty(request.ReturnUrl) && IsLocalUrl(request.ReturnUrl)) // ensure that return URL contains the correct culture + redirectUrl = request.ReturnUrl.StartsWith($"/{currentCulture}/") ? request.ReturnUrl : $"/{currentCulture}{request.ReturnUrl}"; + else + { + // if no ReturnUrl is provided or it's invalid, use a default URL with respect to base paths + redirectUrl = "/"; + + // handle reverse proxy scenarios by respecting any base path or forwarded headers + if (HttpContext.Request.Headers.TryGetValue("X-Forwarded-Prefix", out Microsoft.Extensions.Primitives.StringValues pathBase)) + redirectUrl = pathBase + redirectUrl; + + // ensure that default redirect contains the correct culture + if (!redirectUrl.StartsWith($"/{currentCulture}/")) + redirectUrl = $"/{currentCulture}{redirectUrl}"; + } + + // return success status and redirect URL + return JsonSuccess(redirectUrl); + } + catch (ApiException apiException) + { + // in this particular case, we DO NOT want to let the exception handling middleware take care of this exception, because when the user has 2FA enabled, the first auth step involves sending + // only the username and password, in which case the server API will respond with a validation error, that TOTP code is not valid (empty); it is then that we catch this error here + // and display the form that asks the user for the TOTP code + if (apiException.ProblemDetails is not null && apiException.ProblemDetails.Extensions?.Count > 0 && apiException.ProblemDetails.Extensions.TryGetValue("errors", out JsonElement errorsObj)) + if (errorsObj is JsonElement jsonElement && jsonElement.ValueKind == JsonValueKind.Object) + foreach (JsonProperty error in jsonElement.EnumerateObject()) + if (error.Value.ValueKind == JsonValueKind.Array) + foreach (JsonElement errorValue in error.Value.EnumerateArray()) + if (errorValue.ValueKind == JsonValueKind.String && errorValue.GetString() == "InvalidTotpCode" && string.IsNullOrEmpty(request.TotpCode)) + return JsonSuccess(new { isTotpRequired = true }); // only get here when user did not enter a TOTP code at all, otherwise rethrow the validation error + throw; + } + } + + /// + /// Determines whether the specified URL is a local URL. + /// + /// The URL to inspect. + /// if the URL is local, otherwise. + private bool IsLocalUrl(string? url) + { + IUrlHelperFactory urlHelperFactory = HttpContext.RequestServices.GetRequiredService(); + RouteData routeData = HttpContext.GetRouteData() ?? new RouteData(); + IUrlHelper urlHelper = urlHelperFactory.GetUrlHelper(new ActionContext(HttpContext, routeData, new ActionDescriptor())); + return urlHelper.IsLocalUrl(url); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointSummary.cs new file mode 100644 index 00000000..88eb86ba --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointSummary.cs @@ -0,0 +1,38 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class LoginEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public LoginEndpointSummary() + { + Summary = "Authenticates a user."; + Description = "Authenticates an account and signs the user in, returning the URL to redirect to."; + RequestParam(r => r.Username, "The username of the account. Required."); + RequestParam(r => r.Password, "The password of the account. Required."); + RequestParam(r => r.TotpCode, "The TOTP (Time-Based One-Time Password) code used for two-factor authentication. Optional."); + RequestParam(r => r.ReturnUrl, "The URL to return to, after login. Optional."); + + ExampleRequest = new LoginRequest( + Username: "JohnDoe", + Password: "Abcd123$", + TotpCode: "123456", + ReturnUrl: "/" + ); + + Response(200, "The user is authenticated, and the URL to redirect to is returned.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpoint.cs new file mode 100644 index 00000000..4a758ef8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpoint.cs @@ -0,0 +1,66 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Http; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Requests.UsersManagement.Authentication; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// API endpoint for the /{culture}/auth/login/{returnUrl?} route. +/// +public class LoginViewEndpoint : BaseEndpoint +{ + private readonly IUrlService _urlService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for generating URLs from action and controller names, with localization. + public LoginViewEndpoint(IUrlService urlService) + { + _urlService = urlService; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.LOGIN_VIEW); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + PreProcessor>(); + } + + /// + /// Displays the account login view. + /// + /// The request containing the URL to return to, after login. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(LoginViewRequest request, CancellationToken cancellationToken) + { + Dictionary viewData = new() { ["ReturnUrl"] = request.ReturnUrl }; + // if the user is already logged in, redirect them to the home page + if (User?.Identity?.IsAuthenticated == true) + return Task.FromResult(Results.Redirect(_urlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED)!)); + // check if the application is initialized (does contain at least the super user account); if it's not, redirect to registration view + string? isPendingSuperAdminSetup = HttpContext.Session.GetString(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP); + if (isPendingSuperAdminSetup == "true") + return Task.FromResult(Results.Redirect(_urlService.GetAbsoluteUrl(WebRoutes.Authentication.REGISTER_VIEW)!)); + return Task.FromResult(View("/Core/Views/Auth/Login.cshtml", new LoginRequest(), viewData)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointSummary.cs new file mode 100644 index 00000000..612c6bda --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointSummary.cs @@ -0,0 +1,28 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.UsersManagement.Authentication; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class LoginViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public LoginViewEndpointSummary() + { + 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."); + + Response(200, "The account login view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpoint.cs new file mode 100644 index 00000000..b6dae3b9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpoint.cs @@ -0,0 +1,58 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Authentication; +using Microsoft.AspNetCore.Authentication.Cookies; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Logout; + +/// +/// API endpoint for the /{culture}/auth/logout route. +/// +public class LogoutEndpoint : BaseEndpoint +{ + private readonly IUrlService _urlService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for generating URLs from action and controller names, with localization. + public LogoutEndpoint(IUrlService urlService) + { + _urlService = urlService; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.LOGOUT); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + } + + /// + /// Logs out the account and redirects to the login page. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + // if the user is not logged in, redirect them to the home page + if (User?.Identity?.IsAuthenticated == false) + return Results.Redirect(_urlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED)!); + HttpContext.Response.Cookies.Delete("Token"); + await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme).ConfigureAwait(false); + return Results.Redirect(_urlService.GetAbsoluteUrl(WebRoutes.Authentication.LOGIN_VIEW)!); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpointSummary.cs new file mode 100644 index 00000000..480cd8cb --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Logout/LogoutEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Logout; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class LogoutEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public LogoutEndpointSummary() + { + Summary = "Logs out the user."; + Description = "Logs out the currently logged in account and redirects the browser to the login page."; + + Response(200, "The user is logged out, and the browser is redirected to the login page."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpoint.cs new file mode 100644 index 00000000..f816c470 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpoint.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +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.UsersManagement.Authentication.Profile; + +/// +/// API endpoint for the /{culture}/auth/profile route. +/// +public class ProfileViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.PROFILE_VIEW); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + } + + /// + /// Displays the user profile view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(View("/Core/Views/Auth/Profile.cshtml")); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpointSummary.cs new file mode 100644 index 00000000..138092d4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Profile/ProfileViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Profile; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class ProfileViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public ProfileViewEndpointSummary() + { + Summary = "Renders the user profile view."; + Description = "Renders the user profile view of the currently logged in account."; + + Response(200, "The user profile view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpoint.cs new file mode 100644 index 00000000..5af7f1d0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpoint.cs @@ -0,0 +1,56 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +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.UsersManagement.Authentication.RecoverPassword; + +/// +/// API endpoint for the /{culture}/auth/api-recover-password route. +/// +public class RecoverPasswordEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public RecoverPasswordEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.Authentication.RECOVER_PASSWORD); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + EnableAntiforgery(); + } + + /// + /// Recovers the password of an account. + /// + /// The request containing the account credentials. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(RecoverPasswordRequest request, CancellationToken cancellationToken) + { + RecoverPasswordResponse response = await _apiHttpClient.PostAsync(ApiRoutes.Authentication.RECOVER_PASSWORD, request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointSummary.cs new file mode 100644 index 00000000..99946250 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointSummary.cs @@ -0,0 +1,35 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.RecoverPassword; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class RecoverPasswordEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public RecoverPasswordEndpointSummary() + { + Summary = "Recovers the account password."; + Description = "Recovers the password of an account by verifying the provided TOTP code."; + RequestParam(r => r.Username, "The username of the account. Required."); + RequestParam(r => r.TotpCode, "The TOTP (Time-Based One-Time Password) code used for two-factor authentication. Optional."); + + ExampleRequest = new RecoverPasswordRequest( + Username: "JohnDoe", + TotpCode: "123456" + ); + + Response(200, "The account password is recovered.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpoint.cs new file mode 100644 index 00000000..cf3a319a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpoint.cs @@ -0,0 +1,59 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +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.UsersManagement.Authentication.RecoverPassword; + +/// +/// API endpoint for the /{culture}/auth/recover-password route. +/// +public class RecoverPasswordViewEndpoint : BaseEndpoint +{ + private readonly IUrlService _urlService; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for generating URLs from action and controller names, with localization. + public RecoverPasswordViewEndpoint(IUrlService urlService) + { + _urlService = urlService; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.RECOVER_PASSWORD_VIEW); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + PreProcessor>(); + } + + /// + /// Displays the account password recovery view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + // if the user is already logged in, redirect them to the home page + if (User?.Identity?.IsAuthenticated == true) + return Task.FromResult(Results.Redirect(_urlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED)!)); + RecoverPasswordRequest recoverPasswordRequest = new(Username: null, TotpCode: null); + return Task.FromResult(View("/Core/Views/Auth/RecoverPassword.cshtml", recoverPasswordRequest)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpointSummary.cs new file mode 100644 index 00000000..378fadd9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.RecoverPassword; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class RecoverPasswordViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public RecoverPasswordViewEndpointSummary() + { + Summary = "Renders the account password recovery view."; + Description = "Renders the view for recovering the password of the account."; + + Response(200, "The account password recovery view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpoint.cs new file mode 100644 index 00000000..7c7244ca --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpoint.cs @@ -0,0 +1,59 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +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.UsersManagement.Authentication.Register; + +/// +/// API endpoint for the /{culture}/auth/api-register route. +/// +public class RegisterEndpoint : BaseEndpoint +{ + private readonly IApiHttpClient _apiHttpClient; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for interactions with the API. + public RegisterEndpoint(IApiHttpClient apiHttpClient) + { + _apiHttpClient = apiHttpClient; + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.POST); + Routes(WebRoutes.Authentication.REGISTER); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + EnableAntiforgery(); + } + + /// + /// Registers an account, or sets up the initial application admin account. + /// + /// The request containing the account credentials. + /// Cancellation token that can be used to stop the execution. + public override async Task ExecuteAsync(RegisterRequest request, CancellationToken cancellationToken) + { + // call different endpoints based on the view hidden field - registration for normal users, or initial application admin account setup + string endpoint = request.RegistrationType == "Admin" ? ApiRoutes.Initialization.SETUP_APPLICATION : ApiRoutes.Authentication.REGISTER_ACCOUNT; + // attempt API registration + RegisterResponse response = await _apiHttpClient.PostAsync(endpoint, request, cancellationToken).ConfigureAwait(false); + return JsonSuccess(response); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointSummary.cs new file mode 100644 index 00000000..94cde333 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointSummary.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Register; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class RegisterEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public RegisterEndpointSummary() + { + Summary = "Registers an account."; + Description = "Registers an account, or sets up the initial application admin account."; + RequestParam(r => r.Username, "The username of the account. Required."); + RequestParam(r => r.Password, "The password of the account. Required."); + RequestParam(r => r.PasswordConfirm, "The confirmation of the password of the account. Required."); + RequestParam(r => r.RegistrationType, "The type of the registration, either 'Admin' or 'User'. Required."); + RequestParam(r => r.Use2fa, "Whether two-factor authentication should be enabled for the account. Optional."); + + ExampleRequest = new RegisterRequest( + Username: "JohnDoe", + Password: "Abcd123$", + PasswordConfirm: "Abcd123$", + RegistrationType: "User" + ); + + Response(200, "The account is registered.", example: new SuccessResponse(true, default)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpoint.cs new file mode 100644 index 00000000..3dd37c77 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpoint.cs @@ -0,0 +1,50 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Http; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Register; + +/// +/// API endpoint for the /{culture}/auth/register route. +/// +public class RegisterViewEndpoint : BaseEndpoint +{ + /// + /// Configures the endpoint. + /// + public override void Configure() + { + base.Configure(); + Verbs(Http.GET); + Routes(WebRoutes.Authentication.REGISTER_VIEW); + DontAutoTag(); + Options(options => options.WithTags("Authentication")); + AllowAnonymous(); + PreProcessor>(); + } + + /// + /// Displays the account registration view. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + // check if this is the initial super admin setup + string? isPendingSuperAdminSetup = HttpContext.Session.GetString(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP); + string registrationType = isPendingSuperAdminSetup == "true" ? "Admin" : "User"; + Dictionary viewData = new() { ["RegistrationType"] = registrationType }; + RegisterRequest registerRequest = new(Username: null, Password: null, PasswordConfirm: null, RegistrationType: registrationType); + return Task.FromResult(View("/Core/Views/Auth/Register.cshtml", registerRequest, viewData)); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpointSummary.cs b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpointSummary.cs new file mode 100644 index 00000000..8df98355 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Endpoints/UsersManagement/Authentication/Register/RegisterViewEndpointSummary.cs @@ -0,0 +1,24 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Register; + +/// +/// Class used for providing a textual description for the endpoint, for OpenAPI. +/// +[ExcludeFromCodeCoverage] +public class RegisterViewEndpointSummary : Summary +{ + /// + /// Initializes a new instance of the class. + /// + public RegisterViewEndpointSummary() + { + Summary = "Renders the account registration view."; + Description = "Renders the view for registering a new account."; + + Response(200, "The account registration view is rendered."); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs b/src/Lumina.Presentation.Web/Core/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs new file mode 100644 index 00000000..302bf575 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Renderers/Library/WrittenContentLibrary/BookLibrary/Books/BooksTemplateRenderer.cs @@ -0,0 +1,8 @@ +namespace Lumina.Presentation.Web.Core.Renderers.Library.WrittenContentLibrary.BookLibrary.Books; + +/// +/// Renders the book template elements. +/// +public class BooksTemplateRenderer +{ +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx new file mode 100644 index 00000000..c5328293 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.de-DE.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Administrator-Konto wurde bereits erstellt! + + + Die Admin-Rolle kann nicht gelöscht werden! + + + Anwendungsdesign darf nicht leer sein! + + + ASIN muss 10 Zeichen lang sein! + + + Die Barnes&Noble-ID muss 10 Zeichen lang sein! + + + Bitrate muss eine positive Zahl sein! + + + Buch existiert bereits! + + + Navigation nach oben nicht möglich! + + + Der letzte zugewiesene Admin-Rolle kann nicht entfernt werden! + + + Codec darf nicht leer sein! + + + Anzeigename des Mitwirkenden darf nicht leer sein! + + + Anzeigename des Mitwirkenden darf maximal 100 Zeichen lang sein! + + + Rechtlicher Name des Mitwirkenden darf maximal 100 Zeichen lang sein! + + + Name des Mitwirkenden darf nicht leer sein! + + + Rolle des Mitwirkenden darf nicht null sein! + + + Liste der Mitwirkenden darf nicht null sein! + + + Ländercode muss 2 Zeichen lang sein! + + + Aktuelles Passwort darf nicht leer sein! + + + Datenbank-Verbindungszeichenfolge darf nicht leer sein! + + + Beschreibung darf maximal 2000 Zeichen lang sein! + + + Verzeichnis existiert bereits! + + + Fehler beim Kopieren des Verzeichnisses! + + + Fehler beim Verschieben des Verzeichnisses! + + + Verzeichnis nicht gefunden! + + + Ausgabe darf maximal 50 Zeichen lang sein! + + + Verschlüsselungsschlüssel darf nicht leer sein! + + + Verschlüsselungsschlüssel muss eine Base64-Zeichenkette sein! + + + Fehler beim Speichern der Autorisierungsrolle! + + + Fehler beim Speichern der Medienbibliothek! + + + Dateierweiterung darf nicht leer sein! + + + Datei existiert bereits! + + + Fehler beim Kopieren der Datei! + + + Fehler beim Verschieben der Datei! + + + Datei nicht gefunden! + + + Validierung + + + Genrename darf nicht leer sein! + + + Genrename darf maximal 50 Zeichen lang sein! + + + Genreliste darf nicht null sein! + + + Die Goodreads-ID muss numerisch sein! + + + Google Books-ID muss 12 Zeichen lang sein! + + + Bildqualität muss zwischen 0 und 100 liegen! + + + Ungültiges AppleBooks-ID-Format! + + + Ungültiges Barnes&Noble-ID-Format! + + + Ungültiges aktuelles Passwort! + + + Ungültiges Google Books-ID-Format! + + + Ungültiges ISBN10-Format! + + + Ungültiges ISBN13-Format! + + + Ungültiger ISO-Code! + + + Ungültiges LCCN-Format! + + + Ungültiges OCLC-Format! + + + Ungültige OpenLibrary-ID! + + + Ungültiges Passwort! + + + Ungültiger Pfad! + + + Ungültiger TOTP-Code! + + + Ungültiger Benutzername! + + + Ungültiger Benutzername oder Passwort! + + + ISBN-Liste darf nicht null sein! + + + ISBN-Wert darf nicht leer sein! + + + JWT-Zielgruppe darf nicht leer sein! + + + JWT-Ablaufzeit in Minuten muss positiv sein! + + + JWT-Aussteller darf nicht leer sein! + + + JWT-Geheimschlüssel darf nicht leer sein! + + + JWT-Geheimschlüssel zu kurz! + + + Sprachcode darf nicht leer sein! + + + Sprachcode muss 2 Zeichen lang sein! + + + Sprachname darf nicht leer sein! + + + Sprachname darf maximal 50 Zeichen lang sein! + + + Eigenname der Sprache darf maximal 50 Zeichen lang sein! + + + Bibliothek existiert bereits! + + + Bibliotheks-ID darf nicht leer sein! + + + Bibliothek nicht gefunden! + + + LibraryThing-ID darf maximal 50 Zeichen lang sein! + + + Bibliothekstyp darf nicht null sein! + + + Medien-Stammverzeichnis darf nicht leer sein! + + + Metadaten dürfen nicht null sein! + + + Name darf nicht leer sein! + + + Neues Passwort darf nicht leer sein! + + + Neue Passwortbestätigung darf nicht leer sein! + + + Sie sind nicht berechtigt, diese Ressource anzusehen! + + + Sie sind nicht berechtigt, diesen Vorgang auszuführen! + + + Die angegebene Ressource wurde nicht gefunden! + + + Kein Vorschaubild! + + + Ein oder mehrere Validierungsfehler sind aufgetreten + + + Originalveröffentlichungsdatum und -jahr müssen übereinstimmen! + + + Ursprüngliches Erscheinungsjahr muss zwischen 1 und 9999 liegen! + + + Originaltitel darf maximal 255 Zeichen lang sein! + + + Seitenzahl muss größer als null sein! + + + Übergeordneter Knoten darf nicht null sein! + + + Passwort darf nicht leer sein! + + + Passwortbestätigung darf nicht leer sein! + + + Passwortzurücksetzung wurde bereits angefordert! + + + Passwörter stimmen nicht überein! + + + Pfad darf nicht leer sein! + + + Der Pfad darf maximal 260 Zeichen lang s + + + Pfadliste darf nicht leer sein! + + + Pfadliste darf nicht null sein! + + + Die Berechtigungsliste darf nicht leer sein! + + + Die Berechtigungsliste darf nicht null sein! + + + Verlag darf maximal 100 Zeichen lang sein! + + + Maximaler Bewertungswert muss positiv sein! + + + Bewertungsliste darf nicht null sein! + + + Bewertungswert darf nicht größer als der Maximalwert sein! + + + Bewertungswert muss positiv sein! + + + Anzahl der Bewertungen muss positiv sein! + + + Veröffentlichungsinformationen dürfen nicht null sein! + + + Veröffentlichungsversion darf maximal 50 Zeichen lang sein! + + + Wiederveröffentlichungsdatum und -jahr müssen übereinstimmen! + + + Wiederveröffentlichungsdatum darf nicht vor dem ursprünglichen Veröffentlichungsdatum liegen! + + + Wiederveröffentlichungsjahr darf nicht vor dem ursprünglichen Erscheinungsjahr liegen! + + + Wiederveröffentlichungsjahr muss zwischen 1 und 9999 liegen! + + + Rolle existiert bereits! + + + Rollenkategorie darf nicht leer sein! + + + Rollenkategorie darf maximal 50 Zeichen lang sein! + + + Rollen-ID darf nicht leer sein! + + + Rollenname darf nicht leer sein! + + + Rollenname darf maximal 50 Zeichen lang sein! + + + Rolle nicht gefunden + + + Stream-ID darf nicht leer sein! + + + Schlagwort darf nicht leer sein! + + + Schlagwort darf maximal 50 Zeichen lang sein! + + + Schlagwortliste darf nicht null sein! + + + Temporäres Passwort ist abgelaufen! + + + Das Buch ist bereits in der Serie! + + + Das Buch ist nicht in der Serie! + + + Titel darf nicht leer sein! + + + Titel darf maximal 255 Zeichen lang sein! + + + Zu viele Anfragen! Bitte versuchen Sie es in 15 Minuten erneut! + + + Der TOTP-Code darf nicht leer sein! + + + Sie sind nicht berechtigt, auf diese Ressource zuzugreifen! + + + Unbekanntes Buchformat! + + + Unbekanntes ISBN-Format! + + + Unbekannter Bibliothekstyp! + + + Benutzer existiert bereits! + + + Benutzer existiert nicht! + + + Benutzer-ID darf nicht leer sein! + + + Benutzer muss entweder Rollen- oder direkte Berechtigungen haben! + + + Benutzername existiert bereits! + + + Benutzername darf nicht leer sein! + + + Benutzername existiert nicht! + + + Der Benutzername muss zwischen 3 und 255 Zeichen lang sein! + + + Bandnummer muss größer als null sein! + + + Die Coverdatei muss ein Bild sein! + + + Eine deaktivierte Bibliothek kann nicht gescannt werden! + + + Eine gesperrte Bibliothek kann nicht gescannt werden! + + + Nur ausstehende Scans können gestartet werden! + + + Nur laufende Scans können abgebrochen werden! + + + Scan-ID darf nicht leer sein! + + + Die Bibliothek wird bereits gescannt! + + + Gesamtanzahl der Scan-Aufträge muss positiv sein! + + + Anzahl der abgeschlossenen Scan-Aufträge muss positiv sein! + + + Die Anzahl der abgeschlossenen Scan-Aufträge darf die Gesamtanzahl der Scan-Aufträge nicht überschreiten! + + + Aktuelle Scan-Operation darf nicht leer sein! + + + Die Scan-ID der Bibliothek darf nicht leer sein! + + + Gesamtanzahl der Scan-Aufträge muss positiv sein! + + + Anzahl der abgeschlossenen Scan-Aufträge muss positiv sein! + + + Anzahl der abgeschlossenen Scan-Aufträge darf die Gesamtanzahl der Scan-Aufträge nicht überschreiten! + + + CORS-Origins dürfen nicht leer sein! + + + Ungültiger CORS-Origin! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx new file mode 100644 index 00000000..53a1ee57 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.en-US.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Admin account already created! + + + Admin role cannot be deleted! + + + Application theme cannot be empty! + + + ASIN must be 10 characters long! + + + Barnes&Nobles Id must be 10 characters long! + + + Bitrate must be a positive number! + + + Book already exists! + + + Cannot navigate up! + + + Cannot remove the last Admin role assigned to a user! + + + Codec cannot be empty! + + + Contributor display name cannot be empty! + + + Contributor display name must be maximum 100 characters long! + + + Contributor legal name must be maximum 100 characters long! + + + Contributor name cannot be empty! + + + Contributor role cannot be null! + + + Contributors list cannot be null! + + + Country code must be 2 characters long! + + + Current password cannot be empty! + + + Database connection string cannot be empty! + + + Description must be maximum 2000 characters long! + + + Directory already exists! + + + Error copying the directory! + + + Error moving the directory! + + + Directory not found! + + + Edition must be maximum 50 characters long! + + + Encryption secret key cannot be empty! + + + Encryption secret key must be a Base64 string! + + + Error persisting authorization role! + + + Error persisting media library! + + + Extension cannot be empty! + + + File already exists! + + + Error copying the file! + + + Error moving the file! + + + File not found! + + + Validation + + + Genre name cannot be empty! + + + Genre name must be maximum 50 characters long! + + + Genres list cannot be null! + + + Goodreads Id must be numeric! + + + Google Books Id must be 12 characters long! + + + Image quality must be between 0 and 100! + + + Invalid AppleBooks Id format! + + + Invalid Barnes&Nobles Id format! + + + Invalid current password! + + + Invalid Google Books Id format! + + + Invalid ISBN10 format! + + + Invalid ISBN13 format! + + + Invalid ISO code! + + + Invalid LCCN format! + + + Invalid OCLC format! + + + Invalid OpenLibrary Id! + + + Invalid password! + + + Invalid path! + + + Invalid TOTP code! + + + Invalid username! + + + Invalid username or password! + + + ISBN list cannot be null! + + + ISBN value cannot be empty! + + + JWT audience cannot be empty! + + + JWT expiry minutes must be positive! + + + JWT issuer cannot be empty! + + + JWT secret key cannot be empty! + + + JWT secret key too short! + + + Language code cannot be empty! + + + Language code must be 2 characters long! + + + Language name cannot be empty! + + + Language name must be maximum 50 characters long! + + + Language native name must be maximum 50 characters long! + + + Library already exists! + + + Library Id cannot be empty! + + + Library not found! + + + LibraryThing Id must be maximum 50 characters long! + + + Library type cannot be null! + + + Media root directory cannot be empty! + + + Metadata cannot be null! + + + Name cannot be empty! + + + New password cannot be empty! + + + New password confirm cannot be empty! + + + You are not authorized to view this resource! + + + You are not authorized to perform this operation! + + + Specified resource was not found! + + + No thumbnail! + + + One or more validation errors occurred + + + Original release date and year must match! + + + Original release year must be between 1 and 9999! + + + Original title must be maximum 255 characters long! + + + Page count must be greater than zero! + + + Parent node cannot be null! + + + Password cannot be empty! + + + Password confirm cannot be empty! + + + Password reset already requested! + + + Passwords do not match! + + + Path cannot be empty! + + + Path must be maximum 260 characters long! + + + Paths list cannot be empty! + + + Paths list cannot be null! + + + Permissions list cannot be empty! + + + Permissions list cannot be null! + + + Publisher must be maximum 100 characters long! + + + Rating maximum value must be positive! + + + Ratings list cannot be null! + + + Rating value cannot be greater than maximum value! + + + Rating value must be positive! + + + Rating vote count must be positive! + + + Release info cannot be null! + + + Release version must be maximum 50 characters long! + + + Re-release date and year must match! + + + Re-release date cannot be earlier than original release date! + + + Re-release year cannot be earlier than original release year! + + + Re-release year must be between 1 and 9999! + + + Role already exists! + + + Role category cannot be empty! + + + Role category must be maximum 50 characters long! + + + Role Id cannot be empty! + + + Role name cannot be empty! + + + Role name must be maximum 50 characters long! + + + Role not found + + + Stream Id cannot be empty! + + + Tag name cannot be empty! + + + Tag name must be maximum 50 characters long! + + + Tags list cannot be null! + + + Temporary password has expired! + + + The book is already in the series! + + + The book is not in the series! + + + Title cannot be empty! + + + Title must be maximum 255 characters long! + + + Too many requests! Please try again later! + + + The TOTP code cannot be empty! + + + You are not authorized to access this resource! + + + Unknown book format! + + + Unknown ISBN format! + + + Unknown library type! + + + User already exists! + + + User does not exist! + + + User Id cannot be empty! + + + User must have permissions either from role permissions or direct user permissions + + + Username already exists! + + + Username cannot be empty! + + + Username does not exist! + + + Username must be between 3 and 255 characters long! + + + Volume number must be greater than zero! + + + Cover file must be an image! + + + Cannot scan a disabled library! + + + Cannot scan a locked library! + + + Can only start pending scans! + + + Can only cancel running scans! + + + Scan Id cannot be empty! + + + Library is already being scanned! + + + Total scan job items count must be positive! + + + Completed scan job items count must be positive! + + + Completed scan job items count can't exceed total scan job items count! + + + Scan job current operation cannot be empty! + + + Library scan Id cannot be empty! + + + Total scan jobs count must be positive! + + + Completed scan jobs count must be positive! + + + Completed scan jobs count can't exceed total scan jobs count! + + + CORS origins cannot be empty! + + + CORS origin is invalid! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx new file mode 100644 index 00000000..5b86070e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.es-ES.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ¡La cuenta de administrador ya está creada! + + + ¡El rol de administrador no puede ser eliminado! + + + ¡El tema de la aplicación no puede estar vacío! + + + ¡El ASIN debe tener 10 caracteres! + + + ¡El ID de Barnes&Noble debe tener 10 caracteres! + + + ¡La tasa de bits debe ser un número positivo! + + + ¡El libro ya existe! + + + ¡No se puede navegar hacia arriba! + + + ¡No se puede eliminar el último rol de Admin asignado al usuario! + + + ¡El códec no puede estar vacío! + + + ¡El nombre mostrado del colaborador no puede estar vacío! + + + ¡El nombre mostrado del colaborador debe tener máximo 100 caracteres! + + + ¡El nombre legal del colaborador debe tener máximo 100 caracteres! + + + ¡El nombre del colaborador no puede estar vacío! + + + ¡El rol del colaborador no puede ser nulo! + + + ¡La lista de colaboradores no puede ser nula! + + + ¡El código de país debe tener 2 caracteres! + + + ¡La contraseña actual no puede estar vacía! + + + ¡La cadena de conexión a la base de datos no puede estar vacía! + + + ¡La descripción debe tener máximo 2000 caracteres! + + + ¡El directorio ya existe! + + + ¡Error al copiar el directorio! + + + ¡Error al mover el directorio! + + + ¡Directorio no encontrado! + + + ¡La edición debe tener máximo 50 caracteres! + + + ¡La clave secreta de cifrado no puede estar vacía! + + + ¡La clave secreta de cifrado debe ser una cadena Base64! + + + ¡Error al persistir el rol de autorización! + + + ¡Error al guardar la biblioteca multimedia! + + + ¡La extensión no puede estar vacía! + + + ¡El archivo ya existe! + + + Error al copiar el archivo! + + + ¡Error al mover el archivo! + + + ¡Archivo no encontrado! + + + Validación + + + ¡El nombre del género no puede estar vacío! + + + ¡El nombre del género debe tener máximo 50 caracteres! + + + ¡La lista de géneros no puede ser nula! + + + ¡El ID de Goodreads debe ser numérico! + + + ¡El ID de Google Books debe tener 12 caracteres! + + + ¡La calidad de la imagen debe estar entre 0 y 100! + + + ¡Formato de ID de Apple Books inválido! + + + ¡Formato de ID de Barnes&Noble inválido! + + + ¡Contraseña actual inválida! + + + ¡Formato de ID de Google Books inválido! + + + ¡Formato ISBN10 inválido! + + + ¡Formato ISBN13 inválido! + + + ¡Código ISO inválido! + + + ¡Formato LCCN inválido! + + + ¡Formato OCLC inválido! + + + ¡ID de OpenLibrary inválido! + + + ¡Contraseña inválida! + + + ¡Ruta no válida! + + + ¡Código TOTP inválido! + + + ¡Nombre de usuario inválido! + + + ¡Nombre de usuario o contraseña inválidos! + + + ¡La lista ISBN no puede ser nula! + + + ¡El valor ISBN no puede estar vacío! + + + ¡La audiencia JWT no puede estar vacía! + + + ¡Los minutos de expiración JWT deben ser positivos! + + + ¡El emisor JWT no puede estar vacío! + + + ¡La clave secreta JWT no puede estar vacía! + + + ¡La clave secreta JWT es demasiado corta! + + + ¡El código de idioma no puede estar vacío! + + + ¡El código de idioma debe tener 2 caracteres! + + + ¡El nombre del idioma no puede estar vacío! + + + ¡El nombre del idioma debe tener máximo 50 caracteres! + + + ¡El nombre nativo del idioma debe tener máximo 50 caracteres! + + + ¡La biblioteca ya existe! + + + ¡El ID de la biblioteca no puede estar vacío! + + + ¡Biblioteca no encontrada! + + + ¡El ID de LibraryThing debe tener máximo 50 caracteres! + + + ¡El tipo de biblioteca no puede ser nulo! + + + ¡El directorio raíz de medios no puede estar vacío! + + + ¡Los metadatos no pueden ser nulos! + + + ¡El nombre no puede estar vacío! + + + ¡La nueva contraseña no puede estar vacía! + + + ¡La confirmación de la nueva contraseña no puede estar vacía! + + + ¡No estás autorizado para ver este recurso! + + + ¡No está autorizado para realizar esta operación! + + + ¡El recurso especificado no fue encontrado! + + + ¡Sin miniatura! + + + Se produjeron uno o más errores de validación + + + ¡La fecha y el año de lanzamiento original deben coincidir! + + + ¡El año de lanzamiento original debe estar entre 1 y 9999! + + + ¡El título original debe tener máximo 255 caracteres! + + + ¡El número de páginas debe ser mayor que cero! + + + ¡El nodo padre no puede ser nulo! + + + ¡La contraseña no puede estar vacía! + + + ¡La confirmación de contraseña no puede estar vacía! + + + ¡El restablecimiento de contraseña ya ha sido solicitado! + + + ¡Las contraseñas no coinciden! + + + ¡La ruta no puede estar vacía! + + + ¡La ruta no debe exceder los 260 caracteres! + + + ¡La lista de rutas no puede estar vacía! + + + ¡La lista de rutas no puede ser nula! + + + ¡La lista de permisos no puede estar vacía! + + + ¡La lista de permisos no puede ser nula! + + + ¡El nombre de la editorial debe tener máximo 100 caracteres! + + + ¡El valor máximo de la calificación debe ser positivo! + + + ¡La lista de calificaciones no puede ser nula! + + + ¡El valor de la calificación no puede ser mayor que el valor máximo! + + + ¡El valor de la calificación debe ser positivo! + + + ¡El número de votos de calificación debe ser positivo! + + + ¡La información de lanzamiento no puede ser nula! + + + ¡La versión de lanzamiento debe tener máximo 50 caracteres! + + + ¡La fecha y el año de relanzamiento deben coincidir! + + + ¡La fecha de relanzamiento no puede ser anterior a la fecha de lanzamiento original! + + + ¡El año de relanzamiento no puede ser anterior al año de lanzamiento original! + + + ¡El año de relanzamiento debe estar entre 1 y 9999! + + + ¡El rol ya existe! + + + ¡La categoría del rol no puede estar vacía! + + + ¡La categoría del rol debe tener máximo 50 caracteres! + + + ¡El ID del rol no puede estar vacío! + + + ¡El nombre del rol no puede estar vacío! + + + ¡El nombre del rol debe tener máximo 50 caracteres! + + + Rol no encontrado + + + ¡El ID del flujo no puede estar vacío! + + + ¡El nombre de la etiqueta no puede estar vacío! + + + ¡El nombre de la etiqueta debe tener máximo 50 caracteres! + + + ¡La lista de etiquetas no puede ser nula! + + + ¡La contraseña temporal ha expirado! + + + ¡El libro ya está en la serie! + + + ¡El libro no está en la serie! + + + ¡El título no puede estar vacío! + + + ¡El título debe tener máximo 255 caracteres! + + + ¡Demasiadas solicitudes! ¡Por favor, inténtelo en 15 minutos! + + + ¡El código TOTP no puede estar vacío! + + + ¡No está autorizado para acceder a este recurso! + + + ¡Formato de libro desconocido! + + + ¡Formato ISBN desconocido! + + + ¡Tipo de biblioteca desconocido! + + + ¡El usuario ya existe! + + + ¡El usuario no existe! + + + ¡El ID de usuario no puede estar vacío! + + + ¡El usuario debe tener permisos de rol o permisos directos! + + + ¡El nombre de usuario ya existe! + + + ¡El nombre de usuario no puede estar vacío! + + + ¡El nombre de usuario no existe! + + + ¡El nombre de usuario debe tener entre 3 y 255 caracteres! + + + ¡El número de volumen debe ser mayor que cero! + + + ¡El archivo de portada debe ser una imagen! + + + ¡No se puede escanear una biblioteca desactivada! + + + ¡No se puede escanear una biblioteca bloqueada! + + + ¡Solo se pueden iniciar escaneos pendientes! + + + ¡Solo se pueden cancelar los escaneos en ejecución! + + + ¡El ID de escaneo no puede estar vacío! + + + ¡La biblioteca ya está siendo escaneada! + + + ¡El número total de elementos a escanear debe ser positivo! + + + ¡El número de elementos escaneados completados debe ser positivo! + + + ¡El número de elementos escaneados completados no puede exceder el número total de elementos a escanear! + + + ¡La operación actual del escaneo no puede estar vacía! + + + ¡El ID de escaneo de la biblioteca no puede estar vacío! + + + ¡El número total de trabajos de escaneo debe ser positivo! + + + ¡El número de trabajos de escaneo completados debe ser positivo! + + + ¡El número de trabajos de escaneo completados no puede exceder el número total de trabajos de escaneo! + + + ¡Las origines CORS no pueden estar vacías! + + + ¡Origen CORS no válido! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx new file mode 100644 index 00000000..b100f70c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.fr-FR.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Le compte administrateur existe déjà! + + + Le rôle d'administrateur ne peut pas être supprimé ! + + + Le thème de l'application ne peut pas être vide! + + + L'ASIN doit faire 10 caractères ! + + + L'identifiant Barnes&Noble doit faire 10 caractères ! + + + Le débit doit être un nombre positif ! + + + Le livre existe déjà ! + + + Impossible de remonter le dossier ! + + + Impossible de supprimer le dernier rôle Admin attribué à l'utilisateur! + + + Le codec ne peut pas être vide ! + + + Le nom d'affichage du contributeur ne peut pas être vide ! + + + Le nom d'affichage du contributeur ne doit pas dépasser 100 caractères ! + + + Le nom légal du contributeur ne doit pas dépasser 100 caractères ! + + + Le nom du contributeur ne peut pas être vide ! + + + Le rôle du contributeur ne peut pas être nul ! + + + La liste des contributeurs ne peut pas être nulle ! + + + Le code pays doit faire 2 caractères ! + + + Le mot de passe actuel ne peut pas être vide! + + + La chaîne de connexion à la base de données ne peut pas être vide! + + + La description ne doit pas dépasser 2000 caractères ! + + + Le répertoire existe déjà ! + + + Erreur lors de la copie du répertoire! + + + Erreur lors du déplacement du répertoire! + + + Répertoire introuvable ! + + + L'édition ne doit pas dépasser 50 caractères ! + + + La clé secrète de chiffrement ne peut pas être vide! + + + La clé secrète de chiffrement doit être une chaîne Base64! + + + Erreur lors de la persistance du rôle d'autorisation ! + + + Erreur lors de l'enregistrement de la bibliothèque multimédia! + + + L'extension ne peut pas être vide ! + + + Le fichier existe déjà ! + + + Erreur lors de la copie du fichier! + + + Erreur lors du déplacement du fichier! + + + Fichier introuvable! + + + Validation + + + Le nom du genre ne peut pas être vide ! + + + Le nom du genre ne doit pas dépasser 50 caractères ! + + + La liste des genres ne peut pas être nulle ! + + + L'identifiant Goodreads doit être numérique ! + + + L'identifiant Google Books doit faire 12 caractères ! + + + La qualité de l'image doit être comprise entre 0 et 100 ! + + + Format d'identifiant Apple Books invalide ! + + + Format d'identifiant Barnes&Noble invalide ! + + + Mot de passe actuel invalide! + + + Format d'identifiant Google Books invalide ! + + + Format ISBN10 invalide ! + + + Format ISBN13 invalide ! + + + Code ISO invalide ! + + + Format LCCN invalide ! + + + Format OCLC invalide ! + + + Identifiant OpenLibrary invalide ! + + + Mot de passe invalide! + + + Chemin invalide ! + + + Code TOTP invalide! + + + Nom d'utilisateur invalide! + + + Nom d'utilisateur ou mot de passe invalide! + + + La liste des ISBN ne peut pas être nulle ! + + + La valeur ISBN ne peut pas être vide ! + + + L'audience JWT ne peut pas être vide! + + + La durée d'expiration JWT en minutes doit être positive! + + + L'émetteur JWT ne peut pas être vide! + + + La clé secrète JWT ne peut pas être vide! + + + La clé secrète JWT est trop courte! + + + Le code de langue ne peut pas être vide ! + + + Le code de langue doit faire 2 caractères ! + + + Le nom de la langue ne peut pas être vide ! + + + Le nom de la langue ne doit pas dépasser 50 caractères ! + + + Le nom natif de la langue ne doit pas dépasser 50 caractères ! + + + La bibliothèque existe déjà ! + + + L'identifiant de la bibliothèque ne peut pas être vide ! + + + Bibliothèque introuvable ! + + + L'identifiant LibraryThing ne doit pas dépasser 50 caractères ! + + + Le type de bibliothèque ne peut pas être nul ! + + + Le répertoire racine des médias ne peut pas être vide! + + + Les métadonnées ne peuvent pas être nulles ! + + + Le nom ne peut pas être vide ! + + + Le nouveau mot de passe ne peut pas être vide! + + + La confirmation du nouveau mot de passe ne peut pas être vide! + + + Vous n'êtes pas autorisé à voir cette ressource ! + + + Vous n'êtes pas autorisé à effectuer cette opération! + + + La ressource spécifiée n'a pas été trouvée ! + + + Pas de vignette ! + + + Une ou plusieurs erreurs de validation sont survenues + + + La date et l'année de sortie originale doivent correspondre ! + + + L'année de sortie originale doit être comprise entre 1 et 9999 ! + + + Le titre original ne doit pas dépasser 255 caractères ! + + + Le nombre de pages doit être supérieur à zéro ! + + + Le nœud parent ne peut pas être nul! + + + Le mot de passe ne peut pas être vide! + + + La confirmation du mot de passe ne peut pas être vide! + + + La réinitialisation du mot de passe a déjà été demandée! + + + Les mots de passe ne correspondent pas! + + + Le chemin ne peut pas être vide ! + + + Le chemin ne doit pas dépasser 260 caractères! + + + La liste des chemins ne peut pas être vide ! + + + La liste des chemins ne peut pas être nulle ! + + + La liste des permissions ne peut pas être vide ! + + + La liste des permissions ne peut pas être nulle ! + + + Le nom de l'éditeur ne doit pas dépasser 100 caractères ! + + + La valeur maximale de l'évaluation doit être positive ! + + + La liste des évaluations ne peut pas être nulle ! + + + La valeur de l'évaluation ne peut pas être supérieure à la valeur maximale ! + + + La valeur de l'évaluation doit être positive ! + + + Le nombre de votes d'évaluation doit être positif ! + + + Les informations de sortie ne peuvent pas être nulles ! + + + La version de sortie ne doit pas dépasser 50 caractères ! + + + La date et l'année de réédition doivent correspondre ! + + + La date de réédition ne peut pas être antérieure à la date de sortie originale ! + + + L'année de réédition ne peut pas être antérieure à l'année de sortie originale ! + + + L'année de réédition doit être comprise entre 1 et 9999 ! + + + Le rôle existe déjà ! + + + La catégorie du rôle ne peut pas être vide ! + + + La catégorie du rôle ne doit pas dépasser 50 caractères ! + + + L'ID du rôle ne peut pas être vide ! + + + Le nom du rôle ne peut pas être vide ! + + + Le nom du rôle ne doit pas dépasser 50 caractères ! + + + Rôle non trouvé + + + L'identifiant du flux ne peut pas être vide ! + + + Le nom de l'étiquette ne peut pas être vide ! + + + Le nom de l'étiquette ne doit pas dépasser 50 caractères ! + + + La liste des étiquettes ne peut pas être nulle ! + + + Le mot de passe temporaire a expiré! + + + Le livre est déjà dans la série ! + + + Le livre n'est pas dans la série ! + + + Le titre ne peut pas être vide ! + + + Le titre ne doit pas dépasser 255 caractères ! + + + Trop de requêtes ! Veuillez réessayer dans 15 minutes ! + + + Le code TOTP ne peut pas être vide! + + + Vous n'êtes pas autorisé à accéder à cette ressource ! + + + Format de livre inconnu ! + + + Format ISBN inconnu ! + + + Type de bibliothèque inconnu ! + + + L'utilisateur existe déjà ! + + + L'utilisateur n'existe pas ! + + + L'identifiant utilisateur ne peut pas être vide ! + + + L'utilisateur doit avoir des permissions de rôle ou des permissions directes! + + + Le nom d'utilisateur existe déjà! + + + Le nom d'utilisateur ne peut pas être vide! + + + Le nom d'utilisateur n'existe pas! + + + Le nom d'utilisateur doit contenir entre 3 et 255 caractères! + + + Le numéro de volume doit être supérieur à zéro ! + + + Le fichier de couverture doit être une image! + + + Impossible de scanner une bibliothèque désactivée! + + + Impossible de scanner une bibliothèque verrouillée! + + + Seuls les scans en attente peuvent être démarrés ! + + + Seuls les scans en cours peuvent être annulés ! + + + L'ID de scan ne peut pas être vide ! + + + La bibliothèque est déjà en cours de scan ! + + + Le nombre total d'éléments à scanner doit être positif ! + + + Le nombre d'éléments scannés terminés doit être positif ! + + + Le nombre d'éléments scannés terminés ne peut pas dépasser le nombre total d'éléments à scanner ! + + + L'opération actuelle du scan ne peut pas être vide ! + + + L'ID de scan de la bibliothèque ne peut pas être vide! + + + Le nombre total de tâches de scan doit être positif ! + + + Le nombre de tâches de scan terminées doit être positif ! + + + Le nombre de tâches de scan terminées ne peut pas dépasser le nombre total de tâches de scan ! + + + Les origines CORS ne peuvent pas être vides ! + + + Origine CORS invalide ! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx new file mode 100644 index 00000000..16584872 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.it-IT.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + L'account amministratore è già stato creato! + + + Il ruolo di amministratore non può essere eliminato! + + + Il tema dell'applicazione non può essere vuoto! + + + L'ASIN deve essere lungo 10 caratteri! + + + L'ID Barnes&Noble deve essere lungo 10 caratteri! + + + Il bitrate deve essere un numero positivo! + + + Il libro esiste già! + + + Impossibile navigare verso l'alto! + + + Impossibile rimuovere l'ultimo ruolo Admin assegnato all'utente! + + + Il codec non può essere vuoto! + + + Il nome visualizzato del contributore non può essere vuoto! + + + Il nome visualizzato del contributore deve essere lungo al massimo 100 caratteri! + + + Il nome legale del contributore deve essere lungo al massimo 100 caratteri! + + + Il nome del contributore non può essere vuoto! + + + Il ruolo del contributore non può essere nullo! + + + La lista dei contributori non può essere nulla! + + + Il codice paese deve essere lungo 2 caratteri! + + + La password attuale non può essere vuota! + + + La stringa di connessione al database non può essere vuota! + + + La descrizione deve essere lunga al massimo 2000 caratteri! + + + La cartella esiste già! + + + Errore durante la copia della cartella! + + + Errore durante lo spostamento della cartella! + + + Cartella non trovata! + + + L'edizione deve essere lunga al massimo 50 caratteri! + + + La chiave segreta di crittografia non può essere vuota! + + + La chiave segreta di crittografia deve essere una stringa Base64! + + + Errore nel salvare il ruolo di autorizzazione! + + + Errore durante il salvataggio della libreria multimediale! + + + L'estensione non può essere vuota! + + + Il file esiste già! + + + Errore durante la copia del file! + + + Errore durante lo spostamento del file! + + + File non trovato! + + + Convalida + + + Il nome del genere non può essere vuoto! + + + Il nome del genere deve essere lungo al massimo 50 caratteri! + + + La lista dei generi non può essere nulla! + + + L'ID Goodreads deve essere numerico! + + + L'ID di Google Books deve essere lungo 12 caratteri! + + + La qualità dell'immagine deve essere compresa tra 0 e 100! + + + Formato ID Apple Books non valido! + + + Formato ID Barnes&Noble non valido! + + + Password attuale non valida! + + + Formato ID Google Books non valido! + + + Formato ISBN10 non valido! + + + Formato ISBN13 non valido! + + + Codice ISO non valido! + + + Formato LCCN non valido! + + + Formato OCLC non valido! + + + ID OpenLibrary non valido! + + + Password non valida! + + + Percorso non valido! + + + Codice TOTP non valido! + + + Nome utente non valido! + + + Nome utente o password non validi! + + + La lista ISBN non può essere nulla! + + + Il valore ISBN non può essere vuoto! + + + Il destinatario JWT non può essere vuoto! + + + I minuti di scadenza JWT devono essere positivi! + + + L'emittente JWT non può essere vuoto! + + + La chiave segreta JWT non può essere vuota! + + + La chiave segreta JWT è troppo corta! + + + Il codice della lingua non può essere vuoto! + + + Il codice della lingua deve essere lungo 2 caratteri! + + + Il nome della lingua non può essere vuoto! + + + Il nome della lingua deve essere lungo al massimo 50 caratteri! + + + Il nome nativo della lingua deve essere lungo al massimo 50 caratteri! + + + La libreria esiste già! + + + L'ID della libreria non può essere vuoto! + + + Libreria non trovata! + + + L'ID LibraryThing deve essere lungo al massimo 50 caratteri! + + + Il tipo di libreria non può essere nullo! + + + La directory principale dei media non può essere vuota! + + + I metadati non possono essere nulli! + + + Il nome non può essere vuoto! + + + La nuova password non può essere vuota! + + + La conferma della nuova password non può essere vuota! + + + Non sei autorizzato a visualizzare questa risorsa! + + + Non sei autorizzato a eseguire questa operazione! + + + La risorsa specificata non è stata trovata! + + + Nessuna miniatura! + + + Si sono verificati uno o più errori di convalida + + + La data e l'anno di uscita originale devono corrispondere! + + + L'anno di uscita originale deve essere compreso tra 1 e 9999! + + + Il titolo originale deve essere lungo al massimo 255 caratteri! + + + Il numero di pagine deve essere maggiore di zero! + + + Il nodo padre non può essere nullo! + + + La password non può essere vuota! + + + La conferma della password non può essere vuota! + + + Il ripristino della password è già stato richiesto! + + + Le password non coincidono! + + + Il percorso non può essere vuoto! + + + Il percorso non deve superare i 260 caratteri! + + + La lista dei percorsi non può essere vuota! + + + La lista dei percorsi non può essere nulla! + + + L'elenco dei permessi non può essere vuoto! + + + L'elenco dei permessi non può essere nullo! + + + Il nome dell'editore deve essere lungo al massimo 100 caratteri! + + + Il valore massimo della valutazione deve essere positivo! + + + La lista delle valutazioni non può essere nulla! + + + Il valore della valutazione non può essere superiore al valore massimo! + + + Il valore della valutazione deve essere positivo! + + + Il numero di voti della valutazione deve essere positivo! + + + Le informazioni di rilascio non possono essere nulle! + + + La versione di rilascio deve essere lunga al massimo 50 caratteri! + + + La data e l'anno di ripubblicazione devono corrispondere! + + + La data di ripubblicazione non può essere precedente alla data di uscita originale! + + + L'anno di ripubblicazione non può essere precedente all'anno di uscita originale! + + + L'anno di ripubblicazione deve essere compreso tra 1 e 9999! + + + Il ruolo esiste già! + + + La categoria del ruolo non può essere vuota! + + + La categoria del ruolo deve essere lunga al massimo 50 caratteri! + + + L'ID del ruolo non può essere vuoto! + + + Il nome del ruolo non può essere vuoto! + + + Il nome del ruolo deve essere lungo al massimo 50 caratteri! + + + Ruolo non trovato + + + L'ID del flusso non può essere vuoto! + + + Il nome del tag non può essere vuoto! + + + Il nome del tag deve essere lungo al massimo 50 caratteri! + + + La lista dei tag non può essere nulla! + + + La password temporanea è scaduta! + + + Il libro è già presente nella serie! + + + Il libro non è presente nella serie! + + + Il titolo non può essere vuoto! + + + Il titolo deve essere lungo al massimo 255 caratteri! + + + Troppe richieste! Si prega di riprovare tra 15 minuti! + + + Il codice TOTP non può essere vuoto! + + + Non sei autorizzato ad accedere a questa risorsa! + + + Formato libro sconosciuto! + + + Formato ISBN sconosciuto! + + + Tipo di libreria sconosciuto! + + + L'utente esiste già! + + + L'utente non esiste! + + + L'ID utente non può essere vuoto! + + + L'utente deve avere permessi da ruolo o permessi diretti! + + + Il nome utente esiste già! + + + Il nome utente non può essere vuoto! + + + Il nome utente non esiste! + + + Il nome utente deve essere compreso tra 3 e 255 caratteri! + + + Il numero del volume deve essere maggiore di zero! + + + Il file di copertina deve essere un'immagine! + + + Impossibile scansionare una libreria disabilitata! + + + Impossibile scansionare una libreria bloccata! + + + È possibile avviare solo le scansioni in sospeso! + + + È possibile annullare solo le scansioni in esecuzione! + + + L'ID della scansione non può essere vuoto! + + + La libreria è già in fase di scansione! + + + Il numero totale degli elementi da scansionare deve essere positivo! + + + Il numero di elementi scansionati completati deve essere positivo! + + + Il numero di elementi scansionati completati non può superare il numero totale di elementi da scansionare! + + + L'operazione corrente della scansione non può essere vuota! + + + L'ID della scansione della libreria non può essere vuoto! + + + Il numero totale dei lavori di scansione deve essere positivo! + + + Il numero dei lavori di scansione completati deve essere positivo! + + + Il numero dei lavori di scansione completati non può superare il numero totale dei lavori di scansione! + + + Le origini CORS non possono essere vuote! + + + Origine CORS non valida! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx new file mode 100644 index 00000000..5f1e06e0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ja-JP.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 管理者アカウントは既に作成されています! + + + 管理者ロールは削除できません! + + + アプリケーションのテーマを選択してください! + + + ASINは10文字でなければなりません! + + + Barnes&NobleのIDは10文字でなければなりません! + + + ビットレートは正の数でなければなりません! + + + 本はすでに存在します! + + + 上の階層に移動できません! + + + 最後の管理者権限を削除できません! + + + コーデックを空にすることはできません! + + + 出演者の表示名を空にすることはできません! + + + 出演者の表示名は最大100文字までです! + + + 出演者の本名は最大100文字までです! + + + 出演者名を空にすることはできません! + + + 出演者の役割をnullにすることはできません! + + + 出演者リストをnullにすることはできません! + + + 国コードは2文字でなければなりません! + + + 現在のパスワードを入力してください! + + + データベース接続文字列を入力してください! + + + 説明文は最大2000文字までです! + + + ディレクトリはすでに存在します! + + + ディレクトリのコピーに失敗しました! + + + ディレクトリの移動に失敗しました! + + + ディレクトリが見つかりません! + + + 版の名称は最大50文字までです! + + + 暗号化シークレットキーを入力してください! + + + 暗号化シークレットキーはBase64形式の文字列である必要があります! + + + 認可ロールの保存中にエラーが発生しました! + + + メディアライブラリの保存に失敗しました! + + + ファイルの拡張子を空にすることはできません! + + + ファイルはすでに存在します! + + + ファイルのコピーに失敗しました! + + + ファイルの移動に失敗しました! + + + ファイルが見つかりません! + + + 検証 + + + ジャンル名を空にすることはできません! + + + ジャンル名は最大50文字までです! + + + ジャンルリストをnullにすることはできません! + + + GoodreadsのIDは数値でなければなりません! + + + Google BooksのIDは12文字でなければなりません! + + + 画質は0から100の間でなければなりません! + + + Apple BooksのID形式が無効です! + + + Barnes&NobleのID形式が無効です! + + + 現在のパスワードが無効です! + + + Google BooksのID形式が無効です! + + + 無効なISBN10形式です! + + + 無効なISBN13形式です! + + + 無効なISOコードです! + + + 無効なLCCN形式です! + + + 無効なOCLC形式です! + + + OpenLibraryのIDが無効です! + + + パスワードが無効です! + + + 無効なパスです! + + + TOTPコードが無効です! + + + ユーザー名が無効です! + + + ユーザー名またはパスワードが無効です! + + + ISBNリストをnullにすることはできません! + + + ISBN値を空にすることはできません! + + + JWT対象者を入力してください! + + + JWT有効期限(分)は正の値である必要があります! + + + JWT発行者を入力してください! + + + JWT秘密鍵を入力してください! + + + JWT秘密鍵が短すぎます! + + + 言語コードを空にすることはできません! + + + 言語コードは2文字でなければなりません! + + + 言語名を空にすることはできません! + + + 言語名は最大50文字までです! + + + 言語の固有名は最大50文字までです! + + + ライブラリはすでに存在します! + + + ライブラリIDを空にすることはできません! + + + ライブラリが見つかりません! + + + LibraryThingのIDは最大50文字までです! + + + ライブラリタイプをnullにすることはできません! + + + メディアのルートディレクトリを入力してください! + + + メタデータをnullにすることはできません! + + + 名前を空にすることはできません! + + + 新しいパスワードを入力してください! + + + 新しいパスワードの確認を入力してください! + + + このリソースを表示する権限がありません! + + + この操作を実行する権限がありません! + + + 指定されたリソースが見つかりませんでした! + + + サムネイルがありません! + + + 一つ以上の検証エラーが発生しました + + + 公開日と公開年が一致しなければなりません! + + + 公開年は1から9999の間でなければなりません! + + + 原題は最大255文字までです! + + + ページ数は0より大きくなければなりません! + + + 親ノードをnullにすることはできません! + + + パスワードを入力してください! + + + パスワード確認を入力してください! + + + パスワードリセットは既に申請済みです! + + + パスワードが一致しません! + + + パスを空にすることはできません! + + + パスは最大260文字までです! + + + パスリストを空にすることはできません! + + + パスリストをnullにすることはできません! + + + 権限リストは空にできません! + + + 権限リストはnullにできません! + + + 出版社名は最大100文字までです! + + + 評価の最大値は正の数でなければなりません! + + + 評価リストをnullにすることはできません! + + + 評価値は最大値を超えることはできません! + + + 評価値は正の数でなければなりません! + + + 評価の投票数は正の数でなければなりません! + + + リリース情報をnullにすることはできません! + + + リリースバージョンは最大50文字までです! + + + 再公開日と再公開年が一致しなければなりません! + + + 再公開日は公開日より前であってはなりません! + + + 再公開年は公開年より前であってはなりません! + + + 再公開年は1から9999の間でなければなりません! + + + ロールはすでに存在します! + + + 役割カテゴリを空にすることはできません! + + + 役割カテゴリは最大50文字までです! + + + ロールIDは空にできません! + + + 役割名を空にすることはできません! + + + 役割名は最大50文字までです! + + + ロールが見つかりません + + + ストリームIDを空にすることはできません! + + + タグ名を空にすることはできません! + + + タグ名は最大50文字までです! + + + タグリストをnullにすることはできません! + + + 仮パスワードの有効期限が切れました! + + + この本はすでにシリーズに含まれています! + + + この本はシリーズに含まれていません! + + + タイトルを空にすることはできません! + + + タイトルは最大255文字までです! + + + リクエストが多すぎます!15分後にもう一度お試しください! + + + TOTPコードを入力してください! + + + このリソースにアクセスする権限がありません! + + + 不明な書籍フォーマットです! + + + 不明なISBN形式です! + + + ライブラリタイプが不明です! + + + ユーザーはすでに存在します! + + + ユーザーが存在しません! + + + ユーザーIDを空にすることはできません! + + + ユーザーにはロール権限か直接権限のいずれかが必要です! + + + このユーザー名は既に使用されています! + + + ユーザー名を入力してください! + + + このユーザー名は存在しません! + + + ユーザー名は3文字から255文字の間で入力してください! + + + 巻数は0より大きくなければなりません! + + + カバーファイルは画像である必要があります! + + + 無効化されたライブラリはスキャンできません! + + + ロックされたライブラリはスキャンできません! + + + 保留中のスキャンのみ開始できます! + + + 実行中のスキャンのみキャンセル可能です! + + + スキャンIDを空にすることはできません! + + + ライブラリは既にスキャン中です! + + + スキャン項目の合計数は正の値でなければなりません! + + + 完了したスキャン項目数は正の値でなければなりません! + + + 完了したスキャン項目数は合計スキャン項目数を超えることはできません! + + + スキャンの現在の操作を空にすることはできません! + + + ライブラリスキャンIDを空にすることはできません! + + + スキャンジョブの合計数は正の値でなければなりません! + + + 完了したスキャンジョブ数は正の値でなければなりません! + + + 完了したスキャンジョブ数は合計スキャンジョブ数を超えることはできません! + + + CORSオリジンは空ではいけません! + + + CORSオリジンが無効です! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx new file mode 100644 index 00000000..1c28604f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Admin account already created! + + + Admin role cannot be deleted! + + + Application theme cannot be empty! + + + ASIN must be 10 characters long! + + + Barnes&Nobles Id must be 10 characters long! + + + Bitrate must be a positive number! + + + Book already exists! + + + Cannot navigate up! + + + Cannot remove the last Admin role assigned to a user! + + + Codec cannot be empty! + + + Contributor display name cannot be empty! + + + Contributor display name must be maximum 100 characters long! + + + Contributor legal name must be maximum 100 characters long! + + + Contributor name cannot be empty! + + + Contributor role cannot be null! + + + Contributors list cannot be null! + + + Country code must be 2 characters long! + + + Current password cannot be empty! + + + Database connection string cannot be empty! + + + Description must be maximum 2000 characters long! + + + Directory already exists! + + + Error copying the directory! + + + Error moving the directory! + + + Directory not found! + + + Edition must be maximum 50 characters long! + + + Encryption secret key cannot be empty! + + + Encryption secret key must be a Base64 string! + + + Error persisting authorization role! + + + Error persisting media library! + + + Extension cannot be empty! + + + File already exists! + + + Error copying the file! + + + Error moving the file! + + + File not found! + + + Validation + + + Genre name cannot be empty! + + + Genre name must be maximum 50 characters long! + + + Genres list cannot be null! + + + Goodreads Id must be numeric! + + + Google Books Id must be 12 characters long! + + + Image quality must be between 0 and 100! + + + Invalid AppleBooks Id format! + + + Invalid Barnes&Nobles Id format! + + + Invalid current password! + + + Invalid Google Books Id format! + + + Invalid ISBN10 format! + + + Invalid ISBN13 format! + + + Invalid ISO code! + + + Invalid LCCN format! + + + Invalid OCLC format! + + + Invalid OpenLibrary Id! + + + Invalid password! + + + Invalid path! + + + Invalid TOTP code! + + + Invalid username! + + + Invalid username or password! + + + ISBN list cannot be null! + + + ISBN value cannot be empty! + + + JWT audience cannot be empty! + + + JWT expiry minutes must be positive! + + + JWT issuer cannot be empty! + + + JWT secret key cannot be empty! + + + JWT secret key too short! + + + Language code cannot be empty! + + + Language code must be 2 characters long! + + + Language name cannot be empty! + + + Language name must be maximum 50 characters long! + + + Language native name must be maximum 50 characters long! + + + Library already exists! + + + Library Id cannot be empty! + + + Library not found! + + + LibraryThing Id must be maximum 50 characters long! + + + Library type cannot be null! + + + Media root directory cannot be empty! + + + Metadata cannot be null! + + + Name cannot be empty! + + + New password cannot be empty! + + + New password confirm cannot be empty! + + + You are not authorized to view this resource! + + + You are not authorized to perform this operation! + + + Specified resource was not found! + + + No thumbnail! + + + One or more validation errors occurred + + + Original release date and year must match! + + + Original release year must be between 1 and 9999! + + + Original title must be maximum 255 characters long! + + + Page count must be greater than zero! + + + Parent node cannot be null! + + + Password cannot be empty! + + + Password confirm cannot be empty! + + + Password reset already requested! + + + Passwords do not match! + + + Path cannot be empty! + + + Path must be maximum 260 characters long! + + + Paths list cannot be empty! + + + Paths list cannot be null! + + + Permissions list cannot be empty! + + + Permissions list cannot be null! + + + Publisher must be maximum 100 characters long! + + + Rating maximum value must be positive! + + + Ratings list cannot be null! + + + Rating value cannot be greater than maximum value! + + + Rating value must be positive! + + + Rating vote count must be positive! + + + Release info cannot be null! + + + Release version must be maximum 50 characters long! + + + Re-release date and year must match! + + + Re-release date cannot be earlier than original release date! + + + Re-release year cannot be earlier than original release year! + + + Re-release year must be between 1 and 9999! + + + Role already exists! + + + Role category cannot be empty! + + + Role category must be maximum 50 characters long! + + + Role Id cannot be empty! + + + Role name cannot be empty! + + + Role name must be maximum 50 characters long! + + + Role not found + + + Stream Id cannot be empty! + + + Tag name cannot be empty! + + + Tag name must be maximum 50 characters long! + + + Tags list cannot be null! + + + Temporary password has expired! + + + The book is already in the series! + + + The book is not in the series! + + + Title cannot be empty! + + + Title must be maximum 255 characters long! + + + Too many requests! Please try again in 15 minutes! + + + The TOTP code cannot be empty! + + + You are not authorized to access this resource! + + + Unknown book format! + + + Unknown ISBN format! + + + Unknown library type! + + + User already exists! + + + User does not exist! + + + User Id cannot be empty! + + + User must have permissions either from role permissions or direct user permissions + + + Username already exists! + + + Username cannot be empty! + + + Username does not exist! + + + Username must be between 3 and 255 characters long! + + + Volume number must be greater than zero! + + + Cover file must be an image! + + + Cannot scan a disabled library! + + + Cannot scan a locked library! + + + Can only start pending scans! + + + Can only cancel running scans! + + + Scan Id cannot be empty! + + + Library is already being scanned! + + + Total scan job items count must be positive! + + + Completed scan job items count must be positive! + + + Completed scan job items count can't exceed total scan job items count! + + + Scan job current operation cannot be empty! + + + Library scan Id cannot be empty! + + + Total scan jobs count must be positive! + + + Completed scan jobs count must be positive! + + + Completed scan jobs count can't exceed total scan jobs count! + + + CORS origins cannot be empty! + + + CORS origin is invalid! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx new file mode 100644 index 00000000..c526acfc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ro-RO.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Contul de administrator a fost deja creat! + + + Rolul de administrator nu poate fi șters! + + + Tema aplicației nu poate fi goală! + + + ASIN trebuie să aibă 10 caractere! + + + ID-ul Barnes&Noble trebuie să aibă 10 caractere! + + + Rata de biți trebuie să fie un număr pozitiv! + + + Cartea există deja! + + + Nu se poate naviga în sus! + + + Nu se poate elimina ultimul rol de Admin atribuit unui utilizator! + + + Codecul nu poate fi gol! + + + Numele de afișare al contributorului nu poate fi gol! + + + Numele de afișare al contributorului trebuie să aibă maximum 100 caractere! + + + Numele legal al contributorului trebuie să aibă maximum 100 caractere! + + + Numele contributorului nu poate fi gol! + + + Rolul contributorului nu poate fi nul! + + + Lista contributorilor nu poate fi nulă! + + + Codul țării trebuie să aibă 2 caractere! + + + Parola curentă nu poate fi goală! + + + Șirul de conexiune la bază de date nu poate fi gol! + + + Descrierea trebuie să aibă maximum 2000 caractere! + + + Directorul există deja! + + + Eroare la copierea dosarului! + + + Eroare la mutarea directorului! + + + Dosarul nu a fost găsit! + + + Ediția trebuie să aibă maximum 50 caractere! + + + Cheia secretă de criptare nu poate fi goală! + + + Cheia secretă de criptare trebuie să fie un șir Base64! + + + Eroare la salvarea rolului de autorizare! + + + Eroare la salvarea bibliotecii media! + + + Extensia nu poate fi goală! + + + Fișierul există deja! + + + Eroare la copierea fișierului! + + + Eroare la mutarea fișierului! + + + Fișierul nu a fost găsit! + + + Validare + + + Numele genului nu poate fi gol! + + + Numele genului trebuie să aibă maximum 50 caractere! + + + Lista genurilor nu poate fi nulă! + + + ID-ul Goodreads trebuie să fie numeric! + + + ID-ul Google Books trebuie să aibă 12 caractere! + + + Calitatea imaginii trebuie să fie între 0 și 100! + + + Format invalid pentru ID-ul Apple Books! + + + Format invalid pentru ID-ul Barnes&Noble! + + + Parola curentă invalidă! + + + Format invalid pentru ID-ul Google Books! + + + Format ISBN10 invalid! + + + Format ISBN13 invalid! + + + Cod ISO invalid! + + + Format LCCN invalid! + + + Format OCLC invalid! + + + ID OpenLibrary invalid! + + + Parolă invalidă! + + + Cale invalidă! + + + Cod TOTP invalid! + + + Nume de utilizator invalid! + + + Nume de utilizator sau parolă invalidă! + + + Lista ISBN nu poate fi nulă! + + + Valoarea ISBN nu poate fi goală! + + + Audiența JWT nu poate fi goală! + + + Minutele de expirare JWT trebuie să fie pozitive! + + + Emitentul JWT nu poate fi gol! + + + Cheia secretă JWT nu poate fi goală! + + + Cheia secretă JWT este prea scurtă! + + + Codul limbii nu poate fi gol! + + + Codul limbii trebuie să aibă 2 caractere! + + + Numele limbii nu poate fi gol! + + + Numele limbii trebuie să aibă maximum 50 caractere! + + + Numele nativ al limbii trebuie să aibă maximum 50 caractere! + + + Biblioteca există deja! + + + ID-ul bibliotecii nu poate fi gol! + + + Biblioteca nu a fost găsită! + + + ID-ul LibraryThing trebuie să aibă maximum 50 caractere! + + + Tipul bibliotecii nu poate fi nul! + + + Dosarul rădăcină media nu poate fi gol! + + + Metadatele nu pot fi nule! + + + Numele nu poate fi gol! + + + Noua parolă nu poate fi goală! + + + Confirmarea noii parole nu poate fi goală! + + + Nu aveți autorizația necesară pentru vizualizarea aceastei resurse! + + + Nu sunteți autorizat să efectuați această operațiune! + + + Resursa specificată nu a fost găsită! + + + Fără pictograma! + + + Au apărut una sau mai multe erori de validare + + + Data și anul lansării originale trebuie să corespundă! + + + Anul lansării originale trebuie să fie între 1 și 9999! + + + Titlul original trebuie să aibă maximum 255 caractere! + + + Numărul de pagini trebuie să fie mai mare decât zero! + + + Nodul părinte nu poate fi nul! + + + Parola nu poate fi goală! + + + Confirmarea parolei nu poate fi goală! + + + Resetarea parolei a fost deja solicitată! + + + Parolele nu se potrivesc! + + + Calea nu poate fi goală! + + + Calea nu trebuie să depășească 260 de caractere! + + + Lista de căi nu poate fi goală! + + + Lista de căi nu poate fi nulă! + + + Lista de permisiuni nu poate fi goală! + + + Lista de permisiuni nu poate fi nulă! + + + Editura trebuie să aibă maximum 100 caractere! + + + Valoarea maximă a evaluării trebuie să fie pozitivă! + + + Lista evaluărilor nu poate fi nulă! + + + Valoarea evaluării nu poate fi mai mare decât valoarea maximă! + + + Valoarea evaluării trebuie să fie pozitivă! + + + Numărul de voturi pentru evaluare trebuie să fie pozitiv! + + + Informațiile despre lansare nu pot fi nule! + + + Versiunea lansării trebuie să aibă maximum 50 caractere! + + + Data și anul relansării trebuie să corespundă! + + + Data relansării nu poate fi anterioară datei lansării originale! + + + Anul relansării nu poate fi anterior anului lansării originale! + + + Anul relansării trebuie să fie între 1 și 9999! + + + Rolul există deja! + + + Categoria rolului nu poate fi goală! + + + Categoria rolului trebuie să aibă maximum 50 caractere! + + + ID-ul rolului nu poate fi gol! + + + Numele rolului nu poate fi gol! + + + Numele rolului trebuie să aibă maximum 50 caractere! + + + Rolul nu a fost găsit + + + ID-ul fluxului nu poate fi gol! + + + Numele etichetei nu poate fi gol! + + + Numele etichetei trebuie să aibă maximum 50 caractere! + + + Lista de etichete nu poate fi nulă! + + + Parola temporară a expirat! + + + Cartea este deja în serie! + + + Cartea nu este în serie! + + + Titlul nu poate fi gol! + + + Titlul trebuie să aibă maximum 255 caractere! + + + Prea multe cereri! Vă rugăm să încercați din nou în 15 minute! + + + Codul TOTP nu poate fi gol! + + + Nu sunteți autorizat să accesați această resursă! + + + Format de carte necunoscut! + + + Format ISBN necunoscut! + + + Tip de bibliotecă necunoscut! + + + Utilizatorul există deja! + + + Utilizatorul nu există! + + + ID-ul utilizatorului nu poate fi gol! + + + Utilizatorul trebuie să aibă permisiuni din rol sau permisiuni directe! + + + Numele de utilizator există deja! + + + Numele de utilizator nu poate fi gol! + + + Numele de utilizator nu există! + + + Numele de utilizator trebuie să aibă între 3 și 255 caractere! + + + Numărul volumului trebuie să fie mai mare decât zero! + + + Fișierul copertă trebuie să fie o imagine! + + + Nu se poate scana o bibliotecă dezactivată! + + + Nu se poate scana o bibliotecă blocată! + + + Se pot porni doar scanări în așteptare! + + + Se pot anula doar scanările în curs! + + + ID-ul de scanare nu poate fi gol! + + + Biblioteca este deja în curs de scanare! + + + Numărul total de elemente de scanat trebuie să fie pozitiv! + + + Numărul de elemente scanate complet trebuie să fie pozitiv! + + + Numărul de elemente scanate complet nu poate depăși numărul total de elemente de scanat! + + + Operația curentă de scanare nu poate fi goală! + + + ID-ul de scanare al bibliotecii nu poate fi gol! + + + Numărul total de job-uri de scanare trebuie să fie pozitiv! + + + Numărul de job-uri de scanare completate trebuie să fie pozitiv! + + + Numărul de job-uri de scanare completate nu poate depăși numărul total de job-uri de scanare! + + + Originile CORS nu pot fi goale! + + + Origine CORS invalidă! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx new file mode 100644 index 00000000..0b91bfb2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.ru-RU.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Учетная запись администратора уже создана! + + + Роль администратора не может быть удалена! + + + Тема приложения не может быть пустой! + + + ASIN должен состоять из 10 символов! + + + Идентификатор Barnes&Noble должен состоять из 10 символов! + + + Битрейт должен быть положительным числом! + + + Книга уже существует! + + + Невозможно перейти на уровень выше! + + + Невозможно удалить последнюю роль администратора, назначенную пользователю! + + + Кодек не может быть пустым! + + + Отображаемое имя участника не может быть пустым! + + + Отображаемое имя участника не должно превышать 100 символов! + + + Официальное имя участника не должно превышать 100 символов! + + + Имя участника не может быть пустым! + + + Роль участника не может быть пустой! + + + Список участников не может быть пустым! + + + Код страны должен состоять из 2 символов! + + + Текущий пароль не может быть пустым! + + + Строка подключения к базе данных не может быть пустой! + + + Описание не должно превышать 2000 символов! + + + Каталог уже существует! + + + Ошибка копирования каталога! + + + Ошибка при перемещении каталога! + + + Каталог не найден! + + + Название издания не должно превышать 50 символов! + + + Секретный ключ шифрования не может быть пустым! + + + Секретный ключ шифрования должен быть строкой в формате Base64! + + + Ошибка при сохранении роли авторизации! + + + Ошибка при сохранении медиатеки! + + + Расширение файла не может быть пустым! + + + Файл уже существует! + + + Ошибка копирования файла! + + + Ошибка при перемещении файла! + + + Файл не найден! + + + Проверка + + + Название жанра не может быть пустым! + + + Название жанра не должно превышать 50 символов! + + + Список жанров не может быть пустым! + + + Идентификатор Goodreads должен быть числовым! + + + Идентификатор Google Books должен состоять из 12 символов! + + + Качество изображения должно быть между 0 и 100! + + + Неверный формат идентификатора Apple Books! + + + Неверный формат идентификатора Barnes&Noble! + + + Неверный текущий пароль! + + + Неверный формат идентификатора Google Books! + + + Неверный формат ISBN10! + + + Неверный формат ISBN13! + + + Недействительный ISO-код! + + + Неверный формат LCCN! + + + Неверный формат OCLC! + + + Недействительный идентификатор OpenLibrary! + + + Неверный пароль! + + + Недопустимый путь! + + + Неверный код TOTP! + + + Неверное имя пользователя! + + + Неверное имя пользователя или пароль! + + + Список ISBN не может быть пустым! + + + Значение ISBN не может быть пустым! + + + Целевая аудитория JWT не может быть пустой! + + + Время истечения JWT в минутах должно быть положительным! + + + Издатель JWT не может быть пустым! + + + Секретный ключ JWT не может быть пустым! + + + Секретный ключ JWT слишком короткий! + + + Код языка не может быть пустым! + + + Код языка должен состоять из 2 символов! + + + Название языка не может быть пустым! + + + Название языка не должно превышать 50 символов! + + + Исходное название языка не должно превышать 50 символов! + + + Библиотека уже существует! + + + Идентификатор библиотеки не может быть пустым! + + + Библиотека не найдена! + + + Идентификатор LibraryThing не должен превышать 50 символов! + + + Тип библиотеки не может быть пустым! + + + Корневая папка медиафайлов не может быть пустой! + + + Метаданные не могут быть пустыми! + + + Имя не может быть пустым! + + + Новый пароль не может быть пустым! + + + Подтверждение нового пароля не может быть пустым! + + + У вас нет прав для просмотра этого ресурса! + + + У вас нет прав для выполнения этой операции! + + + Указанный ресурс не найден! + + + Нет миниатюры! + + + Обнаружена одна или несколько ошибок проверки + + + Дата и год первого выпуска должны совпадать! + + + Год первого выпуска должен быть между 1 и 9999! + + + Оригинальное название не должно превышать 255 символов! + + + Количество страниц должно быть больше нуля! + + + Родительский узел не может быть пустым! + + + Пароль не может быть пустым! + + + Подтверждение пароля не может быть пустым! + + + Сброс пароля уже запрошен! + + + Пароли не совпадают! + + + Путь не может быть пустым! + + + Путь не должен превышать 260 символов! + + + Список путей не может быть пустым! + + + Список путей не может быть пустым! + + + Список разрешений не может быть пустым! + + + Список разрешений не может быть пустым! + + + Название издательства не должно превышать 100 символов! + + + Максимальное значение рейтинга должно быть положительным! + + + Список рейтингов не может быть пустым! + + + Значение рейтинга не может быть больше максимального значения! + + + Значение рейтинга должно быть положительным! + + + Количество голосов рейтинга должно быть положительным! + + + Информация о выпуске не может быть пустой! + + + Версия релиза не должна превышать 50 символов! + + + Дата и год переиздания должны совпадать! + + + Дата переиздания не может быть раньше даты первого выпуска! + + + Год переиздания не может быть раньше года первого выпуска! + + + Год переиздания должен быть между 1 и 9999! + + + Роль уже существует! + + + Категория роли не может быть пустой! + + + Категория роли не должна превышать 50 символов! + + + Идентификатор роли не может быть пустым! + + + Название роли не может быть пустым! + + + Название роли не должно превышать 50 символов! + + + Роль не найдена + + + Идентификатор потока не может быть пустым! + + + Название тега не может быть пустым! + + + Название тега не должно превышать 50 символов! + + + Список тегов не может быть пустым! + + + Временный пароль истек! + + + Книга уже входит в серию! + + + Книга не входит в серию! + + + Название не может быть пустым! + + + Название не должно превышать 255 символов! + + + Слишком много запросов! Пожалуйста, повторите попытку через 15 минут! + + + Код TOTP не может быть пустым! + + + У вас нет прав доступа к этому ресурсу! + + + Неизвестный формат книги! + + + Неизвестный формат ISBN! + + + Неизвестный тип библиотеки! + + + Пользователь уже существует! + + + Пользователь не существует! + + + Идентификатор пользователя не может быть пустым! + + + У пользователя должны быть разрешения роли или прямые разрешения! + + + Имя пользователя уже существует! + + + Имя пользователя не может быть пустым! + + + Имя пользователя не существует! + + + Имя пользователя должно содержать от 3 до 255 символов! + + + Номер тома должен быть больше нуля! + + + Файл обложки должен быть изображением! + + + Невозможно сканировать отключенную библиотеку! + + + Невозможно сканировать заблокированную библиотеку! + + + Можно запускать только ожидающие сканирования! + + + Можно отменить только запущенные сканирования! + + + Идентификатор сканирования не может быть пустым! + + + Библиотека уже сканируется! + + + Общее количество элементов для сканирования должно быть положительным! + + + Количество завершенных отсканированных элементов должно быть положительным! + + + Количество завершенных отсканированных элементов не может превышать общее количество элементов для сканирования! + + + Текущая операция сканирования не может быть пустой! + + + Идентификатор сканирования библиотеки не может быть пустым! + + + Общее количество заданий сканирования должно быть положительным! + + + Количество завершенных заданий сканирования должно быть положительным! + + + Количество завершенных заданий сканирования не может превышать общее количество заданий сканирования! + + + Список CORS-источников не может быть пустым! + + + Недействительный CORS-источник! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx new file mode 100644 index 00000000..bfc9dadc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Common/Middlewares/ExceptionHandlingMiddleware.zh-CN.resx @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 管理员账号已创建! + + + 管理员角色无法删除! + + + 应用主题不能为空! + + + ASIN必须是10个字符! + + + Barnes&Noble ID必须是10个字符! + + + 比特率必须是正数! + + + 图书已存在! + + + 无法向上导航! + + + 无法删除用户的最后一个管理员角色! + + + 编解码器不能为空! + + + 参与者显示名称不能为空! + + + 参与者显示名称最多只能有100个字符! + + + 参与者法定姓名最多只能有100个字符! + + + 参与者姓名不能为空! + + + 参与者角色不能为空! + + + 参与者列表不能为空! + + + 国家代码必须是2个字符! + + + 当前密码不能为空! + + + 数据库连接字符串不能为空! + + + 描述最多只能有2000个字符! + + + 目录已存在! + + + 复制目录时出错! + + + 移动目录时出错! + + + 找不到目录! + + + 版本最多只能有50个字符! + + + 加密密钥不能为空! + + + 加密密钥必须是Base64字符串! + + + 持久化授权角色时出错! + + + 保存媒体库时出错! + + + 文件扩展名不能为空! + + + 文件已存在! + + + 复制文件时出错! + + + 移动文件时出错! + + + 找不到文件! + + + 验证 + + + 类型名称不能为空! + + + 类型名称最多只能有50个字符! + + + 类型列表不能为空! + + + Goodreads ID必须是数字! + + + Google Books ID必须是12个字符! + + + 图像质量必须在0到100之间! + + + Apple Books ID格式无效! + + + Barnes&Noble ID格式无效! + + + 当前密码无效! + + + Google Books ID格式无效! + + + 无效的ISBN10格式! + + + 无效的ISBN13格式! + + + 无效的ISO代码! + + + 无效的LCCN格式! + + + 无效的OCLC格式! + + + 无效的OpenLibrary ID! + + + 密码无效! + + + 路径无效! + + + TOTP验证码无效! + + + 用户名无效! + + + 用户名或密码无效! + + + ISBN列表不能为空! + + + ISBN值不能为空! + + + JWT受众不能为空! + + + JWT过期时间(分钟)必须为正数! + + + JWT颁发者不能为空! + + + JWT密钥不能为空! + + + JWT密钥太短! + + + 语言代码不能为空! + + + 语言代码必须是2个字符! + + + 语言名称不能为空! + + + 语言名称最多只能有50个字符! + + + 语言本地名称最多只能有50个字符! + + + 库已存在! + + + 库ID不能为空! + + + 找不到库! + + + LibraryThing ID最多只能有50个字符! + + + 库类型不能为空! + + + 媒体根目录不能为空! + + + 元数据不能为空! + + + 名称不能为空! + + + 新密码不能为空! + + + 新密码确认不能为空! + + + 您无权查看此资源! + + + 您无权执行此操作! + + + 指定的资源未找到! + + + 没有缩略图! + + + 发生一个或多个验证错误 + + + 原始发行日期和年份必须匹配! + + + 原始发行年份必须在1到9999之间! + + + 原始标题最多只能有255个字符! + + + 页数必须大于零! + + + 父节点不能为空! + + + 密码不能为空! + + + 确认密码不能为空! + + + 密码重置请求已发送! + + + 密码不匹配! + + + 路径不能为空! + + + 路径不得超过260个字符! + + + 路径列表不能为空! + + + 路径列表不能为空! + + + 权限列表不能为空! + + + 权限列表不能为空! + + + 出版社名称最多只能有100个字符! + + + 评分最大值必须为正数! + + + 评分列表不能为空! + + + 评分值不能大于最大值! + + + 评分值必须为正数! + + + 评分投票数必须为正数! + + + 发行信息不能为空! + + + 发行版本最多只能有50个字符! + + + 重发行日期和年份必须匹配! + + + 重发行日期不能早于原始发行日期! + + + 重发行年份不能早于原始发行年份! + + + 重发行年份必须在1到9999之间! + + + 角色已存在! + + + 角色类别不能为空! + + + 角色类别最多只能有50个字符! + + + 角色ID不能为空! + + + 角色名称不能为空! + + + 角色名称最多只能有50个字符! + + + 角色未找到 + + + 流ID不能为空! + + + 标签名称不能为空! + + + 标签名称最多只能有50个字符! + + + 标签列表不能为空! + + + 临时密码已过期! + + + 该图书已在系列中! + + + 该图书不在系列中! + + + 标题不能为空! + + + 标题最多只能有255个字符! + + + 请求过多!请15分钟后重试! + + + TOTP验证码不能为空! + + + 您无权访问此资源! + + + 未知的图书格式! + + + 未知的ISBN格式! + + + 未知的库类型! + + + 用户已存在! + + + 用户不存在! + + + 用户ID不能为空! + + + 用户必须具有角色权限或直接权限! + + + 用户名已存在! + + + 用户名不能为空! + + + 用户名不存在! + + + 用户名必须在3到255个字符之间! + + + 卷号必须大于零! + + + 封面文件必须是图片! + + + 无法扫描已禁用的库! + + + 无法扫描已锁定的库! + + + 只能启动待处理的扫描! + + + 只能取消正在运行的扫描! + + + 扫描ID不能为空! + + + 库已在扫描中! + + + 扫描任务项目总数必须为正数! + + + 已完成扫描项目数量必须为正数! + + + 已完成扫描项目数量不能超过扫描项目总数! + + + 扫描任务当前操作不能为空! + + + 库扫描ID不能为空! + + + 扫描任务总数必须为正数! + + + 已完成扫描任务数量必须为正数! + + + 已完成扫描任务数量不能超过扫描任务总数! + + + CORS来源不能为空! + + + CORS来源无效! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.de-DE.resx new file mode 100644 index 00000000..cc009918 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.de-DE.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Kann Mediatheken erstellen + + + Kann Benutzer löschen + + + Kann Benutzer registrieren + + + Kann Benutzer anzeigen + + + Rollen + + + Wählen Sie eine Rolle + + + Benutzer auswählen + + + Aktualisieren + + + Benutzerberechtigung aktualisiert! + + + Benutzer + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.en-US.resx new file mode 100644 index 00000000..2371da2e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.en-US.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Can create libraries + + + Can delete users + + + Can register users + + + Can view users + + + Roles + + + Select a role + + + Select a user + + + Update + + + User authorization updated! + + + Users + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.es-ES.resx new file mode 100644 index 00000000..45ff854c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.es-ES.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Puede crear bibliotecas + + + Puede eliminar usuarios + + + Puede registrar usuarios + + + Puede ver usuarios + + + Roles + + + Selecciona un rol + + + Seleccionar usuario + + + Actualizar + + + ¡Autorización de usuario actualizada! + + + Usuarios + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.fr-FR.resx new file mode 100644 index 00000000..3971ce5c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.fr-FR.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Peut créer des médiathèques + + + Peut supprimer des utilisateurs + + + Peut enregistrer des utilisateurs + + + Peut voir les utilisateurs + + + Rôles + + + Sélectionnez un rôle + + + Sélectionner un utilisateur + + + Mettre à jour + + + Autorisation utilisateur mise à jour! + + + Utilisateurs + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.it-IT.resx new file mode 100644 index 00000000..610e11b2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.it-IT.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Può creare librerie + + + Può eliminare utenti + + + Può registrare utenti + + + Può visualizzare utenti + + + Ruoli + + + Seleziona un ruolo + + + Seleziona utente + + + Aggiorna + + + Autorizzazione utente aggiornata! + + + Utenti + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ja-JP.resx new file mode 100644 index 00000000..04c51b58 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ja-JP.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ライブラリを作成可能 + + + ユーザーを削除できます + + + ユーザーを登録できます + + + ユーザーを表示できます + + + ロール + + + ロールを選択してください + + + ユーザーを選択 + + + 更新 + + + ユーザー権限を更新しました! + + + ユーザー + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.resx new file mode 100644 index 00000000..2371da2e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Can create libraries + + + Can delete users + + + Can register users + + + Can view users + + + Roles + + + Select a role + + + Select a user + + + Update + + + User authorization updated! + + + Users + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ro-RO.resx new file mode 100644 index 00000000..defadc98 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ro-RO.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Poate crea biblioteci + + + Poate șterge utilizatori + + + Poate înregistra utilizatori + + + Poate vizualiza utilizatori + + + Roluri + + + Selectare rol + + + Selectare utilizator + + + Actualizare + + + Autorizare utilizator actualizată! + + + Utilizatori + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ru-RU.resx new file mode 100644 index 00000000..729c7e0e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.ru-RU.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Может создавать библиотеки + + + Может удалять пользователей + + + Может регистрировать пользователей + + + Может просматривать пользователей + + + Роли + + + Выберите роль + + + Выбрать пользователя + + + Обновить + + + Авторизация пользователя обновлена! + + + Пользователи + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.zh-CN.resx new file mode 100644 index 00000000..3bffe53e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManagePermissions.zh-CN.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 可以创建媒体库 + + + 可以删除用户 + + + 可以注册用户 + + + 可以查看用户 + + + 角色 + + + 选择一个角色 + + + 选择用户 + + + 更新 + + + 用户授权已更新! + + + 用户 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.de-DE.resx new file mode 100644 index 00000000..1c6204f4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.de-DE.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Kann Mediatheken erstellen + + + Kann Benutzer löschen + + + Kann Benutzer registrieren + + + Kann Benutzer anzeigen + + + Rolle erstellen + + + Rolle löschen + + + Sind Sie sicher, dass Sie die ausgewählte Rolle löschen möchten? + + + Die Rolle wurde erstellt! + + + Die Rolle wurde gelöscht! + + + Rollenname + + + Rollen + + + Die Rolle wurde aktualisiert! + + + Wählen Sie eine Rolle + + + Rolle aktualisieren + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.en-US.resx new file mode 100644 index 00000000..a842f279 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.en-US.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Can create libraries + + + Can delete users + + + Can register users + + + Can view users + + + Create role + + + Delete role + + + Are you sure you want to delete the selected role? + + + The role has been created! + + + The role has been deleted! + + + Role name + + + Roles + + + The role has been updated! + + + Select a role + + + Update role + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.es-ES.resx new file mode 100644 index 00000000..92dbe451 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.es-ES.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Puede crear bibliotecas + + + Puede eliminar usuarios + + + Puede registrar usuarios + + + Puede ver usuarios + + + Crear un rol + + + Eliminar rol + + + ¿Está seguro de que desea eliminar el rol seleccionado? + + + ¡El rol ha sido creado! + + + ¡El rol ha sido eliminado! + + + Nombre del rol + + + Roles + + + ¡El rol ha sido actualizado! + + + Selecciona un rol + + + Actualizar rol + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.fr-FR.resx new file mode 100644 index 00000000..1a8e040b --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.fr-FR.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Peut créer des médiathèques + + + Peut supprimer des utilisateurs + + + Peut enregistrer des utilisateurs + + + Peut voir les utilisateurs + + + Créer un rôle + + + Supprimer le rôle + + + Êtes-vous sûr de vouloir supprimer le rôle sélectionné ? + + + Le rôle a été créé ! + + + Le rôle a été supprimé ! + + + Nom du rôle + + + Rôles + + + Le rôle a été mis à jour ! + + + Sélectionnez un rôle + + + Mettre à jour le rôle + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.it-IT.resx new file mode 100644 index 00000000..805672aa --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.it-IT.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Può creare librerie + + + Può eliminare utenti + + + Può registrare utenti + + + Può visualizzare utenti + + + Creare un ruolo + + + Elimina ruolo + + + Sei sicuro di voler eliminare il ruolo selezionato? + + + Il ruolo è stato creato! + + + Il ruolo è stato eliminato! + + + Nome del ruolo + + + Ruoli + + + Il ruolo è stato aggiornato! + + + Seleziona un ruolo + + + Aggiorna ruolo + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ja-JP.resx new file mode 100644 index 00000000..9b5e74d7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ja-JP.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ライブラリを作成可能 + + + ユーザーを削除できます + + + ユーザーを登録できます + + + ユーザーを表示できます + + + ロールを作成する + + + ロールを削除する + + + 選択したロールを削除してもよろしいですか? + + + ロールが作成されました! + + + ロールが削除されました! + + + ロール名 + + + ロール + + + ロールが更新されました! + + + ロールを選択してください + + + ロールを更新する + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.resx new file mode 100644 index 00000000..a842f279 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Can create libraries + + + Can delete users + + + Can register users + + + Can view users + + + Create role + + + Delete role + + + Are you sure you want to delete the selected role? + + + The role has been created! + + + The role has been deleted! + + + Role name + + + Roles + + + The role has been updated! + + + Select a role + + + Update role + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ro-RO.resx new file mode 100644 index 00000000..01689d29 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ro-RO.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Poate crea biblioteci + + + Poate șterge utilizatori + + + Poate înregistra utilizatori + + + Poate vizualiza utilizatori + + + Creare rol + + + Ștergere rol + + + Sunteți sigur că doriți să ștergeți rolul selectat? + + + Rolul a fost creat! + + + Rolul a fost șters! + + + Numele rolului + + + Roluri + + + Rolul a fost actualizat! + + + Selectare rol + + + Actualizare rol + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ru-RU.resx new file mode 100644 index 00000000..46e83d40 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.ru-RU.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Может создавать библиотеки + + + Может удалять пользователей + + + Может регистрировать пользователей + + + Может просматривать пользователей + + + Создать роль + + + Удалить роль + + + Вы уверены, что хотите удалить выбранную роль? + + + Роль была создана! + + + Роль была удалена! + + + Название роли + + + Роли + + + Роль была обновлена! + + + Выберите роль + + + Обновить роль + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.zh-CN.resx new file mode 100644 index 00000000..537300f7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Admin/ManageRoles.zh-CN.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 可以创建媒体库 + + + 可以删除用户 + + + 可以注册用户 + + + 可以查看用户 + + + 创建角色 + + + 删除角色 + + + 您确定要删除选定的角色吗? + + + 角色已创建! + + + 角色已删除! + + + 角色名称 + + + 角色 + + + 角色已更新! + + + 选择一个角色 + + + 更新角色 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.de-DE.resx new file mode 100644 index 00000000..fb95d9d4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.de-DE.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Sie sind nicht berechtigt, diese Ressource anzusehen! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.en-US.resx new file mode 100644 index 00000000..441b394b --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.en-US.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + You are not authorized to view this resource! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.es-ES.resx new file mode 100644 index 00000000..ccf8d818 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.es-ES.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ¡No estás autorizado para ver este recurso! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.fr-FR.resx new file mode 100644 index 00000000..57bc9522 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.fr-FR.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Vous n'êtes pas autorisé à voir cette ressource ! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.it-IT.resx new file mode 100644 index 00000000..e6c1e88f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.it-IT.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Non sei autorizzato a visualizzare questa risorsa! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ja-JP.resx new file mode 100644 index 00000000..be86e714 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ja-JP.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + このリソースを表示する権限がありません! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.resx new file mode 100644 index 00000000..14b04d86 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + You are not authorized to view this resource! + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ro-RO.resx new file mode 100644 index 00000000..4ed99e9e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ro-RO.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Nu aveți autorizația necesară pentru vizualizarea aceastei resurse! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ru-RU.resx new file mode 100644 index 00000000..e251493f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.ru-RU.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + У вас нет прав для просмотра этого ресурса! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.zh-CN.resx new file mode 100644 index 00000000..9fd49ef0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/AccessDenied.zh-CN.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 您无权查看此资源! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.Designer.cs b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.Designer.cs new file mode 100644 index 00000000..929e4c25 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.Designer.cs @@ -0,0 +1,135 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Lumina.Presentation.Web.Core.Resources.Views.Auth { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class ChangePassword { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal ChangePassword() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Core.Resources.Views.Auth.ChangePassword", typeof(ChangePassword).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Change Password. + /// + public static string ChangePasswordKey { + get { + return ResourceManager.GetString("ChangePasswordKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Current Password. + /// + public static string CurrentPassword { + get { + return ResourceManager.GetString("CurrentPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enter your existing password to verify your identity. + /// + public static string DescriptionCurrentPassword { + get { + return ResourceManager.GetString("DescriptionCurrentPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password must be at least 8 characters and include letters, numbers, and symbols. + /// + public static string DescriptionNewPassword { + get { + return ResourceManager.GetString("DescriptionNewPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Re-enter your new password to ensure it matches. + /// + public static string DescriptionNewPasswordConfirm { + get { + return ResourceManager.GetString("DescriptionNewPasswordConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Password. + /// + public static string NewPassword { + get { + return ResourceManager.GetString("NewPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Password Confirm. + /// + public static string NewPasswordConfirm { + get { + return ResourceManager.GetString("NewPasswordConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password Changed. + /// + public static string PasswordChanged { + get { + return ResourceManager.GetString("PasswordChanged", resourceCulture); + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.de-DE.resx new file mode 100644 index 00000000..5ca879ab --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.de-DE.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Kennwort Ändern + + + Aktuelles Kennwort + + + Geben sie ihr bestehendes Kennwort ein um ihre Identität zu bestätigen + + + Kennwort muss mindestens 8 Zeichen lang sein und Buchstaben, Zahlen und Sonderzeichen enthalten + + + Geben sie ihr neues Kennwort erneut ein um sicherzustellen, dass es übereinstimmt + + + Neues Kennwort + + + Neues Kennwort Bestätigen + + + Kennwort Geändert + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.en-US.resx new file mode 100644 index 00000000..45ce9f52 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.en-US.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Change Password + + + Current Password + + + Enter your existing password to verify your identity + + + Password must be at least 8 characters and include letters, numbers, and symbols + + + Re-enter your new password to ensure it matches + + + New Password + + + New Password Confirm + + + Password Changed + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.es-ES.resx new file mode 100644 index 00000000..ff74d782 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.es-ES.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cambiar Contraseña + + + Contraseña Vigente + + + Introduce tu contraseña actual para verificar tu identidad + + + La contraseña debe tener al menos 8 caracteres e incluir letras, números y símbolos + + + Vuelve a introducir tu nueva contraseña para asegurar que coincida + + + Nueva Contraseña + + + Confirmar Nueva Contraseña + + + Contraseña Cambiada + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.fr-FR.resx new file mode 100644 index 00000000..0563e8dc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.fr-FR.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Modifier Le Mot De Passe + + + Mot De Passe Actuel + + + Saisissez votre mot de passe actuel pour vérifier votre identité + + + Le mot de passe doit contenir au moins 8 caractères et inclure des lettres, des chiffres et des symboles + + + Saisissez à nouveau votre mot de passe pour confirmer la correspondance + + + Nouveau Mot De Passe + + + Confirmer Le Nouveau Mot De Passe + + + Mot De Passe Modifié + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.it-IT.resx new file mode 100644 index 00000000..f98a6e87 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.it-IT.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Modifica Password + + + Password Corrente + + + Inserisci la password attuale per verificare la tua identità + + + La password deve contenere almeno 8 caratteri e includere lettere, numeri e simboli + + + Inserisci di nuovo la nuova password per assicurare la corrispondenza + + + Nuova Password + + + Conferma Nuova Password + + + Password Modificata + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ja-JP.resx new file mode 100644 index 00000000..0a8e7576 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ja-JP.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + パスワード変更 + + + 使用中パスワード + + + 本人確認のため現在のパスワードを入力してください + + + パスワードは8文字以上で、文字、数字、記号を含める必要があります + + + 確認のため新しいパスワードをもう一度入力してください + + + 新規パスワード + + + 新規パスワード確認 + + + パスワード変更完了 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.resx new file mode 100644 index 00000000..45ce9f52 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Change Password + + + Current Password + + + Enter your existing password to verify your identity + + + Password must be at least 8 characters and include letters, numbers, and symbols + + + Re-enter your new password to ensure it matches + + + New Password + + + New Password Confirm + + + Password Changed + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ro-RO.resx new file mode 100644 index 00000000..7809355c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ro-RO.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Schimbare Parolă + + + Parolă Curentă + + + Introduceți parola actuală pentru verificarea identității + + + Parola trebuie să conțină cel puțin 8 caractere și să includă litere, cifre și simboluri + + + Reintroduceți parola nouă pentru a verifica potrivirea + + + Parolă Nouă + + + Confirmare Parolă Nouă + + + Parolă Schimbată + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ru-RU.resx new file mode 100644 index 00000000..c9465635 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.ru-RU.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Изменить Пароль + + + Действующий Пароль + + + Введите ваш текущий пароль для подтверждения личности + + + Пароль должен содержать не менее 8 символов и включать буквы, цифры и специальные знаки + + + Введите новый пароль повторно для проверки совпадения + + + Новый Пароль + + + Подтверждение Нового Пароля + + + Пароль Изменён + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.zh-CN.resx new file mode 100644 index 00000000..7a9ce879 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/ChangePassword.zh-CN.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 修改密码 + + + 现用密码 + + + 请输入当前密码以验证身份 + + + 密码必须至少8个字符且包含字母、数字和符号 + + + 请再次输入新密码以确保匹配 + + + 新密码 + + + 确认新密码 + + + 密码已修改 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.Designer.cs b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.Designer.cs new file mode 100644 index 00000000..52d807db --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.Designer.cs @@ -0,0 +1,117 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Lumina.Presentation.Web.Core.Resources.Views.Auth { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Login { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Login() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Core.Resources.Views.Auth.Login", typeof(Login).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Login. + /// + public static string LoginKey { + get { + return ResourceManager.GetString("LoginKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password. + /// + public static string Password { + get { + return ResourceManager.GetString("Password", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Recover Password. + /// + public static string RecoverPassword { + get { + return ResourceManager.GetString("RecoverPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TOTP Code. + /// + public static string TotpCode { + get { + return ResourceManager.GetString("TotpCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + public static string Username { + get { + return ResourceManager.GetString("Username", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Validate Code. + /// + public static string ValidateCode { + get { + return ResourceManager.GetString("ValidateCode", resourceCulture); + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.de-DE.resx new file mode 100644 index 00000000..805bdf5a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.de-DE.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Anmelden + + + Passwort + + + Passwort Wiederherstellen + + + Einmalcode (TOTP) + + + Benutzername + + + Code Bestätigen + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.en-US.resx new file mode 100644 index 00000000..6cfbfb3d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.en-US.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Login + + + Password + + + Recover Password + + + TOTP Code + + + Username + + + Validate Code + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.es-ES.resx new file mode 100644 index 00000000..a3f7f570 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.es-ES.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Iniciar Sesión + + + Contraseña + + + Recuperar Contraseña + + + Código Temporal (TOTP) + + + Nombre de usuario + + + Validar Código + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.fr-FR.resx new file mode 100644 index 00000000..d03e9750 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.fr-FR.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Connexion + + + Mot De Passe + + + Récupérer Le Mot De Passe + + + Code Temporaire (TOTP) + + + Nom d'utilisateur + + + Valider Le Code + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.it-IT.resx new file mode 100644 index 00000000..f8a11d66 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.it-IT.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Accedi + + + Password + + + Recupera Password + + + Codice Temporaneo (TOTP) + + + Nome utente + + + Convalida Codice + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ja-JP.resx new file mode 100644 index 00000000..f5f7ec4f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ja-JP.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ログイン + + + パスワード + + + パスワード再設定 + + + ワンタイムパスコード (TOTP) + + + ユーザー名 + + + コード認証 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.resx new file mode 100644 index 00000000..6cfbfb3d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Login + + + Password + + + Recover Password + + + TOTP Code + + + Username + + + Validate Code + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ro-RO.resx new file mode 100644 index 00000000..f345c41b --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ro-RO.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Autentificare + + + Parolă + + + Recuperare Parolă + + + Cod Temporar (TOTP) + + + Nume utilizator + + + Validare Cod + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ru-RU.resx new file mode 100644 index 00000000..9f6c8eaf --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.ru-RU.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Вход + + + Пароль + + + Восстановить Пароль + + + Временный Код (TOTP) + + + Имя пользователя + + + Подтвердить Код + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.zh-CN.resx new file mode 100644 index 00000000..cb724877 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Login.zh-CN.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 登录 + + + 密码 + + + 找回密码 + + + 动态验证码 (TOTP) + + + 用户名 + + + 验证代码 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.Designer.cs b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.Designer.cs new file mode 100644 index 00000000..ced70740 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.Designer.cs @@ -0,0 +1,117 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Lumina.Presentation.Web.Core.Resources.Views.Auth { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class RecoverPassword { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal RecoverPassword() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Core.Resources.Views.Auth.RecoverPassword", typeof(RecoverPassword).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Back To Login. + /// + public static string BackToLogin { + get { + return ResourceManager.GetString("BackToLogin", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Login. + /// + public static string Login { + get { + return ResourceManager.GetString("Login", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password Temporarily Reset. + /// + public static string PasswordTemporarilyReset { + get { + return ResourceManager.GetString("PasswordTemporarilyReset", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TOTP Code. + /// + public static string TotpCode { + get { + return ResourceManager.GetString("TotpCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + public static string Username { + get { + return ResourceManager.GetString("Username", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Validate Code. + /// + public static string ValidateCode { + get { + return ResourceManager.GetString("ValidateCode", resourceCulture); + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.de-DE.resx new file mode 100644 index 00000000..7352a2a1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.de-DE.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Zurück Zur Anmeldung + + + Anmelden + + + Kennwort Vorübergehend Zurückgesetzt + + + Einmalcode (TOTP) + + + Benutzername + + + Code Bestätigen + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.en-US.resx new file mode 100644 index 00000000..bf4ea752 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.en-US.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Back To Login + + + Login + + + Password Temporarily Reset + + + TOTP Code + + + Username + + + Validate Code + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.es-ES.resx new file mode 100644 index 00000000..bd02be40 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.es-ES.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Volver Al Inicio De Sesión + + + Iniciar Sesión + + + Contraseña Restablecida Temporalmente + + + Código Temporal (TOTP) + + + Nombre de usuario + + + Validar Código + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.fr-FR.resx new file mode 100644 index 00000000..0ad62adf --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.fr-FR.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Retour À La Connexion + + + Connexion + + + Mot De Passe Temporairement Réinitialisé + + + Code Temporaire (TOTP) + + + Nom d'utilisateur + + + Valider Le Code + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.it-IT.resx new file mode 100644 index 00000000..a3427ea8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.it-IT.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Torna Al Login + + + Accedi + + + Password Reimpostata Temporaneamente + + + Codice Temporaneo (TOTP) + + + Nome utente + + + Convalida Codice + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ja-JP.resx new file mode 100644 index 00000000..999da7d9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ja-JP.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ログインに戻る + + + ログイン + + + パスワードを一時的にリセットしました + + + ワンタイムパスコード (TOTP) + + + ユーザー名 + + + コード認証 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.resx new file mode 100644 index 00000000..bf4ea752 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Back To Login + + + Login + + + Password Temporarily Reset + + + TOTP Code + + + Username + + + Validate Code + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ro-RO.resx new file mode 100644 index 00000000..42154c27 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ro-RO.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Înapoi La Autentificare + + + Autentificare + + + Parolă Resetată Temporar + + + Cod Temporar (TOTP) + + + Nume utilizator + + + Validare Cod + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ru-RU.resx new file mode 100644 index 00000000..324eb74c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.ru-RU.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Вернуться Ко Входу + + + Вход + + + Пароль Временно Сброшен + + + Временный Код (TOTP) + + + Имя пользователя + + + Подтвердить Код + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.zh-CN.resx new file mode 100644 index 00000000..fc7024fe --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/RecoverPassword.zh-CN.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 返回登录 + + + 登录 + + + 密码已临时重置 + + + 动态验证码 (TOTP) + + + 用户名 + + + 验证代码 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.Designer.cs b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.Designer.cs new file mode 100644 index 00000000..0c6c5c0f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.Designer.cs @@ -0,0 +1,189 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Lumina.Presentation.Web.Core.Resources.Views.Auth { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Register { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Register() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Core.Resources.Views.Auth.Register", typeof(Register).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Account Created. + /// + public static string AccountCreated { + get { + return ResourceManager.GetString("AccountCreated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Admin account registration. + /// + public static string AdminAccountRegistration { + get { + return ResourceManager.GetString("AdminAccountRegistration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Recommended for account security and required for password recovery. + /// + public static string Description2Fa { + get { + return ResourceManager.GetString("Description2Fa", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password must be at least 8 characters and include letters, numbers, and symbols. + /// + public static string DescriptionPassword { + get { + return ResourceManager.GetString("DescriptionPassword", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Re-enter your password to ensure it matches. + /// + public static string DescriptionPasswordConfirm { + get { + return ResourceManager.GetString("DescriptionPasswordConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose a unique username for your account (3-20 characters). + /// + public static string DescriptionUsername { + get { + return ResourceManager.GetString("DescriptionUsername", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password recovery is allowed only if two factor authentication is enabled!. + /// + public static string DisclaimerTwoFactor { + get { + return ResourceManager.GetString("DisclaimerTwoFactor", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enable two factor authentication. + /// + public static string EnableTwoFactorAuthentication { + get { + return ResourceManager.GetString("EnableTwoFactorAuthentication", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Login. + /// + public static string Login { + get { + return ResourceManager.GetString("Login", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password. + /// + public static string Password { + get { + return ResourceManager.GetString("Password", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Password Confirm. + /// + public static string PasswordConfirm { + get { + return ResourceManager.GetString("PasswordConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Register. + /// + public static string RegisterKey { + get { + return ResourceManager.GetString("RegisterKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Scan TOTP Code. + /// + public static string ScanTotpCode { + get { + return ResourceManager.GetString("ScanTotpCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Username. + /// + public static string Username { + get { + return ResourceManager.GetString("Username", resourceCulture); + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.de-DE.resx new file mode 100644 index 00000000..38faee9a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.de-DE.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Konto Erstellt + + + Administrator-Konto Registrierung + + + Empfohlen für Kontosicherheit und erforderlich für Kennwortzurücksetzung + + + Das Kennwort muss mindestens 8 Zeichen lang sein und Buchstaben, Zahlen und Sonderzeichen enthalten + + + Geben sie ihr Kennwort erneut ein um sicherzustellen, dass es übereinstimmt + + + Wählen sie einen eindeutigen Benutzernamen für ihr Konto (3-255 Zeichen) + + + Kennwortzurücksetzung ist nur bei aktivierter Zwei-Faktor-Authentifizierung möglich! + + + Zwei-Faktor-Authentifizierung Aktivieren + + + Anmelden + + + Passwort + + + Kennwort Bestätigen + + + Registrieren + + + TOTP-Code Scannen + + + Benutzername + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.en-US.resx new file mode 100644 index 00000000..c7f45d67 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.en-US.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Account Created + + + Admin account registration + + + Recommended for account security and required for password recovery + + + Password must be at least 8 characters and include letters, numbers, and symbols + + + Re-enter your password to ensure it matches + + + Choose a unique username for your account (3-20 characters) + + + Password recovery is allowed only if two factor authentication is enabled! + + + Enable two factor authentication + + + Login + + + Password + + + Password Confirm + + + Register + + + Scan TOTP Code + + + Username + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.es-ES.resx new file mode 100644 index 00000000..64e73555 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.es-ES.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cuenta Creada + + + Registro De Cuenta Administrador + + + Recomendado para la seguridad de la cuenta y requerido para la recuperación de contraseña + + + La contraseña debe tener al menos 8 caracteres e incluir letras, números y símbolos + + + Vuelve a introducir tu contraseña para asegurar que coincida + + + Elige un nombre de usuario único para tu cuenta (3-255 caracteres) + + + La recuperación de contraseña solo está permitida con la autenticación de dos factores activada! + + + Activar Autenticación De Dos Factores + + + Iniciar Sesión + + + Contraseña + + + Confirmar Contraseña + + + Registrarse + + + Escanear Código TOTP + + + Nombre de usuario + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.fr-FR.resx new file mode 100644 index 00000000..80076ae8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.fr-FR.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Compte Créé + + + Inscription Compte Administrateur + + + Recommandé pour la sécurité du compte et requis pour la récupération du mot de passe + + + Le mot de passe doit contenir au moins 8 caractères et inclure des lettres, des chiffres et des symboles + + + Saisissez à nouveau votre mot de passe pour confirmer la correspondance + + + Choisissez un nom d'utilisateur unique pour votre compte (3-255 caractères) + + + La récupération du mot de passe n'est possible qu'avec l'authentification à deux facteurs activée! + + + Activer L'authentification À Deux Facteurs + + + Connexion + + + Mot De Passe + + + Confirmer Le Mot De Passe + + + S'inscrire + + + Scanner Le Code TOTP + + + Nom d'utilisateur + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.it-IT.resx new file mode 100644 index 00000000..2a00b9fc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.it-IT.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Account Creato + + + Registrazione Account Amministratore + + + Raccomandato per la sicurezza dell'account e richiesto per il recupero della password + + + La password deve contenere almeno 8 caratteri e includere lettere, numeri e simboli + + + Inserisci di nuovo la password per assicurare la corrispondenza + + + Scegli un nome utente univoco per il tuo account (3-255 caratteri) + + + Il recupero della password è consentito solo con l'autenticazione a due fattori attivata! + + + Attiva Autenticazione A Due Fattori + + + Accedi + + + Password + + + Conferma Password + + + Registrati + + + Scansiona Codice TOTP + + + Nome utente + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ja-JP.resx new file mode 100644 index 00000000..1275d3ee --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ja-JP.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + アカウント作成完了 + + + 管理者アカウント登録 + + + アカウントのセキュリティに推奨され、パスワード再設定に必要です + + + パスワードは8文字以上で、文字、数字、記号を含める必要があります + + + 確認のためパスワードをもう一度入力してください + + + アカウントのユーザー名を設定してください(3-255文字) + + + パスワードの再設定は二要素認証が有効な場合のみ許可されます! + + + 二要素認証を有効にする + + + ログイン + + + パスワード + + + パスワード確認 + + + 登録 + + + TOTPコードをスキャン + + + ユーザー名 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.resx new file mode 100644 index 00000000..c7f45d67 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Account Created + + + Admin account registration + + + Recommended for account security and required for password recovery + + + Password must be at least 8 characters and include letters, numbers, and symbols + + + Re-enter your password to ensure it matches + + + Choose a unique username for your account (3-20 characters) + + + Password recovery is allowed only if two factor authentication is enabled! + + + Enable two factor authentication + + + Login + + + Password + + + Password Confirm + + + Register + + + Scan TOTP Code + + + Username + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ro-RO.resx new file mode 100644 index 00000000..f68ac038 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ro-RO.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cont Creat + + + Înregistrare Cont Administrator + + + Recomandat pentru securitatea contului și necesar pentru recuperarea parolei + + + Parola trebuie să conțină cel puțin 8 caractere și să includă litere, cifre și simboluri + + + Reintroduceți parola pentru a verifica potrivirea + + + Alegeți un nume de utilizator unic pentru cont (3-255 caractere) + + + Recuperarea parolei este permisă doar cu autentificarea în doi pași activată! + + + Activare Autentificare În Doi Pași + + + Autentificare + + + Parolă + + + Confirmare Parolă + + + Înregistrare + + + Scanare Cod TOTP + + + Nume utilizator + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ru-RU.resx new file mode 100644 index 00000000..d1c2dd7d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.ru-RU.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Учетная Запись Создана + + + Регистрация Учетной Записи Администратора + + + Рекомендуется для безопасности учетной записи и требуется для восстановления пароля + + + Пароль должен содержать не менее 8 символов и включать буквы, цифры и специальные знаки + + + Введите пароль повторно для проверки совпадения + + + Выберите уникальное имя пользователя для учетной записи (3-255 символов) + + + Восстановление пароля возможно только при включенной двухфакторной аутентификации! + + + Включить Двухфакторную Аутентификацию + + + Вход + + + Пароль + + + Подтверждение Пароля + + + Регистрация + + + Сканировать TOTP-код + + + Имя пользователя + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.zh-CN.resx new file mode 100644 index 00000000..b80b2d11 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Auth/Register.zh-CN.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 账号已创建 + + + 管理员账号注册 + + + 推荐用于账户安全且密码找回必需 + + + 密码必须至少8个字符且包含字母、数字和符号 + + + 请再次输入密码以确保匹配 + + + 为账号选择一个独特的用户名(3-255个字符) + + + 仅在启用双重认证后才允许密码找回! + + + 启用双重认证 + + + 登录 + + + 密码 + + + 确认密码 + + + 注册 + + + 扫描TOTP验证码 + + + 用户名 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.de-DE.resx new file mode 100644 index 00000000..45dca514 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.de-DE.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Keine Bibliotheken + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.en-US.resx new file mode 100644 index 00000000..d3883307 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.en-US.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + No libraries + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.es-ES.resx new file mode 100644 index 00000000..5eb2e603 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.es-ES.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Sin bibliotecas + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.fr-FR.resx new file mode 100644 index 00000000..4fb27e5a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.fr-FR.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Aucune bibliothèque + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.it-IT.resx new file mode 100644 index 00000000..a018f86d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.it-IT.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Nessuna libreria + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ja-JP.resx new file mode 100644 index 00000000..b826da97 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ja-JP.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ライブラリがありません + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.resx new file mode 100644 index 00000000..5bc23ade --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + No libraries + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ro-RO.resx new file mode 100644 index 00000000..c44563bc --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ro-RO.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Nicio bibliotecă + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ru-RU.resx new file mode 100644 index 00000000..1b297550 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.ru-RU.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Нет библиотек + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.zh-CN.resx new file mode 100644 index 00000000..9552d9c3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Home/Index.zh-CN.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 无库 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx new file mode 100644 index 00000000..fd3f500c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.de-DE.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Wissenschaftliche Arbeit + + + Aktionen + + + Anime + + + Hörbuch + + + Buch + + + Buchreihe + + + Abgebrochen + + + Scan Abbrechen + + + Comic-Heft + + + Comic-Serie + + + Datei-Hashes werden verglichen... + + + Abgeschlossen + + + Konzert + + + Coverversion + + + Sind Sie sicher, dass Sie die ausgewählte Bibliothek löschen möchten? + + + Dateien werden erkannt... + + + Dokumentarfilm + + + E-Buch + + + Bearbeiten + + + Aktiviert + + + Fehlgeschlagen + + + Filmfranchise + + + Filmreihe + + + Metadaten werden angereichert... + + + Berechne die Datei-Hashes... + + + Grafischer Roman + + + Interview + + + Bibliotheken + + + Die Bibliothek wurde gelöscht! + + + Bibliothekstyp + + + Live-Auftritt + + + Gesperrt + + + Zeitschrift + + + Manga + + + Spielfilm + + + Musik + + + Nein + + + Keine Bibliotheken + + + Sonstige + + + Persönlich + + + Fotoalbum + + + Podcast + + + Radiosendung + + + Neuabmischung + + + Entfernen + + + Scandaten werden gespeichert... + + + Scannen + + + Alle Bibliotheken Scannen + + + Drehbuch + + + Notenblatt + + + Soundeffekt + + + Titel + + + Anleitung + + + Fernsehserie + + + Videoclip + + + Ja + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx new file mode 100644 index 00000000..b5b3f263 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.en-US.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Academic Paper + + + Actions + + + Anime + + + Audio Book + + + Book + + + Book Series + + + Canceled + + + Cancel Scan + + + Comic Book + + + Comic Series + + + Comparing file hashes... + + + Completed + + + Concert + + + Cover + + + Are you sure you want to delete the specified library? + + + Discovering files... + + + Documentary + + + E Book + + + Edit + + + Enabled + + + Failed + + + Film Franchise + + + Film Series + + + Enriching metadata... + + + Hashing file contents... + + + Graphic Novel + + + Interview + + + Libraries + + + The library has been deleted! + + + Library Type + + + Live Performance + + + Locked + + + Magazine + + + Manga + + + Movie + + + Music + + + No + + + No libraries + + + Other + + + Personal + + + Photo Album + + + Podcast + + + Radio Show + + + Remix + + + Remove + + + Saving scan data... + + + Scan + + + Scan All Libraries + + + Screenplay + + + Sheet Music + + + Sound Effect + + + Title + + + Tutorial + + + Tv Show + + + Videoclip + + + Yes + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx new file mode 100644 index 00000000..18ea70c2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.es-ES.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Artículo Académico + + + Acciones + + + Anime + + + Audiolibro + + + Libro + + + Serie de Libros + + + Cancelado + + + Cancelar Escaneo + + + Cómic + + + Serie de Cómics + + + Se están comparando hashes de archivos... + + + Completado + + + Concierto + + + Versión + + + ¿Está seguro de que desea eliminar la biblioteca especificada? + + + Descubriendo archivos... + + + Documental + + + Libro Electrónico + + + Editar + + + Activado + + + Fallido + + + Franquicia Cinematográfica + + + Saga Cinematográfica + + + Enriqueciendo metadatos... + + + Calculando los hashes de los archivos... + + + Novela Gráfica + + + Entrevista + + + Bibliotecas + + + ¡La biblioteca ha sido eliminada! + + + Tipo de Biblioteca + + + Actuación en Vivo + + + Bloqueado + + + Revista + + + Manga + + + Película + + + Música + + + No + + + Sin bibliotecas + + + Otro + + + Personal + + + Álbum de Fotos + + + Podcast + + + Programa de Radio + + + Remezcla + + + Eliminar + + + Guardando datos del escaneo... + + + Escanear + + + Escanear Todas Las Bibliotecas + + + Guión + + + Partitura Musical + + + Efecto de Sonido + + + Título + + + Tutorial + + + Serie de Televisión + + + Videoclip + + + Sí + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx new file mode 100644 index 00000000..3ca27a25 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.fr-FR.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Article Académique + + + Actions + + + Animé + + + Livre Audio + + + Livre + + + Série de Livres + + + Annulé + + + Annuler Le Scan + + + Bande Dessinée + + + Série de Bandes Dessinées + + + Comparer les hachages de fichiers... + + + Terminé + + + Concert + + + Reprise + + + Êtes-vous sûr de vouloir supprimer la bibliothèque spécifiée? + + + Découverte des fichiers... + + + Documentaire + + + Livre Numérique + + + Modifier + + + Activé + + + Échec + + + Franchise Cinématographique + + + Saga Cinématographique + + + Enrichissement des métadonnées... + + + Calcul des hachages des fichiers... + + + Roman Graphique + + + Entretien + + + Bibliothèques + + + La bibliothèque a été supprimée! + + + Type de Bibliothèque + + + Concert Live + + + Verrouillé + + + Magazine + + + Manga + + + Film + + + Musique + + + Non + + + Aucune bibliothèque + + + Autre + + + Personnel + + + Album Photo + + + Podcast + + + Émission Radio + + + Remixage + + + Supprimer + + + Sauvegarde des données de scan en cours... + + + Scanner + + + Scanner Toutes Les Bibliothèques + + + Scénario + + + Partition Musicale + + + Effet Sonore + + + Titre + + + Tutoriel + + + Série Télévisée + + + Clip Vidéo + + + Oui + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx new file mode 100644 index 00000000..9387d8eb --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.it-IT.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Articolo Accademico + + + Azioni + + + Anime + + + Audiolibro + + + Libro + + + Serie di Libri + + + Annullato + + + Annulla Scansione + + + Fumetto + + + Serie di Fumetti + + + Si stanno confrontando gli hash dei file... + + + Completato + + + Concerto + + + Reinterpretazione + + + È sicuro di voler eliminare la libreria specificata? + + + Rilevamento dei file... + + + Documentario + + + E-Book + + + Modifica + + + Attivato + + + Fallito + + + Franchise Cinematografico + + + Saga Cinematografica + + + Arricchimento dei metadati... + + + Calcolo degli hash dei file... + + + Romanzo Grafico + + + Intervista + + + Librerie + + + La libreria è stata eliminata! + + + Tipo di Libreria + + + Esibizione dal Vivo + + + Bloccato + + + Rivista + + + Manga + + + Film + + + Musica + + + No + + + Nessuna libreria + + + Altro + + + Personale + + + Album Fotografico + + + Podcast + + + Programma Radiofonico + + + Remissaggio + + + Rimuovere + + + Salvataggio dei dati di scansione... + + + Scansiona + + + Scansiona Tutte Le Librerie + + + Sceneggiatura + + + Spartito Musicale + + + Effetto Sonoro + + + Titolo + + + Tutorial + + + Serie Televisiva + + + Videoclip + + + Sì + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx new file mode 100644 index 00000000..a88d1ea1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ja-JP.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 学術論文 + + + アクション + + + アニメ + + + オーディオブック + + + 本 + + + 本シリーズ + + + キャンセル済み + + + スキャンを中止 + + + 漫画 + + + 漫画シリーズ + + + ファイルのハッシュを比較中... + + + 完了 + + + コンサート + + + カバー曲 + + + 指定されたライブラリを削除してもよろしいですか? + + + ファイルを検出中... + + + ドキュメンタリー + + + 電子書籍 + + + 編集 + + + 有効 + + + 失敗 + + + 映画フランチャイズ + + + 映画シリーズ + + + メタデータを補完しています... + + + ファイルのハッシュを計算中... + + + グラフィックノベル + + + インタビュー + + + ライブラリ + + + ライブラリが削除されました! + + + ライブラリの種類 + + + ライブパフォーマンス + + + ロック済 + + + 雑誌 + + + 漫画 + + + 映画 + + + 音楽 + + + いいえ + + + ライブラリがありません + + + その他 + + + 個人的な + + + フォトアルバム + + + ポッドキャスト + + + ラジオ番組 + + + リミックス + + + 削除 + + + スキャンデータを保存中... + + + スキャン + + + すべてのライブラリをスキャン + + + 脚本 + + + 楽譜 + + + 効果音 + + + タイトル + + + チュートリアル + + + テレビドラマ + + + 動画クリップ + + + はい + + + ユーチューブ + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx new file mode 100644 index 00000000..b5b3f263 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Academic Paper + + + Actions + + + Anime + + + Audio Book + + + Book + + + Book Series + + + Canceled + + + Cancel Scan + + + Comic Book + + + Comic Series + + + Comparing file hashes... + + + Completed + + + Concert + + + Cover + + + Are you sure you want to delete the specified library? + + + Discovering files... + + + Documentary + + + E Book + + + Edit + + + Enabled + + + Failed + + + Film Franchise + + + Film Series + + + Enriching metadata... + + + Hashing file contents... + + + Graphic Novel + + + Interview + + + Libraries + + + The library has been deleted! + + + Library Type + + + Live Performance + + + Locked + + + Magazine + + + Manga + + + Movie + + + Music + + + No + + + No libraries + + + Other + + + Personal + + + Photo Album + + + Podcast + + + Radio Show + + + Remix + + + Remove + + + Saving scan data... + + + Scan + + + Scan All Libraries + + + Screenplay + + + Sheet Music + + + Sound Effect + + + Title + + + Tutorial + + + Tv Show + + + Videoclip + + + Yes + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx new file mode 100644 index 00000000..b1735455 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ro-RO.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Lucrare Academică + + + Acțiuni + + + Anime + + + Carte Audio + + + Carte + + + Serie de Cărți + + + Anulat + + + Anulează Scanarea + + + Bandă Desenată + + + Serie de Benzi Desenate + + + Se compară hash-urile fișierelor... + + + Finalizat + + + Concert + + + Preluare + + + Sunteți sigur că doriți să ștergeți biblioteca specificată? + + + Se descoperă fișierele... + + + Documentar + + + Carte Electronică + + + Editează + + + Activat + + + Eșuat + + + Franciză de Film + + + Serie de Filme + + + Se îmbogățesc metadatele... + + + Se calculează hash-urile fișierelor... + + + Roman Grafic + + + Interviu + + + Biblioteci + + + Biblioteca a fost ștearsă! + + + Tip Bibliotecă + + + Spectacol Live + + + Blocat + + + Revistă + + + Manga + + + Film + + + Muzică + + + Nu + + + Nicio bibliotecă + + + Altceva + + + Personal + + + Album Foto + + + Podcast + + + Emisiune Radio + + + Remix + + + Șterge + + + Se salvează datele de scanare... + + + Scanează + + + Scanează Toate Bibliotecile + + + Scenariu + + + Partitură Muzicală + + + Efect Sonor + + + Titlu + + + Tutorial + + + Serial TV + + + Videoclip + + + Da + + + YouTube + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ru-RU.resx new file mode 100644 index 00000000..98adbae1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.ru-RU.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Научная Статья + + + Действия + + + Аниме + + + Аудиокнига + + + Книга + + + Книжная Серия + + + Отменено + + + Отменить Сканирование + + + Комикс + + + Серия Комиксов + + + Сравнение хешей файлов... + + + Завершено + + + Концерт + + + Кавер + + + Вы уверены, что хотите удалить указанную библиотеку? + + + Обнаружение файлов... + + + Документальный Фильм + + + Электронная Книга + + + Редактировать + + + Включено + + + Ошибка + + + Кинофраншиза + + + Киносерия + + + Обогащение метаданных... + + + Вычисление хешей файлов... + + + Графический Роман + + + Интервью + + + Библиотеки + + + Библиотека удалена! + + + Тип Библиотеки + + + Живое Выступление + + + Заблокировано + + + Журнал + + + Манга + + + Фильм + + + Музыка + + + Нет + + + Нет библиотек + + + Другой + + + Личный + + + Фотоальбом + + + Подкаст + + + Радиопередача + + + Ремикс + + + Удалить + + + Сохранение данных сканирования... + + + Сканировать + + + Сканировать Все Библиотеки + + + Сценарий + + + Нотная Запись + + + Звуковой Эффект + + + Заголовок + + + Учебник + + + Телесериал + + + Видеоролик + + + Да + + + Ютуб + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx new file mode 100644 index 00000000..fa8f6f81 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Index.zh-CN.resx @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 学术论文 + + + 操作 + + + 动画 + + + 有声书 + + + 书 + + + 丛书 + + + 已取消 + + + 取消扫描 + + + 漫画 + + + 漫画系列 + + + 正在比较文件哈希值... + + + 已完成 + + + 音乐会 + + + 翻唱 + + + 您确定要删除指定的库吗? + + + 正在发现文件... + + + 纪录片 + + + 电子书 + + + 编辑 + + + 已启用 + + + 失败 + + + 电影系列品牌 + + + 电影系列 + + + 正在丰富元数据... + + + 正在计算文件哈希... + + + 图像小说 + + + 访谈 + + + 库 + + + 库已删除! + + + 库类型 + + + 现场表演 + + + 已锁定 + + + 杂志 + + + 漫画 + + + 电影 + + + 音乐 + + + 否 + + + 无库 + + + 其他 + + + 个人的 + + + 相册 + + + 播客 + + + 广播节目 + + + 混音版 + + + 删除 + + + 正在保存扫描数据... + + + 扫描 + + + 扫描所有库 + + + 剧本 + + + 乐谱 + + + 音效 + + + 标题 + + + 教程 + + + 电视连续剧 + + + 视频短片 + + + 是 + + + 油管 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.Designer.cs b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.Designer.cs new file mode 100644 index 00000000..33123b17 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.Designer.cs @@ -0,0 +1,720 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Lumina.Presentation.Web.Core.Resources.Views.Library.Management { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Item { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Item() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Core.Resources.Views.Library.Management.Item", typeof(Item).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Academic Paper. + /// + public static string AcademicPaper { + get { + return ResourceManager.GetString("AcademicPaper", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add directory. + /// + public static string AddDirectory { + get { + return ResourceManager.GetString("AddDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add image. + /// + public static string AddImage { + get { + return ResourceManager.GetString("AddImage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add New Library. + /// + public static string AddNewLibrary { + get { + return ResourceManager.GetString("AddNewLibrary", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Advanced Settings. + /// + public static string AdvancedSettings { + get { + return ResourceManager.GetString("AdvancedSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Anime. + /// + public static string Anime { + get { + return ResourceManager.GetString("Anime", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Audio Book. + /// + public static string AudioBook { + get { + return ResourceManager.GetString("AudioBook", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Audio Content. + /// + public static string AudioContent { + get { + return ResourceManager.GetString("AudioContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Back To Libraries. + /// + public static string BackToLibraries { + get { + return ResourceManager.GetString("BackToLibraries", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Book. + /// + public static string Book { + get { + return ResourceManager.GetString("Book", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Book Series. + /// + public static string BookSeries { + get { + return ResourceManager.GetString("BookSeries", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Comic Book. + /// + public static string ComicBook { + get { + return ResourceManager.GetString("ComicBook", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Comic Series. + /// + public static string ComicSeries { + get { + return ResourceManager.GetString("ComicSeries", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Concert. + /// + public static string Concert { + get { + return ResourceManager.GetString("Concert", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cover. + /// + public static string Cover { + get { + return ResourceManager.GetString("Cover", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cover Image. + /// + public static string CoverImage { + get { + return ResourceManager.GetString("CoverImage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the image file that will be used as the cover for this library. + /// + public static string DescriptionCover { + get { + return ResourceManager.GetString("DescriptionCover", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the folders containing the media files of this library. + /// + public static string DescriptionDirectories { + get { + return ResourceManager.GetString("DescriptionDirectories", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Whether this media library should get the metadata of it elements by downloading it from the Internet, or not.. + /// + public static string DescriptionDownloadMetadataFromWeb { + get { + return ResourceManager.GetString("DescriptionDownloadMetadataFromWeb", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Whether this media library is disabled or not. A disabled library is not displayed to the users, scanned, updated, etc.. + /// + public static string DescriptionEnabled { + get { + return ResourceManager.GetString("DescriptionEnabled", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select the type of media content this library will contain. + /// + public static string DescriptionLibraryType { + get { + return ResourceManager.GetString("DescriptionLibraryType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Whether this media library is locked or not. A locked library is displayed to the users, but it is never scanned, updated, modified, etc.. + /// + public static string DescriptionLocked { + get { + return ResourceManager.GetString("DescriptionLocked", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The metadata providers used to enrich the items of this library, in the order they are tried.. + /// + public static string DescriptionMetadataProviders { + get { + return ResourceManager.GetString("DescriptionMetadataProviders", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Whether to save a copy of the downloaded metadata in the media library content locations directories, or not. This only has an effect if downloading metadata from the web is active.. + /// + public static string DescriptionShouldSaveMetadataInMediaDirectories { + get { + return ResourceManager.GetString("DescriptionShouldSaveMetadataInMediaDirectories", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to When enabled, this option uses directory metadata to skip directories that have not changed since the last scan. This can _significantly_ speed up scans, but be aware that directories metadata _does not_ change/update when editing existing files, it does so only when adding new files or deleting existing ones. Only enable this if you don't modify existing files.. + /// + public static string DescriptionShouldSkipUnchangedDirectoriesDuringScan { + get { + return ResourceManager.GetString("DescriptionShouldSkipUnchangedDirectoriesDuringScan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A name to identify this library. + /// + public static string DescriptionTitle { + get { + return ResourceManager.GetString("DescriptionTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Directories. + /// + public static string Directories { + get { + return ResourceManager.GetString("Directories", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Documentary. + /// + public static string Documentary { + get { + return ResourceManager.GetString("Documentary", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Download Metadata From The Web. + /// + public static string DownloadMetadataFromWeb { + get { + return ResourceManager.GetString("DownloadMetadataFromWeb", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to E Book. + /// + public static string EBook { + get { + return ResourceManager.GetString("EBook", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Edit Library. + /// + public static string EditLibrary { + get { + return ResourceManager.GetString("EditLibrary", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enabled. + /// + public static string Enabled { + get { + return ResourceManager.GetString("Enabled", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Film Franchise. + /// + public static string FilmFranchise { + get { + return ResourceManager.GetString("FilmFranchise", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Film Series. + /// + public static string FilmSeries { + get { + return ResourceManager.GetString("FilmSeries", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to General Information. + /// + public static string GeneralInformation { + get { + return ResourceManager.GetString("GeneralInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Graphic Novel. + /// + public static string GraphicNovel { + get { + return ResourceManager.GetString("GraphicNovel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Interview. + /// + public static string Interview { + get { + return ResourceManager.GetString("Interview", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Library Saved. + /// + public static string LibrarySaved { + get { + return ResourceManager.GetString("LibrarySaved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Library Type. + /// + public static string LibraryType { + get { + return ResourceManager.GetString("LibraryType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Live Performance. + /// + public static string LivePerformance { + get { + return ResourceManager.GetString("LivePerformance", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Locked. + /// + public static string Locked { + get { + return ResourceManager.GetString("Locked", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Magazine. + /// + public static string Magazine { + get { + return ResourceManager.GetString("Magazine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Manga. + /// + public static string Manga { + get { + return ResourceManager.GetString("Manga", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Metadata providers. + /// + public static string MetadataProviders { + get { + return ResourceManager.GetString("MetadataProviders", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Miscellaneous Content. + /// + public static string MiscellaneousContent { + get { + return ResourceManager.GetString("MiscellaneousContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Move down. + /// + public static string MoveDown { + get { + return ResourceManager.GetString("MoveDown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Move up. + /// + public static string MoveUp { + get { + return ResourceManager.GetString("MoveUp", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Movie. + /// + public static string Movie { + get { + return ResourceManager.GetString("Movie", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Music. + /// + public static string Music { + get { + return ResourceManager.GetString("Music", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Name. + /// + public static string Name { + get { + return ResourceManager.GetString("Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Order. + /// + public static string Order { + get { + return ResourceManager.GetString("Order", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Order saved. + /// + public static string OrderSaved { + get { + return ResourceManager.GetString("OrderSaved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Other. + /// + public static string Other { + get { + return ResourceManager.GetString("Other", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Personal. + /// + public static string Personal { + get { + return ResourceManager.GetString("Personal", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Photo Album. + /// + public static string PhotoAlbum { + get { + return ResourceManager.GetString("PhotoAlbum", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Podcast. + /// + public static string Podcast { + get { + return ResourceManager.GetString("Podcast", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Radio Show. + /// + public static string RadioShow { + get { + return ResourceManager.GetString("RadioShow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remix. + /// + public static string Remix { + get { + return ResourceManager.GetString("Remix", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove. + /// + public static string Remove { + get { + return ResourceManager.GetString("Remove", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save. + /// + public static string Save { + get { + return ResourceManager.GetString("Save", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Screenplay. + /// + public static string Screenplay { + get { + return ResourceManager.GetString("Screenplay", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sheet Music. + /// + public static string SheetMusic { + get { + return ResourceManager.GetString("SheetMusic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save Metadata In Media Directories. + /// + public static string ShouldSaveMetadataInMediaDirectories { + get { + return ResourceManager.GetString("ShouldSaveMetadataInMediaDirectories", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Skip Unchanged Directories During Scan. + /// + public static string ShouldSkipUnchangedDirectoriesDuringScan { + get { + return ResourceManager.GetString("ShouldSkipUnchangedDirectoriesDuringScan", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sound Effect. + /// + public static string Soundeffect { + get { + return ResourceManager.GetString("Soundeffect", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Title. + /// + public static string Title { + get { + return ResourceManager.GetString("Title", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Tutorial. + /// + public static string Tutorial { + get { + return ResourceManager.GetString("Tutorial", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Tv Show. + /// + public static string TvShow { + get { + return ResourceManager.GetString("TvShow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Videoclip. + /// + public static string Videoclip { + get { + return ResourceManager.GetString("Videoclip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Video Content. + /// + public static string VideoContent { + get { + return ResourceManager.GetString("VideoContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Visual Content. + /// + public static string VisualContent { + get { + return ResourceManager.GetString("VisualContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Written Content. + /// + public static string WrittenContent { + get { + return ResourceManager.GetString("WrittenContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to YouTube. + /// + public static string YouTube { + get { + return ResourceManager.GetString("YouTube", resourceCulture); + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.de-DE.resx new file mode 100644 index 00000000..78b24eb2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.de-DE.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Wissenschaftliche Arbeit + + + Verzeichnis hinzufügen + + + Bild hinzufügen + + + Neue Bibliothek Hinzufügen + + + Erweiterte Einstellungen + + + Anime + + + Hörbuch + + + Audioinhalt + + + Zurück Zu Bibliotheken + + + Buch + + + Buchreihe + + + Comic-Heft + + + Comic-Serie + + + Konzert + + + Coverversion + + + Titelbild + + + Wählen Sie die Bilddatei aus, die als Cover für diese Bibliothek verwendet wird + + + Wählen Sie die Ordner mit den Mediendateien dieser Bibliothek aus + + + Ob diese Medienbibliothek die Metadaten ihrer Elemente aus dem Internet herunterladen soll oder nicht. + + + Ob diese Medienbibliothek deaktiviert ist oder nicht. Eine deaktivierte Bibliothek wird den Benutzern nicht angezeigt, nicht gescannt, nicht aktualisiert, usw. + + + Wählen Sie die Art der Medieninhalte aus, die diese Bibliothek enthalten soll + + + Ob diese Medienbibliothek gesperrt ist oder nicht. Eine gesperrte Bibliothek wird den Benutzern angezeigt, wird aber nie gescannt, aktualisiert, verändert, usw. + + + Ob eine Kopie der heruntergeladenen Metadaten in den Verzeichnissen der Medienbibliothek gespeichert werden soll oder nicht. Dies hat nur eine Auswirkung, wenn das Herunterladen von Metadaten aus dem Web aktiv ist. + + + Wenn diese Option aktiviert ist, verwendet sie Verzeichnismetadaten, um Verzeichnisse zu überspringen, die sich seit dem letzten Scan nicht geändert haben. Dies kann die Scans _erheblich_ beschleunigen, aber beachten Sie, dass sich die Metadaten von Verzeichnissen _nicht_ ändern/aktualisieren, wenn vorhandene Dateien bearbeitet werden, sondern nur, wenn neue Dateien hinzugefügt oder vorhandene gelöscht werden. Aktivieren Sie diese Option nur, wenn Sie keine vorhandenen Dateien ändern. + + + Eine Bezeichnung für diese Bibliothek + + + Verzeichnisse + + + Dokumentarfilm + + + Metadaten Aus Dem Web Herunterladen + + + E-Buch + + + Bibliothek Bearbeiten + + + Aktiviert + + + Filmfranchise + + + Filmreihe + + + Allgemeine Informationen + + + Grafischer Roman + + + Interview + + + Bibliothek Gespeichert + + + Bibliothekstyp + + + Live-Auftritt + + + Gesperrt + + + Zeitschrift + + + Manga + + + Verschiedene Inhalte + + + Spielfilm + + + Musik + + + Sonstige + + + Persönlich + + + Fotoalbum + + + Podcast + + + Radiosendung + + + Neuabmischung + + + Entfernen + + + Speichern + + + Metadaten In Medienverzeichnissen Speichern + + + Unveränderte Ordner Beim Scannen Überspringen + + + Drehbuch + + + Notenblatt + + + Soundeffekt + + + Titel + + + Anleitung + + + Fernsehserie + + + Videoclip + + + Videoinhalt + + + Visueller Inhalt + + + Schriftliche Inhalte + + + YouTube + + + Name + + + Metadatenanbieter + + + Reihenfolge + + + Nach oben + + + Nach unten + + + Reihenfolge gespeichert + + + Die Metadatenanbieter, die verwendet werden, um die Elemente dieser Bibliothek anzureichern, in der Reihenfolge, in der sie versucht werden. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.en-US.resx new file mode 100644 index 00000000..2b704429 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.en-US.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Academic Paper + + + Add directory + + + Add image + + + Add New Library + + + Advanced Settings + + + Anime + + + Audio Book + + + Audio Content + + + Back To Libraries + + + Book + + + Book Series + + + Comic Book + + + Comic Series + + + Concert + + + Cover + + + Cover Image + + + Select the image file that will be used as the cover for this library + + + Select the folders containing the media files of this library + + + Whether this media library should get the metadata of it elements by downloading it from the Internet, or not. + + + Whether this media library is disabled or not. A disabled library is not displayed to the users, scanned, updated, etc. + + + Select the type of media content this library will contain + + + Whether this media library is locked or not. A locked library is displayed to the users, but it is never scanned, updated, modified, etc. + + + Whether to save a copy of the downloaded metadata in the media library content locations directories, or not. This only has an effect if downloading metadata from the web is active. + + + When enabled, this option uses directory metadata to skip directories that have not changed since the last scan. This can _significantly_ speed up scans, but be aware that directories metadata _does not_ change/update when editing existing files, it does so only when adding new files or deleting existing ones. Only enable this if you don't modify existing files. + + + A name to identify this library + + + Directories + + + Documentary + + + Download Metadata From The Web + + + E Book + + + Edit Library + + + Enabled + + + Film Franchise + + + Film Series + + + General Information + + + Graphic Novel + + + Interview + + + Library Saved + + + Library Type + + + Live Performance + + + Locked + + + Magazine + + + Manga + + + Miscellaneous Content + + + Movie + + + Music + + + Other + + + Personal + + + Photo Album + + + Podcast + + + Radio Show + + + Remix + + + Remove + + + Save + + + Save Metadata In Media Directories + + + Skip Unchanged Directories During Scan + + + Screenplay + + + Sheet Music + + + Sound Effect + + + Title + + + Tutorial + + + Tv Show + + + Videoclip + + + Video Content + + + Visual Content + + + Written Content + + + YouTube + + + Name + + + Metadata providers + + + Order + + + Move up + + + Move down + + + Order saved + + + The metadata providers used to enrich the items of this library, in the order they are tried. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.es-ES.resx new file mode 100644 index 00000000..b900c27a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.es-ES.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Artículo Académico + + + Agregar directorio + + + Añadir imagen + + + Agregar Nueva Biblioteca + + + Configuración Avanzada + + + Anime + + + Audiolibro + + + Contenido de Audio + + + Volver A Las Bibliotecas + + + Libro + + + Serie de Libros + + + Cómic + + + Serie de Cómics + + + Concierto + + + Versión + + + Imagen De Portada + + + Seleccione el archivo de imagen que se usará como portada para esta biblioteca + + + Selecciona las carpetas que contienen los archivos multimedia de esta biblioteca + + + Si esta biblioteca multimedia debe obtener los metadatos de sus elementos descargándolos de Internet o no. + + + Si esta biblioteca multimedia está desactivada o no. Una biblioteca desactivada no se muestra a los usuarios, no se escanea, no se actualiza, etc. + + + Selecciona el tipo de contenido multimedia que contendrá esta biblioteca + + + Si esta biblioteca multimedia está bloqueada o no. Una biblioteca bloqueada se muestra a los usuarios, pero nunca se escanea, actualiza, modifica, etc. + + + Si guardar o no una copia de los metadatos descargados en los directorios de contenido de la biblioteca multimedia. Esto solo tiene efecto si la descarga de metadatos desde la web está activa. + + + Cuando esta opción está habilitada, utiliza los metadatos de los directorios para omitir los directorios que no han cambiado desde el último escaneo. Esto puede acelerar _significativamente_ los escaneos, pero tenga en cuenta que los metadatos de los directorios _no_ cambian/actualizan al editar archivos existentes, solo lo hacen al agregar archivos nuevos o eliminar archivos existentes. Habilite esta opción solo si no modifica archivos existentes. + + + Un nombre para identificar esta biblioteca + + + Directorios + + + Documental + + + Descargar Metadatos Desde La Web + + + Libro Electrónico + + + Editar Biblioteca + + + Activado + + + Franquicia Cinematográfica + + + Saga Cinematográfica + + + Información General + + + Novela Gráfica + + + Entrevista + + + Biblioteca Guardada + + + Tipo de Biblioteca + + + Actuación en Vivo + + + Bloqueado + + + Revista + + + Manga + + + Contenido Diverso + + + Película + + + Música + + + Otro + + + Personal + + + Álbum de Fotos + + + Podcast + + + Programa de Radio + + + Remezcla + + + Eliminar + + + Guardar + + + Guardar Metadatos En Los Directorios Multimedia + + + Omitir Carpetas Sin Cambios Durante El Escaneo + + + Guión + + + Partitura Musical + + + Efecto de Sonido + + + Título + + + Tutorial + + + Serie de Televisión + + + Videoclip + + + Contenido de Video + + + Contenido Visual + + + Contenido Escrito + + + YouTube + + + Nombre + + + Proveedores de metadatos + + + Orden + + + Subir + + + Bajar + + + Orden guardado + + + Los proveedores de metadatos utilizados para enriquecer los elementos de esta biblioteca, en el orden en que se prueban. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.fr-FR.resx new file mode 100644 index 00000000..97ab6e8a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.fr-FR.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Article Académique + + + Ajouter un répertoire + + + Ajouter une image + + + Ajouter Une Nouvelle Bibliothèque + + + Paramètres Avancés + + + Animé + + + Livre Audio + + + Contenu Audio + + + Retour Aux Bibliothèques + + + Livre + + + Série de Livres + + + Bande Dessinée + + + Série de Bandes Dessinées + + + Concert + + + Reprise + + + Image De Couverture + + + Sélectionnez le fichier image qui servira de couverture pour cette bibliothèque + + + Sélectionnez les dossiers contenant les fichiers multimédias de cette bibliothèque + + + Si cette médiathèque doit obtenir les métadonnées de ses éléments en les téléchargeant depuis Internet ou non. + + + Si cette médiathèque est désactivée ou non. Une bibliothèque désactivée n'est pas affichée aux utilisateurs, ni analysée, ni mise à jour, etc. + + + Choisissez le type de contenu multimédia que contiendra cette bibliothèque + + + Si cette médiathèque est verrouillée ou non. Une bibliothèque verrouillée est affichée aux utilisateurs, mais n'est jamais analysée, mise à jour, modifiée, etc. + + + Si une copie des métadonnées téléchargées doit être sauvegardée dans les répertoires de contenu de la médiathèque ou non. Ceci n'a d'effet que si le téléchargement des métadonnées depuis le web est actif. + + + Lorsque cette option est activée, elle utilise les métadonnées des dossiers pour ignorer les dossiers qui n'ont pas changé depuis la dernière analyse. Cela peut accélérer _considérablement_ les analyses, mais sachez que les métadonnées des dossiers _ne_ changent/mettent _pas_ à jour lors de la modification de fichiers existants, seulement lors de l'ajout de nouveaux fichiers ou de la suppression de fichiers existants. N'activez cette option que si vous ne modifiez pas les fichiers existants. + + + Un nom pour identifier cette bibliothèque + + + Répertoires + + + Documentaire + + + Télécharger Les Métadonnées Depuis Le Web + + + Livre Numérique + + + Modifier La Bibliothèque + + + Activé + + + Franchise Cinématographique + + + Saga Cinématographique + + + Informations Générales + + + Roman Graphique + + + Entretien + + + Bibliothèque Enregistrée + + + Type de Bibliothèque + + + Concert Live + + + Verrouillé + + + Magazine + + + Manga + + + Contenu Divers + + + Film + + + Musique + + + Autre + + + Personnel + + + Album Photo + + + Podcast + + + Émission Radio + + + Remixage + + + Supprimer + + + Enregistrer + + + Sauvegarder Les Métadonnées Dans Les Répertoires Média + + + Ignorer Les Dossiers Inchangés Lors De L'Analyse + + + Scénario + + + Partition Musicale + + + Effet Sonore + + + Titre + + + Tutoriel + + + Série Télévisée + + + Clip Vidéo + + + Contenu Vidéo + + + Contenu Visuel + + + Contenu Écrit + + + YouTube + + + Nom + + + Fournisseurs de métadonnées + + + Ordre + + + Monter + + + Descendre + + + Ordre enregistré + + + 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. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.it-IT.resx new file mode 100644 index 00000000..c0fda72d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.it-IT.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Articolo Accademico + + + Aggiungi directory + + + Aggiungi immagine + + + Aggiungi Nuova Libreria + + + Impostazioni Avanzate + + + Anime + + + Audiolibro + + + Contenuto Audio + + + Ritorno Alle Biblioteche + + + Libro + + + Serie di Libri + + + Fumetto + + + Serie di Fumetti + + + Concerto + + + Reinterpretazione + + + Immagine Di Copertina + + + Seleziona il file immagine che sarà utilizzato come copertina per questa libreria + + + Seleziona le cartelle che contengono i file multimediali di questa biblioteca + + + Se questa libreria multimediale deve ottenere i metadati dei suoi elementi scaricandoli da Internet o meno. + + + Se questa libreria multimediale è disabilitata o meno. Una libreria disabilitata non viene mostrata agli utenti, scansionata, aggiornata, ecc. + + + Seleziona il tipo di contenuti multimediali che questa biblioteca conterrà + + + Se questa libreria multimediale è bloccata o meno. Una libreria bloccata viene mostrata agli utenti, ma non viene mai scansionata, aggiornata, modificata, ecc. + + + Se salvare o meno una copia dei metadati scaricati nelle directory dei contenuti della libreria multimediale. Questo ha effetto solo se il download dei metadati dal web è attivo. + + + Quando questa opzione è abilitata, utilizza i metadati delle cartelle per saltare le cartelle che non sono cambiate dall'ultima scansione. Questo può accelerare _significativamente_ le scansioni, ma tieni presente che i metadati delle cartelle _non_ cambiano/aggiornano quando si modificano file esistenti, lo fanno solo quando si aggiungono nuovi file o si eliminano file esistenti. Abilita questa opzione solo se non modifichi i file esistenti. + + + Un nome per identificare questa biblioteca + + + Directory + + + Documentario + + + Scarica I Metadati Dal Web + + + E-Book + + + Modifica La Libreria + + + Attivato + + + Franchise Cinematografico + + + Saga Cinematografica + + + Informazioni Generali + + + Romanzo Grafico + + + Intervista + + + Biblioteca Salvata + + + Tipo di Libreria + + + Esibizione dal Vivo + + + Bloccato + + + Rivista + + + Manga + + + Contenuti Vari + + + Film + + + Musica + + + Altro + + + Personale + + + Album Fotografico + + + Podcast + + + Programma Radiofonico + + + Remissaggio + + + Rimuovere + + + Salva + + + Salvare I Metadati Nelle Directory Multimediali + + + Salta Cartelle Invariate Durante La Scansione + + + Sceneggiatura + + + Spartito Musicale + + + Effetto Sonoro + + + Titolo + + + Tutorial + + + Serie Televisiva + + + Videoclip + + + Contenuto Video + + + Contenuto Visivo + + + Contenuto Scritto + + + YouTube + + + Nome + + + Fornitori di metadati + + + Ordine + + + Sposta su + + + Sposta giù + + + Ordine salvato + + + I fornitori di metadati utilizzati per arricchire gli elementi di questa libreria, nell'ordine in cui vengono provati. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ja-JP.resx new file mode 100644 index 00000000..471fbf00 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ja-JP.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 学術論文 + + + ディレクトリを追加 + + + 画像を追加 + + + 新しい ライブラリ 追加 + + + 詳細設定 + + + アニメ + + + オーディオブック + + + 音声コンテンツ + + + 図書館に戻る + + + 本 + + + 本シリーズ + + + 漫画 + + + 漫画シリーズ + + + コンサート + + + カバー曲 + + + カバー画像 + + + このライブラリのカバーとして使用する画像ファイルを選択してください + + + このライブラリのメディアファイルを含むフォルダを選択してください + + + このメディアライブラリの要素のメタデータをインターネットからダウンロードして取得するかどうか。 + + + このメディアライブラリが無効になっているかどうか。無効化されたライブラリはユーザーに表示されず、スキャンされず、更新もされません。 + + + この図書館に含める媒体コンテンツの種類を選択してください + + + このメディアライブラリがロックされているかどうか。ロックされたライブラリはユーザーに表示されますが、スキャン、更新、変更などは一切されません。 + + + ダウンロードしたメタデータのコピーをメディアライブラリのコンテンツディレクトリに保存するかどうか。これはウェブからのメタデータのダウンロードが有効な場合のみ効果があります。 + + + このオプションを有効にすると、ディレクトリのメタデータを使用して、前回のスキャン以降に変更されていないディレクトリをスキップします。これによりスキャンを_大幅に_高速化できますが、既存のファイルを編集してもディレクトリのメタデータは_変更/更新されない_ことに注意してください。変更されるのは、新しいファイルを追加したときや既存のファイルを削除したときだけです。既存のファイルを変更しない場合にのみ有効にしてください。 + + + この図書館を識別するための名称 + + + ディレクトリ + + + ドキュメンタリー + + + ウェブからメタデータをダウンロード + + + 電子書籍 + + + ライブラリ 編集 + + + 有効 + + + 映画フランチャイズ + + + 映画シリーズ + + + 一般情報 + + + グラフィックノベル + + + インタビュー + + + ライブラリを保存しました + + + ライブラリの種類 + + + ライブパフォーマンス + + + ロック済 + + + 雑誌 + + + 漫画 + + + その他のコンテンツ + + + 映画 + + + 音楽 + + + その他 + + + 個人的な + + + フォトアルバム + + + ポッドキャスト + + + ラジオ番組 + + + リミックス + + + 削除 + + + 保存 + + + メディアディレクトリにメタデータを保存 + + + スキャン中に変更のないフォルダをスキップ + + + 脚本 + + + 楽譜 + + + 効果音 + + + タイトル + + + チュートリアル + + + テレビドラマ + + + 動画クリップ + + + 動画コンテンツ + + + 視覚的コンテンツ + + + 文字コンテンツ + + + ユーチューブ + + + 名前 + + + メタデータプロバイダー + + + 順序 + + + 上へ移動 + + + 下へ移動 + + + 順序を保存しました + + + このライブラリのアイテムを補完するために使用されるメタデータプロバイダーを、試行する順序で指定します。 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.resx new file mode 100644 index 00000000..2b704429 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Academic Paper + + + Add directory + + + Add image + + + Add New Library + + + Advanced Settings + + + Anime + + + Audio Book + + + Audio Content + + + Back To Libraries + + + Book + + + Book Series + + + Comic Book + + + Comic Series + + + Concert + + + Cover + + + Cover Image + + + Select the image file that will be used as the cover for this library + + + Select the folders containing the media files of this library + + + Whether this media library should get the metadata of it elements by downloading it from the Internet, or not. + + + Whether this media library is disabled or not. A disabled library is not displayed to the users, scanned, updated, etc. + + + Select the type of media content this library will contain + + + Whether this media library is locked or not. A locked library is displayed to the users, but it is never scanned, updated, modified, etc. + + + Whether to save a copy of the downloaded metadata in the media library content locations directories, or not. This only has an effect if downloading metadata from the web is active. + + + When enabled, this option uses directory metadata to skip directories that have not changed since the last scan. This can _significantly_ speed up scans, but be aware that directories metadata _does not_ change/update when editing existing files, it does so only when adding new files or deleting existing ones. Only enable this if you don't modify existing files. + + + A name to identify this library + + + Directories + + + Documentary + + + Download Metadata From The Web + + + E Book + + + Edit Library + + + Enabled + + + Film Franchise + + + Film Series + + + General Information + + + Graphic Novel + + + Interview + + + Library Saved + + + Library Type + + + Live Performance + + + Locked + + + Magazine + + + Manga + + + Miscellaneous Content + + + Movie + + + Music + + + Other + + + Personal + + + Photo Album + + + Podcast + + + Radio Show + + + Remix + + + Remove + + + Save + + + Save Metadata In Media Directories + + + Skip Unchanged Directories During Scan + + + Screenplay + + + Sheet Music + + + Sound Effect + + + Title + + + Tutorial + + + Tv Show + + + Videoclip + + + Video Content + + + Visual Content + + + Written Content + + + YouTube + + + Name + + + Metadata providers + + + Order + + + Move up + + + Move down + + + Order saved + + + The metadata providers used to enrich the items of this library, in the order they are tried. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ro-RO.resx new file mode 100644 index 00000000..faa8d55e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ro-RO.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Lucrare Academică + + + Adaugă dosar + + + Adaugă imagine + + + Adaugă Bibliotecă Nouă + + + Setări Avansate + + + Anime + + + Carte Audio + + + Conținut Audio + + + Înapoi La Biblioteci + + + Carte + + + Serie de Cărți + + + Bandă Desenată + + + Serie de Benzi Desenate + + + Concert + + + Preluare + + + Imagine Copertă + + + Selectează fișierul imagine care va fi folosit ca și copertă pentru această bibliotecă + + + Selectează dosarele care conțin fișierele media ale acestei biblioteci + + + Dacă această bibliotecă media ar trebui să obțină metadatele elementelor sale prin descărcare de pe Internet sau nu. + + + Dacă această bibliotecă media este dezactivată sau nu. O bibliotecă dezactivată nu este afișată utilizatorilor, scanată, actualizată, etc. + + + Selectează tipul de conținut media pe care îl va conține această bibliotecă + + + Dacă această bibliotecă media este blocată sau nu. O bibliotecă blocată este afișată utilizatorilor, dar nu este niciodată scanată, actualizată, modificată, etc. + + + Dacă se salvează sau nu o copie a metadatelor descărcate în directoarele cu conținut ale bibliotecii media. Acest lucru are efect doar dacă descărcarea metadatelor de pe web este activă. + + + Când această opțiune este activată, folosește metadatele directorului pentru a sări peste directoarele care nu s-au schimbat de la ultima scanare. Acest lucru poate accelera _semnificativ_ scanările, dar rețineți că metadatele directoarelor _nu_ se schimbă/actualizează atunci când editați fișiere existente, se schimbă doar atunci când adăugați fișiere noi sau ștergeți fișiere existente. Activați această opțiune numai dacă nu modificați fișierele existente. + + + Un nume pentru identificarea acestei biblioteci + + + Dosare + + + Documentar + + + Descarcă Metadate De Pe Web + + + Carte Electronică + + + Editează Bibliotecă + + + Activat + + + Franciză de Film + + + Serie de Filme + + + Informații Generale + + + Roman Grafic + + + Interviu + + + Biblioteca A Fost Salvată + + + Tip Bibliotecă + + + Spectacol Live + + + Blocat + + + Revistă + + + Manga + + + Conținut Divers + + + Film + + + Muzică + + + Altceva + + + Personal + + + Album Foto + + + Podcast + + + Emisiune Radio + + + Remix + + + Șterge + + + Salvează + + + Salvează Metadatele În Directoarele Media + + + Sari Peste Directorarele Neschimbate În Timpul Scanării + + + Scenariu + + + Partitură Muzicală + + + Efect Sonor + + + Titlu + + + Tutorial + + + Serial TV + + + Videoclip + + + Conținut Video + + + Conținut Vizual + + + Conținut Scris + + + YouTube + + + Nume + + + Furnizori de metadate + + + Ordine + + + Mută în sus + + + Mută în jos + + + Ordine salvată + + + Furnizorii de metadate folosiți pentru a îmbogăți elementele acestei biblioteci, în ordinea în care sunt încercați. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ru-RU.resx new file mode 100644 index 00000000..da0a2f07 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.ru-RU.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Научная Статья + + + Добавить директорию + + + Добавить изображение + + + Добавить Новую Библиотеку + + + Расширенные Настройки + + + Аниме + + + Аудиокнига + + + Аудиоконтент + + + Возвращение В Библиотеки + + + Книга + + + Книжная Серия + + + Комикс + + + Серия Комиксов + + + Концерт + + + Кавер + + + Обложка + + + Выберите файл изображения, который будет использоваться в качестве обложки для этой библиотеки + + + Выберите папки, содержащие медиафайлы этой библиотеки + + + Должна ли эта медиатека получать метаданные своих элементов путем загрузки из Интернета или нет. + + + Отключена эта медиатека или нет. Отключенная библиотека не отображается пользователям, не сканируется, не обновляется и т.д. + + + Выберите тип медиаконтента, который будет содержать эта библиотека + + + Заблокирована эта медиатека или нет. Заблокированная библиотека отображается пользователям, но никогда не сканируется, не обновляется, не изменяется и т.д. + + + Сохранять копию загруженных метаданных в каталогах содержимого медиатеки или нет. Это действует только если активна загрузка метаданных из интернета. + + + При включении этой опции используются метаданные каталогов, чтобы пропускать каталоги, не изменявшиеся с момента последнего сканирования. Это может _значительно_ ускорить сканирование, но учтите, что метаданные каталогов _не_ изменяются/обновляются при редактировании существующих файлов, а только при добавлении новых или удалении существующих. Включайте эту опцию только в том случае, если вы не изменяете существующие файлы. + + + Название для этой библиотеки + + + Каталоги + + + Документальный Фильм + + + Загрузить Метаданные Из Интернета + + + Электронная Книга + + + Редактировать Библиотеку + + + Включено + + + Кинофраншиза + + + Киносерия + + + Общая Информация + + + Графический Роман + + + Интервью + + + Библиотека Сохранена + + + Тип Библиотеки + + + Живое Выступление + + + Заблокировано + + + Журнал + + + Манга + + + Разное Содержание + + + Фильм + + + Музыка + + + Другой + + + Личный + + + Фотоальбом + + + Подкаст + + + Радиопередача + + + Ремикс + + + Удалить + + + Сохранить + + + Сохранить Метаданные В Каталогах Медиафайлов + + + Пропускать Неизмененные Папки При Сканировании + + + Сценарий + + + Нотная Запись + + + Звуковой Эффект + + + Заголовок + + + Учебник + + + Телесериал + + + Видеоролик + + + Видеоконтент + + + Визуальный Контент + + + Письменный Контент + + + Ютуб + + + Имя + + + Поставщики метаданных + + + Порядок + + + Вверх + + + Вниз + + + Порядок сохранен + + + Поставщики метаданных, используемые для обогащения элементов этой библиотеки, в порядке, в котором они испытываются. + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.zh-CN.resx new file mode 100644 index 00000000..01c0cbb5 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/Management/Item.zh-CN.resx @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 学术论文 + + + 添加目录 + + + 添加图片 + + + 添加 新库 + + + 高级设置 + + + 动画 + + + 有声书 + + + 音频内容 + + + 重返图书馆 + + + 书 + + + 丛书 + + + 漫画 + + + 漫画系列 + + + 音乐会 + + + 翻唱 + + + 封面图片 + + + 选择将用作此库封面的图片文件 + + + 选择包含该图书馆媒体文件的文件夹 + + + 此媒体库是否应该从互联网下载其元素的元数据。 + + + 此媒体库是否已禁用。禁用的库不会显示给用户,不会被扫描、更新等。 + + + 选择这个图书馆将包含的媒体内容类型 + + + 此媒体库是否已锁定。锁定的库会显示给用户,但永远不会被扫描、更新、修改等。 + + + 是否在媒体库内容位置目录中保存已下载元数据的副本。这仅在从网络下载元数据处于活动状态时才有效。 + + + 启用此选项后,将使用目录元数据跳过自上次扫描以来未更改的目录。这可以_显著_加快扫描速度,但请注意,编辑现有文件时目录元数据_不会_更改/更新,只有在添加新文件或删除现有文件时才会更改。仅当您不修改现有文件时才启用此选项。 + + + 给这个图书馆起个名字 + + + 目录 + + + 纪录片 + + + 从网络下载元数据 + + + 电子书 + + + 编辑 库 + + + 已启用 + + + 电影系列品牌 + + + 电影系列 + + + 常规信息 + + + 图像小说 + + + 访谈 + + + 图书馆已保存 + + + 库类型 + + + 现场表演 + + + 已锁定 + + + 杂志 + + + 漫画 + + + 杂项内容 + + + 电影 + + + 音乐 + + + 其他 + + + 个人的 + + + 相册 + + + 播客 + + + 广播节目 + + + 混音版 + + + 删除 + + + 保存 + + + 在媒体目录中保存元数据 + + + 扫描时跳过未更改的文件夹 + + + 剧本 + + + 乐谱 + + + 音效 + + + 标题 + + + 教程 + + + 电视连续剧 + + + 视频短片 + + + 视频内容 + + + 视觉内容 + + + 文字内容 + + + 油管 + + + 名称 + + + 元数据提供程序 + + + 顺序 + + + 上移 + + + 下移 + + + 顺序已保存 + + + 用于丰富此库项目内容的元数据提供程序,按其尝试顺序排列。 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx new file mode 100644 index 00000000..e2208b8a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.de-DE.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Suchen + + + Sortieren: A-Z + + + Sortieren: Z-A + + + Einträge + + + von + + + Seite + + + Zurück + + + Weiter + + + Alle + + + Diese Bibliothek hat keine Einträge + + + Keine Einträge entsprechen den aktuellen Filtern + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx new file mode 100644 index 00000000..f44c8d5a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.en-US.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Search + + + Sort: A-Z + + + Sort: Z-A + + + items + + + of + + + Page + + + Previous + + + Next + + + All + + + This library has no items + + + No items match the current filters + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx new file mode 100644 index 00000000..ae88931b --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.es-ES.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Buscar + + + Ordenar: A-Z + + + Ordenar: Z-A + + + elementos + + + de + + + Página + + + Anterior + + + Siguiente + + + Todos + + + Esta biblioteca no tiene elementos + + + Ningún elemento coincide con los filtros actuales + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx new file mode 100644 index 00000000..5797b42e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.fr-FR.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Rechercher + + + Trier : A-Z + + + Trier : Z-A + + + éléments + + + sur + + + Page + + + Précédent + + + Suivant + + + Tous + + + Cette bibliothèque ne contient aucun élément + + + Aucun élément ne correspond aux filtres actuels + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx new file mode 100644 index 00000000..78cd6fbe --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.it-IT.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cerca + + + Ordina: A-Z + + + Ordina: Z-A + + + elementi + + + di + + + Pagina + + + Precedente + + + Successivo + + + Tutti + + + Questa biblioteca non contiene elementi + + + Nessun elemento corrisponde ai filtri correnti + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx new file mode 100644 index 00000000..2855a774 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ja-JP.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 検索 + + + 並べ替え: A-Z + + + 並べ替え: Z-A + + + 件 + + + / + + + ページ + + + 前へ + + + 次へ + + + すべて + + + このライブラリには項目がありません + + + 現在のフィルターに一致する項目はありません + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx new file mode 100644 index 00000000..f44c8d5a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Search + + + Sort: A-Z + + + Sort: Z-A + + + items + + + of + + + Page + + + Previous + + + Next + + + All + + + This library has no items + + + No items match the current filters + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx new file mode 100644 index 00000000..cec2e1d0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ro-RO.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Caută + + + Sortare: A-Z + + + Sortare: Z-A + + + elemente + + + din + + + Pagina + + + Înapoi + + + Înainte + + + Toate + + + Această bibliotecă nu are elemente + + + Niciun element nu corespunde filtrelor curente + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx new file mode 100644 index 00000000..a3c04101 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.ru-RU.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Поиск + + + Сортировка: А-Я + + + Сортировка: Я-А + + + элементов + + + из + + + Страница + + + Назад + + + Вперёд + + + Все + + + В этой библиотеке нет элементов + + + Ни один элемент не соответствует текущим фильтрам + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx new file mode 100644 index 00000000..d8e628ba --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.zh-CN.resx @@ -0,0 +1,48 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 搜索 + + + 排序: A-Z + + + 排序: Z-A + + + 项 + + + / + + + 页 + + + 上一页 + + + 下一页 + + + 全部 + + + 此库中没有项目 + + + 没有项目符合当前筛选条件 + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.Designer.cs b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.Designer.cs new file mode 100644 index 00000000..03dfce55 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.Designer.cs @@ -0,0 +1,180 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Lumina.Presentation.Web.Core.Resources.Views.Plugins { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Index { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Index() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lumina.Presentation.Web.Core.Resources.Views.Plugins.Index", typeof(Index).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Author. + /// + public static string Author { + get { + return ResourceManager.GetString("Author", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Description. + /// + public static string Description { + get { + return ResourceManager.GetString("Description", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Failed to load. + /// + public static string FailedToLoad { + get { + return ResourceManager.GetString("FailedToLoad", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Loaded. + /// + public static string Loaded { + get { + return ResourceManager.GetString("Loaded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Load error. + /// + public static string LoadError { + get { + return ResourceManager.GetString("LoadError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Load status. + /// + public static string LoadStatus { + get { + return ResourceManager.GetString("LoadStatus", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Name. + /// + public static string Name { + get { + return ResourceManager.GetString("Name", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No plugins have been detected.. + /// + public static string NoPlugins { + get { + return ResourceManager.GetString("NoPlugins", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Plugins. + /// + public static string Plugins { + get { + return ResourceManager.GetString("Plugins", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save. + /// + public static string Save { + get { + return ResourceManager.GetString("Save", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Settings. + /// + public static string Settings { + get { + return ResourceManager.GetString("Settings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Settings saved. + /// + public static string SettingsSaved { + get { + return ResourceManager.GetString("SettingsSaved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Version. + /// + public static string Version { + get { + return ResourceManager.GetString("Version", resourceCulture); + } + } + } +} diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.de-DE.resx new file mode 100644 index 00000000..a7c66925 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.de-DE.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Plugins + + + Name + + + Autor + + + Version + + + Beschreibung + + + Ladestatus + + + Geladen + + + Fehler beim Laden + + + Ladefehler + + + Einstellungen + + + Es wurden keine Plugins erkannt. + + + Speichern + + + Einstellungen gespeichert + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.en-US.resx new file mode 100644 index 00000000..6971d3db --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.en-US.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Plugins + + + Name + + + Author + + + Version + + + Description + + + Load status + + + Loaded + + + Failed to load + + + Load error + + + Settings + + + No plugins have been detected. + + + Save + + + Settings saved + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.es-ES.resx new file mode 100644 index 00000000..f093ae69 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.es-ES.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Plugins + + + Nombre + + + Autor + + + Versión + + + Descripción + + + Estado de carga + + + Cargado + + + Error al cargar + + + Error de carga + + + Configuración + + + No se han detectado plugins. + + + Guardar + + + Configuración guardada + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.fr-FR.resx new file mode 100644 index 00000000..8eca2513 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.fr-FR.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Plugins + + + Nom + + + Auteur + + + Version + + + Description + + + État de chargement + + + Chargé + + + Échec du chargement + + + Erreur de chargement + + + Paramètres + + + Aucun plugin n'a été détecté. + + + Enregistrer + + + Paramètres enregistrés + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.it-IT.resx new file mode 100644 index 00000000..47b7de18 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.it-IT.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Plugin + + + Nome + + + Autore + + + Versione + + + Descrizione + + + Stato di caricamento + + + Caricato + + + Errore di caricamento + + + Errore di caricamento + + + Impostazioni + + + Nessun plugin rilevato. + + + Salva + + + Impostazioni salvate + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ja-JP.resx new file mode 100644 index 00000000..768a0b13 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ja-JP.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + プラグイン + + + 名前 + + + 作者 + + + バージョン + + + 説明 + + + 読み込み状態 + + + 読み込み済み + + + 読み込みに失敗 + + + 読み込みエラー + + + 設定 + + + プラグインが検出されませんでした。 + + + 保存 + + + 設定を保存しました + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.resx new file mode 100644 index 00000000..6971d3db --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Plugins + + + Name + + + Author + + + Version + + + Description + + + Load status + + + Loaded + + + Failed to load + + + Load error + + + Settings + + + No plugins have been detected. + + + Save + + + Settings saved + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ro-RO.resx new file mode 100644 index 00000000..5e9b67a1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ro-RO.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Pluginuri + + + Nume + + + Autor + + + Versiune + + + Descriere + + + Stare de încărcare + + + Încărcat + + + Încărcare eșuată + + + Eroare de încărcare + + + Setări + + + Nu au fost detectate pluginuri. + + + Salvare + + + Setări salvate + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ru-RU.resx new file mode 100644 index 00000000..4dee8ba8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.ru-RU.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Плагины + + + Имя + + + Автор + + + Версия + + + Описание + + + Статус загрузки + + + Загружен + + + Не удалось загрузить + + + Ошибка загрузки + + + Настройки + + + Плагины не обнаружены. + + + Сохранить + + + Настройки сохранены + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.zh-CN.resx new file mode 100644 index 00000000..38f058f0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Plugins/Index.zh-CN.resx @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 插件 + + + 名称 + + + 作者 + + + 版本 + + + 说明 + + + 加载状态 + + + 已加载 + + + 加载失败 + + + 加载错误 + + + 设置 + + + 未检测到插件。 + + + 保存 + + + 设置已保存 + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx new file mode 100644 index 00000000..c4d18087 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.de-DE.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Zurück + + + Abbrechen + + + Bestätigen + + + Detailansicht + + + Verzeichnis + + + Pfad Bearbeiten + + + Neuen Verzeichnisnamen eingeben: + + + Extragroße Symbolansicht + + + Favoriten-Verzeichnis + + + Vorwärts + + + Große Symbolansicht + + + Listenansicht + + + Mittlere Symbolansicht + + + Name + + + Navigieren + + + Neues Verzeichnis + + + Öffnen + + + Kleine Symbolansicht + + + Versteckte Elemente Umschalten + + + Auswahlmodus Umschalten + + + Miniaturansicht Umschalten + + + Baumansicht Umschalten + + + Eine Ebene Nach Oben + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx new file mode 100644 index 00000000..88e38636 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.en-US.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Back + + + Cancel + + + Confirm + + + Details View + + + Directory + + + Edit Path + + + Enter new directory name: + + + Extra Large Icons View + + + Favorite Directory + + + Forward + + + Large Icons View + + + List View + + + Medium Icons View + + + Name + + + Navigate + + + New Directory + + + Open + + + Small Icons View + + + Toggle Hidden Items + + + Toggle Selection Mode + + + Toggle Thumbanils + + + Toggle Tree View + + + Up One Level + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx new file mode 100644 index 00000000..ab9749b0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.es-ES.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Atrás + + + Cancelar + + + Confirmar + + + Vista detallada + + + Directorio + + + Editar Ruta + + + Introduzca el nombre del nuevo directorio: + + + Vista iconos extra grandes + + + Carpeta Favorita + + + Adelante + + + Vista iconos grandes + + + Vista de lista + + + Vista iconos medianos + + + Nombre + + + Navegar + + + Nueva Carpeta + + + Abrir + + + Vista iconos pequeños + + + Alternar Elementos Ocultos + + + Alternar Modo Selección + + + Alternar Miniaturas + + + Alternar Vista de Árbol + + + Subir un Nivel + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx new file mode 100644 index 00000000..3fbaf1d8 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.fr-FR.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Retour + + + Annuler + + + Confirmer + + + Vue détaillée + + + Répertoire + + + Modifier le Chemin + + + Entrez le nom du nouveau dossier: + + + Vue très grandes icônes + + + Dossier Favori + + + Suivant + + + Vue grandes icônes + + + Vue en liste + + + Vue icônes moyennes + + + Nom + + + Naviguer + + + Nouveau Dossier + + + Ouvrir + + + Vue petites icônes + + + Basculer les Éléments Masqués + + + Basculer le Mode Sélection + + + Basculer les Vignettes + + + Basculer l'Arborescence + + + Remonter d'un Niveau + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx new file mode 100644 index 00000000..e488c2b3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.it-IT.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Indietro + + + Annulla + + + Conferma + + + Vista dettagli + + + Cartella + + + Modifica Percorso + + + Inserisci il nome della nuova cartella: + + + Vista icone molto grandi + + + Cartella Preferita + + + Avanti + + + Vista icone grandi + + + Vista elenco + + + Vista icone medie + + + Nome + + + Navigare + + + Nuova Cartella + + + Apri + + + Vista icone piccole + + + Attiva/Disattiva Elementi Nascosti + + + Attiva/Disattiva Modalità Selezione + + + Attiva/Disattiva Miniature + + + Attiva/Disattiva Vista Struttura + + + Sali di un Livello + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx new file mode 100644 index 00000000..a6a9146e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ja-JP.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 戻る + + + キャンセル + + + 確認 + + + 詳細表示 + + + フォルダ + + + パス編集 + + + 新規フォルダ名を入力: + + + 特大アイコン表示 + + + お気に入りフォルダ + + + 進む + + + 大きいアイコン表示 + + + リスト表示 + + + 中アイコン表示 + + + 名前 + + + 移動 + + + 新規フォルダ + + + 開く + + + 小さいアイコン表示 + + + 隠し項目表示切替 + + + 選択モード切替 + + + サムネイル表示切替 + + + ツリー表示切替 + + + 上の階層へ + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx new file mode 100644 index 00000000..0e3ba1c7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Back + + + Cancel + + + Confirm + + + Details View + + + Directory + + + Edit Path + + + Enter new directory name: + + + Extra Large Icons View + + + Favorite Directory + + + Forward + + + LargeIconsView + + + List View + + + Medium Icons View + + + Name + + + Navigate + + + New Directory + + + Open + + + Small Icons View + + + Toggle Hidden Items + + + Toggle Selection Mode + + + Toggle Thumbanils + + + Toggle Tree View + + + Up One Level + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx new file mode 100644 index 00000000..ea1a45cf --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ro-RO.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Înapoi + + + Anulare + + + Confirmă + + + Vizualizare detaliată + + + Dosar + + + Editare Cale + + + Introduceți numele noului director: + + + Vizualizare pictograme foarte mari + + + Dosar Favorit + + + Înainte + + + Vizualizare pictograme mari + + + Vizualizare listă + + + Vizualizare pictograme medii + + + Nume + + + Navigare + + + Dosar Nou + + + Deschide + + + Vizualizare pictograme mici + + + Comutare Elemente Ascunse + + + Comutare Mod Selecție + + + Comutare Pictograme + + + Comutare Vizualizare Arbore + + + Un Nivel Mai Sus + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx new file mode 100644 index 00000000..bd079438 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.ru-RU.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Назад + + + Отмена + + + Подтвердить + + + Подробный вид + + + Папка + + + Изменить Путь + + + Введите имя новой папки: + + + Очень крупные значки + + + Избранная Папка + + + Вперёд + + + Крупные значки + + + Список + + + Средние значки + + + Имя + + + Перейти + + + Новая Папка + + + Открыть + + + Мелкие значки + + + Показать/Скрыть Скрытые Элементы + + + Переключить Режим Выделения + + + Переключить Эскизы + + + Развернуть/Свернуть Дерево + + + На Уровень Выше + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx new file mode 100644 index 00000000..babfbcf0 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/Components/FileSystemBrowser/Default.zh-CN.resx @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 返回 + + + 取消 + + + 确认 + + + 详细视图 + + + 文件夹 + + + 编辑路径 + + + 输入新文件夹名称: + + + 超大图标视图 + + + 收藏文件夹 + + + 前进 + + + 大图标视图 + + + 列表视图 + + + 中等图标视图 + + + 名称 + + + 导航 + + + 新建文件夹 + + + 打开 + + + 小图标视图 + + + 切换隐藏项目 + + + 切换选择模式 + + + 切换缩略图 + + + 切换树形视图 + + + 向上一级 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.de-DE.resx new file mode 100644 index 00000000..3a1919ca --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.de-DE.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Versuche nicht, diese Seite zu finden. Das ist unmöglich. Stattdessen... versuche nur die Wahrheit zu erkennen: + + + Es gibt keine Seite! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.en-US.resx new file mode 100644 index 00000000..da7e5bf3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.en-US.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Do not try and find this page. That's impossible. Instead... only try to realize the truth: + + + There is no page! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.es-ES.resx new file mode 100644 index 00000000..806014ea --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.es-ES.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + No intentes encontrar esta página. Es imposible. En su lugar... solo trata de comprender la verdad: + + + ¡No hay ninguna página! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.fr-FR.resx new file mode 100644 index 00000000..a4512708 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.fr-FR.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + N'essayez pas de trouver cette page. C'est impossible. Au lieu de cela... essayez seulement de réaliser la vérité: + + + Il n'y a pas de page! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.it-IT.resx new file mode 100644 index 00000000..a0be42b9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.it-IT.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Non provare a trovare questa pagina. È impossibile. Invece... prova solo a realizzare la verità: + + + Non esiste alcuna pagina! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ja-JP.resx new file mode 100644 index 00000000..2c020d89 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ja-JP.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + このページを探そうとしないで。それは不可能だ。代わりに...真実に気づくだけでいい: + + + ページなんてないのだ! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.resx new file mode 100644 index 00000000..da7e5bf3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Do not try and find this page. That's impossible. Instead... only try to realize the truth: + + + There is no page! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ro-RO.resx new file mode 100644 index 00000000..140a18a5 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ro-RO.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Nu încerca să găsești această pagină. Este imposibil. În schimb... încearcă doar să realizezi adevărul: + + + Nu există o pagină! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ru-RU.resx new file mode 100644 index 00000000..cbf49d08 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.ru-RU.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Не пытайся найти эту страницу. Это невозможно. Вместо этого... попытайся осознать истину: + + + Страницы не существует! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.zh-CN.resx new file mode 100644 index 00000000..f35d1192 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/NotFound.zh-CN.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 不要试图寻找这个页面。这是不可能的。相反...只需要领悟真相: + + + 根本没有页面! + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.de-DE.resx new file mode 100644 index 00000000..e9ac8596 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.de-DE.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Abbrechen + + + Abbrechen + + + Bestätigung + + + Fehler + + + Ignorieren + + + Information + + + Navigation fehlgeschlagen! + + + Nein + + + OK + + + Wiederholen + + + Vollhöhe Umschalten + + + Sichtbarkeit Umschalten + + + Warnung + + + Ja + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.en-US.resx new file mode 100644 index 00000000..6b99cf65 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.en-US.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Abort + + + Cancel + + + Confirmation + + + Error + + + Ignore + + + Information + + + Navigation failed! + + + No + + + OK + + + Retry + + + Toggle Full Height + + + Toggle Visibility + + + Warning + + + Yes + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.es-ES.resx new file mode 100644 index 00000000..4f09682d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.es-ES.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Anular + + + Cancelar + + + Confirmación + + + Error + + + Ignorar + + + Información + + + ¡Navegación fallida! + + + No + + + Aceptar + + + Reintentar + + + Alternar Altura Completa + + + Alternar Visibilidad + + + Advertencia + + + Sí + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.fr-FR.resx new file mode 100644 index 00000000..70581855 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.fr-FR.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Abandonner + + + Annuler + + + Confirmation + + + Erreur + + + Ignorer + + + Information + + + Navigation échouée ! + + + Non + + + OK + + + Réessayer + + + Basculer Hauteur Complète + + + Basculer Visibilité + + + Avertissement + + + Oui + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.it-IT.resx new file mode 100644 index 00000000..3e510bb1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.it-IT.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Interrompi + + + Annulla + + + Conferma + + + Errore + + + Ignora + + + Informazione + + + Navigazione fallita! + + + No + + + OK + + + Riprova + + + Attiva/Disattiva Altezza Piena + + + Attiva/Disattiva Visibilità + + + Avviso + + + Sì + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ja-JP.resx new file mode 100644 index 00000000..25aed7bb --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ja-JP.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 中止する + + + キャンセル + + + 確認 + + + エラー + + + 無視する + + + 情報 + + + ナビゲーションに失敗しました! + + + いいえ + + + OK + + + 再試行 + + + 全高表示切替 + + + 表示切替 + + + 警告 + + + はい + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.resx new file mode 100644 index 00000000..6b99cf65 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Abort + + + Cancel + + + Confirmation + + + Error + + + Ignore + + + Information + + + Navigation failed! + + + No + + + OK + + + Retry + + + Toggle Full Height + + + Toggle Visibility + + + Warning + + + Yes + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ro-RO.resx new file mode 100644 index 00000000..24855322 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ro-RO.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Anulare + + + Anulare + + + Confirmare + + + Eroare + + + Ignorare + + + Informație + + + Navigarea a eșuat! + + + Nu + + + OK + + + Reîncercare + + + Comutare Înălțime Completă + + + Comutare Vizibilitate + + + Avertizare + + + Da + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ru-RU.resx new file mode 100644 index 00000000..4d3fc8d6 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.ru-RU.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Прервать + + + Отмена + + + Подтверждение + + + Ошибка + + + Игнорировать + + + Информация + + + Навигация не удалась! + + + Нет + + + OK + + + Повторить + + + Переключить Полную Высоту + + + Переключить Видимость + + + Предупреждение + + + Да + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.zh-CN.resx new file mode 100644 index 00000000..12bb510a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_Layout.zh-CN.resx @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 中止 + + + 取消 + + + 确认 + + + 错误 + + + 忽略 + + + 信息 + + + 导航失败! + + + 否 + + + 确定 + + + 重试 + + + 切换全高 + + + 切换可见性 + + + 警告 + + + 是 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.de-DE.resx new file mode 100644 index 00000000..03c1b8ff --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.de-DE.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Über + + + Konto + + + Neue bibliothek hinzufügen + + + Administrator + + + Audio + + + Authentifizierung + + + Autorisierung + + + Bücher + + + Kennwort Ändern + + + Dokumentation + + + Hilfe + + + Interviews + + + Sprache + + + Mediathek + + + Anmelden + + + Abmelden + + + Zeitschriften + + + Bibliotheken verwalten + + + Filme + + + Musik + + + Einstellungen + + + Profil + + + Passwort Wiederherstellen + + + Registrieren + + + Berechtigungen verwalten + + + Werkzeuge + + + Fernsehserien + + + Video + + + Schriftliche Inhalte + + + Rollen verwalten + + + Startseite + + + Plugins + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.en-US.resx new file mode 100644 index 00000000..97405612 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.en-US.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + About + + + Account + + + Add new library + + + Administrator + + + Audio + + + Authentication + + + Authorization + + + Books + + + Change Password + + + Documentation + + + Help + + + Interviews + + + Language + + + Library + + + Login + + + Logout + + + Magazines + + + Manage libraries + + + Movies + + + Music + + + Settings + + + Profile + + + Recover Password + + + Register + + + Manage permissions + + + Tools + + + TV Shows + + + Video + + + Written Content + + + Manage roles + + + Home + + + Plugins + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.es-ES.resx new file mode 100644 index 00000000..f4a8dc79 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.es-ES.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Acerca de + + + Cuenta + + + Agregar nueva biblioteca + + + Administrador + + + Audio + + + Autenticación + + + Autorización + + + Libros + + + Cambiar Contraseña + + + Documentación + + + Ayuda + + + Entrevistas + + + Lenguaje + + + Biblioteca + + + Iniciar Sesión + + + Cerrar Sesión + + + Revistas + + + Administrar bibliotecas + + + Películas + + + Música + + + Configuración + + + Perfil + + + Recuperar Contraseña + + + Registrarse + + + Administrar permisos + + + Herramientas + + + Series de TV + + + Video + + + Contenido Escrito + + + Administrar roles + + + Inicio + + + Plugins + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.fr-FR.resx new file mode 100644 index 00000000..7b2508f7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.fr-FR.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + À propos + + + Compte + + + Ajouter une nouvelle bibliothèque + + + Administrateur + + + Audio + + + Authentification + + + Autorisation + + + Livres + + + Modifier Le Mot De Passe + + + Documentation + + + Aide + + + Entretiens + + + Langue + + + Bibliothèque + + + Connexion + + + Déconnexion + + + Magazines + + + Gérer les bibliothèques + + + Films + + + Musique + + + Paramètres + + + Profil + + + Récupérer Le Mot De Passe + + + S'inscrire + + + Gérer les permissions + + + Outils + + + Séries Télé + + + Vidéo + + + Contenu Écrit + + + Gérer les rôles + + + Accueil + + + Plugins + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.it-IT.resx new file mode 100644 index 00000000..da66d075 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.it-IT.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Chi siamo + + + Account + + + Aggiungi nuova libreria + + + Amministratore + + + Audio + + + Autenticazione + + + Autorizzazione + + + Libri + + + Modifica Password + + + Documentazione + + + Aiuto + + + Interviste + + + Lingua + + + Libreria + + + Accedi + + + Esci + + + Riviste + + + Gestisci librerie + + + Film + + + Musica + + + Impostazioni + + + Profilo + + + Recupera Password + + + Registrati + + + Gestire i permessi + + + Strumenti + + + Serie TV + + + Video + + + Contenuto Scritto + + + Gestire i ruoli + + + Home + + + Plugin + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ja-JP.resx new file mode 100644 index 00000000..aa2febca --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ja-JP.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 概要 + + + アカウント + + + 新規ライブラリを追加 + + + 管理者 + + + 音声 + + + 認証 + + + 認可 + + + 書籍 + + + パスワード変更 + + + ドキュメント + + + ヘルプ + + + インタビュー + + + 言語 + + + ライブラリ + + + ログイン + + + ログアウト + + + 雑誌 + + + ライブラリ管理 + + + 映画 + + + 音楽 + + + 設定 + + + プロフィール + + + パスワード再設定 + + + 登録 + + + 権限を管理する + + + ツール + + + テレビドラマ + + + 動画 + + + 文字コンテンツ + + + ロールを管理する + + + ホーム + + + プラグイン + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.resx new file mode 100644 index 00000000..97405612 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + About + + + Account + + + Add new library + + + Administrator + + + Audio + + + Authentication + + + Authorization + + + Books + + + Change Password + + + Documentation + + + Help + + + Interviews + + + Language + + + Library + + + Login + + + Logout + + + Magazines + + + Manage libraries + + + Movies + + + Music + + + Settings + + + Profile + + + Recover Password + + + Register + + + Manage permissions + + + Tools + + + TV Shows + + + Video + + + Written Content + + + Manage roles + + + Home + + + Plugins + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ro-RO.resx new file mode 100644 index 00000000..37ac6ac7 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ro-RO.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Despre + + + Cont + + + Adăugare bibliotecă nouă + + + Administrator + + + Audio + + + Autentificare + + + Autorizare + + + Cărți + + + Schimbare Parolă + + + Documentație + + + Ajutor + + + Interviuri + + + Limbă + + + Bibliotecă + + + Autentificare + + + Deconectare + + + Reviste + + + Gestionare biblioteci + + + Filme + + + Muzică + + + Setări + + + Profil + + + Recuperare Parolă + + + Înregistrare + + + Gestionare permisiuni + + + Unelte + + + Seriale TV + + + Video + + + Conținut Scris + + + Gestionare roluri + + + Acasă + + + Pluginuri + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ru-RU.resx new file mode 100644 index 00000000..07c3cce4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.ru-RU.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + О программе + + + Учетная Запись + + + Добавить новую библиотеку + + + Администратор + + + Аудио + + + Аутентификация + + + Авторизация + + + Книги + + + Изменить Пароль + + + Документация + + + Справка + + + Интервью + + + Язык + + + Библиотека + + + Вход + + + Выход + + + Журналы + + + Управление библиотеками + + + Фильмы + + + Музыка + + + Настройки + + + Профиль + + + Восстановить Пароль + + + Регистрация + + + Управление разрешениями + + + Инструменты + + + Телесериалы + + + Видео + + + Письменный Контент + + + Управление ролями + + + Главная + + + Плагины + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.zh-CN.resx new file mode 100644 index 00000000..f9ca0bee --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Shared/_NavMenu.zh-CN.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 关于 + + + 账号 + + + 添加新媒体库 + + + 管理员 + + + 音频 + + + 身份验证 + + + 授权 + + + 图书 + + + 修改密码 + + + 文档 + + + 帮助 + + + 面试 + + + 语言 + + + 媒体库 + + + 登录 + + + 退出登录 + + + 杂志 + + + 管理媒体库 + + + 电影 + + + 音乐 + + + 设置 + + + 个人资料 + + + 找回密码 + + + 注册 + + + 管理权限 + + + 工具 + + + 电视剧 + + + 视频 + + + 文字内容 + + + 管理角色 + + + 首页 + + + 插件 + + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx new file mode 100644 index 00000000..7f312406 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.de-DE.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Einstellungen + + + Seitennummerierung aktivieren + + + Elemente pro Seite + + + "The"-Präfix für die Alpha-Auswahl ignorieren + + + Speichern + + + Einstellungen gespeichert + + + Steuert, ob die Bibliothekselemente in Seiten aufgeteilt werden. + + + Die Anzahl der Bibliothekselemente, die bei aktivierter Seitennummerierung auf jeder Seite angezeigt werden. + + + Wenn aktiviert, werden Bibliothekselemente, deren Titel mit "The" beginnt, in der Alpha-Auswahl unter dem ersten Buchstaben des folgenden Wortes gruppiert, z. B. wird "The Rasmus" unter R aufgeführt. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx new file mode 100644 index 00000000..d7ecb8c2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.en-US.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Settings + + + Enable pagination + + + Items per page + + + Ignore "The" prefix for the alpha picker + + + Save + + + Settings saved + + + Controls whether library items are split into pages. + + + The number of library items displayed on each page when pagination is enabled. + + + When enabled, library items whose title begins with "The" are grouped under the first letter of the following word in the alpha picker, e.g. "The Rasmus" is listed under R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx new file mode 100644 index 00000000..46197a4f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.es-ES.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Configuración + + + Habilitar paginación + + + Elementos por página + + + Ignorar el prefijo "The" en el selector alfabético + + + Guardar + + + Configuración guardada + + + Controla si los elementos de la biblioteca se dividen en páginas. + + + El número de elementos de la biblioteca mostrados en cada página cuando la paginación está habilitada. + + + Cuando está habilitado, los elementos de la biblioteca cuyo título comienza con "The" se agrupan bajo la primera letra de la palabra siguiente en el selector alfabético, por ejemplo, "The Rasmus" se lista bajo R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx new file mode 100644 index 00000000..0d086bdd --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.fr-FR.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Paramètres + + + Activer la pagination + + + Éléments par page + + + Ignorer le préfixe "The" dans le sélecteur alphabétique + + + Enregistrer + + + Paramètres enregistrés + + + Contrôle si les éléments de la bibliothèque sont répartis en pages. + + + Le nombre d'éléments de la bibliothèque affichés sur chaque page lorsque la pagination est activée. + + + Lorsque cette option est activée, les éléments de la bibliothèque dont le titre commence par "The" sont regroupés sous la première lettre du mot suivant dans le sélecteur alphabétique, par exemple "The Rasmus" est répertorié sous R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx new file mode 100644 index 00000000..f88da291 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.it-IT.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Impostazioni + + + Abilita paginazione + + + Elementi per pagina + + + Ignora il prefisso "The" nel selettore alfabetico + + + Salva + + + Impostazioni salvate + + + Controlla se gli elementi della libreria vengono suddivisi in pagine. + + + Il numero di elementi della libreria visualizzati su ogni pagina quando la paginazione è abilitata. + + + Se abilitato, gli elementi della libreria il cui titolo inizia con "The" vengono raggruppati sotto la prima lettera della parola successiva nel selettore alfabetico, ad esempio "The Rasmus" è elencato sotto R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx new file mode 100644 index 00000000..78c7e46f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ja-JP.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 設定 + + + ページネーションを有効にする + + + ページあたりの項目数 + + + アルファピッカーで「The」の接頭辞を無視する + + + 保存 + + + 設定を保存しました + + + ライブラリの項目をページに分割するかどうかを制御します。 + + + ページネーションが有効な場合に各ページに表示されるライブラリの項目数。 + + + 有効にすると、タイトルが「The」で始まるライブラリの項目は、アルファピッカーで次の単語の最初の文字の下にグループ化されます。たとえば「The Rasmus」は「R」の下に表示されます。 + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx new file mode 100644 index 00000000..d7ecb8c2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Settings + + + Enable pagination + + + Items per page + + + Ignore "The" prefix for the alpha picker + + + Save + + + Settings saved + + + Controls whether library items are split into pages. + + + The number of library items displayed on each page when pagination is enabled. + + + When enabled, library items whose title begins with "The" are grouped under the first letter of the following word in the alpha picker, e.g. "The Rasmus" is listed under R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx new file mode 100644 index 00000000..add6888f --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ro-RO.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Setări + + + Activați paginarea + + + Elemente pe pagină + + + Ignorați prefixul "The" pentru selectorul alfabetic + + + Salvați + + + Setările au fost salvate + + + Controlează dacă elementele bibliotecii sunt împărțite în pagini. + + + Numărul de elemente ale bibliotecii afișate pe fiecare pagină atunci când paginarea este activată. + + + Când este activată, elementele bibliotecii al căror titlu începe cu "The" sunt grupate sub prima literă a cuvântului următor în selectorul alfabetic, de exemplu "The Rasmus" este listat sub R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ru-RU.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ru-RU.resx new file mode 100644 index 00000000..5657d5a6 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.ru-RU.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Настройки + + + Включить разбиение на страницы + + + Элементов на странице + + + Игнорировать префикс "The" в алфавитном указателе + + + Сохранить + + + Настройки сохранены + + + Управляет разделением элементов библиотеки на страницы. + + + Количество элементов библиотеки, отображаемых на каждой странице при включенной разбивке на страницы. + + + При включении элементы библиотеки, название которых начинается с "The", группируются в алфавитном указателе под первой буквой следующего слова, например "The Rasmus" отображается под буквой R. + + diff --git a/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx new file mode 100644 index 00000000..00301a1b --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Resources/Views/Tools/Settings.zh-CN.resx @@ -0,0 +1,42 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 设置 + + + 启用分页 + + + 每页项目数 + + + 在字母选择器中忽略“The”前缀 + + + 保存 + + + 设置已保存 + + + 控制是否将库项目分页显示。 + + + 启用分页时每页显示的库项目数。 + + + 启用后,标题以"The"开头的库项目将在字母选择器中按后一个词的首字母分组,例如"The Rasmus"会列在R下。 + + diff --git a/src/Lumina.Presentation.Web/Core/ViewComponents/FileSystemBrowserViewComponent.cs b/src/Lumina.Presentation.Web/Core/ViewComponents/FileSystemBrowserViewComponent.cs new file mode 100644 index 00000000..dfc458f3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/ViewComponents/FileSystemBrowserViewComponent.cs @@ -0,0 +1,45 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Configuration; +using Lumina.Presentation.Web.Common.Enums.FileSystem; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Options; +using System.Runtime.InteropServices; + +#endregion + +namespace Lumina.Presentation.Web.Core.ViewComponents; + +/// +/// View component for the file system browser. +/// +public class FileSystemBrowserViewComponent : ViewComponent +{ + private readonly ServerConfigurationDto _serverConfiguration; + + /// + /// Initializes a new instance of the class. + /// + /// Injected service for retrieving . + public FileSystemBrowserViewComponent(IOptions serverConfigurationOptions) + { + _serverConfiguration = serverConfigurationOptions.Value; + } + + /// + /// Invokes the view component. + /// + /// + /// An that renders the view with file system browsing configuration. + /// + public IViewComponentResult Invoke() + { + return View(new + { + Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\", + ServerBasePath = $"{_serverConfiguration.BaseAddress}:{_serverConfiguration.Port}/api/v{_serverConfiguration.ApiVersion}/", + ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment + ViewMode = FileSystemViewMode.List, + IconSize = FileSystemIconSize.Large + }); + } +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml b/src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml new file mode 100644 index 00000000..2dbe731d --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml @@ -0,0 +1,232 @@ +@* +/admin/manage-permissions/ +*@ + +@using Lumina.Presentation.Web.Common.DTO.Authorization +@using Lumina.Presentation.Web.Common.DTO.UsersManagement +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization + +@{ + var roles = ViewData["roles"] as RoleDto[]; + var users = ViewData["users"] as UserDto[]; + var permissions = ViewData["permissions"] as PermissionDto[]; + // 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 + +
+
+ + + +
+ + +
+
+ + +
+
+
@_localizer["SelectAUser"]
+ @if (users is not null) + { + @for (int i = 0; i < users.Length; i++) + { +
@users[i].Username
+ } + } +
+
+
+ + +
+ + +
+
+ + +
+
+
@_localizer["SelectARole"]
+ @if (roles is not null) + { + @for (int i = 0; i < roles.Length; i++) + { +
@roles[i].RoleName
+ } + } +
+
+
+ + +
+
+
+
+ @if (permissions is not null) + { + @foreach (var permission in permissions) + { +
+ +
+ } + } +
+
+
+
+ + +
+ +
+
+
+ +@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml.css b/src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml.css new file mode 100644 index 00000000..812d5578 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Admin/ManagePermissions.cshtml.css @@ -0,0 +1,46 @@ +#authorization-permissions-container { + display: flex; + margin: auto; + width: 100%; + height: 100%; + flex-direction: column; + flex-wrap: nowrap; +} + +#authorization-permissions-permissions-container { + flex-grow: 1; + min-width: 135px; + min-height: 0px; +} + +#authorization-permissions-permissions { + border: 1px solid var(--border-color-light-high); + border-top: 1px solid var(--border-color-dark); + border-left: 1px solid var(--border-color-dark); + margin: auto; + padding-left: 5px; + width: 100%; + height: 100%; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: left; + align-items: stretch; +} + +#authorization-permissions-permissions-scroll { + background-color: #232323; + margin: auto; + width: 100%; + height: 100%; +} + +#authorization-permissions-permissions-list { + margin: 1px; + display: flex; + flex-direction: column; + flex-wrap: wrap; + border: 0px solid black; + padding: 0px; + gap: 0px 10px; +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml b/src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml new file mode 100644 index 00000000..1845ccaa --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml @@ -0,0 +1,263 @@ +@* +/admin/manage-roles/ +*@ + +@using Lumina.Presentation.Web.Common.DTO.Authorization +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization + +@{ + var roles = ViewData["roles"] as RoleDto[]; + var permissions = ViewData["permissions"] as PermissionDto[]; + // 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 + +
+
+ + +
+ + +
+
+ + +
+
+
@_localizer["SelectARole"]
+ @if (roles is not null) + { + @for (int i = 0; i < roles.Length; i++) + { +
@roles[i].RoleName
+ } + } +
+
+
+ + +
+ + +
+ + +
+
+
+
+ @if (permissions is not null) + { + @foreach (var permission in permissions) + { +
+ +
+ } + } +
+
+
+
+ + +
+ + +
+
+
+ +@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml.css b/src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml.css new file mode 100644 index 00000000..8703767a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Admin/ManageRoles.cshtml.css @@ -0,0 +1,46 @@ +#authorization-roles-container { + display: flex; + margin: auto; + width: 100%; + height: 100%; + flex-direction: column; + flex-wrap: nowrap; +} + +#authorization-roles-permissions-container { + flex-grow: 1; + min-width: 135px; + min-height: 0px; +} + +#authorization-roles-permissions { + border: 1px solid var(--border-color-light-high); + border-top: 1px solid var(--border-color-dark); + border-left: 1px solid var(--border-color-dark); + margin: auto; + padding-left: 5px; + width: 100%; + height: 100%; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: left; + align-items: stretch; +} + +#authorization-roles-permissions-scroll { + background-color: #232323; + margin: auto; + width: 100%; + height: 100%; +} + +#authorization-roles-permissions-list { + margin: 1px; + display: flex; + flex-direction: column; + flex-wrap: wrap; + border: 0px solid black; + padding: 0px; + gap: 0px 10px; +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Auth/AccessDenied.cshtml b/src/Lumina.Presentation.Web/Core/Views/Auth/AccessDenied.cshtml new file mode 100644 index 00000000..cfec2b7a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Auth/AccessDenied.cshtml @@ -0,0 +1,17 @@ +@* +/auth/access-denied/ +*@ + +@using Microsoft.AspNetCore.Mvc.Localization + +@inject IViewLocalizer _localizer + +
+
+
+
+
+

@_localizer["NotAllowedToAccessResource"]

+
+
+
diff --git a/src/Lumina.Presentation.Web/Core/Views/Auth/ChangePassword.cshtml b/src/Lumina.Presentation.Web/Core/Views/Auth/ChangePassword.cshtml new file mode 100644 index 00000000..c260c0e9 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Auth/ChangePassword.cshtml @@ -0,0 +1,136 @@ +@* +/auth/change-password/ +*@ + +@using Lumina.Presentation.Web.Common.Requests.UsersManagement +@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 IUrlService _urlService +@inject IViewLocalizer _localizer + +@model ChangePasswordRequest + +
+
+
+
+
+ @Html.AntiForgeryToken() + +
+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionCurrentPassword"] +
+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionNewPassword"] +
+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionNewPasswordConfirm"] +
+
+ +
+
+
+ +
+ +
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Auth/Login.cshtml b/src/Lumina.Presentation.Web/Core/Views/Auth/Login.cshtml new file mode 100644 index 00000000..9e30798e --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Auth/Login.cshtml @@ -0,0 +1,141 @@ +@* +/auth/login/ +*@ + +@using Lumina.Presentation.Web.Common.Requests.UsersManagement +@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 IUrlService _urlService +@inject IViewLocalizer _localizer + +@model LoginRequest + +
+
+
+
+
+ @Html.AntiForgeryToken() + +
+ +
+
+ : +
+
+ +
+
+ +
+
+ : +
+
+ +
+
+
+ + +
+ + +
+ +
+
+
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Auth/RecoverPassword.cshtml b/src/Lumina.Presentation.Web/Core/Views/Auth/RecoverPassword.cshtml new file mode 100644 index 00000000..588befd3 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Auth/RecoverPassword.cshtml @@ -0,0 +1,137 @@ +@* +/auth/recover-password/ +*@ + +@using Lumina.Presentation.Web.Common.Requests.UsersManagement +@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 IUrlService _urlService +@inject IViewLocalizer _localizer + +@model RecoverPasswordRequest + +
+
+
+
+
+ @Html.AntiForgeryToken() +
+ +
+
+ + *: +
+
+ +
+
+ +
+
+ + *: +
+
+ +
+
+
+ + +
+
+
+ +
+ + +
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Auth/Register.cshtml b/src/Lumina.Presentation.Web/Core/Views/Auth/Register.cshtml new file mode 100644 index 00000000..914cde39 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Auth/Register.cshtml @@ -0,0 +1,197 @@ +@* +/auth/register/ +*@ + +@using Lumina.Presentation.Web.Common.Requests.UsersManagement +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization + +@{ + string? registrationType = ViewData["RegistrationType"] as string; + // 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 IUrlService _urlService +@inject IViewLocalizer _localizer + +@model RegisterRequest + +
+
+
+
+
+ @Html.AntiForgeryToken() + + +
+ @if (registrationType == "Admin") + { +
+

@_localizer["AdminAccountRegistration"]

+
+ } + +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionUsername"] +
+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionPassword"] +
+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionPasswordConfirm"] +
+ + +
+
+ +
+ @_localizer["Description2Fa"] +
+
+ +
+
+ +
+
+
+ +
+ + + + @if (User?.Identity?.IsAuthenticated == false) + { + + } +
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Home/Index.cshtml b/src/Lumina.Presentation.Web/Core/Views/Home/Index.cshtml new file mode 100644 index 00000000..b8c56118 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Home/Index.cshtml @@ -0,0 +1,94 @@ +@* +/ +*@ + +@using Lumina.Presentation.Web.Common.DTO.Libraries +@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 + +
+
+ +
+
+ +
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Home/Privacy.cshtml b/src/Lumina.Presentation.Web/Core/Views/Home/Privacy.cshtml new file mode 100644 index 00000000..af4fb195 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Home/Privacy.cshtml @@ -0,0 +1,6 @@ +@{ + ViewData["Title"] = "Privacy Policy"; +} +

@ViewData["Title"]

+ +

Use this page to detail your site's privacy policy.

diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml new file mode 100644 index 00000000..8cca8518 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml @@ -0,0 +1,630 @@ +@* +/library/manage +*@ + +@using Lumina.Presentation.Web.Common.DTO.Libraries +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization +@using System.Security.Claims + +@{ + // 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 IUrlService _urlService +@inject IViewLocalizer _localizer + + + +
+
+
+
+
+

+ @_localizer["Libraries"] +

+
+ + + + + + + + + + + + + + +
+ + +
+

@_localizer["NoLibraries"]

+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml.css b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml.css new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Index.cshtml.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/Management/Item.cshtml b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Item.cshtml new file mode 100644 index 00000000..091c47cf --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Library/Management/Item.cshtml @@ -0,0 +1,477 @@ +@* +/library/manage/item/{id:guid} +*@ + +@using Lumina.Presentation.Web.Common.DTO.Libraries +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization + +@{ + var id = Context.Request.RouteValues["id"] as string; + // 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 IUrlService _urlService +@inject IViewLocalizer _localizer + +@model LibraryDto + +@await Component.InvokeAsync("FileSystemBrowser") + +
+
+
+
+
+ @Html.AntiForgeryToken() + + +
+

+ @(_localizer[id is not null ? "EditLibrary" : "AddNewLibrary"]) +

+
+
+

@_localizer["GeneralInformation"]

+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionTitle"] +
+ +
+
+ + *: +
+
+
+
+ + +
+
+
@_localizer["WrittenContent"]
+
@_localizer["Book"]
+
@_localizer["EBook"]
+
@_localizer["BookSeries"]
+
@_localizer["ComicBook"]
+
@_localizer["ComicSeries"]
+
@_localizer["Magazine"]
+
@_localizer["Manga"]
+
@_localizer["GraphicNovel"]
+
@_localizer["AcademicPaper"]
+
@_localizer["SheetMusic"]
+
@_localizer["Screenplay"]
+
@_localizer["VideoContent"]
+
@_localizer["TvShow"]
+
@_localizer["Movie"]
+
@_localizer["FilmSeries"]
+
@_localizer["FilmFranchise"]
+
@_localizer["Concert"]
+
@_localizer["Documentary"]
+
@_localizer["Tutorial"]
+
@_localizer["Personal"]
+
@_localizer["Anime"]
+
@_localizer["Youtube"]
+
@_localizer["Videoclip"]
+
@_localizer["AudioContent"]
+
@_localizer["Music"]
+
@_localizer["AudioBook"]
+
@_localizer["LivePerformance"]
+
@_localizer["Interview"]
+
@_localizer["Cover"]
+
@_localizer["Remix"]
+
@_localizer["Soundeffect"]
+
@_localizer["Podcast"]
+
@_localizer["RadioShow"]
+
@_localizer["VisualContent"]
+
@_localizer["PhotoAlbum"]
+
@_localizer["MiscellaneousContent"]
+
@_localizer["Other"]
+
+
+
+ @_localizer["DescriptionLibraryType"] +
+ +
+
+ : + @_localizer[ +
+
+
+
+ @if (Model.CoverImage is not null) + { +
+ @Model.CoverImage + @_localizer[ +
+ } +
+ @_localizer["DescriptionCover"] +
+ +
+
+ + *: + @_localizer[ +
+
+
+
+ @for (int i = 0; i < Model.ContentLocations.Count; i++) + { +
+ @Model.ContentLocations[i] + @_localizer[ +
+ } +
+ @_localizer["DescriptionDirectories"] +
+ +

@_localizer["AdvancedSettings"]

+
+
+ : +
+
+ +
+ @_localizer["DescriptionEnabled"] +
+
+
+ : +
+
+ +
+ @_localizer["DescriptionLocked"] +
+
+
+ : +
+
+ +
+ @_localizer["DescriptionDownloadMetadataFromWeb"] +
+
+
+ +
+
+ +
+ @_localizer["DescriptionShouldSaveMetadataInMediaDirectories"] +
+
+
+ +
+
+ +
+ @_localizer["DescriptionShouldSkipUnchangedDirectoriesDuringScan"] +
+ @if (id is not null) + { +

@_localizer["MetadataProviders"]

+
+ + + + + + + + + + + +
@_localizer["Name"]@_localizer["Enabled"]@_localizer["Order"]
+ @_localizer["DescriptionMetadataProviders"] +
+ } +
+ +
+
+
+ +
+ + + +
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml b/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml new file mode 100644 index 00000000..6832ccf2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Index.cshtml @@ -0,0 +1,317 @@ +@* +/library/written-content-library/books-library/books?libraryId=... +*@ + +@using Lumina.Presentation.Web.Common.DTO.Libraries +@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 LibraryDto + +
+
+ +
+
+
+

@(Model.Title ?? string.Empty)

+
+
+ + + + +
+
+
+ + +
+
+
+ +
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml b/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml new file mode 100644 index 00000000..a25adbc1 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Library/WrittenContentLibrary/BookLibrary/Books/Item.cshtml @@ -0,0 +1 @@ +

A book

diff --git a/src/Lumina.Presentation.Web/Core/Views/Plugins/Index.cshtml b/src/Lumina.Presentation.Web/Core/Views/Plugins/Index.cshtml new file mode 100644 index 00000000..734f9ff4 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Plugins/Index.cshtml @@ -0,0 +1,200 @@ +@* +/plugins +*@ + +@using Lumina.Presentation.Web.Common.DTO.Plugins +@using Lumina.Presentation.Web.Common.Enums.Plugins +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization + +@model PluginDto[] + +@{ + var settingsByPluginId = ViewData["pluginSettings"] as Dictionary ?? new Dictionary(); + // 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 IUrlService _urlService +@inject IViewLocalizer _localizer + +
+
+
+
+
+

+ @_localizer["Plugins"] +

+
+ @if (Model.Length > 0) + { + + + + + + + + + + + + + @foreach (PluginDto plugin in Model) + { + + + + + + + + + @if (plugin.LoadStatus == PluginLoadStatus.FailedToLoad && !string.IsNullOrWhiteSpace(plugin.LoadError)) + { + + + + } + @if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id)) + { + PluginSettingsDto pluginSettings = settingsByPluginId[plugin.Id]; + + + + } + } + +
@_localizer["Name"]@_localizer["Author"]@_localizer["Version"]@_localizer["Description"]@_localizer["LoadStatus"]@_localizer["Settings"]
@plugin.Name@plugin.Author@plugin.Version@plugin.Description + @if (plugin.LoadStatus == PluginLoadStatus.Loaded) + { + @_localizer["Loaded"] + } + else + { + @_localizer["FailedToLoad"] + } + + @if (plugin.LoadStatus == PluginLoadStatus.Loaded && settingsByPluginId.ContainsKey(plugin.Id)) + { + + } +
+ @_localizer["LoadError"]: @plugin.LoadError +
+ } + else + { +

@_localizer["NoPlugins"]

+ } +
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/Shared/Components/FileSystemBrowser/Default.cshtml b/src/Lumina.Presentation.Web/Core/Views/Shared/Components/FileSystemBrowser/Default.cshtml new file mode 100644 index 00000000..ac082b75 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Shared/Components/FileSystemBrowser/Default.cshtml @@ -0,0 +1,549 @@ +@using Lumina.Presentation.Web.Common.DTO.Common +@using Lumina.Presentation.Web.Common.Api +@using Lumina.Presentation.Web.Common.Enums.FileSystem +@using Lumina.Presentation.Web.Common.Enums.Notifications +@using Lumina.Presentation.Web.Common.Exceptions +@using Lumina.Presentation.Web.Common.DTO.FileSystemManagement +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization +@using Microsoft.AspNetCore.Components +@using System.Text.Json +@using System.Text + +@{ + var componentScriptId = ScriptIdentifierHelper.GenerateScriptId(); +} + +@inject IViewLocalizer _localizer + +
+
+
+
+
+
+ + + + + + +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+ @_localizer["Name"] +
+
+
+
+
+
+
+
+
+ + +
+
+ + +
+
+
+ @*
+ + + @_localizer["Cancel"] + @_localizer["Confirm"] *@ +
+
+
+ + diff --git a/src/Lumina.Presentation.Web/Core/Views/Shared/Error.cshtml b/src/Lumina.Presentation.Web/Core/Views/Shared/Error.cshtml new file mode 100644 index 00000000..9796d49c --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Shared/Error.cshtml @@ -0,0 +1,26 @@ +@using Lumina.Presentation.Web.Common.DTO.Common +@model ErrorViewDto +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +@if (Model.ShowRequestId) +{ +

+ Request ID: @Model.RequestId +

+} + +

Development Mode

+

+ Swapping to Development environment will display more detailed information about the error that occurred. +

+

+ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +

diff --git a/src/Lumina.Presentation.Web/Core/Views/Shared/NotFound.cshtml b/src/Lumina.Presentation.Web/Core/Views/Shared/NotFound.cshtml new file mode 100644 index 00000000..cd38a425 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Shared/NotFound.cshtml @@ -0,0 +1,19 @@ +@* +/not-found/ +*@ + +@using Microsoft.AspNetCore.Mvc.Localization + +@inject IViewLocalizer _localizer + +
+ +
+
+
+
+

@_localizer["PageNotFound"]

+

@_localizer["ThereIsNoPage"]

+
+
+
diff --git a/src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml b/src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml new file mode 100644 index 00000000..2b8187f2 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml @@ -0,0 +1,88 @@ +@using Lumina.Presentation.Web.Common.DTO.Configuration +@using Microsoft.AspNetCore.Mvc.Localization +@using Microsoft.Extensions.Options + +@inject IViewLocalizer _localizer +@inject IOptions _serverConfigurationModel + + + + + + + @ViewData["Title"] - Lumina + + + + + + + + + + + + + +
+
+ @await Html.PartialAsync("_NavMenu") +
+
+
+ @RenderBody() +
+
+
+
+ @if (User?.Identity?.IsAuthenticated == true) + { + + + } +
+ + + + + + + + +
+ @await RenderSectionAsync("Scripts", required: false) +
+ + diff --git a/src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml.css b/src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml.css new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Shared/_Layout.cshtml.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Views/Shared/_NavMenu.cshtml b/src/Lumina.Presentation.Web/Core/Views/Shared/_NavMenu.cshtml new file mode 100644 index 00000000..a1f51376 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Shared/_NavMenu.cshtml @@ -0,0 +1,226 @@ +@using Lumina.Presentation.Web.Common.Authorization +@using Lumina.Presentation.Web.Common.Enums.Authorization +@using Lumina.Presentation.Web.Common.Services +@using Microsoft.AspNetCore.Mvc.Localization +@using System.Threading + +@inject IUrlService _urlService +@inject IViewLocalizer _localizer +@inject IAuthorizationService _auth + + + + diff --git a/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml b/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml new file mode 100644 index 00000000..7ea8be9a --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/Tools/Settings.cshtml @@ -0,0 +1,152 @@ +@* +/tools/settings +*@ + +@using Lumina.Presentation.Web.Common.DTO.UsersManagement +@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 IUrlService _urlService +@inject IViewLocalizer _localizer + +@model UserSettingsDto + +
+
+
+
+
+ @Html.AntiForgeryToken() +
+

+ @_localizer["Settings"] +

+
+
+ +
+
+ : +
+
+ +
+ @_localizer["DescriptionEnablePagination"] +
+ +
+
+ + *: +
+
+ +
+ @_localizer["DescriptionItemsPerPage"] +
+ +
+
+ : +
+
+ +
+ @_localizer["DescriptionIgnoreThePrefixForAlphaPicker"] +
+
+ +
+
+
+
+
+@section Scripts { + +} diff --git a/src/Lumina.Presentation.Web/Core/Views/_ViewImports.cshtml b/src/Lumina.Presentation.Web/Core/Views/_ViewImports.cshtml new file mode 100644 index 00000000..263725d5 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/_ViewImports.cshtml @@ -0,0 +1,4 @@ +@using Lumina.Presentation.Web +@using Lumina.Presentation.Web.Common.Routes + +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/src/Lumina.Presentation.Web/Core/Views/_ViewStart.cshtml b/src/Lumina.Presentation.Web/Core/Views/_ViewStart.cshtml new file mode 100644 index 00000000..a5f10045 --- /dev/null +++ b/src/Lumina.Presentation.Web/Core/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj b/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj index a29edcbc..c4010b22 100644 --- a/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj +++ b/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj @@ -19,12 +19,16 @@ + + + + @@ -33,326 +37,331 @@ - + True True ChangePassword.resx - + True True Login.resx - + True True RecoverPassword.resx - + True True Register.resx - + True True Item.resx + + True + True + Index.resx + - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator ChangePassword.Designer.cs - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator Login.Designer.cs - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator RecoverPassword.Designer.cs - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator Register.Designer.cs - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator Item.Designer.cs - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator Index.Designer.cs - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator - + PublicResXFileCodeGenerator diff --git a/src/Lumina.Presentation.Web/Program.cs b/src/Lumina.Presentation.Web/Program.cs index fdbfdb5e..c314290d 100644 --- a/src/Lumina.Presentation.Web/Program.cs +++ b/src/Lumina.Presentation.Web/Program.cs @@ -1,13 +1,14 @@ #region ========================================================================= USING ===================================================================================== +using FastEndpoints; using Lumina.Presentation.Web.Common.DependencyInjection; using Lumina.Presentation.Web.Common.Utilities; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Routing.Constraints; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Primitives; +using Scalar.AspNetCore; using Serilog; using System; using System.Diagnostics.CodeAnalysis; @@ -92,6 +93,8 @@ public class Program app.UseCultureRedirect(); // if the user attempts to go to a localized route without providing a culture, redirect to default culture app.UseApiExceptionHandling(); // handle any problem details returned by the API app.UseRouting(); + app.UseAntiforgeryFE(additionalContentTypes: ["application/json"]); // validate the antiforgery token of the JSON requests, sent via the RequestVerificationToken header + app.UseRequestLocalization(); // set the culture from the localized routes app.UseSession(); app.UseAuthentication(); app.UseAuthorization(); @@ -105,17 +108,18 @@ public class Program return next(); }); - // use localized routes for those that need localization - app.MapControllerRoute( - name: "localized", - pattern: "{culture}/{*catchall}", - constraints: new { culture = new RegexRouteConstraint("^[a-z]{2}(?:-[A-Z]{2})?$") } - ); - // for the rest, use default routing - app.MapControllerRoute( - name: "default", - pattern: "{*catchall}" - ); + app.UseFastEndpoints(); + + // add API documentation (OpenApi/Scalar), so that the endpoints exposed by the web application are discoverable and their contracts are visible + app.MapOpenApi(); + app.UseOpenApi(openApiDocumentMiddlewareSettings => openApiDocumentMiddlewareSettings.Path = "/openapi/{documentName}.json"); + app.MapScalarApiReference(scalarOptions => + { + scalarOptions.WithTitle("Lumina Web") + .WithTheme(ScalarTheme.BluePlanet) + .WithDefaultHttpClient(ScalarTarget.CSharp, ScalarClient.HttpClient) + .WithDotNetFlag(true); + }); await app.RunAsync(); } From 7b56033a15b9aad357c5c6cf7e7851587a13615e Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:37:17 -0700 Subject: [PATCH 4/8] docs: updates api endpoint and contract documentation --- .../Requests/Authentication/ChangePasswordRequest.cs | 5 +++++ .../Requests/Authorization/GetUserPermissionsRequest.cs | 2 ++ .../Requests/Authorization/GetUserRoleRequest.cs | 2 ++ .../FileSystemManagement/Path/GetPathParentRequest.cs | 4 ++-- .../Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs b/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs index 0f75f0b3..e6cf4dc8 100644 --- a/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs +++ b/src/Lumina.Contracts/Requests/Authentication/ChangePasswordRequest.cs @@ -1,3 +1,7 @@ +#region ========================================================================= USING ===================================================================================== +using System.Diagnostics; +#endregion + namespace Lumina.Contracts.Requests.Authentication; /// @@ -7,6 +11,7 @@ namespace Lumina.Contracts.Requests.Authentication; /// The current password of the account. Required. /// The new password of the account. Required. /// The confirmation of the new password of the account. Required. +[DebuggerDisplay("Username: {Username}")] public record ChangePasswordRequest( string? Username, string? CurrentPassword, diff --git a/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs b/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs index c7fa452b..5a0b894f 100644 --- a/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs +++ b/src/Lumina.Contracts/Requests/Authorization/GetUserPermissionsRequest.cs @@ -1,5 +1,6 @@ #region ========================================================================= USING ===================================================================================== using System; +using System.Diagnostics; #endregion namespace Lumina.Contracts.Requests.Authorization; @@ -8,6 +9,7 @@ namespace Lumina.Contracts.Requests.Authorization; /// Represents the request model for retrieving the authorization permissions of a user identified by . /// /// The unique identifier of the user for whom to get the authorization permissions. Required. +[DebuggerDisplay("UserId: {UserId}")] public record GetUserPermissionsRequest( Guid? UserId ); diff --git a/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs b/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs index fbb2faf2..3aa541af 100644 --- a/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs +++ b/src/Lumina.Contracts/Requests/Authorization/GetUserRoleRequest.cs @@ -1,5 +1,6 @@ #region ========================================================================= USING ===================================================================================== using System; +using System.Diagnostics; #endregion namespace Lumina.Contracts.Requests.Authorization; @@ -8,6 +9,7 @@ namespace Lumina.Contracts.Requests.Authorization; /// Represents the request model for retrieving the authorization role of a user identified by . ///
/// The unique identifier of the user for whom to get the authorization role. Required. +[DebuggerDisplay("UserId: {UserId}")] public record GetUserRoleRequest( Guid? UserId ); diff --git a/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs b/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs index 38538c11..23503311 100644 --- a/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs +++ b/src/Lumina.Contracts/Requests/FileSystemManagement/Path/GetPathParentRequest.cs @@ -6,9 +6,9 @@ using System.Text.Json.Serialization; namespace Lumina.Contracts.Requests.FileSystemManagement.Path; /// -/// Represents a request to get the root of a file system path. +/// Represents the request for retrieving the parent path of a file system path. /// -/// The file system path for which to get the root. Required. +/// The path for which the parent path is retrieved. [DebuggerDisplay("Path: {Path}")] public record GetPathParentRequest( string? Path diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs index 8d0bd33a..f2989736 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpoint.cs @@ -42,7 +42,7 @@ public class AddRoleEndpoint : BaseEndpoint } /// - /// Creates a new authorization role. + /// Adds a new authorization role. /// /// The request containing the authorization role to be created. /// Cancellation token that can be used to stop the execution. From 7ad7ad308ea58fe3dab4f3cb16db695b4fcdafad Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:37:31 -0700 Subject: [PATCH 5/8] test: adds unit, integration and security test projects for the web project --- src/Lumina.sln | 61 +++++ .../Common/Api/StubApiHttpClient.cs | 255 ++++++++++++++++++ .../Common/Api/TestApiHttpMessageHandler.cs | 51 ++++ .../DTO/Authorization/RoleDtoFixture.cs | 42 +++ .../Common/DTO/Libraries/LibraryDtoFixture.cs | 51 ++++ .../UsersManagement/UserSettingsDtoFixture.cs | 47 ++++ .../Authorization/AddRoleRequestFixture.cs | 42 +++ .../Authorization/DeleteRoleRequestFixture.cs | 39 +++ .../GetDirectoriesRequestFixture.cs | 39 +++ .../Path/ValidatePathRequestFixture.cs | 37 +++ .../Libraries/GetBooksLiteRequestFixture.cs | 63 +++++ .../Management/DeleteLibraryRequestFixture.cs | 39 +++ .../UpdatePluginSettingsRequestFixture.cs | 43 +++ .../Tools/SetLanguageRequestFixture.cs | 40 +++ .../Authentication/LoginViewRequestFixture.cs | 39 +++ .../ChangePasswordRequestFixture.cs | 46 ++++ .../UsersManagement/LoginRequestFixture.cs | 45 ++++ .../RecoverPasswordRequestFixture.cs | 41 +++ .../UsersManagement/RegisterRequestFixture.cs | 48 ++++ .../TestHelpers/JsonResultTestHelper.cs | 29 ++ .../TestHelpers/TestHttpContextFactory.cs | 125 +++++++++ .../Common/TestHelpers/WebTestHelpers.cs | 114 ++++++++ .../Endpoints/Common/BaseEndpointFixture.cs | 73 +++++ .../Lumina.Presentation.Web.Fixtures.csproj | 25 ++ .../Properties/AssemblyInfo.cs | 22 ++ .../Documentation/OpenApiEndpointTests.cs | 52 ++++ .../Common/Setup/LuminaWebFactory.cs | 63 +++++ .../Roles/GetRoles/GetRolesEndpointTests.cs | 70 +++++ .../Endpoints/Home/HomeIndexEndpointTests.cs | 91 +++++++ .../GetLibraries/GetLibrariesEndpointTests.cs | 90 +++++++ .../SaveLibrary/SaveLibraryEndpointTests.cs | 84 ++++++ .../SetLanguage/SetLanguageEndpointTests.cs | 61 +++++ .../Login/LoginEndpointTests.cs | 138 ++++++++++ .../Login/LoginViewEndpointTests.cs | 79 ++++++ ...a.Presentation.Web.IntegrationTests.csproj | 46 ++++ .../Common/Setup/LuminaWebFactory.cs | 63 +++++ .../Roles/GetRoles/GetRolesEndpointTests.cs | 87 ++++++ .../DeleteLibraryEndpointTests.cs | 82 ++++++ .../SaveLibrary/SaveLibraryEndpointTests.cs | 99 +++++++ .../Login/LoginEndpointTests.cs | 127 +++++++++ ...mina.Presentation.Web.SecurityTests.csproj | 46 ++++ .../Common/Api/ApiHttpClientTests.cs | 177 ++++++++++++ .../AuthorizationPoliciesTests.cs | 22 ++ .../AuthorizationServiceTests.cs | 112 ++++++++ .../CoreHtmlLocalizerFactoryTests.cs | 74 +++++ .../Security/CryptographyServiceTests.cs | 88 ++++++ .../Services/ScriptIdentifierHelperTests.cs | 49 ++++ .../Common/Services/UrlServiceTests.cs | 119 ++++++++ .../EncryptionSettingsModelValidatorTests.cs | 60 +++++ .../ServerConfigurationModelValidatorTests.cs | 75 ++++++ .../Roles/AddRole/AddRoleEndpointTests.cs | 63 +++++ .../DeleteRole/DeleteRoleEndpointTests.cs | 54 ++++ .../Roles/GetRoles/GetRolesEndpointTests.cs | 76 ++++++ .../Endpoints/Common/BaseEndpointTests.cs | 109 ++++++++ .../GetDirectoriesEndpointTests.cs | 76 ++++++ .../ValidatePath/ValidatePathEndpointTests.cs | 77 ++++++ .../DeleteLibraryEndpointTests.cs | 54 ++++ .../GetLibraries/GetLibrariesEndpointTests.cs | 71 +++++ .../SaveLibrary/SaveLibraryEndpointTests.cs | 79 ++++++ .../GetLibraryItemsEndpointTests.cs | 124 +++++++++ .../Index/BooksIndexViewEndpointTests.cs | 77 ++++++ .../GetPlugins/GetPluginsEndpointTests.cs | 70 +++++ .../UpdatePluginSettingsEndpointTests.cs | 59 ++++ .../SetLanguage/SetLanguageEndpointTests.cs | 84 ++++++ .../GetUserSettingsEndpointTests.cs | 71 +++++ .../UpdateUserSettingsEndpointTests.cs | 59 ++++ .../Login/LoginViewEndpointTests.cs | 93 +++++++ .../RecoverPasswordEndpointTests.cs | 61 +++++ .../Register/RegisterEndpointTests.cs | 80 ++++++ .../Lumina.Presentation.Web.UnitTests.csproj | 46 ++++ 70 files changed, 4993 insertions(+) create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/StubApiHttpClient.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/TestApiHttpMessageHandler.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Authorization/RoleDtoFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Libraries/LibraryDtoFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/UsersManagement/UserSettingsDtoFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/AddRoleRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/DeleteRoleRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Path/ValidatePathRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Libraries/GetBooksLiteRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Library/Management/DeleteLibraryRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Plugins/UpdatePluginSettingsRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Tools/SetLanguageRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/Authentication/LoginViewRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/ChangePasswordRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/LoginRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RecoverPasswordRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RegisterRequestFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/JsonResultTestHelper.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/TestHttpContextFactory.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/WebTestHelpers.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Core/Endpoints/Common/BaseEndpointFixture.cs create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Lumina.Presentation.Web.Fixtures.csproj create mode 100644 tests/Common/Lumina.Presentation.Web.Fixtures/Properties/AssemblyInfo.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Documentation/OpenApiEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Setup/LuminaWebFactory.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Home/HomeIndexEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs create mode 100644 tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Lumina.Presentation.Web.IntegrationTests.csproj create mode 100644 tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Common/Setup/LuminaWebFactory.cs create mode 100644 tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs create mode 100644 tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs create mode 100644 tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs create mode 100644 tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs create mode 100644 tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Lumina.Presentation.Web.SecurityTests.csproj create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Api/ApiHttpClientTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationPoliciesTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationServiceTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Localization/CoreHtmlLocalizerFactoryTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Security/CryptographyServiceTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/ScriptIdentifierHelperTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/UrlServiceTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/EncryptionSettingsModelValidatorTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/ServerConfigurationModelValidatorTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointTests.cs create mode 100644 tests/UnitTests/Lumina.Presentation.Web.UnitTests/Lumina.Presentation.Web.UnitTests.csproj diff --git a/src/Lumina.sln b/src/Lumina.sln index 2859a645..712b3786 100644 --- a/src/Lumina.sln +++ b/src/Lumina.sln @@ -1,3 +1,4 @@ + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -223,6 +224,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lumina.Presentation.Api.Fix EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lumina.Domain.SharedKernel.Fixtures", "..\tests\Common\Lumina.Domain.SharedKernel.Fixtures\Lumina.Domain.SharedKernel.Fixtures.csproj", "{A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Presentation.Web.Fixtures", "..\tests\Common\Lumina.Presentation.Web.Fixtures\Lumina.Presentation.Web.Fixtures.csproj", "{52245330-641B-4E14-823A-10B3D9105D58}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Presentation.Web.UnitTests", "..\tests\UnitTests\Lumina.Presentation.Web.UnitTests\Lumina.Presentation.Web.UnitTests.csproj", "{697F6057-DBDC-40B9-A7E5-02F295BC18B3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Presentation.Web.IntegrationTests", "..\tests\IntegrationTests\Lumina.Presentation.Web.IntegrationTests\Lumina.Presentation.Web.IntegrationTests.csproj", "{4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lumina.Presentation.Web.SecurityTests", "..\tests\SecurityTests\Lumina.Presentation.Web.SecurityTests\Lumina.Presentation.Web.SecurityTests.csproj", "{3FE25467-CBC6-438F-BB96-6601AF56E937}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -517,6 +526,54 @@ Global {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x64.Build.0 = Release|Any CPU {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x86.ActiveCfg = Release|Any CPU {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61}.Release|x86.Build.0 = Release|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Debug|x64.ActiveCfg = Debug|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Debug|x64.Build.0 = Debug|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Debug|x86.ActiveCfg = Debug|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Debug|x86.Build.0 = Debug|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Release|Any CPU.ActiveCfg = Release|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Release|Any CPU.Build.0 = Release|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Release|x64.ActiveCfg = Release|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Release|x64.Build.0 = Release|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Release|x86.ActiveCfg = Release|Any CPU + {52245330-641B-4E14-823A-10B3D9105D58}.Release|x86.Build.0 = Release|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Debug|x64.ActiveCfg = Debug|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Debug|x64.Build.0 = Debug|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Debug|x86.ActiveCfg = Debug|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Debug|x86.Build.0 = Debug|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Release|Any CPU.Build.0 = Release|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Release|x64.ActiveCfg = Release|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Release|x64.Build.0 = Release|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Release|x86.ActiveCfg = Release|Any CPU + {697F6057-DBDC-40B9-A7E5-02F295BC18B3}.Release|x86.Build.0 = Release|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Debug|x64.ActiveCfg = Debug|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Debug|x64.Build.0 = Debug|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Debug|x86.ActiveCfg = Debug|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Debug|x86.Build.0 = Debug|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Release|Any CPU.Build.0 = Release|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Release|x64.ActiveCfg = Release|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Release|x64.Build.0 = Release|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Release|x86.ActiveCfg = Release|Any CPU + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A}.Release|x86.Build.0 = Release|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Debug|x64.ActiveCfg = Debug|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Debug|x64.Build.0 = Debug|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Debug|x86.ActiveCfg = Debug|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Debug|x86.Build.0 = Debug|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Release|Any CPU.Build.0 = Release|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Release|x64.ActiveCfg = Release|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Release|x64.Build.0 = Release|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Release|x86.ActiveCfg = Release|Any CPU + {3FE25467-CBC6-438F-BB96-6601AF56E937}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -570,6 +627,10 @@ Global {7C2AB7E7-F58B-4F96-BDFB-05E403BD999B} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} {4E7353D5-5F1C-43A1-B792-6CD1D5DBDB91} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} {A6BC3F8B-CAB8-4F3B-BD89-B7428697DE61} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} + {52245330-641B-4E14-823A-10B3D9105D58} = {7E8A2D6B-3F4C-4E5F-9A6B-1C2D3E4F5A6B} + {697F6057-DBDC-40B9-A7E5-02F295BC18B3} = {53B1231B-37F5-44BA-80D5-DBA979775F5C} + {4BE18EDC-02ED-47E2-A23A-3F6650ADAF0A} = {3F057926-562F-4EF4-BFC0-EE62372D4551} + {3FE25467-CBC6-438F-BB96-6601AF56E937} = {8B06B1D2-80B9-490C-9A36-C7748F58B705} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4A55A28E-C657-4A0B-95EA-2931AE66004E} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/StubApiHttpClient.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/StubApiHttpClient.cs new file mode 100644 index 00000000..93a80e81 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/StubApiHttpClient.cs @@ -0,0 +1,255 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Enums.Authorization; +using Lumina.Presentation.Web.Common.Exceptions; +using Lumina.Presentation.Web.Common.Responses.Authorization; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Api; + +/// +/// Test double for the interface, allowing integration and security tests to stub the +/// remote API responses without hosting a real backend. +/// +[ExcludeFromCodeCoverage] +public class StubApiHttpClient : IApiHttpClient +{ + private readonly Dictionary> _getResponseFactories = []; + private readonly Dictionary> _postResponseFactories = []; + private readonly Dictionary> _putResponseFactories = []; + private readonly HashSet _deleteSuccessEndpoints = []; + + /// + /// Gets the authorization response returned for the auth/get-authorization endpoint. + /// + public GetAuthorizationResponse AuthorizationResponse { get; set; } = new(Guid.NewGuid(), "Admin", Enum.GetValues()); + + /// + /// Gets or sets the initialization response returned for the initialization endpoint. + /// + public InitializationResponse InitializationResponse { get; set; } = new() { IsInitialized = true }; + + /// + /// Gets or sets the login response returned for the auth/login endpoint. + /// + public LoginResponse LoginResponse { get; set; } = new(Guid.NewGuid(), "testuser", "test_jwt_token", false); + + /// + /// Gets the list of GET endpoints that were requested. + /// + public List GetEndpointsCalled { get; } = []; + + /// + /// Gets the list of POST requests that were sent, with their payloads. + /// + public List<(string Endpoint, object? Data)> PostRequests { get; } = []; + + /// + /// Gets the list of PUT requests that were sent, with their payloads. + /// + public List<(string Endpoint, object? Data)> PutRequests { get; } = []; + + /// + /// Gets the list of DELETE endpoints that were requested. + /// + public List DeleteEndpointsCalled { get; } = []; + + /// + /// Registers the response returned when the specified GET endpoint is called. + /// + /// The type of the response. + /// The API endpoint for which to register the response. + /// The response to return. + public void RegisterGetResponse(string endpoint, TResponse response) where TResponse : class + { + _getResponseFactories[endpoint] = () => response; + } + + /// + /// Registers the response factory invoked when the specified GET endpoint is called. + /// + /// The API endpoint for which to register the response factory. + /// The factory that produces the response. + public void RegisterGetResponseFactory(string endpoint, Func responseFactory) + { + _getResponseFactories[endpoint] = responseFactory; + } + + /// + /// Registers the response returned when the specified POST endpoint is called. + /// + /// The type of the response. + /// The API endpoint for which to register the response. + /// The response to return. + public void RegisterPostResponse(string endpoint, TResponse response) where TResponse : class + { + _postResponseFactories[endpoint] = _ => response; + } + + /// + /// Registers the response factory invoked when the specified POST endpoint is called. + /// + /// The API endpoint for which to register the response factory. + /// The factory that produces the response from the request payload. + public void RegisterPostResponseFactory(string endpoint, Func responseFactory) + { + _postResponseFactories[endpoint] = responseFactory; + } + + /// + /// Registers the exception thrown when the specified POST endpoint is called. + /// + /// The API endpoint for which to register the exception. + /// The exception to throw. + public void RegisterPostException(string endpoint, ApiException exception) + { + _postResponseFactories[endpoint] = _ => throw exception; + } + + /// + /// Registers the exception thrown when the specified GET endpoint is called. + /// + /// The API endpoint for which to register the exception. + /// The exception to throw. + public void RegisterGetException(string endpoint, ApiException exception) + { + _getResponseFactories[endpoint] = () => throw exception; + } + + /// + /// Registers the response returned when the specified PUT endpoint is called. + /// + /// The type of the response. + /// The API endpoint for which to register the response. + /// The response to return. + public void RegisterPutResponse(string endpoint, TResponse response) where TResponse : class + { + _putResponseFactories[endpoint] = _ => response; + } + + /// + /// Registers the specified DELETE endpoint as succeeding. + /// + /// The API endpoint for which to register success. + public void RegisterDeleteSuccess(string endpoint) + { + _deleteSuccessEndpoints.Add(endpoint); + } + + /// + /// Resets all registered responses and captured requests, keeping only the default responses. + /// + public void Reset() + { + _getResponseFactories.Clear(); + _postResponseFactories.Clear(); + _putResponseFactories.Clear(); + _deleteSuccessEndpoints.Clear(); + GetEndpointsCalled.Clear(); + PostRequests.Clear(); + PutRequests.Clear(); + DeleteEndpointsCalled.Clear(); + } + + /// + /// Sends a GET request to the specified as an asynchronous operation and returns the result. + /// + /// The expected type of the response content. + /// The API endpoint where the request is being sent. + /// Cancellation token that can be used to stop the execution. + /// The deserialized response containing the result of the GET request. + public Task GetAsync(string endpoint, CancellationToken cancellationToken = default) + { + GetEndpointsCalled.Add(endpoint); + if (_getResponseFactories.TryGetValue(endpoint, out Func? responseFactory)) + return Task.FromResult((TResponse)responseFactory()); + if (endpoint.StartsWith(ApiRoutes.Initialization.CHECK_INITIALIZATION, StringComparison.OrdinalIgnoreCase)) + return Task.FromResult((TResponse)(object)InitializationResponse); + if (endpoint.Contains("auth/get-authorization", StringComparison.OrdinalIgnoreCase)) + return Task.FromResult((TResponse)(object)AuthorizationResponse); + throw new InvalidOperationException($"No GET response is registered for the endpoint '{endpoint}'."); + } + + /// + /// Sends a GET request to the specified as an asynchronous operation and returns the result as a streamable response. + /// + /// The expected type of the response content. + /// The API endpoint where the request is being sent. + /// Cancellation token that can be used to stop the execution. + /// An object, which allows for asynchronous iteration over the deserialized items. + public async IAsyncEnumerable GetAsyncEnumerable(string endpoint, [EnumeratorCancellation] CancellationToken cancellationToken = default) + { + await Task.CompletedTask; + yield break; + } + + /// + /// Sends a GET request to the specified as an asynchronous operation and returns the result. + /// + /// The API endpoint where the request is being sent. + /// Cancellation token that can be used to stop the execution. + /// A model containing the deserialized blob. + public Task GetBlobAsync(string endpoint, CancellationToken cancellationToken = default) + { + throw new NotSupportedException("Blob retrieval is not supported by the test stub."); + } + + /// + /// Sends a DELETE request to the specified as an asynchronous operation. + /// + /// The API endpoint where the request is being sent. + /// Cancellation token that can be used to stop the execution. + public Task DeleteAsync(string endpoint, CancellationToken cancellationToken = default) + { + DeleteEndpointsCalled.Add(endpoint); + if (_deleteSuccessEndpoints.Contains(endpoint)) + return Task.CompletedTask; + throw new ApiException(null, System.Net.HttpStatusCode.InternalServerError, endpoint); + } + + /// + /// Sends a PUT request to the specified as an asynchronous operation and returns the result. + /// + /// The expected type of the response content. + /// The expected type of the payload content. + /// The API endpoint where the request is being sent. + /// The data to be serialized and send to the API. + /// Cancellation token that can be used to stop the execution. + /// The deserialized response containing the result of the PUT request. + public Task PutAsync(string endpoint, TModel data, CancellationToken cancellationToken = default) + { + PutRequests.Add((endpoint, data)); + if (_putResponseFactories.TryGetValue(endpoint, out Func? responseFactory)) + return Task.FromResult((TResponse)responseFactory(data!)); + throw new InvalidOperationException($"No PUT response is registered for the endpoint '{endpoint}'."); + } + + /// + /// Sends a POST request to the specified as an asynchronous operation and returns the result. + /// + /// The expected type of the response content. + /// The expected type of the payload content. + /// The API endpoint where the request is being sent. + /// The data to be serialized and send to the API. + /// Cancellation token that can be used to stop the execution. + /// The deserialized response containing the result of the POST request. + public Task PostAsync(string endpoint, TModel data, CancellationToken cancellationToken = default) + { + PostRequests.Add((endpoint, data)); + if (_postResponseFactories.TryGetValue(endpoint, out Func? responseFactory)) + return Task.FromResult((TResponse)responseFactory(data!)); + if (endpoint == ApiRoutes.Authentication.LOGIN_ACCOUNT) + return Task.FromResult((TResponse)(object)LoginResponse); + throw new InvalidOperationException($"No POST response is registered for the endpoint '{endpoint}'."); + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/TestApiHttpMessageHandler.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/TestApiHttpMessageHandler.cs new file mode 100644 index 00000000..af327f97 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Api/TestApiHttpMessageHandler.cs @@ -0,0 +1,51 @@ +#region ========================================================================= USING ===================================================================================== +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Api; + +/// +/// test double that returns a configurable response for every request sent through it. +/// +[ExcludeFromCodeCoverage] +public class TestApiHttpMessageHandler : HttpMessageHandler +{ + private readonly Func _responseFactory; + + /// + /// Gets the list of requests that were sent through this handler. + /// + public List Requests { get; } = []; + + /// + /// Gets the bodies of the requests that were sent through this handler, captured while the request content is still available. + /// + public List RequestBodies { get; } = []; + + /// + /// Initializes a new instance of the class. + /// + /// The factory that produces the response for a given request. + public TestApiHttpMessageHandler(Func responseFactory) + { + _responseFactory = responseFactory; + } + + /// + /// Sends the request to the configured response factory. + /// + /// The HTTP request message to send. + /// Cancellation token that can be used to stop the execution. + /// The configured HTTP response message. + protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + Requests.Add(request); + RequestBodies.Add(request.Content is null ? null : await request.Content.ReadAsStringAsync(cancellationToken)); + return await Task.FromResult(_responseFactory(request)); + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Authorization/RoleDtoFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Authorization/RoleDtoFixture.cs new file mode 100644 index 00000000..858f0dc7 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Authorization/RoleDtoFixture.cs @@ -0,0 +1,42 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.DTO.Authorization; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class RoleDtoFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the role. + /// Optional name of the role. + /// A configured instance. + public RoleDto Create(Guid? id = null, string? roleName = null) + { + Faker faker = new(); + return new RoleDto( + Id: id ?? Guid.NewGuid(), + RoleName: roleName ?? faker.Commerce.Department() + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Libraries/LibraryDtoFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Libraries/LibraryDtoFixture.cs new file mode 100644 index 00000000..b6a98ac1 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/Libraries/LibraryDtoFixture.cs @@ -0,0 +1,51 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.DTO.Libraries; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class LibraryDtoFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the media library. + /// Optional title of the library. + /// Optional type of the library. + /// Whether the media library is enabled or not. + /// Optional collection of directories that contain the library files. + /// A configured instance. + public LibraryDto Create(Guid? id = null, string? title = null, string? libraryType = null, bool? isEnabled = null, List? contentLocations = null) + { + Faker faker = new(); + return new LibraryDto + { + Id = id ?? Guid.NewGuid(), + UserId = Guid.NewGuid(), + Title = title ?? faker.Commerce.Department(), + LibraryType = libraryType ?? faker.PickRandom("Book", "Video", "Photo"), + CoverImage = faker.Image.PicsumUrl(), + ContentLocations = contentLocations ?? [faker.System.DirectoryPath()], + IsEnabled = isEnabled ?? faker.Random.Bool() + }; + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/UsersManagement/UserSettingsDtoFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/UsersManagement/UserSettingsDtoFixture.cs new file mode 100644 index 00000000..74311aa5 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/DTO/UsersManagement/UserSettingsDtoFixture.cs @@ -0,0 +1,47 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.DTO.UsersManagement; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class UserSettingsDtoFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the user that owns the settings. + /// Whether pagination is enabled for the user. + /// Number of library items displayed per page. + /// Whether the "The" prefix is ignored by the alpha picker. + /// A configured instance. + public UserSettingsDto Create(Guid? userId = null, bool? isPaginationEnabled = null, int? itemsPerPage = null, bool? ignoreThePrefixForAlphaPicker = null) + { + Faker faker = new(); + return new UserSettingsDto + { + UserId = userId ?? Guid.NewGuid(), + IsPaginationEnabled = isPaginationEnabled ?? faker.Random.Bool(), + ItemsPerPage = itemsPerPage ?? faker.Random.Int(1, 200), + IgnoreThePrefixForAlphaPicker = ignoreThePrefixForAlphaPicker ?? faker.Random.Bool() + }; + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/AddRoleRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/AddRoleRequestFixture.cs new file mode 100644 index 00000000..0057f6d2 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/AddRoleRequestFixture.cs @@ -0,0 +1,42 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.Authorization; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class AddRoleRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional name of the role. + /// Optional collection of permission identifiers. + /// A configured instance. + public AddRoleRequest Create(string? roleName = null, List? permissions = null) + { + Faker faker = new(); + return new AddRoleRequest( + RoleName: roleName ?? faker.Commerce.Department(), + Permissions: permissions ?? [Guid.NewGuid(), Guid.NewGuid()] + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/DeleteRoleRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/DeleteRoleRequestFixture.cs new file mode 100644 index 00000000..73d036cf --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Authorization/DeleteRoleRequestFixture.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.Authorization; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class DeleteRoleRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the role. + /// A configured instance. + public DeleteRoleRequest Create(Guid? roleId = null) + { + return new DeleteRoleRequest( + RoleId: roleId ?? Guid.NewGuid() + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequestFixture.cs new file mode 100644 index 00000000..3683b3a4 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Directories/GetDirectoriesRequestFixture.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Directories; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.FileSystemManagement.Directories; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class GetDirectoriesRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional file system path whose directories are retrieved. + /// Whether hidden file system elements are included or not. + /// A configured instance. + public GetDirectoriesRequest Create(string? path = null, bool includeHiddenElements = false) + { + return new GetDirectoriesRequest( + Path: path ?? $"/media/{System.Guid.NewGuid():N}", + IncludeHiddenElements: includeHiddenElements + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Path/ValidatePathRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Path/ValidatePathRequestFixture.cs new file mode 100644 index 00000000..4a409d37 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/FileSystemManagement/Path/ValidatePathRequestFixture.cs @@ -0,0 +1,37 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.FileSystemManagement.Path; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class ValidatePathRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional file system path to validate. + /// A configured instance. + public ValidatePathRequest Create(string? path = null) + { + return new ValidatePathRequest( + Path: path ?? $"/media/{System.Guid.NewGuid():N}" + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Libraries/GetBooksLiteRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Libraries/GetBooksLiteRequestFixture.cs new file mode 100644 index 00000000..7bf7557f --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Libraries/GetBooksLiteRequestFixture.cs @@ -0,0 +1,63 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Enums.Common; +using Lumina.Presentation.Web.Common.Requests.Libraries; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.Libraries; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class GetBooksLiteRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the media library. + /// Optional page of results to retrieve. + /// Optional number of books to retrieve per page. + /// Optional search term used to filter results. + /// Optional alpha key used to filter the results. + /// Whether the leading "The " prefix is ignored by the alpha picker. + /// Optional name of the field by which to sort the results. + /// Optional direction in which to sort the results. + /// A configured instance. + public GetBooksLiteRequest Create( + Guid? libraryId = null, + int? currentPage = null, + int? perPage = null, + string? searchTerm = null, + string? filterAlphaKey = null, + bool ignoreThePrefixForAlphaPicker = false, + string? sortBy = null, + SortOrder? sortOrder = null) + { + return new GetBooksLiteRequest + { + LibraryId = libraryId ?? Guid.NewGuid(), + CurrentPage = currentPage, + PerPage = perPage, + SearchTerm = searchTerm, + FilterAlphaKey = filterAlphaKey, + IgnoreThePrefixForAlphaPicker = ignoreThePrefixForAlphaPicker, + SortBy = sortBy, + SortOrder = sortOrder + }; + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Library/Management/DeleteLibraryRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Library/Management/DeleteLibraryRequestFixture.cs new file mode 100644 index 00000000..e2997aa2 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Library/Management/DeleteLibraryRequestFixture.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.Library.Management; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.Library.Management; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class DeleteLibraryRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the media library. + /// A configured instance. + public DeleteLibraryRequest Create(Guid? id = null) + { + return new DeleteLibraryRequest( + Id: id ?? Guid.NewGuid() + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Plugins/UpdatePluginSettingsRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Plugins/UpdatePluginSettingsRequestFixture.cs new file mode 100644 index 00000000..725afc87 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Plugins/UpdatePluginSettingsRequestFixture.cs @@ -0,0 +1,43 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.Plugins; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.Plugins; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class UpdatePluginSettingsRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional identifier of the plugin. + /// Optional dictionary of settings. + /// A configured instance. + public UpdatePluginSettingsRequest Create(Guid? pluginId = null, Dictionary? settings = null) + { + Faker faker = new(); + return new UpdatePluginSettingsRequest + { + PluginId = pluginId ?? Guid.NewGuid(), + Settings = settings ?? new Dictionary { [faker.Lorem.Word()] = faker.Lorem.Word() } + }; + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Tools/SetLanguageRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Tools/SetLanguageRequestFixture.cs new file mode 100644 index 00000000..2c3cd82d --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/Tools/SetLanguageRequestFixture.cs @@ -0,0 +1,40 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.Tools; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.Tools; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class SetLanguageRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional new culture to set. + /// Optional URL to return to, after setting the new culture. + /// A configured instance. + public SetLanguageRequest Create(string? newCulture = "en-US", string? returnUrl = null) + { + return new SetLanguageRequest( + NewCulture: newCulture, + ReturnUrl: returnUrl + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/Authentication/LoginViewRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/Authentication/LoginViewRequestFixture.cs new file mode 100644 index 00000000..fe08c93e --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/Authentication/LoginViewRequestFixture.cs @@ -0,0 +1,39 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.UsersManagement.Authentication; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement.Authentication; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class LoginViewRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional URL to return to, after login. + /// A configured instance. + public LoginViewRequest Create(string? returnUrl = null) + { + Faker faker = new(); + return new LoginViewRequest( + ReturnUrl: returnUrl ?? $"/{faker.Random.AlphaNumeric(8)}" + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/ChangePasswordRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/ChangePasswordRequestFixture.cs new file mode 100644 index 00000000..a0e75deb --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/ChangePasswordRequestFixture.cs @@ -0,0 +1,46 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class ChangePasswordRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional username. + /// Optional current password. + /// Optional new password. + /// Optional confirmation of the new password. + /// A configured instance. + public ChangePasswordRequest Create(string? username = null, string? currentPassword = null, string? newPassword = null, string? newPasswordConfirm = null) + { + Faker faker = new(); + string generatedNewPassword = newPassword ?? faker.Internet.Password(12); + return new ChangePasswordRequest( + Username: username ?? faker.Internet.UserName(), + CurrentPassword: currentPassword ?? faker.Internet.Password(12), + NewPassword: generatedNewPassword, + NewPasswordConfirm: newPasswordConfirm ?? generatedNewPassword + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/LoginRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/LoginRequestFixture.cs new file mode 100644 index 00000000..9d39afdb --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/LoginRequestFixture.cs @@ -0,0 +1,45 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class LoginRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional username. + /// Optional password. + /// Optional TOTP code. + /// Optional URL to return to, after login. + /// A configured instance. + public LoginRequest Create(string? username = null, string? password = null, string? totpCode = null, string? returnUrl = null) + { + Faker faker = new(); + return new LoginRequest( + Username: username ?? faker.Internet.UserName(), + Password: password ?? faker.Internet.Password(12), + TotpCode: totpCode, + ReturnUrl: returnUrl + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RecoverPasswordRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RecoverPasswordRequestFixture.cs new file mode 100644 index 00000000..cb8f2ce5 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RecoverPasswordRequestFixture.cs @@ -0,0 +1,41 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class RecoverPasswordRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional username. + /// Optional TOTP code. + /// A configured instance. + public RecoverPasswordRequest Create(string? username = null, string? totpCode = null) + { + Faker faker = new(); + return new RecoverPasswordRequest( + Username: username ?? faker.Internet.UserName(), + TotpCode: totpCode + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RegisterRequestFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RegisterRequestFixture.cs new file mode 100644 index 00000000..a6596a66 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/Requests/UsersManagement/RegisterRequestFixture.cs @@ -0,0 +1,48 @@ +#region ========================================================================= USING ===================================================================================== +using Bogus; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement; + +/// +/// Fixture class for generating test data. +/// +[ExcludeFromCodeCoverage] +public class RegisterRequestFixture +{ + /// + /// Creates a new instance with randomized test data. + /// + /// Optional username. + /// Optional password. + /// Optional password confirmation. + /// Optional registration type, e.g. "Admin" or "User". + /// Whether two-factor authentication is enabled for the account. + /// A configured instance. + public RegisterRequest Create(string? username = null, string? password = null, string? passwordConfirm = null, string? registrationType = "User", bool use2fa = true) + { + Faker faker = new(); + string generatedPassword = password ?? faker.Internet.Password(12); + return new RegisterRequest( + Username: username ?? faker.Internet.UserName(), + Password: generatedPassword, + PasswordConfirm: passwordConfirm ?? generatedPassword, + RegistrationType: registrationType, + Use2fa: use2fa + ); + } + + /// + /// Creates multiple instances with randomized test data. + /// + /// Number of instances to create. + /// List of configured instances. + public List CreateMany(int count = 3) + { + return [.. Enumerable.Range(0, count).Select(_ => Create())]; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/JsonResultTestHelper.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/JsonResultTestHelper.cs new file mode 100644 index 00000000..f737af84 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/JsonResultTestHelper.cs @@ -0,0 +1,29 @@ +#region ========================================================================= USING ===================================================================================== +using Microsoft.AspNetCore.Http; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.TestHelpers; + +/// +/// Helper for executing instances and reading the JSON response body they produce. +/// +[ExcludeFromCodeCoverage] +public static class JsonResultTestHelper +{ + /// + /// Executes the specified against a fresh HTTP context and reads the response body. + /// + /// The result to execute. + /// Optional HTTP context to execute the result against; a fresh context is created when not provided. + /// The response body produced by the result. + public static async Task GetResponseBodyAsync(IResult result, HttpContext? httpContext = null) + { + DefaultHttpContext context = httpContext as DefaultHttpContext ?? TestHttpContextFactory.Create(); + await result.ExecuteAsync(context); + context.Response.Body.Position = 0; + return await new StreamReader(context.Response.Body).ReadToEndAsync(); + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/TestHttpContextFactory.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/TestHttpContextFactory.cs new file mode 100644 index 00000000..5727e891 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/TestHttpContextFactory.cs @@ -0,0 +1,125 @@ +#region ========================================================================= USING ===================================================================================== +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http.Features; +using Microsoft.AspNetCore.Http.Json; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Security.Claims; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.TestHelpers; + +/// +/// Factory for creating and configuring instances for unit testing Web endpoints. +/// +[ExcludeFromCodeCoverage] +public static class TestHttpContextFactory +{ + /// + /// Creates a with a writable response body, optional culture route value, session and user. + /// + /// The value of the culture route value. + /// The user associated with the context, for anonymous requests. + /// The session associated with the context, when no session is available. + /// A configured instance. + public static DefaultHttpContext Create(string? culture = "en-US", ClaimsPrincipal? user = null, ISession? session = null) + { + DefaultHttpContext httpContext = new(); + // provide a writable response body, so that executed IResult instances can be inspected by the tests + httpContext.Features.Set(new StreamResponseBodyFeature(new MemoryStream())); + // provide the minimal services needed by the result execution machinery (logging, options, JSON options) + httpContext.RequestServices = CreateServiceProvider(); + httpContext.Request.RouteValues["culture"] = culture; + if (user is not null) + httpContext.User = user; + if (session is not null) + httpContext.Features.Set(new TestSessionFeature { Session = session }); + return httpContext; + } + + /// + /// Creates a service provider that provides the minimal services needed by the result execution machinery. + /// + /// A configured instance. + public static IServiceProvider CreateServiceProvider() + { + ServiceCollection services = new(); + services.AddLogging(); + services.AddOptions(); + services.Configure(jsonOptions => jsonOptions.SerializerOptions.MaxDepth = 256); + return services.BuildServiceProvider(); + } + + /// + /// Attaches a session to the provided HTTP context. + /// + /// The HTTP context to configure. + /// The session to attach. + public static void ConfigureSession(HttpContext httpContext, ISession session) + { + httpContext.Features.Set(new TestSessionFeature { Session = session }); + } + + /// + /// Attaches a user to the provided HTTP context. + /// + /// The HTTP context to configure. + /// The user to attach. + public static void ConfigureUser(HttpContext httpContext, ClaimsPrincipal user) + { + httpContext.User = user; + } + + /// + /// Sets the value of the culture route value of the provided HTTP context. + /// + /// The HTTP context to configure. + /// The culture to set. + public static void ConfigureCulture(HttpContext httpContext, string? culture) + { + httpContext.Request.RouteValues["culture"] = culture; + } + + /// + /// Creates a mock that supports the GetString and SetString extension methods. + /// + /// A mock instance. + public static ISession CreateSession() + { + ISession session = Substitute.For(); +#pragma warning disable CS8601 // possible null reference assignment in the NSubstitute out-argument stub + session.TryGetValue(Arg.Any(), out Arg.Any()).Returns(callInfo => + { + callInfo[1] = null; + return false; + }); +#pragma warning restore CS8601 + return session; + } + + /// + /// Creates an authenticated with the specified username. + /// + /// The username of the authenticated user. + /// An authenticated instance. + public static ClaimsPrincipal CreateAuthenticatedUser(string username = "testuser") + { + return new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.Name, username)], "TestAuthentication")); + } + + /// + /// Minimal implementation used to attach a session to test HTTP contexts. + /// + [ExcludeFromCodeCoverage] + private sealed class TestSessionFeature : ISessionFeature + { + /// + /// Gets or sets the session associated with the feature. + /// + public ISession Session { get; set; } = null!; + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/WebTestHelpers.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/WebTestHelpers.cs new file mode 100644 index 00000000..ba8de2a2 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Common/TestHelpers/WebTestHelpers.cs @@ -0,0 +1,114 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Microsoft.AspNetCore.Mvc.Testing; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Text.Json; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Common.TestHelpers; + +/// +/// Represents an HTTP client that has been authenticated through the real login flow of the Web application. +/// +/// The authenticated HTTP client. +/// The antiforgery token captured before the login, valid for subsequent mutating requests. +[ExcludeFromCodeCoverage] +public record AuthenticatedWebClient(HttpClient Client, string AntiforgeryToken); + +/// +/// Helper methods for exercising the authentication and antiforgery flows of the Web application in integration and security tests. +/// +[ExcludeFromCodeCoverage] +public static partial class WebTestHelpers +{ + private const string LOGIN_PAGE_PATH = "/en-us/auth/login"; + private const string LOGIN_ENDPOINT_PATH = "/en-us/auth/api-login"; + + [GeneratedRegex("name=\"__RequestVerificationToken\"[^>]*value=\"([^\"]*)\"")] + private static partial Regex AntiforgeryTokenRegex(); + + /// + /// Creates an anonymous HTTP client that does not follow redirects. + /// + /// The Web application factory. + /// An anonymous HTTP client. + public static HttpClient CreateAnonymousClient(WebApplicationFactory factory) + { + return factory.CreateClient(new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }); + } + + /// + /// Creates an HTTP client that has been authenticated through the real login flow of the application. + /// + /// The Web application factory. + /// The username to authenticate with. + /// The password to authenticate with. + /// An HTTP client authenticated with the application's authentication cookie, together with an antiforgery token. + public static async Task CreateAuthenticatedClientAsync(WebApplicationFactory factory, string? username = "testuser", string? password = "TestPass123!") + { + // the application marks its cookies as secure, so the test client must communicate over HTTPS for the cookies to be sent back + HttpClient client = factory.CreateClient(new WebApplicationFactoryClientOptions + { + BaseAddress = new Uri("https://localhost"), + AllowAutoRedirect = false + }); + string antiforgeryToken = await GetAntiforgeryTokenAsync(client); + await LoginAsync(client, username!, password!, antiforgeryToken); + return new AuthenticatedWebClient(client, antiforgeryToken); + } + + /// + /// Performs the login flow of the application against the provided client. + /// + /// The HTTP client to log in through. + /// The username to authenticate with. + /// The password to authenticate with. + /// The antiforgery token to send with the login request. + public static async Task LoginAsync(HttpClient client, string username, string password, string antiforgeryToken) + { + HttpRequestMessage loginRequest = new(HttpMethod.Post, LOGIN_ENDPOINT_PATH) + { + Content = JsonContent.Create(new LoginRequest(Username: username, Password: password)) + }; + // the antiforgery middleware matches the content type exactly, so the charset suffix must be omitted + loginRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + loginRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + loginRequest.Headers.Add("RequestVerificationToken", antiforgeryToken); + HttpResponseMessage response = await client.SendAsync(loginRequest); + response.EnsureSuccessStatusCode(); + } + + /// + /// Retrieves the antiforgery token and cookie by requesting the login page. + /// + /// The HTTP client to retrieve the token through. + /// The antiforgery token value. + public static async Task GetAntiforgeryTokenAsync(HttpClient client) + { + HttpResponseMessage loginPageResponse = await client.GetAsync(LOGIN_PAGE_PATH); + loginPageResponse.EnsureSuccessStatusCode(); + string loginPageHtml = await loginPageResponse.Content.ReadAsStringAsync(); + Match match = AntiforgeryTokenRegex().Match(loginPageHtml); + if (!match.Success) + throw new InvalidOperationException("Could not find the antiforgery token on the login page."); + return System.Net.WebUtility.HtmlDecode(match.Groups[1].Value); + } + + /// + /// Deserializes a JSON response body into a . + /// + /// The HTTP response whose body is deserialized. + /// The parsed . + public static async Task ReadJsonAsync(HttpResponseMessage response) + { + string content = await response.Content.ReadAsStringAsync(); + return JsonDocument.Parse(content); + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Core/Endpoints/Common/BaseEndpointFixture.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Core/Endpoints/Common/BaseEndpointFixture.cs new file mode 100644 index 00000000..134d8c23 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Core/Endpoints/Common/BaseEndpointFixture.cs @@ -0,0 +1,73 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Core.Endpoints.Common; +using Microsoft.AspNetCore.Http; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.Fixtures.Core.Endpoints.Common; + +/// +/// Fixture class for the class. +/// +[ExcludeFromCodeCoverage] +[DontRegister] +public class BaseEndpointFixture : BaseEndpoint +{ + /// + /// Exposes the Culture property of the class. + /// + public string TestCulture => Culture; + + /// + /// Renders a Razor view through the helper. + /// + /// The name or path of the view to render. + /// The model to pass to the view. + /// Optional additional view data entries made available to the view via ViewData. + /// An that renders the view. + public IResult TestView(string viewName, object? model = null, IReadOnlyDictionary? viewData = null) + { + return View(viewName, model, viewData); + } + + /// + /// Creates a JSON response indicating a successful operation through the helper. + /// + /// The payload of the successful response. + /// An containing the success JSON payload. + public IResult TestJsonSuccess(object? data) + { + return JsonSuccess(data); + } + + /// + /// Creates a JSON response indicating a successful operation without a payload through the helper. + /// + /// An containing the success JSON payload. + public IResult TestJsonSuccess() + { + return JsonSuccess(); + } + + /// + /// Configures the endpoint. + /// + public override void Configure() + { + } + + /// + /// Handles the request. + /// + /// The request object. + /// Cancellation token that can be used to stop the execution. + /// An containing the success JSON payload. + public override Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) + { + return Task.FromResult(TestJsonSuccess()); + } +} diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Lumina.Presentation.Web.Fixtures.csproj b/tests/Common/Lumina.Presentation.Web.Fixtures/Lumina.Presentation.Web.Fixtures.csproj new file mode 100644 index 00000000..23889ee3 --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Lumina.Presentation.Web.Fixtures.csproj @@ -0,0 +1,25 @@ + + + + net10.0 + disable + enable + $(SolutionDir)..\bin\web\ + + false + false + false + + + + + + + + + + + + + + diff --git a/tests/Common/Lumina.Presentation.Web.Fixtures/Properties/AssemblyInfo.cs b/tests/Common/Lumina.Presentation.Web.Fixtures/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..ed54683a --- /dev/null +++ b/tests/Common/Lumina.Presentation.Web.Fixtures/Properties/AssemblyInfo.cs @@ -0,0 +1,22 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Lumina.Presentation.Web.Fixtures")] +[assembly: AssemblyProduct("Lumina.Presentation.Web.Fixtures")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("B7C8D9E0-0001-4C5D-8E1F-222222222222")] + +[assembly: InternalsVisibleTo("Lumina.Presentation.Web.UnitTests")] +[assembly: InternalsVisibleTo("Lumina.Presentation.Web.IntegrationTests")] +[assembly: InternalsVisibleTo("Lumina.Presentation.Web.SecurityTests")] +[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Documentation/OpenApiEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Documentation/OpenApiEndpointTests.cs new file mode 100644 index 00000000..e2dea7f3 --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Documentation/OpenApiEndpointTests.cs @@ -0,0 +1,52 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Common.Documentation; + +/// +/// Contains integration tests for the OpenAPI and Scalar documentation endpoints of the Web application. +/// +[ExcludeFromCodeCoverage] +public class OpenApiEndpointTests : IClassFixture +{ + private readonly HttpClient _client; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public OpenApiEndpointTests(LuminaWebFactory apiFactory) + { + _client = apiFactory.CreateClient(); + } + + [Fact] + public async Task OpenApi_WhenRequested_ShouldServeDocument() + { + // Act + HttpResponseMessage response = await _client.GetAsync("/openapi/v1.json"); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + string content = await response.Content.ReadAsStringAsync(); + Assert.Contains("openapi", content); + } + + [Fact] + public async Task Scalar_WhenRequested_ShouldServeReferencePage() + { + // Act + HttpResponseMessage response = await _client.GetAsync("/scalar/v1"); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.Equal("text/html", response.Content.Headers.ContentType!.MediaType); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Setup/LuminaWebFactory.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Setup/LuminaWebFactory.cs new file mode 100644 index 00000000..0ade61d2 --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Common/Setup/LuminaWebFactory.cs @@ -0,0 +1,63 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Fixtures.Common.Api; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc.Testing; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Common.Setup; + +/// +/// Factory for creating the Web application for integration tests, with the remote API client replaced by a configurable stub. +/// +[ExcludeFromCodeCoverage] +public class LuminaWebFactory : WebApplicationFactory, IDisposable +{ + private const string TEST_ENCRYPTION_KEY = "FLYO0QRo6u2VzoFOgNkkEwYNGtqhJ3QGZd7iAHNEJeM="; + + /// + /// Gets the stub used in place of the remote API client. + /// + public StubApiHttpClient ApiClientStub { get; } = new(); + + /// + /// Initializes a new instance of the class. + /// + public LuminaWebFactory() + { + } + + /// + /// Configures the web host for the integration tests. + /// + /// The web host builder to configure. + protected override void ConfigureWebHost(IWebHostBuilder builder) + { + builder.ConfigureAppConfiguration((context, config) => + { + // provide the application configuration values that the Web app validates on startup + config.AddInMemoryCollection(initialData: new Dictionary + { + ["EncryptionSettings:SecretKey"] = TEST_ENCRYPTION_KEY, + ["ServerConfiguration:ApiVersion"] = "1", + ["ServerConfiguration:BaseAddress"] = "http://localhost", + ["ServerConfiguration:Port"] = "5214" + }); + }); + builder.ConfigureServices(services => + { + // remove the typed HTTP client registration, so that the stub can take its place + ServiceDescriptor[] apiClientDescriptors = services.Where(serviceDescriptor => serviceDescriptor.ServiceType == typeof(IApiHttpClient)).ToArray(); + foreach (ServiceDescriptor descriptor in apiClientDescriptors) + services.Remove(descriptor); + services.AddSingleton(ApiClientStub); + }); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs new file mode 100644 index 00000000..6ed6f97b --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs @@ -0,0 +1,70 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Responses.Authorization; +using Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.GetRoles; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.Admin.Authorization.Roles.GetRoles; + +/// +/// Contains integration tests for the /{culture}/admin/api-get-roles route served by the class. +/// +[ExcludeFromCodeCoverage] +public class GetRolesEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public GetRolesEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task GetRoles_WhenCalledByAdminUser_ShouldReturnRolesJson() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.AuthorizationResponse = new GetAuthorizationResponse(Guid.NewGuid(), "Admin", []); + RoleDto[] expectedRoles = [new RoleDto(Guid.NewGuid(), "Admin"), new RoleDto(Guid.NewGuid(), "User")]; + _apiFactory.ApiClientStub.RegisterGetResponse("auth/roles", expectedRoles); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/admin/api-get-roles"); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + response.EnsureSuccessStatusCode(); + using JsonDocument json = JsonDocument.Parse(content); + Assert.True(json.RootElement.GetProperty("success").GetBoolean()); + Assert.Equal(2, json.RootElement.GetProperty("data").GetArrayLength()); + } + + [Fact] + public async Task GetRoles_WhenCalledByNonAdminUser_ShouldRedirectToAccessDenied() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.AuthorizationResponse = new GetAuthorizationResponse(Guid.NewGuid(), "User", []); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/admin/api-get-roles"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Contains("access-denied", response.Headers.Location!.ToString()); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Home/HomeIndexEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Home/HomeIndexEndpointTests.cs new file mode 100644 index 00000000..25f1c76d --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Home/HomeIndexEndpointTests.cs @@ -0,0 +1,91 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Core.Endpoints.Home; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.Home; + +/// +/// Contains integration tests for the /{culture} and / routes served by the class. +/// +[ExcludeFromCodeCoverage] +public class HomeIndexEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public HomeIndexEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task Home_WhenCalledWithoutCulture_ShouldRedirectToDefaultCulture() + { + // Arrange + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + + // Act + HttpResponseMessage response = await client.GetAsync("/"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("/en-us/", response.Headers.Location!.ToString()); + } + + [Fact] + public async Task Home_WhenCalledWithoutAuthentication_ShouldRedirectToLogin() + { + // Arrange + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + + // Act + HttpResponseMessage response = await client.GetAsync("/en-us"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("http://localhost/en-us/auth/login", response.Headers.Location!.ToString()); + } + + [Fact] + public async Task Home_WhenCalledByAuthenticatedUser_ShouldReturnHomePage() + { + // Arrange + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us"); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.Equal("text/html", response.Content.Headers.ContentType!.MediaType); + string content = await response.Content.ReadAsStringAsync(); + Assert.Contains("html", content); + } + + [Theory] + [InlineData("/de-de")] // German culture + [InlineData("/fr-fr")] // French culture + [InlineData("/ja-jp")] // Japanese culture + public async Task Home_WhenCalledByAuthenticatedUserWithLocalizedCulture_ShouldReturnHomePage(string culturePath) + { + // Arrange + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync(culturePath); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs new file mode 100644 index 00000000..5f793a82 --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs @@ -0,0 +1,90 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetLibraries; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.Library.Management.GetLibraries; + +/// +/// Contains integration tests for the /{culture}/libraries/manage/api-get-libraries route served by the class. +/// +[ExcludeFromCodeCoverage] +public class GetLibrariesEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public GetLibrariesEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task GetLibraries_WhenCalledByAuthenticatedUser_ShouldReturnLibrariesJson() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + LibraryDto[] expectedLibraries = + [ + new LibraryDto { Id = Guid.NewGuid(), Title = "Books", LibraryType = "Book" }, + new LibraryDto { Id = Guid.NewGuid(), Title = "Movies", LibraryType = "Video" } + ]; + _apiFactory.ApiClientStub.RegisterGetResponse("libraries", expectedLibraries); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/libraries/manage/api-get-libraries"); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + using JsonDocument json = JsonDocument.Parse(content); + Assert.True(json.RootElement.GetProperty("success").GetBoolean()); + JsonElement data = json.RootElement.GetProperty("data"); + Assert.Equal(2, data.GetArrayLength()); + Assert.Equal("Books", data[0].GetProperty("title").GetString()); + } + + [Fact] + public async Task GetLibraries_WhenCalledWithoutAuthentication_ShouldRedirectToLogin() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + + // Act + HttpResponseMessage response = await client.GetAsync("/en-us/libraries/manage/api-get-libraries"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("http://localhost/en-us/auth/login", response.Headers.Location!.ToString()); + } + + [Fact] + public async Task GetLibraries_WhenCalled_ShouldRequestLibrariesFromApi() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.RegisterGetResponse("libraries", Array.Empty()); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/libraries/manage/api-get-libraries"); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Contains("libraries", _apiFactory.ApiClientStub.GetEndpointsCalled); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs new file mode 100644 index 00000000..ceea2a3c --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs @@ -0,0 +1,84 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.SaveLibrary; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.Library.Management.SaveLibrary; + +/// +/// Contains integration tests for the /{culture}/libraries/manage/api-item route served by the class. +/// +[ExcludeFromCodeCoverage] +public class SaveLibraryEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public SaveLibraryEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task SaveLibrary_WhenCalledByAuthenticatedUserWithAntiforgeryToken_ShouldSaveLibraryAndReturnSuccess() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + LibraryDto request = new() { Title = "New Books Library", LibraryType = "Book" }; + LibraryDto expectedResponse = new() { Id = Guid.NewGuid(), Title = request.Title, LibraryType = request.LibraryType }; + _apiFactory.ApiClientStub.RegisterPostResponse("libraries", expectedResponse); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + HttpRequestMessage saveRequest = new(HttpMethod.Post, "/en-us/libraries/manage/api-item") + { + Content = JsonContent.Create(request) + }; + saveRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + saveRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + saveRequest.Headers.Add("RequestVerificationToken", webClient.AntiforgeryToken); + + // Act + HttpResponseMessage response = await webClient.Client.SendAsync(saveRequest); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + using JsonDocument json = JsonDocument.Parse(content); + Assert.True(json.RootElement.GetProperty("success").GetBoolean()); + Assert.Contains(_apiFactory.ApiClientStub.PostRequests, postRequest => postRequest.Endpoint == "libraries"); + } + + [Fact] + public async Task SaveLibrary_WhenCalledWithoutAntiforgeryToken_ShouldReturnBadRequest() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + HttpRequestMessage saveRequest = new(HttpMethod.Post, "/en-us/libraries/manage/api-item") + { + Content = JsonContent.Create(new LibraryDto { Title = "New Books Library", LibraryType = "Book" }) + }; + saveRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + saveRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + + // Act + HttpResponseMessage response = await webClient.Client.SendAsync(saveRequest); + + // Assert + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + Assert.DoesNotContain(_apiFactory.ApiClientStub.PostRequests, postRequest => postRequest.Endpoint == "libraries"); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs new file mode 100644 index 00000000..d742300b --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs @@ -0,0 +1,61 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Core.Endpoints.Tools.Language.SetLanguage; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.Tools.Language.SetLanguage; + +/// +/// Contains integration tests for the /{culture}/tools/language/set-language route served by the class. +/// +[ExcludeFromCodeCoverage] +public class SetLanguageEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public SetLanguageEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task SetLanguage_WhenCalledByAuthenticatedUser_ShouldSetCultureCookieAndRedirectWithNewCulture() + { + // Arrange + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + string returnUrl = Uri.EscapeDataString("/en-us/tools/settings"); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync($"/en-us/tools/language/set-language?newCulture=de-DE&returnUrl={returnUrl}"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("/de-de/tools/settings", response.Headers.Location!.ToString()); + Assert.Contains("de-DE", response.Headers.GetValues("Set-Cookie").First()); + } + + [Fact] + public async Task SetLanguage_WhenCalledWithoutAuthentication_ShouldRedirectToLogin() + { + // Arrange + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + + // Act + HttpResponseMessage response = await client.GetAsync("/en-us/tools/language/set-language?newCulture=de-DE"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("http://localhost/en-us/auth/login", response.Headers.Location!.ToString()); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs new file mode 100644 index 00000000..2195b24c --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs @@ -0,0 +1,138 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Exceptions; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// Contains integration tests for the /{culture}/auth/api-login route served by the class. +/// +[ExcludeFromCodeCoverage] +public class LoginEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public LoginEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task Login_WithValidCredentials_ShouldSignInAndReturnRedirectUrl() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + HttpRequestMessage loginRequest = CreateLoginRequest(new LoginRequest(Username: "testuser", Password: "TestPass123!"), antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(loginRequest); + using JsonDocument json = await WebTestHelpers.ReadJsonAsync(response); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.True(json.RootElement.GetProperty("success").GetBoolean()); + Assert.Equal("/en-us/", json.RootElement.GetProperty("data").GetString()); + string allSetCookies = string.Join("; ", response.Headers.GetValues("Set-Cookie")); + Assert.Contains(".Lumina.Auth", allSetCookies); + Assert.Contains("Token=", allSetCookies); + } + + [Fact] + public async Task Login_WhenTotpRequired_ShouldReturnTotpRequiredSignal() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + ProblemDetailsDto problemDetails = new() + { + Title = "General.Validation", + Detail = "OneOrMoreValidationErrorsOccurred", + Extensions = new Dictionary + { + ["errors"] = CreateErrorsElement(["InvalidTotpCode"]) + } + }; + _apiFactory.ApiClientStub.RegisterPostException("auth/login", new ApiException(problemDetails, HttpStatusCode.UnprocessableEntity, "auth/login")); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + HttpRequestMessage loginRequest = CreateLoginRequest(new LoginRequest(Username: "testuser", Password: "TestPass123!"), antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(loginRequest); + using JsonDocument json = await WebTestHelpers.ReadJsonAsync(response); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.True(json.RootElement.GetProperty("success").GetBoolean()); + Assert.True(json.RootElement.GetProperty("data").GetProperty("isTotpRequired").GetBoolean()); + } + + [Fact] + public async Task Login_WhenApiReturnsForbidden_ShouldReturnFailureJson() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.RegisterPostException("auth/login", new ApiException(new ProblemDetailsDto { Title = "General.Failure", Detail = "InvalidUsernameOrPassword" }, HttpStatusCode.Forbidden, "auth/login")); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + HttpRequestMessage loginRequest = CreateLoginRequest(new LoginRequest(Username: "testuser", Password: "WrongPass123!"), antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(loginRequest); + using JsonDocument json = await WebTestHelpers.ReadJsonAsync(response); + + // Assert + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.False(json.RootElement.GetProperty("success").GetBoolean()); + Assert.Contains("", json.RootElement.GetProperty("errorMessage").GetString()); + } + + private static HttpRequestMessage CreateLoginRequest(LoginRequest request, string antiforgeryToken) + { + HttpRequestMessage loginRequest = new(HttpMethod.Post, "/en-us/auth/api-login") + { + Content = JsonContent.Create(request) + }; + loginRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + loginRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + loginRequest.Headers.Add("RequestVerificationToken", antiforgeryToken); + return loginRequest; + } + + private static JsonElement CreateErrorsElement(string[] errorCodes) + { + using MemoryStream stream = new(); + using (Utf8JsonWriter writer = new(stream)) + { + writer.WriteStartObject(); + writer.WriteStartArray("General.Validation"); + foreach (string errorCode in errorCodes) + writer.WriteStringValue(errorCode); + writer.WriteEndArray(); + writer.WriteEndObject(); + } + return JsonDocument.Parse(stream.ToArray()).RootElement.Clone(); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs new file mode 100644 index 00000000..67cb7f45 --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs @@ -0,0 +1,79 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; +using Lumina.Presentation.Web.IntegrationTests.Common.Setup; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.IntegrationTests.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// Contains integration tests for the /{culture}/auth/login/{returnUrl?} route served by the class. +/// +[ExcludeFromCodeCoverage] +public class LoginViewEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public LoginViewEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task LoginView_WhenCalled_ShouldRenderLoginPage() + { + // Arrange + HttpClient client = _apiFactory.CreateClient(); + + // Act + HttpResponseMessage response = await client.GetAsync("/en-us/auth/login"); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.Equal("text/html", response.Content.Headers.ContentType!.MediaType); + string content = await response.Content.ReadAsStringAsync(); + Assert.Contains("login-form", content); + } + + [Theory] + [InlineData("/de-de/auth/login")] // German culture + [InlineData("/fr-fr/auth/login")] // French culture + [InlineData("/zh-cn/auth/login")] // Chinese culture + public async Task LoginView_WhenCalledWithLocalizedCulture_ShouldRenderLoginPage(string culturePath) + { + // Arrange + HttpClient client = _apiFactory.CreateClient(); + + // Act + HttpResponseMessage response = await client.GetAsync(culturePath); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + string content = await response.Content.ReadAsStringAsync(); + Assert.Contains("login-form", content); + } + + [Fact] + public async Task LoginView_WhenCalledWithReturnUrl_ShouldPreserveReturnUrlInView() + { + // Arrange + HttpClient client = _apiFactory.CreateClient(); + + // Act + HttpResponseMessage response = await client.GetAsync("/en-us/auth/login/some-return-url"); + + // Assert + response.EnsureSuccessStatusCode(); + string content = await response.Content.ReadAsStringAsync(); + Assert.Contains("some-return-url", content); + } +} diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Lumina.Presentation.Web.IntegrationTests.csproj b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Lumina.Presentation.Web.IntegrationTests.csproj new file mode 100644 index 00000000..2ec3ddb4 --- /dev/null +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Lumina.Presentation.Web.IntegrationTests.csproj @@ -0,0 +1,46 @@ + + + + net10.0 + disable + enable + + false + true + + + + + <_Parameter1>DisableTestParallelization = true + <_Parameter1_IsLiteral>true + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Common/Setup/LuminaWebFactory.cs b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Common/Setup/LuminaWebFactory.cs new file mode 100644 index 00000000..ba24862e --- /dev/null +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Common/Setup/LuminaWebFactory.cs @@ -0,0 +1,63 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Fixtures.Common.Api; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc.Testing; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +#endregion + +namespace Lumina.Presentation.Web.SecurityTests.Common.Setup; + +/// +/// Factory for creating the Web application for security tests, with the remote API client replaced by a configurable stub. +/// +[ExcludeFromCodeCoverage] +public class LuminaWebFactory : WebApplicationFactory, IDisposable +{ + private const string TEST_ENCRYPTION_KEY = "FLYO0QRo6u2VzoFOgNkkEwYNGtqhJ3QGZd7iAHNEJeM="; + + /// + /// Gets the stub used in place of the remote API client. + /// + public StubApiHttpClient ApiClientStub { get; } = new(); + + /// + /// Initializes a new instance of the class. + /// + public LuminaWebFactory() + { + } + + /// + /// Configures the web host for the security tests. + /// + /// The web host builder to configure. + protected override void ConfigureWebHost(IWebHostBuilder builder) + { + builder.ConfigureAppConfiguration((context, config) => + { + // provide the application configuration values that the Web app validates on startup + config.AddInMemoryCollection(initialData: new Dictionary + { + ["EncryptionSettings:SecretKey"] = TEST_ENCRYPTION_KEY, + ["ServerConfiguration:ApiVersion"] = "1", + ["ServerConfiguration:BaseAddress"] = "http://localhost", + ["ServerConfiguration:Port"] = "5214" + }); + }); + builder.ConfigureServices(services => + { + // remove the typed HTTP client registration, so that the stub can take its place + ServiceDescriptor[] apiClientDescriptors = services.Where(serviceDescriptor => serviceDescriptor.ServiceType == typeof(IApiHttpClient)).ToArray(); + foreach (ServiceDescriptor descriptor in apiClientDescriptors) + services.Remove(descriptor); + services.AddSingleton(ApiClientStub); + }); + } +} diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs new file mode 100644 index 00000000..9bcdaa67 --- /dev/null +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs @@ -0,0 +1,87 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Responses.Authorization; +using Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.GetRoles; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.SecurityTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.SecurityTests.Core.Endpoints.Admin.Authorization.Roles.GetRoles; + +/// +/// Contains security tests for the /{culture}/admin/api-get-roles route served by the class. +/// +[ExcludeFromCodeCoverage] +public class GetRolesEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public GetRolesEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task GetRoles_WhenCalledWithoutAuthentication_ShouldNotExposeRoleData() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + RoleDto[] unexpectedRoles = [new RoleDto(Guid.NewGuid(), "Admin")]; + _apiFactory.ApiClientStub.RegisterGetResponse("auth/roles", unexpectedRoles); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + + // Act + HttpResponseMessage response = await client.GetAsync("/en-us/admin/api-get-roles"); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + using JsonDocument json = JsonDocument.Parse(content); + Assert.False(json.RootElement.GetProperty("success").GetBoolean()); + Assert.DoesNotContain("Admin", content); + Assert.DoesNotContain("AdminRole", content); + } + + [Fact] + public async Task GetRoles_WhenCalledByNonAdminUser_ShouldRedirectToAccessDenied() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.AuthorizationResponse = new GetAuthorizationResponse(Guid.NewGuid(), "User", []); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/admin/api-get-roles"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Contains("access-denied", response.Headers.Location!.ToString()); + } + + [Fact] + public async Task GetRoles_WhenCalledByAdminUser_ShouldReturnRolesData() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.AuthorizationResponse = new GetAuthorizationResponse(Guid.NewGuid(), "Admin", []); + RoleDto[] expectedRoles = [new RoleDto(Guid.NewGuid(), "Admin")]; + _apiFactory.ApiClientStub.RegisterGetResponse("auth/roles", expectedRoles); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/admin/api-get-roles"); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + } +} diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs new file mode 100644 index 00000000..ca7a3bf4 --- /dev/null +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs @@ -0,0 +1,82 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.DeleteLibrary; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.SecurityTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Text; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.SecurityTests.Core.Endpoints.Library.Management.DeleteLibrary; + +/// +/// Contains security tests for the /{culture}/libraries/manage/api-item/{{id}} route served by the class. +/// +[ExcludeFromCodeCoverage] +public class DeleteLibraryEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public DeleteLibraryEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task DeleteLibrary_WhenCalledWithoutAntiforgeryToken_ShouldRejectRequest() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + Guid libraryId = Guid.NewGuid(); + HttpRequestMessage deleteRequest = CreateDeleteRequest(libraryId); + + // Act + HttpResponseMessage response = await webClient.Client.SendAsync(deleteRequest); + + // Assert + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + Assert.DoesNotContain(_apiFactory.ApiClientStub.DeleteEndpointsCalled, endpoint => endpoint == $"libraries/{libraryId}"); + } + + [Fact] + public async Task DeleteLibrary_WhenCalledWithoutAuthentication_ShouldNotDeleteLibrary() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + Guid libraryId = Guid.NewGuid(); + HttpRequestMessage deleteRequest = CreateDeleteRequest(libraryId); + deleteRequest.Headers.Add("RequestVerificationToken", antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(deleteRequest); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("http://localhost/en-us/auth/login", response.Headers.Location!.ToString()); + Assert.DoesNotContain(_apiFactory.ApiClientStub.DeleteEndpointsCalled, endpoint => endpoint == $"libraries/{libraryId}"); + } + + private static HttpRequestMessage CreateDeleteRequest(Guid libraryId) + { + HttpRequestMessage deleteRequest = new(HttpMethod.Delete, $"/en-us/libraries/manage/api-item/{libraryId}") + { + // the front-end sends the JSON content type even for DELETE requests, which triggers the antiforgery validation + Content = new StringContent("{}", Encoding.UTF8, "application/json") + }; + // the antiforgery middleware matches the content type exactly, so the charset suffix must be omitted + deleteRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + deleteRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + return deleteRequest; + } +} diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs new file mode 100644 index 00000000..16917b88 --- /dev/null +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs @@ -0,0 +1,99 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.SaveLibrary; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.SecurityTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.SecurityTests.Core.Endpoints.Library.Management.SaveLibrary; + +/// +/// Contains security tests for the /{culture}/libraries/manage/api-item route served by the class. +/// +[ExcludeFromCodeCoverage] +public class SaveLibraryEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public SaveLibraryEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Fact] + public async Task SaveLibrary_WhenCalledWithoutAntiforgeryToken_ShouldRejectRequest() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + HttpRequestMessage saveRequest = CreateSaveRequest(new LibraryDto { Title = "New Books Library", LibraryType = "Book" }); + + // Act + HttpResponseMessage response = await webClient.Client.SendAsync(saveRequest); + + // Assert + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + Assert.DoesNotContain(_apiFactory.ApiClientStub.PostRequests, postRequest => postRequest.Endpoint == "libraries"); + } + + [Fact] + public async Task SaveLibrary_WhenCalledWithInvalidAntiforgeryToken_ShouldRejectRequest() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + HttpRequestMessage saveRequest = CreateSaveRequest(new LibraryDto { Title = "New Books Library", LibraryType = "Book" }); + saveRequest.Headers.Remove("RequestVerificationToken"); + saveRequest.Headers.Add("RequestVerificationToken", "invalid-antiforgery-token"); + + // Act + HttpResponseMessage response = await webClient.Client.SendAsync(saveRequest); + + // Assert + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + Assert.DoesNotContain(_apiFactory.ApiClientStub.PostRequests, postRequest => postRequest.Endpoint == "libraries"); + } + + [Fact] + public async Task SaveLibrary_WhenCalledWithInjectionInLibraryTitle_ShouldRemainSecure() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + LibraryDto request = new() { Title = "'; DROP TABLE Libraries--", LibraryType = "Book" }; + _apiFactory.ApiClientStub.RegisterPostResponse("libraries", new LibraryDto { Id = Guid.NewGuid(), Title = request.Title, LibraryType = request.LibraryType }); + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + HttpRequestMessage saveRequest = CreateSaveRequest(request); + saveRequest.Headers.Add("RequestVerificationToken", webClient.AntiforgeryToken); + + // Act + HttpResponseMessage response = await webClient.Client.SendAsync(saveRequest); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + Assert.DoesNotContain("SQL", content); + Assert.DoesNotContain("Exception", content); + } + + private static HttpRequestMessage CreateSaveRequest(LibraryDto request) + { + HttpRequestMessage saveRequest = new(HttpMethod.Post, "/en-us/libraries/manage/api-item") + { + Content = JsonContent.Create(request) + }; + saveRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + saveRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + return saveRequest; + } +} diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs new file mode 100644 index 00000000..4b186aa1 --- /dev/null +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginEndpointTests.cs @@ -0,0 +1,127 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.Exceptions; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.SecurityTests.Common.Setup; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.SecurityTests.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// Contains security tests for the /{culture}/auth/api-login route served by the class. +/// +[ExcludeFromCodeCoverage] +public class LoginEndpointTests : IClassFixture +{ + private readonly LuminaWebFactory _apiFactory; + + /// + /// Initializes a new instance of the class. + /// + /// Injected Web application factory. + public LoginEndpointTests(LuminaWebFactory apiFactory) + { + _apiFactory = apiFactory; + } + + [Theory] + [InlineData("' OR '1'='1")] // basic SQL injection + [InlineData("admin'--")] // comment injection + [InlineData("' UNION SELECT * FROM Users--")] // union injection + [InlineData("'; DROP TABLE Users--")] // destructive injection + [InlineData("{{7*7}}")] // template injection + public async Task Login_WithInjectionAttemptInUsername_ShouldRemainSecure(string maliciousUsername) + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + _apiFactory.ApiClientStub.RegisterPostException("auth/login", new ApiException(new ProblemDetailsDto { Title = "General.Failure", Detail = "InvalidUsernameOrPassword" }, HttpStatusCode.Forbidden, "auth/login")); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + HttpRequestMessage loginRequest = CreateLoginRequest(new LoginRequest(Username: maliciousUsername, Password: "Abcd123$"), antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(loginRequest); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + using JsonDocument json = JsonDocument.Parse(content); + Assert.False(json.RootElement.GetProperty("success").GetBoolean()); + Assert.DoesNotContain("SQL", content); + Assert.DoesNotContain("Exception", content); + Assert.DoesNotContain("Abcd123$", content); + Assert.DoesNotContain("hash", content, StringComparison.OrdinalIgnoreCase); + Assert.DoesNotContain("salt", content, StringComparison.OrdinalIgnoreCase); + } + + [Fact] + public async Task Login_WithValidCredentials_ShouldNotExposeSensitiveData() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + HttpRequestMessage loginRequest = CreateLoginRequest(new LoginRequest(Username: "testuser", Password: "TestPass123!"), antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(loginRequest); + string content = await response.Content.ReadAsStringAsync(); + + // Assert + response.EnsureSuccessStatusCode(); + Assert.DoesNotContain("TestPass123!", content); + Assert.DoesNotContain("hash", content, StringComparison.OrdinalIgnoreCase); + Assert.DoesNotContain("salt", content, StringComparison.OrdinalIgnoreCase); + // the JWT token returned by the API must not be exposed in plaintext; it is stored encrypted in the Token cookie + Assert.DoesNotContain("test_jwt_token", content); + string allSetCookies = string.Join("; ", response.Headers.GetValues("Set-Cookie")); + Assert.Contains("Token=", allSetCookies); + Assert.DoesNotContain("test_jwt_token", allSetCookies); + } + + [Fact] + public async Task Login_WhenCalled_ShouldSetAuthenticationCookieWithSecurityAttributes() + { + // Arrange + _apiFactory.ApiClientStub.Reset(); + HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); + string antiforgeryToken = await WebTestHelpers.GetAntiforgeryTokenAsync(client); + HttpRequestMessage loginRequest = CreateLoginRequest(new LoginRequest(Username: "testuser", Password: "TestPass123!"), antiforgeryToken); + + // Act + HttpResponseMessage response = await client.SendAsync(loginRequest); + + // Assert + response.EnsureSuccessStatusCode(); + string authCookie = response.Headers.GetValues("Set-Cookie").First(cookie => cookie.StartsWith(".Lumina.Auth", StringComparison.Ordinal)); + Assert.Contains("httponly", authCookie, StringComparison.OrdinalIgnoreCase); + Assert.Contains("secure", authCookie, StringComparison.OrdinalIgnoreCase); + Assert.Contains("samesite=strict", authCookie, StringComparison.OrdinalIgnoreCase); + string tokenCookie = response.Headers.GetValues("Set-Cookie").First(cookie => cookie.StartsWith("Token=", StringComparison.Ordinal) && !cookie.Contains("1970")); + Assert.Contains("httponly", tokenCookie, StringComparison.OrdinalIgnoreCase); + Assert.Contains("secure", tokenCookie, StringComparison.OrdinalIgnoreCase); + Assert.Contains("samesite=strict", tokenCookie, StringComparison.OrdinalIgnoreCase); + } + + private static HttpRequestMessage CreateLoginRequest(LoginRequest request, string antiforgeryToken) + { + HttpRequestMessage loginRequest = new(HttpMethod.Post, "/en-us/auth/api-login") + { + Content = JsonContent.Create(request) + }; + loginRequest.Content!.Headers.ContentType = new MediaTypeHeaderValue("application/json"); + loginRequest.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + loginRequest.Headers.Add("RequestVerificationToken", antiforgeryToken); + return loginRequest; + } +} diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Lumina.Presentation.Web.SecurityTests.csproj b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Lumina.Presentation.Web.SecurityTests.csproj new file mode 100644 index 00000000..7a0745c3 --- /dev/null +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Lumina.Presentation.Web.SecurityTests.csproj @@ -0,0 +1,46 @@ + + + + net10.0 + enable + enable + + false + true + + + + + <_Parameter1>DisableTestParallelization = true + <_Parameter1_IsLiteral>true + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Api/ApiHttpClientTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Api/ApiHttpClientTests.cs new file mode 100644 index 00000000..b56c9832 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Api/ApiHttpClientTests.cs @@ -0,0 +1,177 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Common; +using Lumina.Presentation.Web.Common.DTO.Configuration; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Exceptions; +using Lumina.Presentation.Web.Fixtures.Common.Api; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Options; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Net; +using System.Net.Http; +using System.Security.Claims; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Api; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class ApiHttpClientTests +{ + private const string TEST_ENCRYPTION_KEY = "FLYO0QRo6u2VzoFOgNkkEwYNGtqhJ3QGZd7iAHNEJeM="; + + [Fact] + public async Task GetAsync_WhenApiReturnsSuccess_ShouldDeserializeResponseContent() + { + // Arrange + TestApiHttpMessageHandler messageHandler = new(_ => CreateJsonResponse(HttpStatusCode.OK, """[{"title":"Library One"}]""")); + ApiHttpClient sut = CreateSut(messageHandler); + + // Act + Lumina.Presentation.Web.Common.DTO.Libraries.LibraryDto[] result = await sut.GetAsync("libraries", CancellationToken.None); + + // Assert + Assert.Single(result); + Assert.Equal("Library One", result[0].Title); + Assert.Equal(new Uri("http://localhost:5214/api/v1/libraries"), messageHandler.Requests[0].RequestUri); + } + + [Fact] + public async Task GetAsync_WhenApiReturnsError_ShouldThrowApiExceptionWithProblemDetails() + { + // Arrange + string problemDetailsJson = """ + { + "type": "https://tools.ietf.org/html/rfc4918#section-11.2", + "title": "General.Validation", + "status": 422, + "detail": "OneOrMoreValidationErrorsOccurred" + } + """; + TestApiHttpMessageHandler messageHandler = new(_ => CreateJsonResponse(HttpStatusCode.UnprocessableEntity, problemDetailsJson)); + ApiHttpClient sut = CreateSut(messageHandler); + + // Act + ApiException exception = await Assert.ThrowsAsync(() => sut.GetAsync("libraries", CancellationToken.None)); + + // Assert + Assert.Equal(HttpStatusCode.UnprocessableEntity, exception.HttpStatusCode); + Assert.NotNull(exception.ProblemDetails); + Assert.Equal("General.Validation", exception.ProblemDetails!.Title); + Assert.Equal(422, exception.ProblemDetails.Status); + Assert.Equal("OneOrMoreValidationErrorsOccurred", exception.ProblemDetails.Detail); + } + + [Fact] + public async Task GetAsync_WhenApiReturnsEmptyContent_ShouldReturnDefault() + { + // Arrange + TestApiHttpMessageHandler messageHandler = new(_ => new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent(string.Empty) }); + ApiHttpClient sut = CreateSut(messageHandler); + + // Act + object? result = await sut.GetAsync("libraries", CancellationToken.None); + + // Assert + Assert.Null(result); + } + + [Fact] + public async Task GetAsync_WhenUserHasTokenClaim_ShouldSendAuthorizationHeader() + { + // Arrange + TestApiHttpMessageHandler messageHandler = new(_ => CreateJsonResponse(HttpStatusCode.OK, "{}")); + ApiHttpClient sut = CreateSut(messageHandler, token: "test-jwt-token"); + + // Act + await sut.GetAsync("libraries", CancellationToken.None); + + // Assert + Assert.Equal("Bearer", messageHandler.Requests[0].Headers.Authorization!.Scheme); + Assert.Equal("test-jwt-token", messageHandler.Requests[0].Headers.Authorization!.Parameter); + } + + [Fact] + public async Task PostAsync_WhenCalled_ShouldSerializePayloadAndDeserializeResponse() + { + // Arrange + TestApiHttpMessageHandler messageHandler = new(_ => CreateJsonResponse(HttpStatusCode.OK, """{"success":true}""")); + ApiHttpClient sut = CreateSut(messageHandler); + + // Act + SuccessResponse result = await sut.PostAsync("auth/login", new { username = "testuser" }, CancellationToken.None); + + // Assert + Assert.True(result.Success); + Assert.Equal(HttpMethod.Post, messageHandler.Requests[0].Method); + Assert.Equal("http://localhost:5214/api/v1/auth/login", messageHandler.Requests[0].RequestUri!.ToString()); + Assert.Contains("testuser", messageHandler.RequestBodies[0]); + } + + [Fact] + public async Task DeleteAsync_WhenApiReturnsError_ShouldThrowApiException() + { + // Arrange + TestApiHttpMessageHandler messageHandler = new(_ => CreateJsonResponse(HttpStatusCode.InternalServerError, """{"title":"General.Failure","status":500}""")); + ApiHttpClient sut = CreateSut(messageHandler); + + // Act + ApiException exception = await Assert.ThrowsAsync(() => sut.DeleteAsync("libraries/1", CancellationToken.None)); + + // Assert + Assert.Equal(HttpStatusCode.InternalServerError, exception.HttpStatusCode); + Assert.Equal("/api/v1/libraries/1", exception.RequestPath); + } + + [Fact] + public async Task GetBlobAsync_WhenApiReturnsSuccess_ShouldReturnBlobData() + { + // Arrange + byte[] imageBytes = Encoding.UTF8.GetBytes("fake-image-bytes"); + TestApiHttpMessageHandler messageHandler = new(_ => + { + HttpResponseMessage response = new(HttpStatusCode.OK) { Content = new ByteArrayContent(imageBytes) }; + response.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("image/png"); + return response; + }); + ApiHttpClient sut = CreateSut(messageHandler); + + // Act + BlobDataDto blob = await sut.GetBlobAsync("libraries/1/cover", CancellationToken.None); + + // Assert + Assert.Equal(imageBytes, blob.Data); + Assert.Equal("image/png", blob.ContentType); + } + + private static ApiHttpClient CreateSut(TestApiHttpMessageHandler messageHandler, string? token = null) + { + HttpClient httpClient = new(messageHandler); + IHttpContextAccessor httpContextAccessor = Substitute.For(); + if (token is not null) + { + DefaultHttpContext httpContext = new(); + httpContext.User = new ClaimsPrincipal(new ClaimsIdentity([new Claim("Token", token)], "TestAuthentication")); + httpContextAccessor.HttpContext.Returns(httpContext); + } + IOptionsSnapshot serverConfigurationOptions = Substitute.For>(); + serverConfigurationOptions.Value.Returns(new ServerConfigurationDto { ApiVersion = '1', BaseAddress = "http://localhost", Port = 5214 }); + return new ApiHttpClient(httpClient, httpContextAccessor, serverConfigurationOptions); + } + + private static HttpResponseMessage CreateJsonResponse(HttpStatusCode statusCode, string json) + { + return new HttpResponseMessage(statusCode) + { + Content = new StringContent(json, Encoding.UTF8, "application/json") + }; + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationPoliciesTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationPoliciesTests.cs new file mode 100644 index 00000000..9421e58d --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationPoliciesTests.cs @@ -0,0 +1,22 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Authorization; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Authorization; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class AuthorizationPoliciesTests +{ + [Fact] + public void PolicyNames_WhenRead_ShouldMatchExpectedPolicyNames() + { + // Act & Assert + Assert.Equal("RequireAdminRole", AuthorizationPolicies.REQUIRE_ADMIN_ROLE); + Assert.Equal("RequireCreateLibrariesPermission", AuthorizationPolicies.REQUIRE_CREATE_LIBRARIES_PERMISSION); + Assert.Equal("RequireInitialization", AuthorizationPolicies.REQUIRE_INITIALIZATION); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationServiceTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationServiceTests.cs new file mode 100644 index 00000000..de8002c4 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Authorization/AuthorizationServiceTests.cs @@ -0,0 +1,112 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Authorization; +using Lumina.Presentation.Web.Common.Enums.Authorization; +using Lumina.Presentation.Web.Common.Responses.Authorization; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Security.Claims; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Authorization; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class AuthorizationServiceTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly AuthorizationService _sut; + private readonly Guid _userId; + + /// + /// Initializes a new instance of the class. + /// + public AuthorizationServiceTests() + { + _userId = Guid.NewGuid(); + _mockApiHttpClient = Substitute.For(); + IHttpContextAccessor httpContextAccessor = Substitute.For(); + DefaultHttpContext httpContext = new(); + httpContext.User = new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.NameIdentifier, _userId.ToString())], "TestAuthentication")); + httpContextAccessor.HttpContext.Returns(httpContext); + _sut = new AuthorizationService(_mockApiHttpClient, httpContextAccessor); + } + + [Fact] + public async Task HasPermissionAsync_WhenUserHasPermission_ShouldReturnTrue() + { + // Arrange + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new GetAuthorizationResponse(_userId, "Admin", [AuthorizationPermission.CanCreateLibraries])); + + // Act + bool result = await _sut.HasPermissionAsync(AuthorizationPermission.CanCreateLibraries, CancellationToken.None); + + // Assert + Assert.True(result); + } + + [Fact] + public async Task HasPermissionAsync_WhenUserDoesNotHavePermission_ShouldReturnFalse() + { + // Arrange + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new GetAuthorizationResponse(_userId, "Admin", [AuthorizationPermission.CanViewUsers])); + + // Act + bool result = await _sut.HasPermissionAsync(AuthorizationPermission.CanCreateLibraries, CancellationToken.None); + + // Assert + Assert.False(result); + } + + [Fact] + public async Task IsInRoleAsync_WhenRoleMatches_ShouldReturnTrue() + { + // Arrange + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new GetAuthorizationResponse(_userId, "Admin", [])); + + // Act + bool result = await _sut.IsInRoleAsync("Admin", CancellationToken.None); + + // Assert + Assert.True(result); + } + + [Fact] + public async Task IsInRoleAsync_WhenRoleDoesNotMatch_ShouldReturnFalse() + { + // Arrange + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new GetAuthorizationResponse(_userId, "User", [])); + + // Act + bool result = await _sut.IsInRoleAsync("Admin", CancellationToken.None); + + // Assert + Assert.False(result); + } + + [Fact] + public async Task HasPermissionAsync_WhenCalled_ShouldRequestAuthorizationForCurrentUser() + { + // Arrange + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new GetAuthorizationResponse(_userId, "Admin", [])); + + // Act + await _sut.HasPermissionAsync(AuthorizationPermission.CanViewUsers, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync( + Arg.Is(endpoint => endpoint.StartsWith($"auth/get-authorization?userId={_userId}", StringComparison.OrdinalIgnoreCase)), + Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Localization/CoreHtmlLocalizerFactoryTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Localization/CoreHtmlLocalizerFactoryTests.cs new file mode 100644 index 00000000..017b060e --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Localization/CoreHtmlLocalizerFactoryTests.cs @@ -0,0 +1,74 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Localization; +using Microsoft.AspNetCore.Mvc.Localization; +using Microsoft.Extensions.Localization; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Localization; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class CoreHtmlLocalizerFactoryTests +{ + private readonly IStringLocalizerFactory _mockStringLocalizerFactory; + private readonly CoreHtmlLocalizerFactory _sut; + + /// + /// Initializes a new instance of the class. + /// + public CoreHtmlLocalizerFactoryTests() + { + _mockStringLocalizerFactory = Substitute.For(); + _mockStringLocalizerFactory.Create(Arg.Any(), Arg.Any()).Returns(Substitute.For()); + _sut = new CoreHtmlLocalizerFactory(_mockStringLocalizerFactory); + } + + [Fact] + public void Create_WhenBaseNameStartsWithLocationCorePrefix_ShouldStripCoreSegment() + { + // Act + IHtmlLocalizer localizer = _sut.Create("Lumina.Presentation.Web.Core.Views.Auth.Login", "Lumina.Presentation.Web"); + + // Assert + Assert.NotNull(localizer); + _mockStringLocalizerFactory.Received(1).Create("Lumina.Presentation.Web.Views.Auth.Login", "Lumina.Presentation.Web"); + } + + [Fact] + public void Create_WhenBaseNameDoesNotStartWithLocationCorePrefix_ShouldKeepBaseNameUnchanged() + { + // Act + IHtmlLocalizer localizer = _sut.Create("Lumina.Presentation.Web.Views.Shared.Layout", "Lumina.Presentation.Web"); + + // Assert + Assert.NotNull(localizer); + _mockStringLocalizerFactory.Received(1).Create("Lumina.Presentation.Web.Views.Shared.Layout", "Lumina.Presentation.Web"); + } + + [Fact] + public void Create_WhenResourceSourceTypeProvided_ShouldCreateLocalizerForType() + { + // Arrange + _mockStringLocalizerFactory.Create(Arg.Any()).Returns(Substitute.For()); + + // Act + IHtmlLocalizer localizer = _sut.Create(typeof(TestLocalizationResource)); + + // Assert + Assert.NotNull(localizer); + _mockStringLocalizerFactory.Received(1).Create(typeof(TestLocalizationResource)); + } + + /// + /// Marker type used for the resource source based localizer creation test. + /// + [ExcludeFromCodeCoverage] + private sealed class TestLocalizationResource + { + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Security/CryptographyServiceTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Security/CryptographyServiceTests.cs new file mode 100644 index 00000000..6929a5f3 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Security/CryptographyServiceTests.cs @@ -0,0 +1,88 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.DTO.Configuration; +using Lumina.Presentation.Web.Common.Security; +using Microsoft.Extensions.Options; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Security; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class CryptographyServiceTests +{ + private const string TEST_ENCRYPTION_KEY = "FLYO0QRo6u2VzoFOgNkkEwYNGtqhJ3QGZd7iAHNEJeM="; + private readonly CryptographyService _sut; + + /// + /// Initializes a new instance of the class. + /// + public CryptographyServiceTests() + { + EncryptionSettingsDto settings = new() { SecretKey = TEST_ENCRYPTION_KEY }; + _sut = new CryptographyService(Options.Create(settings)); + } + + [Fact] + public void Encrypt_WhenCalled_ShouldReturnCiphertextThatDecryptsToPlaintext() + { + // Arrange + const string plaintext = "sensitive-data"; + + // Act + string ciphertext = _sut.Encrypt(plaintext); + + // Assert + Assert.NotEqual(plaintext, ciphertext); + Assert.Equal(plaintext, _sut.Decrypt(ciphertext)); + } + + [Fact] + public void Encrypt_WhenCalledTwice_ShouldReturnDifferentCiphertexts() + { + // Arrange + const string plaintext = "sensitive-data"; + + // Act + string firstCiphertext = _sut.Encrypt(plaintext); + string secondCiphertext = _sut.Encrypt(plaintext); + + // Assert + Assert.NotEqual(firstCiphertext, secondCiphertext); + } + + [Theory] + [InlineData(null)] + [InlineData("")] + public void Encrypt_WhenPlaintextIsNullOrEmpty_ShouldThrowArgumentException(string? plaintext) + { + // Act + ArgumentException exception = Assert.Throws(() => _sut.Encrypt(plaintext!)); + + // Assert + Assert.Equal("plaintext", exception.ParamName); + } + + [Fact] + public void Decrypt_WhenCiphertextIsNotValidBase64_ShouldThrowFormatException() + { + // Act + FormatException exception = Assert.Throws(() => _sut.Decrypt("not-valid-base64!!!")); + + // Assert + Assert.Contains("Base-64", exception.Message); + } + + [Fact] + public void Decrypt_WhenCiphertextIsTooShort_ShouldThrowArgumentException() + { + // Act + ArgumentException exception = Assert.Throws(() => _sut.Decrypt(Convert.ToBase64String([1, 2, 3]))); + + // Assert + Assert.Equal("Invalid ciphertext", exception.Message); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/ScriptIdentifierHelperTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/ScriptIdentifierHelperTests.cs new file mode 100644 index 00000000..7c2cf6a6 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/ScriptIdentifierHelperTests.cs @@ -0,0 +1,49 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Services; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Services; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class ScriptIdentifierHelperTests +{ + [Fact] + public void GenerateScriptId_WhenCalled_ShouldReturnScriptPrefixedIdentifier() + { + // Act + string scriptId = ScriptIdentifierHelper.GenerateScriptId(); + + // Assert + Assert.StartsWith("script_", scriptId); + Assert.True(Guid.TryParse(scriptId.AsSpan("script_".Length), out _)); + } + + [Fact] + public void GenerateScriptId_WhenCalledTwice_ShouldReturnDistinctIdentifiers() + { + // Act + string firstScriptId = ScriptIdentifierHelper.GenerateScriptId(); + string secondScriptId = ScriptIdentifierHelper.GenerateScriptId(); + + // Assert + Assert.NotEqual(firstScriptId, secondScriptId); + } + + [Fact] + public void ClearIdentifier_WhenCalledWithGeneratedIdentifier_ShouldNotThrow() + { + // Arrange + string scriptId = ScriptIdentifierHelper.GenerateScriptId(); + + // Act + ScriptIdentifierHelper.ClearIdentifier(scriptId); + + // Assert + Assert.NotNull(scriptId); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/UrlServiceTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/UrlServiceTests.cs new file mode 100644 index 00000000..868dbfc5 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Services/UrlServiceTests.cs @@ -0,0 +1,119 @@ +#region ========================================================================= USING ===================================================================================== +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Services; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class UrlServiceTests +{ + private readonly IHttpContextAccessor _mockHttpContextAccessor; + private readonly UrlService _sut; + + /// + /// Initializes a new instance of the class. + /// + public UrlServiceTests() + { + _mockHttpContextAccessor = Substitute.For(); + _sut = new UrlService(_mockHttpContextAccessor); + } + + [Fact] + public void GetAbsoluteUrl_WhenRouteTemplateIsNotDefined_ShouldThrowArgumentException() + { + // Act + ArgumentException exception = Assert.Throws(() => _sut.GetAbsoluteUrl("/not-a-real-route")); + + // Assert + Assert.Contains("not defined in the WebRoutes constants", exception.Message); + } + + [Fact] + public void GetAbsoluteUrl_WhenHttpContextIsNull_ShouldReturnNull() + { + // Arrange + _mockHttpContextAccessor.HttpContext.Returns((HttpContext?)null); + + // Act + string? url = _sut.GetAbsoluteUrl(WebRoutes.Authentication.LOGIN); + + // Assert + Assert.Null(url); + } + + [Fact] + public void GetAbsoluteUrl_WhenCalled_ShouldReplaceCulturePlaceholderAndBuildAbsoluteUrl() + { + // Arrange + DefaultHttpContext httpContext = CreateHttpContext(culture: "en-us", pathBase: "", host: "localhost:5012", scheme: "http"); + _mockHttpContextAccessor.HttpContext.Returns(httpContext); + + // Act + string? url = _sut.GetAbsoluteUrl(WebRoutes.Authentication.LOGIN); + + // Assert + Assert.Equal("http://localhost:5012/en-us/auth/api-login", url); + } + + [Fact] + public void GetAbsoluteUrl_WhenCalledWithAdditionalRouteValues_ShouldReplacePlaceholders() + { + // Arrange + DefaultHttpContext httpContext = CreateHttpContext(culture: "en-us", pathBase: "", host: "localhost:5012", scheme: "http"); + _mockHttpContextAccessor.HttpContext.Returns(httpContext); + Guid id = Guid.NewGuid(); + + // Act + string? url = _sut.GetAbsoluteUrl(WebRoutes.LibraryManagement.DELETE_LIBRARY, new { id }); + + // Assert + Assert.Equal($"http://localhost:5012/en-us/libraries/manage/api-item/{id}", url); + } + + [Fact] + public void GetAbsoluteUrl_WhenPathBaseIsPresent_ShouldIncludePathBase() + { + // Arrange + DefaultHttpContext httpContext = CreateHttpContext(culture: "de-de", pathBase: "/lumina", host: "localhost:5012", scheme: "https"); + _mockHttpContextAccessor.HttpContext.Returns(httpContext); + + // Act + string? url = _sut.GetAbsoluteUrl(WebRoutes.Authentication.REGISTER_VIEW); + + // Assert + Assert.Equal("https://localhost:5012/lumina/de-de/auth/register", url); + } + + [Fact] + public void GetAbsoluteUrl_WhenRouteTemplateDoesNotStartWithSlash_ShouldPrependSlash() + { + // Arrange + DefaultHttpContext httpContext = CreateHttpContext(culture: "en-us", pathBase: "", host: "localhost:5012", scheme: "http"); + _mockHttpContextAccessor.HttpContext.Returns(httpContext); + + // Act + string? url = _sut.GetAbsoluteUrl(WebRoutes.FileSystem.GET_TYPE); + + // Assert + Assert.Equal("http://localhost:5012/file-system/api-get-type", url); + } + + private static DefaultHttpContext CreateHttpContext(string culture, string pathBase, string host, string scheme) + { + DefaultHttpContext httpContext = new(); + httpContext.Request.RouteValues["culture"] = culture; + httpContext.Request.PathBase = pathBase; + httpContext.Request.Host = new HostString(host); + httpContext.Request.Scheme = scheme; + return httpContext; + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/EncryptionSettingsModelValidatorTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/EncryptionSettingsModelValidatorTests.cs new file mode 100644 index 00000000..7f4999ac --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/EncryptionSettingsModelValidatorTests.cs @@ -0,0 +1,60 @@ +#region ========================================================================= USING ===================================================================================== +using FluentValidation; +using FluentValidation.Results; +using Lumina.Presentation.Web.Common.DTO.Configuration; +using Lumina.Presentation.Web.Common.Validators; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Validators; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class EncryptionSettingsModelValidatorTests +{ + private const string VALID_BASE64_KEY = "FLYO0QRo6u2VzoFOgNkkEwYNGtqhJ3QGZd7iAHNEJeM="; + private readonly EncryptionSettingsModelValidator _validator = new(); + + [Fact] + public void Validate_WhenSecretKeyIsEmpty_ShouldHaveValidationError() + { + // Arrange + EncryptionSettingsDto settings = new() { SecretKey = string.Empty }; + + // Act + ValidationResult result = _validator.Validate(settings); + + // Assert + Assert.False(result.IsValid); + Assert.Contains(result.Errors, error => error.PropertyName == nameof(EncryptionSettingsDto.SecretKey) && error.ErrorMessage == "Encryption secret key cannot be empty!"); + } + + [Fact] + public void Validate_WhenSecretKeyIsNotBase64_ShouldHaveValidationError() + { + // Arrange + EncryptionSettingsDto settings = new() { SecretKey = "not-base64-key!" }; + + // Act + ValidationResult result = _validator.Validate(settings); + + // Assert + Assert.False(result.IsValid); + Assert.Contains(result.Errors, error => error.PropertyName == nameof(EncryptionSettingsDto.SecretKey) && error.ErrorMessage == "Encryption secret key must be a base64 string!"); + } + + [Fact] + public void Validate_WhenSecretKeyIsValidBase64_ShouldNotHaveValidationError() + { + // Arrange + EncryptionSettingsDto settings = new() { SecretKey = VALID_BASE64_KEY }; + + // Act + ValidationResult result = _validator.Validate(settings); + + // Assert + Assert.True(result.IsValid); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/ServerConfigurationModelValidatorTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/ServerConfigurationModelValidatorTests.cs new file mode 100644 index 00000000..a4509ebf --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Common/Validators/ServerConfigurationModelValidatorTests.cs @@ -0,0 +1,75 @@ +#region ========================================================================= USING ===================================================================================== +using FluentValidation; +using FluentValidation.Results; +using Lumina.Presentation.Web.Common.DTO.Configuration; +using Lumina.Presentation.Web.Common.Validators; +using System.Diagnostics.CodeAnalysis; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Common.Validators; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class ServerConfigurationModelValidatorTests +{ + private readonly ServerConfigurationModelValidator _validator = new(); + + [Fact] + public void Validate_WhenBaseAddressIsEmpty_ShouldHaveValidationError() + { + // Arrange + ServerConfigurationDto configuration = new() { ApiVersion = '1', BaseAddress = string.Empty, Port = 5214 }; + + // Act + ValidationResult result = _validator.Validate(configuration); + + // Assert + Assert.False(result.IsValid); + Assert.Contains(result.Errors, error => error.PropertyName == nameof(ServerConfigurationDto.BaseAddress) && error.ErrorMessage == "Base address cannot be empty!"); + } + + [Theory] + [InlineData((ushort)0)] // minimum allowed value + [InlineData((ushort)65535)] // maximum allowed value + public void Validate_WhenPortIsAtBoundary_ShouldNotHaveValidationError(ushort port) + { + // Arrange + ServerConfigurationDto configuration = new() { ApiVersion = '1', BaseAddress = "http://localhost", Port = port }; + + // Act + ValidationResult result = _validator.Validate(configuration); + + // Assert + Assert.True(result.IsValid); + } + + [Theory] + [InlineData((char)0)] // minimum allowed API version + [InlineData((char)255)] // maximum allowed API version + public void Validate_WhenApiVersionIsAtBoundary_ShouldNotHaveValidationError(char apiVersion) + { + // Arrange + ServerConfigurationDto configuration = new() { ApiVersion = apiVersion, BaseAddress = "http://localhost", Port = 5214 }; + + // Act + ValidationResult result = _validator.Validate(configuration); + + // Assert + Assert.True(result.IsValid); + } + + [Fact] + public void Validate_WhenConfigurationIsValid_ShouldNotHaveValidationError() + { + // Arrange + ServerConfigurationDto configuration = new() { ApiVersion = '1', BaseAddress = "http://localhost", Port = 5214 }; + + // Act + ValidationResult result = _validator.Validate(configuration); + + // Assert + Assert.True(result.IsValid); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointTests.cs new file mode 100644 index 00000000..b3ac71bf --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/AddRole/AddRoleEndpointTests.cs @@ -0,0 +1,63 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Enums.Authorization; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.AddRole; +using Lumina.Presentation.Web.Fixtures.Common.Requests.Authorization; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Authorization.Roles.AddRole; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class AddRoleEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly AddRoleEndpoint _sut; + private readonly AddRoleRequestFixture _addRoleRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public AddRoleEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldCreateRoleViaApiAndReturnSuccess() + { + // Arrange + AddRoleRequest request = _addRoleRequestFixture.Create(); + RolePermissionsDto expectedResponse = new(new RoleDto(Guid.NewGuid(), request.RoleName!), [new PermissionDto(Guid.NewGuid(), AuthorizationPermission.CanViewUsers)]); + _mockApiHttpClient.PostAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(expectedResponse); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + await _mockApiHttpClient.Received(1).PostAsync( + ApiRoutes.Roles.CREATE_ROLE, + Arg.Is(role => role.RoleName == request.RoleName && role.Permissions!.SequenceEqual(request.Permissions!)), + Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointTests.cs new file mode 100644 index 00000000..5a9cc33b --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/DeleteRole/DeleteRoleEndpointTests.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.Authorization; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.DeleteRole; +using Lumina.Presentation.Web.Fixtures.Common.Requests.Authorization; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Authorization.Roles.DeleteRole; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class DeleteRoleEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly DeleteRoleEndpoint _sut; + private readonly DeleteRoleRequestFixture _deleteRoleRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public DeleteRoleEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldDeleteRoleViaApiAndReturnSuccess() + { + // Arrange + DeleteRoleRequest request = _deleteRoleRequestFixture.Create(); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + string expectedEndpoint = ApiRoutes.Roles.DELETE_ROLE.Replace("{roleId}", request.RoleId.ToString()); + await _mockApiHttpClient.Received(1).DeleteAsync(expectedEndpoint, Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs new file mode 100644 index 00000000..dbd0a3ce --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs @@ -0,0 +1,76 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Authorization; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.GetRoles; +using Lumina.Presentation.Web.Fixtures.Common.DTO.Authorization; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Authorization.Roles.GetRoles; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class GetRolesEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly GetRolesEndpoint _sut; + private readonly RoleDtoFixture _roleDtoFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public GetRolesEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenApiReturnsRoles_ShouldReturnSuccessJsonWithRoles() + { + // Arrange + RoleDto[] expectedRoles = [.. _roleDtoFixture.CreateMany(2)]; + _mockApiHttpClient.GetAsync(ApiRoutes.Roles.GET_ROLES, Arg.Any()) + .Returns(expectedRoles); + + // Act + IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + RoleDto[]? returnedRoles = jsonDocument.RootElement.GetProperty("data").Deserialize(CreateCaseInsensitiveOptions()); + Assert.Equal(expectedRoles.Select(role => role.RoleName), returnedRoles!.Select(role => role.RoleName)); + } + + private static JsonSerializerOptions CreateCaseInsensitiveOptions() + { + return new JsonSerializerOptions { PropertyNameCaseInsensitive = true }; + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldRequestRolesFromApi() + { + // Arrange + _mockApiHttpClient.GetAsync(ApiRoutes.Roles.GET_ROLES, Arg.Any()) + .Returns([.. _roleDtoFixture.CreateMany(2)]); + + // Act + await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync(ApiRoutes.Roles.GET_ROLES, Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs new file mode 100644 index 00000000..fda3034e --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs @@ -0,0 +1,109 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Http; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Lumina.Presentation.Web.Fixtures.Core.Endpoints.Common; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Text.Json; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Common; + +/// +/// Contains unit tests for the class. +/// +public class BaseEndpointTests +{ + private readonly BaseEndpointFixture _sut; + + /// + /// Initializes a new instance of the class. + /// + public BaseEndpointTests() + { + _sut = Factory.Create(); + } + + [Fact] + public async Task TestJsonSuccess_WhenCalledWithData_ShouldReturnSuccessJsonEnvelopeWithData() + { + // Act + IResult result = _sut.TestJsonSuccess(new { itemId = "test-id" }); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.Equal("test-id", jsonDocument.RootElement.GetProperty("data").GetProperty("itemId").GetString()); + } + + [Fact] + public async Task TestJsonSuccess_WhenCalledWithoutData_ShouldReturnSuccessJsonEnvelope() + { + // Act + IResult result = _sut.TestJsonSuccess(); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.False(jsonDocument.RootElement.TryGetProperty("data", out _)); + } + + [Fact] + public void TestView_WhenCalled_ShouldReturnRazorViewResult() + { + // Arrange + TestHttpContextFactory.ConfigureSession(_sut.HttpContext, TestHttpContextFactory.CreateSession()); + _sut.HttpContext.Request.Path = "/en-us/home"; + + // Act + IResult result = _sut.TestView("/Core/Views/Home/Index.cshtml"); + + // Assert + Assert.IsType(result); + } + + [Fact] + public void TestView_WhenCalled_ShouldStoreLastDisplayedViewInSession() + { + // Arrange + Microsoft.AspNetCore.Http.ISession session = TestHttpContextFactory.CreateSession(); + TestHttpContextFactory.ConfigureSession(_sut.HttpContext, session); + _sut.HttpContext.Request.Path = "/en-us/libraries/manage"; + + // Act + _sut.TestView("/Core/Views/Library/Management/Index.cshtml"); + + // Assert + session.Received(1).Set(HttpContextItemKeys.LAST_DISPLAYED_VIEW, Arg.Any()); + } + + [Fact] + public void TestCulture_WhenCultureRouteValuePresent_ShouldReturnCulture() + { + // Arrange + TestHttpContextFactory.ConfigureCulture(_sut.HttpContext, "de-DE"); + + // Act + string culture = _sut.TestCulture; + + // Assert + Assert.Equal("de-DE", culture); + } + + [Fact] + public void TestCulture_WhenCultureRouteValueMissing_ShouldReturnDefaultCulture() + { + // Arrange + TestHttpContextFactory.ConfigureCulture(_sut.HttpContext, null); + + // Act + string culture = _sut.TestCulture; + + // Assert + Assert.Equal("en-US", culture); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointTests.cs new file mode 100644 index 00000000..94b232f8 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Directories/GetDirectories/GetDirectoriesEndpointTests.cs @@ -0,0 +1,76 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Directories; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Directories.GetDirectories; +using Lumina.Presentation.Web.Fixtures.Common.Requests.FileSystemManagement.Directories; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.FileSystemManagement.Directories.GetDirectories; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class GetDirectoriesEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly GetDirectoriesEndpoint _sut; + private readonly GetDirectoriesRequestFixture _getDirectoriesRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public GetDirectoriesEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenApiReturnsDirectories_ShouldReturnSuccessJsonWithDirectories() + { + // Arrange + GetDirectoriesRequest request = _getDirectoriesRequestFixture.Create(path: "/media", includeHiddenElements: true); + DirectoryDto[] expectedDirectories = [new DirectoryDto { Path = "/media/books", Name = "books" }]; + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(expectedDirectories); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + string expectedEndpoint = $"{ApiRoutes.Directories.GET_DIRECTORIES}?path={Uri.EscapeDataString(request.Path!)}&includeHiddenElements=True"; + await _mockApiHttpClient.Received(1).GetAsync(expectedEndpoint, Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.Equal(1, jsonDocument.RootElement.GetProperty("data").GetArrayLength()); + } + + [Fact] + public async Task ExecuteAsync_WhenCalledWithoutHiddenElements_ShouldRequestWithoutHiddenElementsFlag() + { + // Arrange + GetDirectoriesRequest request = _getDirectoriesRequestFixture.Create(path: "/media", includeHiddenElements: false); + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns([]); + + // Act + await _sut.ExecuteAsync(request, CancellationToken.None); + + // Assert + string expectedEndpoint = $"{ApiRoutes.Directories.GET_DIRECTORIES}?path={Uri.EscapeDataString(request.Path!)}&includeHiddenElements=False"; + await _mockApiHttpClient.Received(1).GetAsync(expectedEndpoint, Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointTests.cs new file mode 100644 index 00000000..a9da73d8 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/FileSystemManagement/Path/ValidatePath/ValidatePathEndpointTests.cs @@ -0,0 +1,77 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.FileSystemManagement; +using Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.FileSystemManagement.Path.ValidatePath; +using Lumina.Presentation.Web.Fixtures.Common.Requests.FileSystemManagement.Path; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.FileSystemManagement.Path.ValidatePath; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class ValidatePathEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly ValidatePathEndpoint _sut; + private readonly ValidatePathRequestFixture _validatePathRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public ValidatePathEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenApiValidatesPath_ShouldReturnSuccessJsonWithIsValid() + { + // Arrange + ValidatePathRequest request = _validatePathRequestFixture.Create(path: "/media/books"); + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new PathValidDto(true)); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + string expectedEndpoint = $"{ApiRoutes.Path.VALIDATE}?path={Uri.EscapeDataString(request.Path!)}"; + await _mockApiHttpClient.Received(1).GetAsync(expectedEndpoint, Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.True(jsonDocument.RootElement.GetProperty("data").GetProperty("isValid").GetBoolean()); + } + + [Fact] + public async Task ExecuteAsync_WhenPathIsInvalid_ShouldReturnSuccessJsonWithIsValidFalse() + { + // Arrange + ValidatePathRequest request = _validatePathRequestFixture.Create(path: "C:/invalid|path"); + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new PathValidDto(false)); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.False(jsonDocument.RootElement.GetProperty("data").GetProperty("isValid").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs new file mode 100644 index 00000000..76bcefb9 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/DeleteLibrary/DeleteLibraryEndpointTests.cs @@ -0,0 +1,54 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.Library.Management; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.DeleteLibrary; +using Lumina.Presentation.Web.Fixtures.Common.Requests.Library.Management; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Library.Management.DeleteLibrary; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class DeleteLibraryEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly DeleteLibraryEndpoint _sut; + private readonly DeleteLibraryRequestFixture _deleteLibraryRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public DeleteLibraryEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldDeleteLibraryViaApiAndReturnSuccess() + { + // Arrange + DeleteLibraryRequest request = _deleteLibraryRequestFixture.Create(); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + string expectedEndpoint = ApiRoutes.Libraries.DELETE_LIBRARY.Replace("{id}", request.Id.ToString()); + await _mockApiHttpClient.Received(1).DeleteAsync(expectedEndpoint, Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs new file mode 100644 index 00000000..14d32401 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/GetLibraries/GetLibrariesEndpointTests.cs @@ -0,0 +1,71 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.GetLibraries; +using Lumina.Presentation.Web.Fixtures.Common.DTO.Libraries; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Library.Management.GetLibraries; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class GetLibrariesEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly GetLibrariesEndpoint _sut; + private readonly LibraryDtoFixture _libraryDtoFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public GetLibrariesEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenApiReturnsLibraries_ShouldReturnSuccessJsonWithLibraries() + { + // Arrange + LibraryDto[] expectedLibraries = [.. _libraryDtoFixture.CreateMany(2)]; + _mockApiHttpClient.GetAsync(ApiRoutes.Libraries.GET_LIBRARIES, Arg.Any()) + .Returns(expectedLibraries); + + // Act + IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + LibraryDto[]? returnedLibraries = jsonDocument.RootElement.GetProperty("data").Deserialize(new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); + Assert.Equal(expectedLibraries.Select(library => library.Title), returnedLibraries!.Select(library => library.Title)); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldRequestLibrariesFromApi() + { + // Arrange + _mockApiHttpClient.GetAsync(ApiRoutes.Libraries.GET_LIBRARIES, Arg.Any()) + .Returns([.. _libraryDtoFixture.CreateMany(2)]); + + // Act + await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync(ApiRoutes.Libraries.GET_LIBRARIES, Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs new file mode 100644 index 00000000..e3f7b830 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/Management/SaveLibrary/SaveLibraryEndpointTests.cs @@ -0,0 +1,79 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Library.Management.SaveLibrary; +using Lumina.Presentation.Web.Fixtures.Common.DTO.Libraries; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Library.Management.SaveLibrary; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class SaveLibraryEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly SaveLibraryEndpoint _sut; + private readonly LibraryDtoFixture _libraryDtoFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public SaveLibraryEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenRequestHasId_ShouldUpdateLibraryViaApi() + { + // Arrange + LibraryDto request = _libraryDtoFixture.Create(); + LibraryDto expectedResponse = _libraryDtoFixture.Create(id: request.Id); + _mockApiHttpClient.PutAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(expectedResponse); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + string expectedEndpoint = ApiRoutes.Libraries.UPDATE_LIBRARY.Replace("{id}", request.Id!.Value.ToString()); + await _mockApiHttpClient.Received(1).PutAsync(expectedEndpoint, Arg.Is(library => library.Title == request.Title), Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } + + [Fact] + public async Task ExecuteAsync_WhenRequestHasNoId_ShouldCreateLibraryViaApi() + { + // Arrange + LibraryDto request = _libraryDtoFixture.Create(); + request.Id = null; + LibraryDto expectedResponse = _libraryDtoFixture.Create(id: request.Id); + _mockApiHttpClient.PostAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(expectedResponse); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + await _mockApiHttpClient.Received(1).PostAsync(ApiRoutes.Libraries.ADD_LIBRARY, Arg.Is(library => library.Title == request.Title), Arg.Any()); + await _mockApiHttpClient.DidNotReceive().PutAsync(Arg.Any(), Arg.Any(), Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointTests.cs new file mode 100644 index 00000000..13a5562f --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetLibraryItems/GetLibraryItemsEndpointTests.cs @@ -0,0 +1,124 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Enums.Common; +using Lumina.Presentation.Web.Common.Requests.Libraries; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetLibraryItems; +using Lumina.Presentation.Web.Fixtures.Common.Requests.Libraries; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetLibraryItems; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class GetLibraryItemsEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly GetLibraryItemsEndpoint _sut; + private readonly GetBooksLiteRequestFixture _getBooksLiteRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public GetLibraryItemsEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldRequestLibraryItemsWithQueryParameters() + { + // Arrange + GetBooksLiteRequest request = _getBooksLiteRequestFixture.Create( + currentPage: 2, + perPage: 48, + searchTerm: "the hobbit", + filterAlphaKey: "H", + ignoreThePrefixForAlphaPicker: true, + sortBy: "title", + sortOrder: SortOrder.Ascending); + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new PaginatedBookLiteDto()); + + // Act + await _sut.ExecuteAsync(request, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync( + Arg.Is(endpoint => + endpoint.StartsWith(ApiRoutes.Books.GET_BOOKS_LITE, StringComparison.OrdinalIgnoreCase) && + endpoint.Contains($"libraryId={request.LibraryId}") && + endpoint.Contains("currentPage=2") && + endpoint.Contains("perPage=48") && + endpoint.Contains("searchTerm=the%20hobbit") && + endpoint.Contains("filterAlphaKey=H") && + endpoint.Contains("ignoreThePrefixForAlphaPicker=True") && + endpoint.Contains("sortBy=title") && + endpoint.Contains("sortOrder=Ascending")), + Arg.Any()); + } + + [Fact] + public async Task ExecuteAsync_WhenCalledWithOnlyLibraryId_ShouldRequestWithoutOptionalParameters() + { + // Arrange + GetBooksLiteRequest request = _getBooksLiteRequestFixture.Create(); + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(new PaginatedBookLiteDto()); + + // Act + await _sut.ExecuteAsync(request, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync( + Arg.Is(endpoint => + endpoint.StartsWith(ApiRoutes.Books.GET_BOOKS_LITE, StringComparison.OrdinalIgnoreCase) && + endpoint.EndsWith($"libraryId={request.LibraryId}&ignoreThePrefixForAlphaPicker=False", StringComparison.OrdinalIgnoreCase) && + !endpoint.Contains("currentPage=") && + !endpoint.Contains("searchTerm=") && + !endpoint.Contains("sortBy=")), + Arg.Any()); + } + + [Fact] + public async Task ExecuteAsync_WhenApiReturnsPaginatedItems_ShouldReturnSuccessJsonWithItems() + { + // Arrange + GetBooksLiteRequest request = _getBooksLiteRequestFixture.Create(); + PaginatedBookLiteDto expectedResponse = new() + { + CurrentPage = 1, + PerPage = 48, + Count = 1, + NumberOfPages = 1, + Data = [new BookLiteDto { Id = Guid.NewGuid(), Title = "Test Book" }] + }; + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(expectedResponse); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + JsonElement data = jsonDocument.RootElement.GetProperty("data"); + Assert.Equal(1, data.GetProperty("currentPage").GetInt32()); + Assert.Equal(1, data.GetProperty("data").GetArrayLength()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointTests.cs new file mode 100644 index 00000000..bc80d5b6 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/Index/BooksIndexViewEndpointTests.cs @@ -0,0 +1,77 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Libraries; +using Lumina.Presentation.Web.Common.Http; +using Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.BookLibrary.Books; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Lumina.Presentation.Web.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Index; +using Lumina.Presentation.Web.Fixtures.Common.DTO.Libraries; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http.HttpResults; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Index; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class BooksIndexViewEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly IUrlService _mockUrlService; + private readonly BooksIndexViewEndpoint _sut; + private readonly LibraryDtoFixture _libraryDtoFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public BooksIndexViewEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _mockUrlService = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient, _mockUrlService); + TestHttpContextFactory.ConfigureSession(_sut.HttpContext, TestHttpContextFactory.CreateSession()); + _sut.HttpContext.Request.Path = "/en-us/library/written-content-library/books-library/books"; + } + + [Fact] + public async Task ExecuteAsync_WhenLibraryIdIsNull_ShouldRedirectToHome() + { + // Arrange + _mockUrlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED).Returns("http://localhost/en-us"); + + // Act + IResult result = await _sut.ExecuteAsync(new GetBooksViewRequest(null), CancellationToken.None); + + // Assert + RedirectHttpResult redirectResult = Assert.IsType(result); + Assert.Equal("http://localhost/en-us", redirectResult.Url); + await _mockApiHttpClient.DidNotReceive().GetAsync(Arg.Any(), Arg.Any()); + } + + [Fact] + public async Task ExecuteAsync_WhenLibraryIdProvided_ShouldReturnRazorViewResultWithLibraryModel() + { + // Arrange + LibraryDto expectedLibrary = _libraryDtoFixture.Create(); + _mockApiHttpClient.GetAsync(Arg.Any(), Arg.Any()) + .Returns(expectedLibrary); + + // Act + IResult result = await _sut.ExecuteAsync(new GetBooksViewRequest(expectedLibrary.Id), CancellationToken.None); + + // Assert + Assert.IsType(result); + string expectedEndpoint = ApiRoutes.Libraries.GET_LIBRARY_BY_ID.Replace("{id}", expectedLibrary.Id!.Value.ToString()); + await _mockApiHttpClient.Received(1).GetAsync(expectedEndpoint, Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointTests.cs new file mode 100644 index 00000000..bb08ee79 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/GetPlugins/GetPluginsEndpointTests.cs @@ -0,0 +1,70 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.Plugins; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Plugins.GetPlugins; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Plugins.GetPlugins; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class GetPluginsEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly GetPluginsEndpoint _sut; + + /// + /// Initializes a new instance of the class. + /// + public GetPluginsEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenApiReturnsPlugins_ShouldReturnSuccessJsonWithPlugins() + { + // Arrange + PluginDto[] expectedPlugins = [new PluginDto { Id = Guid.NewGuid(), Name = "OpenLibrary", Author = "Test Author", Version = "1.0.0" }]; + _mockApiHttpClient.GetAsync(ApiRoutes.Plugins.GET_PLUGINS, Arg.Any()) + .Returns(expectedPlugins); + + // Act + IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + PluginDto[]? returnedPlugins = jsonDocument.RootElement.GetProperty("data").Deserialize(new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); + Assert.Equal(expectedPlugins.Select(plugin => plugin.Name), returnedPlugins!.Select(plugin => plugin.Name)); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldRequestPluginsFromApi() + { + // Arrange + _mockApiHttpClient.GetAsync(ApiRoutes.Plugins.GET_PLUGINS, Arg.Any()) + .Returns([new PluginDto { Id = Guid.NewGuid(), Name = "OpenLibrary" }]); + + // Act + await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync(ApiRoutes.Plugins.GET_PLUGINS, Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointTests.cs new file mode 100644 index 00000000..a2534b6a --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Plugins/UpdatePluginSettings/UpdatePluginSettingsEndpointTests.cs @@ -0,0 +1,59 @@ +#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.Plugins.UpdatePluginSettings; +using Lumina.Presentation.Web.Fixtures.Common.Requests.Plugins; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Plugins.UpdatePluginSettings; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class UpdatePluginSettingsEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly UpdatePluginSettingsEndpoint _sut; + private readonly UpdatePluginSettingsRequestFixture _updatePluginSettingsRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public UpdatePluginSettingsEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldUpdatePluginSettingsViaApiAndReturnSuccess() + { + // Arrange + UpdatePluginSettingsRequest request = _updatePluginSettingsRequestFixture.Create(); + _mockApiHttpClient.PutAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest()); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + string expectedEndpoint = ApiRoutes.Plugins.UPDATE_PLUGIN_SETTINGS.Replace("{pluginId}", request.PluginId.ToString()); + await _mockApiHttpClient.Received(1).PutAsync( + expectedEndpoint, + Arg.Is(settings => settings.PluginId == request.PluginId), + Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs new file mode 100644 index 00000000..3e72c209 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs @@ -0,0 +1,84 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Requests.Tools; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Lumina.Presentation.Web.Core.Endpoints.Tools.Language.SetLanguage; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http.HttpResults; +using Microsoft.AspNetCore.Localization; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Tools.Language.SetLanguage; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class SetLanguageEndpointTests +{ + private readonly IUrlService _mockUrlService; + private readonly SetLanguageEndpoint _sut; + + /// + /// Initializes a new instance of the class. + /// + public SetLanguageEndpointTests() + { + _mockUrlService = Substitute.For(); + _sut = Factory.Create(_mockUrlService); + } + + [Fact] + public async Task ExecuteAsync_WhenCalledWithoutReturnUrl_ShouldSetCultureCookieAndRedirectWithNewCulture() + { + // Arrange + TestHttpContextFactory.ConfigureCulture(_sut.HttpContext, "en-us"); + _mockUrlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED).Returns("http://localhost/en-us/"); + + // Act + IResult result = await _sut.ExecuteAsync(new SetLanguageRequest("de-DE", null), CancellationToken.None); + + // Assert + RedirectHttpResult redirectResult = Assert.IsType(result); + Assert.Equal("http://localhost/de-de/", redirectResult.Url); + Assert.True(redirectResult.AcceptLocalUrlOnly); + string setCookieHeader = _sut.HttpContext.Response.Headers.SetCookie.ToString(); + Assert.Contains(CookieRequestCultureProvider.DefaultCookieName, setCookieHeader); + Assert.Contains("de-DE", setCookieHeader); + } + + [Fact] + public async Task ExecuteAsync_WhenReturnUrlProvided_ShouldReplaceCultureInReturnUrl() + { + // Arrange + TestHttpContextFactory.ConfigureCulture(_sut.HttpContext, "en-us"); + + // Act + IResult result = await _sut.ExecuteAsync(new SetLanguageRequest("de-DE", "/en-us/tools/settings"), CancellationToken.None); + + // Assert + RedirectHttpResult redirectResult = Assert.IsType(result); + Assert.Equal("/de-de/tools/settings", redirectResult.Url); + } + + [Fact] + public async Task ExecuteAsync_WhenPathBasePresent_ShouldKeepPathBaseInRedirectUrl() + { + // Arrange + TestHttpContextFactory.ConfigureCulture(_sut.HttpContext, "en-us"); + _sut.HttpContext.Request.PathBase = "/lumina"; + + // Act + IResult result = await _sut.ExecuteAsync(new SetLanguageRequest("fr-FR", "/en-us/tools/settings"), CancellationToken.None); + + // Assert + RedirectHttpResult redirectResult = Assert.IsType(result); + Assert.Equal("/lumina/fr-fr/tools/settings", redirectResult.Url); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointTests.cs new file mode 100644 index 00000000..b55cfc50 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/GetUserSettings/GetUserSettingsEndpointTests.cs @@ -0,0 +1,71 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Tools.Settings.GetUserSettings; +using Lumina.Presentation.Web.Fixtures.Common.DTO.UsersManagement; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Tools.Settings.GetUserSettings; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class GetUserSettingsEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly GetUserSettingsEndpoint _sut; + private readonly UserSettingsDtoFixture _userSettingsDtoFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public GetUserSettingsEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenApiReturnsSettings_ShouldReturnSuccessJsonWithSettings() + { + // Arrange + UserSettingsDto expectedSettings = _userSettingsDtoFixture.Create(); + _mockApiHttpClient.GetAsync(ApiRoutes.Users.GET_USER_SETTINGS, Arg.Any()) + .Returns(expectedSettings); + + // Act + IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + JsonElement data = jsonDocument.RootElement.GetProperty("data"); + Assert.Equal(expectedSettings.ItemsPerPage, data.GetProperty("itemsPerPage").GetInt32()); + Assert.Equal(expectedSettings.IsPaginationEnabled, data.GetProperty("isPaginationEnabled").GetBoolean()); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldRequestUserSettingsFromApi() + { + // Arrange + _mockApiHttpClient.GetAsync(ApiRoutes.Users.GET_USER_SETTINGS, Arg.Any()) + .Returns(_userSettingsDtoFixture.Create()); + + // Act + await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None); + + // Assert + await _mockApiHttpClient.Received(1).GetAsync(ApiRoutes.Users.GET_USER_SETTINGS, Arg.Any()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointTests.cs new file mode 100644 index 00000000..3691a19a --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Settings/UpdateUserSettings/UpdateUserSettingsEndpointTests.cs @@ -0,0 +1,59 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.DTO.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.Tools.Settings.UpdateUserSettings; +using Lumina.Presentation.Web.Fixtures.Common.DTO.UsersManagement; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Tools.Settings.UpdateUserSettings; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class UpdateUserSettingsEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly UpdateUserSettingsEndpoint _sut; + private readonly UserSettingsDtoFixture _userSettingsDtoFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public UpdateUserSettingsEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldUpdateSettingsViaApiAndReturnSuccess() + { + // Arrange + UserSettingsDto request = _userSettingsDtoFixture.Create(); + _mockApiHttpClient.PutAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(new Lumina.Presentation.Web.Common.Requests.Common.EmptyRequest()); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + await _mockApiHttpClient.Received(1).PutAsync( + ApiRoutes.Users.UPDATE_USER_SETTINGS, + Arg.Is(settings => settings.ItemsPerPage == request.ItemsPerPage && settings.IsPaginationEnabled == request.IsPaginationEnabled), + Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.True(jsonDocument.RootElement.GetProperty("data").GetProperty("isUpdated").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs new file mode 100644 index 00000000..aa221b50 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Login/LoginViewEndpointTests.cs @@ -0,0 +1,93 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Http; +using Lumina.Presentation.Web.Common.Requests.UsersManagement.Authentication; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Common.Services; +using Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Login; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http.HttpResults; +using NSubstitute; +using System; +using System.Diagnostics.CodeAnalysis; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.UsersManagement.Authentication.Login; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class LoginViewEndpointTests +{ + private readonly IUrlService _mockUrlService; + private readonly LoginViewEndpoint _sut; + + /// + /// Initializes a new instance of the class. + /// + public LoginViewEndpointTests() + { + _mockUrlService = Substitute.For(); + _sut = Factory.Create(_mockUrlService); + } + + [Fact] + public async Task ExecuteAsync_WhenUserAlreadyAuthenticated_ShouldRedirectToHome() + { + // Arrange + TestHttpContextFactory.ConfigureUser(_sut.HttpContext, TestHttpContextFactory.CreateAuthenticatedUser()); + TestHttpContextFactory.ConfigureSession(_sut.HttpContext, TestHttpContextFactory.CreateSession()); + _mockUrlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED).Returns("http://localhost/en-us"); + + // Act + IResult result = await _sut.ExecuteAsync(new LoginViewRequest(), CancellationToken.None); + + // Assert + RedirectHttpResult redirectResult = Assert.IsType(result); + Assert.Equal("http://localhost/en-us", redirectResult.Url); + _mockUrlService.Received(1).GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED); + } + + [Fact] + public async Task ExecuteAsync_WhenSuperAdminSetupPending_ShouldRedirectToRegisterView() + { + // Arrange + Microsoft.AspNetCore.Http.ISession session = Substitute.For(); + byte[] pendingBytes = Encoding.UTF8.GetBytes("true"); +#pragma warning disable CS8601 // possible null reference assignment in the NSubstitute out-argument stub + session.TryGetValue(HttpContextItemKeys.PENDING_SUPER_ADMIN_SETUP, out Arg.Any()).Returns(callInfo => + { + callInfo[1] = pendingBytes; + return true; + }); +#pragma warning restore CS8601 + TestHttpContextFactory.ConfigureSession(_sut.HttpContext, session); + _mockUrlService.GetAbsoluteUrl(WebRoutes.Authentication.REGISTER_VIEW).Returns("http://localhost/en-us/auth/register"); + + // Act + IResult result = await _sut.ExecuteAsync(new LoginViewRequest(), CancellationToken.None); + + // Assert + RedirectHttpResult redirectResult = Assert.IsType(result); + Assert.Equal("http://localhost/en-us/auth/register", redirectResult.Url); + _mockUrlService.Received(1).GetAbsoluteUrl(WebRoutes.Authentication.REGISTER_VIEW); + } + + [Fact] + public async Task ExecuteAsync_WhenNotAuthenticatedAndInitialized_ShouldReturnRazorViewResult() + { + // Arrange + TestHttpContextFactory.ConfigureSession(_sut.HttpContext, TestHttpContextFactory.CreateSession()); + + // Act + IResult result = await _sut.ExecuteAsync(new LoginViewRequest(), CancellationToken.None); + + // Assert + Assert.IsType(result); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointTests.cs new file mode 100644 index 00000000..fad145e5 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/RecoverPassword/RecoverPasswordEndpointTests.cs @@ -0,0 +1,61 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.RecoverPassword; +using Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.UsersManagement.Authentication.RecoverPassword; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class RecoverPasswordEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly RecoverPasswordEndpoint _sut; + private readonly RecoverPasswordRequestFixture _recoverPasswordRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public RecoverPasswordEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenCalled_ShouldRecoverPasswordViaApiAndReturnSuccess() + { + // Arrange + RecoverPasswordRequest request = _recoverPasswordRequestFixture.Create(); + RecoverPasswordResponse expectedResponse = new(true); + _mockApiHttpClient.PostAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(expectedResponse); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + await _mockApiHttpClient.Received(1).PostAsync( + ApiRoutes.Authentication.RECOVER_PASSWORD, + Arg.Is(recovery => recovery.Username == request.Username), + Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + Assert.True(jsonDocument.RootElement.GetProperty("data").GetProperty("isPasswordReset").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointTests.cs new file mode 100644 index 00000000..7db86624 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/UsersManagement/Authentication/Register/RegisterEndpointTests.cs @@ -0,0 +1,80 @@ +#region ========================================================================= USING ===================================================================================== +using FastEndpoints; +using Lumina.Presentation.Web.Common.Api; +using Lumina.Presentation.Web.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Common.Responses.UsersManagement; +using Lumina.Presentation.Web.Common.Routes; +using Lumina.Presentation.Web.Core.Endpoints.UsersManagement.Authentication.Register; +using Lumina.Presentation.Web.Fixtures.Common.Requests.UsersManagement; +using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; +using Microsoft.AspNetCore.Http; +using NSubstitute; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +#endregion + +namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.UsersManagement.Authentication.Register; + +/// +/// Contains unit tests for the class. +/// +[ExcludeFromCodeCoverage] +public class RegisterEndpointTests +{ + private readonly IApiHttpClient _mockApiHttpClient; + private readonly RegisterEndpoint _sut; + private readonly RegisterRequestFixture _registerRequestFixture = new(); + + /// + /// Initializes a new instance of the class. + /// + public RegisterEndpointTests() + { + _mockApiHttpClient = Substitute.For(); + _sut = Factory.Create(_mockApiHttpClient); + } + + [Fact] + public async Task ExecuteAsync_WhenRegistrationTypeIsAdmin_ShouldSetupApplicationViaApi() + { + // Arrange + RegisterRequest request = _registerRequestFixture.Create(registrationType: "Admin"); + _mockApiHttpClient.PostAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(new RegisterResponse(request.Username, null)); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + await _mockApiHttpClient.Received(1).PostAsync( + ApiRoutes.Initialization.SETUP_APPLICATION, + Arg.Is(registration => registration.Username == request.Username), + Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } + + [Fact] + public async Task ExecuteAsync_WhenRegistrationTypeIsUser_ShouldRegisterAccountViaApi() + { + // Arrange + RegisterRequest request = _registerRequestFixture.Create(registrationType: "User"); + _mockApiHttpClient.PostAsync(Arg.Any(), Arg.Any(), Arg.Any()) + .Returns(new RegisterResponse(request.Username, null)); + + // Act + IResult result = await _sut.ExecuteAsync(request, CancellationToken.None); + string body = await JsonResultTestHelper.GetResponseBodyAsync(result); + + // Assert + await _mockApiHttpClient.Received(1).PostAsync( + ApiRoutes.Authentication.REGISTER_ACCOUNT, + Arg.Is(registration => registration.Username == request.Username), + Arg.Any()); + using JsonDocument jsonDocument = JsonDocument.Parse(body); + Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean()); + } +} diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Lumina.Presentation.Web.UnitTests.csproj b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Lumina.Presentation.Web.UnitTests.csproj new file mode 100644 index 00000000..cac91d11 --- /dev/null +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Lumina.Presentation.Web.UnitTests.csproj @@ -0,0 +1,46 @@ + + + + net10.0 + disable + enable + + false + true + + + + + <_Parameter1>DisableTestParallelization = true + <_Parameter1_IsLiteral>true + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + From d10233f4e34459e16e598de1f2074d3b39937f64 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:49:41 -0700 Subject: [PATCH 6/8] fix: denies unauthenticated users on policy-protected endpoints --- .../Common/Authorization/AuthorizationService.cs | 8 +++++--- .../PresentationWebLayerServices.cs | 12 ++++++++++-- .../Roles/GetRoles/GetRolesEndpointTests.cs | 15 +++++---------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs b/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs index b47d54e2..0237af63 100644 --- a/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs +++ b/src/Lumina.Presentation.Web/Common/Authorization/AuthorizationService.cs @@ -62,8 +62,10 @@ public class AuthorizationService : IAuthorizationService /// The user's authorization details. private async Task GetUserAuthorizationAsync(CancellationToken cancellationToken) { - // get the id of the currently logged in user - string userId = _httpContextAccessor.HttpContext!.User.FindFirst(ClaimTypes.NameIdentifier)!.Value; - return await _apiHttpClient.GetAsync($"auth/get-authorization?userId={Uri.EscapeDataString(userId.ToString())}", cancellationToken); + // anonymous users and users without an identifier claim have no role or permissions, so deny without querying the API + string? userId = _httpContextAccessor.HttpContext?.User.FindFirst(ClaimTypes.NameIdentifier)?.Value; + if (string.IsNullOrEmpty(userId)) + return new GetAuthorizationResponse(Guid.Empty, string.Empty, []); + return await _apiHttpClient.GetAsync($"auth/get-authorization?userId={Uri.EscapeDataString(userId)}", cancellationToken); } } diff --git a/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs b/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs index bd606e3a..b2f52ee7 100644 --- a/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs +++ b/src/Lumina.Presentation.Web/Common/DependencyInjection/PresentationWebLayerServices.cs @@ -230,8 +230,16 @@ public static class PresentationWebLayerServices // and that restrict access based on the roles and permissions retrieved from the remote API services.AddAuthorizationBuilder() .AddPolicy(AuthorizationPolicies.REQUIRE_INITIALIZATION, authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new InitializationRequirement())) - .AddPolicy(AuthorizationPolicies.REQUIRE_ADMIN_ROLE, authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new RoleRequirement("Admin"))) - .AddPolicy(AuthorizationPolicies.REQUIRE_CREATE_LIBRARIES_PERMISSION, authorizationPolicyBuilder => authorizationPolicyBuilder.Requirements.Add(new PermissionRequirement(AuthorizationPermission.CanCreateLibraries))); + .AddPolicy(AuthorizationPolicies.REQUIRE_ADMIN_ROLE, authorizationPolicyBuilder => + { + authorizationPolicyBuilder.Requirements.Add(new RoleRequirement("Admin")); + authorizationPolicyBuilder.RequireAuthenticatedUser(); + }) + .AddPolicy(AuthorizationPolicies.REQUIRE_CREATE_LIBRARIES_PERMISSION, authorizationPolicyBuilder => + { + authorizationPolicyBuilder.Requirements.Add(new PermissionRequirement(AuthorizationPermission.CanCreateLibraries)); + authorizationPolicyBuilder.RequireAuthenticatedUser(); + }); // add forwarded headers middleware to handle reverse proxy scenarios services.Configure(forwardedHeadersOptions => diff --git a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs index 9bcdaa67..7e021ace 100644 --- a/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs +++ b/tests/SecurityTests/Lumina.Presentation.Web.SecurityTests/Core/Endpoints/Admin/Authorization/Roles/GetRoles/GetRolesEndpointTests.cs @@ -1,4 +1,4 @@ -#region ========================================================================= USING ===================================================================================== +#region ========================================================================= USING ===================================================================================== using Lumina.Presentation.Web.Common.DTO.Authorization; using Lumina.Presentation.Web.Common.Responses.Authorization; using Lumina.Presentation.Web.Core.Endpoints.Admin.Authorization.Roles.GetRoles; @@ -8,7 +8,6 @@ using System; using System.Diagnostics.CodeAnalysis; using System.Net; using System.Net.Http; -using System.Text.Json; using System.Threading.Tasks; #endregion @@ -32,23 +31,18 @@ public class GetRolesEndpointTests : IClassFixture } [Fact] - public async Task GetRoles_WhenCalledWithoutAuthentication_ShouldNotExposeRoleData() + public async Task GetRoles_WhenCalledWithoutAuthentication_ShouldRedirectToLogin() { // Arrange _apiFactory.ApiClientStub.Reset(); - RoleDto[] unexpectedRoles = [new RoleDto(Guid.NewGuid(), "Admin")]; - _apiFactory.ApiClientStub.RegisterGetResponse("auth/roles", unexpectedRoles); HttpClient client = WebTestHelpers.CreateAnonymousClient(_apiFactory); // Act HttpResponseMessage response = await client.GetAsync("/en-us/admin/api-get-roles"); - string content = await response.Content.ReadAsStringAsync(); // Assert - using JsonDocument json = JsonDocument.Parse(content); - Assert.False(json.RootElement.GetProperty("success").GetBoolean()); - Assert.DoesNotContain("Admin", content); - Assert.DoesNotContain("AdminRole", content); + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Contains("auth/login", response.Headers.Location!.ToString()); } [Fact] @@ -85,3 +79,4 @@ public class GetRolesEndpointTests : IClassFixture Assert.Equal(HttpStatusCode.OK, response.StatusCode); } } + From c4135dbec948554f114d58cb39029d0fab6a9966 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:49:49 -0700 Subject: [PATCH 7/8] fix: makes the set language endpoint work without a return url --- .../SetLanguage/SetLanguageEndpoint.cs | 31 ++++++------------- .../SetLanguage/SetLanguageEndpointTests.cs | 15 +++++++++ .../SetLanguage/SetLanguageEndpointTests.cs | 10 ++---- 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs index f7e1c7e1..744af3c0 100644 --- a/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs +++ b/src/Lumina.Presentation.Web/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpoint.cs @@ -2,7 +2,6 @@ using FastEndpoints; using Lumina.Presentation.Web.Common.Requests.Tools; using Lumina.Presentation.Web.Common.Routes; -using Lumina.Presentation.Web.Common.Services; using Lumina.Presentation.Web.Core.Endpoints.Common; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; @@ -20,17 +19,6 @@ namespace Lumina.Presentation.Web.Core.Endpoints.Tools.Language.SetLanguage; /// public class SetLanguageEndpoint : BaseEndpoint { - private readonly IUrlService _urlService; - - /// - /// Initializes a new instance of the class. - /// - /// Injected service for generating URLs from action and controller names, with localization. - public SetLanguageEndpoint(IUrlService urlService) - { - _urlService = urlService; - } - /// /// Configures the endpoint. /// @@ -62,24 +50,25 @@ public class SetLanguageEndpoint : BaseEndpoint Path = "/" // ensure the cookie works across all paths } ); - // ensure the return URL includes the correct culture - string returnUrl = string.IsNullOrEmpty(request.ReturnUrl) ? _urlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED)! : request.ReturnUrl; - // handle the culture replacement in the return URL + // determine the URL to return to, defaulting to the localized home page when no return URL is supplied + string newCulture = request.NewCulture!; + string returnUrl = string.IsNullOrEmpty(request.ReturnUrl) ? $"/{newCulture.ToLower()}" : request.ReturnUrl; string currentCulture = Culture; - string culturePath = $"/{currentCulture.ToLower()}/"; - string newCulturePath = $"/{request.NewCulture!.ToLower()}/"; - // handle the base path if present + // handle the base path, so that the culture replacement matches the URL if (!string.IsNullOrEmpty(HttpContext.Request.PathBase)) returnUrl = returnUrl.Replace(HttpContext.Request.PathBase.Value!, string.Empty, StringComparison.OrdinalIgnoreCase); - // replace the culture in the URL - returnUrl = returnUrl.Replace(culturePath, newCulturePath, StringComparison.OrdinalIgnoreCase); + // replace the current culture segment of the URL with the new one, whether or not a trailing slash is present + string currentCultureSegment = $"/{currentCulture.ToLower()}"; + string newCultureSegment = $"/{newCulture.ToLower()}"; + if (returnUrl.StartsWith(currentCultureSegment, StringComparison.OrdinalIgnoreCase)) + returnUrl = newCultureSegment + returnUrl[currentCultureSegment.Length..]; // re-apply the base path if present if (!string.IsNullOrEmpty(HttpContext.Request.PathBase)) returnUrl = HttpContext.Request.PathBase.Value + returnUrl; - // redirect to the original page + // redirect to the target page return Results.LocalRedirect(returnUrl); } } diff --git a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs index d742300b..1fba9da5 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Web.IntegrationTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs @@ -45,6 +45,21 @@ public class SetLanguageEndpointTests : IClassFixture Assert.Contains("de-DE", response.Headers.GetValues("Set-Cookie").First()); } + [Fact] + public async Task SetLanguage_WhenCalledByAuthenticatedUserWithoutReturnUrl_ShouldRedirectToHomePageWithNewCulture() + { + // Arrange + AuthenticatedWebClient webClient = await WebTestHelpers.CreateAuthenticatedClientAsync(_apiFactory); + + // Act + HttpResponseMessage response = await webClient.Client.GetAsync("/en-us/tools/language/set-language?newCulture=de-DE"); + + // Assert + Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); + Assert.Equal("/de-de", response.Headers.Location!.ToString()); + Assert.Contains("de-DE", response.Headers.GetValues("Set-Cookie").First()); + } + [Fact] public async Task SetLanguage_WhenCalledWithoutAuthentication_ShouldRedirectToLogin() { diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs index 3e72c209..6b839637 100644 --- a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Tools/Language/SetLanguage/SetLanguageEndpointTests.cs @@ -1,14 +1,11 @@ #region ========================================================================= USING ===================================================================================== using FastEndpoints; using Lumina.Presentation.Web.Common.Requests.Tools; -using Lumina.Presentation.Web.Common.Routes; -using Lumina.Presentation.Web.Common.Services; using Lumina.Presentation.Web.Core.Endpoints.Tools.Language.SetLanguage; using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.HttpResults; using Microsoft.AspNetCore.Localization; -using NSubstitute; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; @@ -22,7 +19,6 @@ namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Tools.Language.SetLan [ExcludeFromCodeCoverage] public class SetLanguageEndpointTests { - private readonly IUrlService _mockUrlService; private readonly SetLanguageEndpoint _sut; /// @@ -30,8 +26,7 @@ public class SetLanguageEndpointTests /// public SetLanguageEndpointTests() { - _mockUrlService = Substitute.For(); - _sut = Factory.Create(_mockUrlService); + _sut = Factory.Create(); } [Fact] @@ -39,14 +34,13 @@ public class SetLanguageEndpointTests { // Arrange TestHttpContextFactory.ConfigureCulture(_sut.HttpContext, "en-us"); - _mockUrlService.GetAbsoluteUrl(WebRoutes.Home.INDEX_CULTURED).Returns("http://localhost/en-us/"); // Act IResult result = await _sut.ExecuteAsync(new SetLanguageRequest("de-DE", null), CancellationToken.None); // Assert RedirectHttpResult redirectResult = Assert.IsType(result); - Assert.Equal("http://localhost/de-de/", redirectResult.Url); + Assert.Equal("/de-de", redirectResult.Url); Assert.True(redirectResult.AcceptLocalUrlOnly); string setCookieHeader = _sut.HttpContext.Response.Headers.SetCookie.ToString(); Assert.Contains(CookieRequestCultureProvider.DefaultCookieName, setCookieHeader); From 85129187b3413e33f697b6467799e29f10f75dc0 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Mon, 17 Aug 2026 11:49:59 -0700 Subject: [PATCH 8/8] chore: excludes test classes from code coverage --- .../Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs | 2 ++ .../BookLibrary/Books/BookMetadataDtoMappingTests.cs | 2 ++ .../Common/Setup/ValidatorTestExtensions.cs | 2 ++ .../LibraryMetadataProviderConfigurationRepositoryTests.cs | 2 ++ .../Core/Repositories/Plugins/PluginRepositoryTests.cs | 2 ++ .../Core/Endpoints/Common/BaseEndpointTests.cs | 2 ++ 6 files changed, 12 insertions(+) diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs index ef35ee34..8815cb3e 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/SkipWhenHiddenAttributeNotSupportedFactAttribute.cs @@ -2,6 +2,7 @@ using Lumina.Contracts.Fixtures.Core.Responses.FileSystemManagement.Common; using Lumina.Presentation.Api.Fixtures.Core.Endpoints.FileSystemManagement; using System; +using System.Diagnostics.CodeAnalysis; using System.IO; using Xunit; #endregion @@ -12,6 +13,7 @@ namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup; /// Marks a test to be skipped when the file system does not support the attribute. /// [AttributeUsage(AttributeTargets.Method)] +[ExcludeFromCodeCoverage] public sealed class SkipWhenHiddenAttributeNotSupportedFactAttribute : FactAttribute { /// diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Common/Mapping/MediaLibrary/WrittenContentLibrary/BookLibrary/Books/BookMetadataDtoMappingTests.cs b/tests/UnitTests/Lumina.Application.UnitTests/Common/Mapping/MediaLibrary/WrittenContentLibrary/BookLibrary/Books/BookMetadataDtoMappingTests.cs index 61296609..47ee328b 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Common/Mapping/MediaLibrary/WrittenContentLibrary/BookLibrary/Books/BookMetadataDtoMappingTests.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Common/Mapping/MediaLibrary/WrittenContentLibrary/BookLibrary/Books/BookMetadataDtoMappingTests.cs @@ -7,6 +7,7 @@ using Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.Boo using Lumina.Domain.Fixtures.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate; using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary; using System; +using System.Diagnostics.CodeAnalysis; #endregion namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenContentLibrary.BookLibrary.Books; @@ -14,6 +15,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class BookMetadataDtoMappingTests { private readonly BookFixture _bookFixture = new(); diff --git a/tests/UnitTests/Lumina.Application.UnitTests/Common/Setup/ValidatorTestExtensions.cs b/tests/UnitTests/Lumina.Application.UnitTests/Common/Setup/ValidatorTestExtensions.cs index cc9acf45..bc591850 100644 --- a/tests/UnitTests/Lumina.Application.UnitTests/Common/Setup/ValidatorTestExtensions.cs +++ b/tests/UnitTests/Lumina.Application.UnitTests/Common/Setup/ValidatorTestExtensions.cs @@ -2,6 +2,7 @@ using Lumina.Application.Common.Infrastructure.Validation; using Lumina.Domain.Common.Primitives; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; #endregion namespace Lumina.Application.UnitTests.Common.Setup; @@ -9,6 +10,7 @@ namespace Lumina.Application.UnitTests.Common.Setup; /// /// Validator extension methods for for unit tests. /// +[ExcludeFromCodeCoverage] public static class ValidatorTestExtensions { /// diff --git a/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/LibraryMetadataProviderConfigurationRepositoryTests.cs b/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/LibraryMetadataProviderConfigurationRepositoryTests.cs index 9821f0f5..fa2c46ea 100644 --- a/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/LibraryMetadataProviderConfigurationRepositoryTests.cs +++ b/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/LibraryMetadataProviderConfigurationRepositoryTests.cs @@ -6,6 +6,7 @@ using Lumina.DataAccess.Core.Repositories.Plugins; using Lumina.DataAccess.Core.UoW; using Lumina.Domain.Common.Primitives; using System; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -16,6 +17,7 @@ namespace Lumina.DataAccess.UnitTests.Core.Repositories.Plugins; /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class LibraryMetadataProviderConfigurationRepositoryTests { private readonly LuminaDbContext _mockContext; diff --git a/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/PluginRepositoryTests.cs b/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/PluginRepositoryTests.cs index 0730c42e..a0ae9321 100644 --- a/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/PluginRepositoryTests.cs +++ b/tests/UnitTests/Lumina.DataAccess.UnitTests/Core/Repositories/Plugins/PluginRepositoryTests.cs @@ -7,6 +7,7 @@ using Lumina.DataAccess.Core.UoW; using Lumina.Domain.Common.Errors; using Lumina.Domain.Common.Primitives; using System; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -17,6 +18,7 @@ namespace Lumina.DataAccess.UnitTests.Core.Repositories.Plugins; /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class PluginRepositoryTests { private readonly LuminaDbContext _mockContext; diff --git a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs index fda3034e..70cae537 100644 --- a/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs +++ b/tests/UnitTests/Lumina.Presentation.Web.UnitTests/Core/Endpoints/Common/BaseEndpointTests.cs @@ -5,6 +5,7 @@ using Lumina.Presentation.Web.Fixtures.Common.TestHelpers; using Lumina.Presentation.Web.Fixtures.Core.Endpoints.Common; using Microsoft.AspNetCore.Http; using NSubstitute; +using System.Diagnostics.CodeAnalysis; using System.Text.Json; using System.Threading.Tasks; #endregion @@ -14,6 +15,7 @@ namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Common; /// /// Contains unit tests for the class. /// +[ExcludeFromCodeCoverage] public class BaseEndpointTests { private readonly BaseEndpointFixture _sut;