50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
@inherits LayoutComponentBase
|
|
|
|
@using Microsoft.AspNetCore.Authorization
|
|
@using TIAMSharedUI.Shared.Users
|
|
@using AyCode.Core.Extensions
|
|
@using AyCode.Interfaces.StorageHandlers;
|
|
@using AyCode.Services.Loggers
|
|
@using Newtonsoft.Json;
|
|
@using TIAMSharedUI.Pages
|
|
@using TIAMSharedUI.Shared.Components
|
|
@using TIAMWebApp.Shared.Application.Interfaces
|
|
@using TIAMWebApp.Shared.Application.Models.ClientSide;
|
|
@using AyCode.Blazor.Components;
|
|
@using TIAMWebApp.Shared.Application.Models;
|
|
@using TIAMWebApp.Shared.Application.Utility;
|
|
@using System.IdentityModel.Tokens.Jwt;
|
|
@using System.Runtime.CompilerServices
|
|
@using TIAM.Core.Loggers;
|
|
@using System.Diagnostics
|
|
@using AyCode.Utils.Extensions
|
|
@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">
|
|
<div class="my-sidebar">
|
|
<AdminNavMenu />
|
|
</div>
|
|
|
|
<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.");
|
|
}
|
|
|