Replaced direct injection of HttpClient with IHttpClientFactory across the codebase to improve HTTP client management and align with best practices. Removed dependency on ApiOptions and IOptions<ApiOptions> in multiple services, simplifying constructors and reducing configuration complexity. Updated FontLoader to use IHttpClientFactory for font loading with relative paths. Adjusted comments and documentation to reflect these changes. Cleaned up unused using directives related to ApiOptions.
28 lines
876 B
Plaintext
28 lines
876 B
Plaintext
@using EnvelopeGenerator.Server.Client.Services;
|
|
@inherits LayoutComponentBase
|
|
|
|
<div class="page">
|
|
<main>
|
|
<article class="content">
|
|
@Body
|
|
</article>
|
|
</main>
|
|
<footer class="receiver-footer">
|
|
<span>© SignFlow 2023-2024 <a href="https://digitaldata.works" target="_blank" rel="noopener">Digital Data GmbH</a></span>
|
|
<span class="receiver-footer__sep">|</span>
|
|
<a href="docs/privacy-policy.de-DE.html" target="_blank" rel="noopener">Datenschutz</a>
|
|
</footer>
|
|
</div>
|
|
|
|
@code {
|
|
[Inject] IHttpClientFactory HttpClientFactory { get; set; } = default!;
|
|
|
|
List<string> RequiredFonts = new() {
|
|
"opensans.ttf"
|
|
};
|
|
|
|
protected async override Task OnInitializedAsync() {
|
|
await FontLoader.LoadFonts(HttpClientFactory, RequiredFonts);
|
|
await base.OnInitializedAsync();
|
|
}
|
|
} |