mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-01-12 17:58:15 +01:00
19 lines
283 B
Plaintext
19 lines
283 B
Plaintext
@page "/"
|
|
@inherits 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;
|
|
}
|
|
|
|
}
|