basic admin panel stuff

This commit is contained in:
Lapis
2026-06-17 13:39:28 -04:00
parent c20d215ee0
commit 004f1921a6
44 changed files with 3432 additions and 315 deletions
@@ -1,20 +1,30 @@
@inherits LayoutComponentBase
@using CannedNet.Admin.Services
@inherits LayoutComponentBase
@inject AdminAuthService AuthService
@inject NavigationManager Navigation
<div class="page">
<div class="sidebar">
<NavMenu />
</div>
@{
var body = Body;
}
<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
<AuthorizeView>
<Authorized>
<div class="page">
<div class="sidebar">
<NavMenu />
</div>
<main>
<article class="content px-4">
@body
</article>
</main>
</div>
<article class="content px-4">
@Body
</article>
</main>
</div>
</Authorized>
<NotAuthorized>
@body
</NotAuthorized>
</AuthorizeView>
<div id="blazor-error-ui" data-nosnippet>
An unhandled error has occurred.