mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Improves the plugin system documentation, tests and conventions
- Documents the book metadata DTOs and the Book aggregate constructor parameters - References ADR-0006 in the scan snapshot repository remarks, explaining the Dapper choice - Extracts shared plugin entity fixtures and uses them in the plugin and metadata provider tests - Moves PluginLoadResult to the Common DTO models, renaming it PluginLoadResultDto - Replaces the duplicate Contracts plugin setting type with the shared kernel enum - Removes the generated plugin view Designer file and its project wiring - Drops redundant braces in the plugin repositories
This commit is contained in:
1 parent
42566dcf06
commit
3653ff5bd7
25 files changed
+168
-321
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Responses.Plugins;
|
||||
using Lumina.Plugins.Contracts.Common.Models.DTO.Settings;
|
||||
using ContractsPluginSettingType = Lumina.Contracts.Responses.Plugins.PluginSettingType;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.Plugins;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Application.Common.Mapping.Plugins;
|
||||
@@ -21,7 +21,7 @@ public static class PluginSettingDescriptorMapping
|
||||
return new PluginSettingDescriptorResponse(
|
||||
descriptor.Key,
|
||||
descriptor.Label,
|
||||
(ContractsPluginSettingType)(int)descriptor.Type,
|
||||
(PluginSettingType)(int)descriptor.Type,
|
||||
descriptor.DefaultValue,
|
||||
descriptor.AllowedValues
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user