chore: moved TheManager, moved login button

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-17 13:17:53 +02:00
parent 4d0045c7bd
commit 0a8a58ee17
7 changed files with 26 additions and 27 deletions

View file

@ -1,5 +1,6 @@
@page "/sys/modmenu/boards"
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
<AuthorizeView Roles="Admin">
<Authorized>
<h3>Boards</h3>

View file

@ -1,7 +1,5 @@
@using System.ComponentModel.DataAnnotations
@using ImageBoardServerApp.Data
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
@using System.ComponentModel.DataAnnotations
<img class="banner" src="img/static/banner/@board.Tag ban.png" alt="No Banner found"/>
<PageTitle>/@board.Tag/ - @board.Topic - BulletBoard</PageTitle>

View file

@ -1,5 +1,6 @@
@using ImageBoardServerApp.Auth
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
@using System.Text.RegularExpressions
@using System.ComponentModel.DataAnnotations
@inject AuthenticationStateProvider authStateProvider

View file

@ -1,13 +1,7 @@
@using Radzen
@using System.ComponentModel.DataAnnotations
@using System.IO.Pipelines
@using System.Net.Mime
@using System.Reflection
@using System.Runtime.CompilerServices
@using System.ComponentModel.DataAnnotations
@using ImageBoardServerApp.Auth
@using ImageBoardServerApp.Data
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
@inject NavigationManager NavigationManager
@inject IWebHostEnvironment env
@inject AuthenticationStateProvider authStateProvider

View file

@ -1,4 +1,5 @@
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
@using ImageBoardServerApp.Auth
@using System.ComponentModel.DataAnnotations
@using System.Text.RegularExpressions

View file

@ -5,15 +5,7 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">BB v0.2.3</a>
<AuthorizeView>
<Authorized>
<a class="navbar-brand" @onclick="logout" href="javascript:void(0)" >[Logout]</a>
</Authorized>
<NotAuthorized>
<a class="navbar-brand" href="/sys/login">[Login]</a>
</NotAuthorized>
</AuthorizeView>
<a class="navbar-brand" href="">BulletBoard v0.2.3</a>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
</button>
@ -22,11 +14,22 @@
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
<nav class="flex-column">
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> Home
</NavLink>
</div>
<AuthorizeView>
<Authorized>
<div class="nav-item px-3">
<NavLink class="nav-link" @onclick="logout" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> >> Logout
</NavLink>
</div>
</Authorized>
<NotAuthorized>
<div class="nav-item px-3">
<NavLink class="nav-link" href="/sys/login" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> >> Login
</NavLink>
</div>
</NotAuthorized>
</AuthorizeView>
@foreach (BoardData b in boards)
{
<div class="nav-item px-3">

View file

@ -1,6 +1,7 @@
using ImageBoardServerApp.Data;
using ImageBoardServerApp.Data.Repository;
namespace ImageBoardServerApp.Data;
namespace ImageBoardServerApp.Util;
public class TheManager
{