@using ImageBoardServerApp.Util
@using ImageBoardServerApp.Data.Repository
@inject AuthenticationStateProvider authStateProvider
@inject NavigationManager navManager
@code {
public string ver { get; set; } = TheManager.version;
private bool collapseNavMenu = true;
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
private void ToggleNavMenu()
{
collapseNavMenu = !collapseNavMenu;
}
public List boards { get; set; }
protected override async Task OnParametersSetAsync()
{
await base.OnParametersSetAsync();
boards = await BoardsRepository.getBoardsAsync();
}
}