+ Request ID: @RequestId
+
+ Swapping to Development environment will display more detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
+ +@code{ + [CascadingParameter] private HttpContext? HttpContext { get; set; } + + private string? RequestId { get; set; } + private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + protected override void OnInitialized() => + RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; + +} \ No newline at end of file diff --git a/src/MaIN.InferPage/Components/Pages/Home.razor b/src/MaIN.InferPage/Components/Pages/Home.razor new file mode 100644 index 00000000..fec64b49 --- /dev/null +++ b/src/MaIN.InferPage/Components/Pages/Home.razor @@ -0,0 +1,183 @@ +@page "/" +@rendermode @(new InteractiveServerRenderMode(prerender: true)) +@inject IJSRuntime JS +@using MaIN.Core.Hub +@using MaIN.Core.Hub.Contexts +@using MaIN.Domain.Entities +@using Markdig +@using Microsoft.FluentUI.AspNetCore.Components.Icons.Regular +@using Message = MaIN.Domain.Entities.Message + + +