mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-09 06:34:02 +02:00
19 lines
309 B
Plaintext
19 lines
309 B
Plaintext
@page "/"
|
|
@inherits Phantom.Web.Components.PhantomComponent
|
|
|
|
<h1>Home</h1>
|
|
|
|
@if (username != null) {
|
|
<p>Welcome back, @username!</p>
|
|
}
|
|
|
|
@code {
|
|
|
|
private string? username = null;
|
|
|
|
protected override async Task OnInitializedAsync() {
|
|
username = (await GetAuthenticatedUser())?.Info.Name;
|
|
}
|
|
|
|
}
|