Recreated plugin with new project template. Started implementing server system daemon
This commit is contained in:
43
MoonlightServers.Frontend/UI/Views/Demo.razor
Normal file
43
MoonlightServers.Frontend/UI/Views/Demo.razor
Normal file
@@ -0,0 +1,43 @@
|
||||
@page "/demo"
|
||||
@using LucideBlazor
|
||||
@using MoonlightServers.Frontend.UI.Components
|
||||
@using ShadcnBlazor.Buttons
|
||||
@using ShadcnBlazor.Cards
|
||||
@using ShadcnBlazor.Extras.Dialogs
|
||||
|
||||
@inject DialogService DialogService
|
||||
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-5">
|
||||
<Card ClassName="col-span-1">
|
||||
<CardHeader>
|
||||
<CardTitle>Demo</CardTitle>
|
||||
<CardDescription>A cool demo page</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
You successfully used the plugin template to create your moonlight plugin :)
|
||||
</CardContent>
|
||||
<CardFooter>
|
||||
<Button>
|
||||
<Slot>
|
||||
<a @attributes="context" href="https://moonlightpa.nl/dev">
|
||||
<ExternalLinkIcon/>
|
||||
Visit documentation
|
||||
</a>
|
||||
</Slot>
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
<Card>
|
||||
<CardContent>
|
||||
<Button @onclick="LaunchFormAsync" Variant="ButtonVariant.Outline">
|
||||
Open Form
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
@code
|
||||
{
|
||||
private async Task LaunchFormAsync()
|
||||
=> await DialogService.LaunchAsync<FormDialog>();
|
||||
}
|
||||
Reference in New Issue
Block a user