feat: added /sys/ to all system pages, edited 404 page, added deadlink, moar changes

This commit is contained in:
limited_dev 2023-02-12 17:01:46 +01:00
parent 2d458fd2f2
commit 0279df06fa
24 changed files with 90 additions and 41 deletions

View file

@ -1,4 +1,4 @@
@page "/banned"
@page "/sys/banned"
<h3>Banned</h3>
<img class="image" src="img/static/banned/@i"/>

View file

@ -1,4 +1,4 @@
@page "/login"
@page "/sys/login"
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Auth
@inject IJSRuntime js

View file

@ -1,4 +1,4 @@
@page "/register"
@page "/sys/register"
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Auth
@inject IJSRuntime js

View file

@ -0,0 +1,6 @@
@page "/sys/you"
<h3>UserPage</h3>
@code {
}

View file

@ -0,0 +1,10 @@
@page "/sys/dead"
<h3>DeadLink</h3>
<img class="deadlink" src="img/static/deadlink/1.png" alt="Img is dead as well"/>
<span>This link is dead.</span>
<br/>
<a href="/">Return home</a>
@code {
}

View file

@ -0,0 +1,7 @@
.deadlink{
justify-content: center;
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}

View file

@ -1,4 +1,4 @@
@page "/faq"
@page "/sys/faq"
<h3>FAQ</h3>
@code {

View file

@ -1,4 +1,4 @@
@page "/rules"
@page "/sys/rules"
<div class="rules_headline">
<h3>Rules</h3>
</div>

View file

@ -1,4 +1,4 @@
@page "/report/{type}/{board}/{id}"
@page "/sys/report/{type}/{board}/{id}"
@using System.ComponentModel.DataAnnotations
@using System.Data
@using ImageBoardServerApp.Auth

View file

@ -1,20 +1,19 @@
@page "/modmenu"
@page "/sys/modmenu"
@using ImageBoardServerApp.Auth
@inject AuthenticationStateProvider authStateProvider
@inject NavigationManager navManager
<h3>ModMenu</h3>
<AuthorizeView>
<Authorized>
<h3>ModMenu</h3>
<span>Welcome @mail to the mod menu</span>
<div>
<a href="/modmenu/reports">[Reports]</a>
<a href="/modmenu/users">[Users]</a>
<a href="/sys/reports">[Reports]</a>
<a href="/sys/users">[Users]</a>
</div>
</Authorized>
<NotAuthorized>
<a href="/login">You do not have permission to view this menu.</a>
<DeadLink/>
</NotAuthorized>
</AuthorizeView>
@code {

View file

@ -1,11 +1,19 @@
@page "/modmenu/reports"
@page "/sys/reports"
@using ImageBoardServerApp.Data.Repository
<h3>Reports</h3>
@foreach (var r in reports)
{
<Report report="r"/>
<hr/>
}
<AuthorizeView>
<Authorized>
<h3>Reports</h3>
@foreach (var r in reports)
{
<Report report="r"/>
<hr/>
}
</Authorized>
<NotAuthorized>
<DeadLink/>
</NotAuthorized>
</AuthorizeView>
@code {
private List<ReportData> reports;

View file

@ -1,6 +1,13 @@
@page "/modmenu/users"
<h3>UsersPage</h3>
@page "/sys/users"
<AuthorizeView>
<Authorized>
<h3>Users</h3>
</Authorized>
<NotAuthorized>
<DeadLink/>
</NotAuthorized>
</AuthorizeView>
@code {
}

View file

@ -1,4 +1,4 @@
@page "/SuccessfulPost"
@page "/sys/SuccessfulPost"
<h3>SuccessfulPost</h3>
<span>Post sucessfully crated!</span>

View file

@ -1,4 +1,4 @@
@page "/UnSuccessfulPost"
@page "/sys/UnSuccessfulPost"
<h3>UnuccessfulPost</h3>
<span>Post was not created!</span>