Implemented db entities. Adjusted template default values

This commit is contained in:
2024-12-05 16:49:47 +01:00
parent 3392407890
commit 3b77b3df1e
21 changed files with 1385 additions and 75 deletions

View File

@@ -11,11 +11,11 @@ public class SidebarImplementation : ISidebarItemProvider
[
new SidebarItem()
{
Name = "Example",
Path = "/example",
Icon = "icon-moon",
Group = "MoonlightServers",
Priority = 1
Name = "Servers",
Path = "/admin/servers",
Icon = "icon-server",
Group = "Admin",
Priority = 4
}
];
}

View File

@@ -0,0 +1,2 @@
@page "/admin/servers"

View File

@@ -1,25 +0,0 @@
@page "/example"
@using MoonCore.Helpers
@using MoonCore.Blazor.Tailwind.Components
@using MoonlightServers.Shared.Http.Responses
@inject HttpApiClient ApiClient
<h3 class="text-primary-500 mb-8">Welcome to this example page</h3>
<LazyLoader Load="Load">
<h1 class="text-center text-zinc-500">
@Response.Number
</h1>
</LazyLoader>
@code
{
private ExampleResponse Response;
private async Task Load(LazyLoader _)
{
Response = await ApiClient.GetJson<ExampleResponse>("api/example");
}
}