feat(AnnotationParams): Erstellt, um Annotationen über Appsettings zu konfigurieren.
This commit is contained in:
parent
6c222ca9ad
commit
df019a7243
@ -1,8 +1,6 @@
|
||||
namespace EnvelopeGenerator.Web.Models;
|
||||
|
||||
public record Annotation(
|
||||
string Id,
|
||||
string? HorBoundAnnotId = null, string? VerBoundAnnotId = null)
|
||||
public record Annotation(string? HorBoundAnnotId = null, string? VerBoundAnnotId = null)
|
||||
{
|
||||
#region Layout
|
||||
internal double _marginX = default;
|
||||
@ -51,8 +49,8 @@ public record Annotation(
|
||||
#endregion
|
||||
|
||||
#region BoundAnnot
|
||||
public Annot? HorBoundAnnot { get; set; }
|
||||
public Annotation? HorBoundAnnot { get; set; }
|
||||
|
||||
public Annot? VerBoundAnnot { get; set; }
|
||||
public Annotation? VerBoundAnnot { get; set; }
|
||||
#endregion
|
||||
};
|
||||
6
EnvelopeGenerator.Web/Models/AnnotationParams.cs
Normal file
6
EnvelopeGenerator.Web/Models/AnnotationParams.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace EnvelopeGenerator.Web.Models;
|
||||
|
||||
public class AnnotationParams
|
||||
{
|
||||
public required Dictionary<string, Annotation> Annotations { get; init; }
|
||||
}
|
||||
@ -163,6 +163,8 @@ try
|
||||
|
||||
builder.ConfigureBySection<CustomImages>();
|
||||
|
||||
builder.ConfigureBySection<AnnotationParams>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
||||
@ -149,5 +149,10 @@
|
||||
"EnvelopeReceiverReadOnly": [ "TBSIG_ENVELOPE_RECEIVER_READ_ONLY_UPD" ],
|
||||
"Receiver": []
|
||||
},
|
||||
"MainPageTitle": null
|
||||
"MainPageTitle": null,
|
||||
"AnnotationParams": {
|
||||
"Annotations": {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user