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