Implemented db entities. Adjusted template default values
This commit is contained in:
@@ -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
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
2
MoonlightServers.Frontend/UI/Views/Admin/Index.razor
Normal file
2
MoonlightServers.Frontend/UI/Views/Admin/Index.razor
Normal file
@@ -0,0 +1,2 @@
|
||||
@page "/admin/servers"
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user