Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
@inherits LayoutComponentBase
|
||||
@inject IAuthService AuthService
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
<RadzenLayout>
|
||||
<RadzenHeader class="navbar-fixed-top">
|
||||
<div class="navbar-container">
|
||||
<div class="navbar-left">
|
||||
<a href="/" class="navbar-brand">JDE Scoping Tool</a>
|
||||
<nav class="navbar-nav">
|
||||
<NavLink class="nav-link" href="/" Match="NavLinkMatch.All">Searches</NavLink>
|
||||
<NavLink class="nav-link" href="/search">New Search</NavLink>
|
||||
<NavLink class="nav-link" href="/search/queue">Search Queue</NavLink>
|
||||
<NavLink class="nav-link" href="/refresh-status">Refresh Status</NavLink>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<span class="navbar-user">@context.User.Identity?.Name</span>
|
||||
<RadzenButton Text="Logout" ButtonStyle="ButtonStyle.Light" Size="ButtonSize.Small" Click="@LogoutAsync" />
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<RadzenButton Text="Login" ButtonStyle="ButtonStyle.Primary" Size="ButtonSize.Small" Click="@GoToLogin" />
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
</div>
|
||||
</div>
|
||||
</RadzenHeader>
|
||||
|
||||
<RadzenBody class="main-body">
|
||||
<div class="body-content">
|
||||
<div class="container-fluid">
|
||||
@Body
|
||||
</div>
|
||||
</div>
|
||||
</RadzenBody>
|
||||
|
||||
<RadzenFooter>
|
||||
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.Center" Gap="0" class="rz-px-4">
|
||||
<RadzenText TextStyle="TextStyle.Caption" class="rz-m-0">
|
||||
JDE Scoping Tool Version 4
|
||||
</RadzenText>
|
||||
</RadzenStack>
|
||||
</RadzenFooter>
|
||||
</RadzenLayout>
|
||||
|
||||
<RadzenDialog />
|
||||
<RadzenNotification />
|
||||
<RadzenContextMenu />
|
||||
<RadzenTooltip />
|
||||
|
||||
@code {
|
||||
private async Task LogoutAsync()
|
||||
{
|
||||
await AuthService.LogoutAsync();
|
||||
NavigationManager.NavigateTo("/login");
|
||||
}
|
||||
|
||||
private void GoToLogin()
|
||||
{
|
||||
NavigationManager.NavigateTo("/login");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user