Add .NET 8 templated projects.

This commit is contained in:
2024-05-02 07:43:47 +01:00
parent ad76c620c2
commit e306bf272c
77 changed files with 4291 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
@inherits LayoutComponentBase
@layout Aaru.Server.New.Components.Layout.MainLayout
@inject NavigationManager NavigationManager
@if(HttpContext is null)
{
<p>Loading...</p>
}
else
{
@Body
}
@code {
[CascadingParameter]
private HttpContext? HttpContext { get; set; }
protected override void OnParametersSet()
{
if(HttpContext is null)
{
// If this code runs, we're currently rendering in interactive mode, so there is no HttpContext.
// The identity pages need to set cookies, so they require an HttpContext. To achieve this we
// must transition back from interactive mode to a server-rendered page.
NavigationManager.Refresh(forceReload: true);
}
}
}