diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/HealthCheckDetails.razor b/src/blazor/admin/BootstrapAdmin.Web/Components/HealthCheckDetails.razor new file mode 100644 index 00000000..be86d4c0 --- /dev/null +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/HealthCheckDetails.razor @@ -0,0 +1,10 @@ + + + + + + + +
diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/HealthCheckDetails.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Components/HealthCheckDetails.razor.cs new file mode 100644 index 00000000..7bf37ee5 --- /dev/null +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/HealthCheckDetails.razor.cs @@ -0,0 +1,31 @@ +using Bootstrap.Security.Blazor.HealthChecks; + +namespace BootstrapAdmin.Web.Components; + +public partial class HealthCheckDetails +{ + [Parameter] + [EditorRequired] + [NotNull] + public IDictionary? Data { get; set; } + + [NotNull] + private List? Items { get; set; } + + /// + /// + /// + protected override void OnInitialized() + { + base.OnInitialized(); + + Items = Data.Select(d => new SelectedItem(d.Key, d.Value?.ToString() ?? "")).ToList(); + } + + private static MarkupString GetText(string? value) + { + var ret = value ?? ""; + ret = ret.Replace("\n", "
"); + return new MarkupString(ret); + } +}