39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
@inherits LayoutComponentBase
|
|
|
|
@using Microsoft.AspNetCore.Authorization
|
|
@using TIAMSharedUI.Pages
|
|
@using TIAMSharedUI.Shared.Users
|
|
@using AyCode.Interfaces.StorageHandlers;
|
|
@using AyCode.Services.Loggers
|
|
@using TIAMSharedUI.Shared.Components
|
|
@using TIAMWebApp.Shared.Application.Interfaces
|
|
@inject NavigationManager NavManager
|
|
@inject IJSRuntime jsRuntime
|
|
@inject ISecureStorageHandler SecureStorageHandler
|
|
@inject ISessionService sessionService
|
|
@inject IEnumerable<IAcLogWriterClientBase> LogWriters
|
|
@inject IUserDataService userDataService
|
|
@attribute [Authorize]
|
|
|
|
|
|
<div class="page">
|
|
<TiamErrorBoundaryComponent LoggerCategory="AdminLayout" OnError="HandleError">
|
|
|
|
<AdminNavMenu />
|
|
<NavHelperComponent />
|
|
|
|
<main>
|
|
<article class="content">
|
|
@Body
|
|
</article>
|
|
</main>
|
|
</TiamErrorBoundaryComponent>
|
|
</div>
|
|
|
|
@code {
|
|
public PopupMessageBox PopupMessageBox { get; private set; } = default!;
|
|
|
|
private void HandleError(Exception exception) => jsRuntime.InvokeVoidAsync("alert", "An unexpected error occurred. Please try again later.");
|
|
}
|
|
|