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" @page "/sys/modmenu/boards"
@using ImageBoardServerApp.Data.Repository @using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
<AuthorizeView Roles="Admin"> <AuthorizeView Roles="Admin">
<Authorized> <Authorized>
<h3>Boards</h3> <h3>Boards</h3>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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