Recreated project with project template

This commit is contained in:
2024-12-05 15:35:23 +01:00
parent 7659403dc8
commit 3392407890
76 changed files with 2020 additions and 2922 deletions

View File

@@ -0,0 +1,25 @@
@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");
}
}