2023-02-12 16:01:46 +00:00
|
|
|
@page "/sys/users"
|
2023-02-12 18:06:33 +00:00
|
|
|
@using ImageBoardServerApp.Data.Repository
|
2023-02-12 16:01:46 +00:00
|
|
|
<AuthorizeView>
|
|
|
|
<Authorized>
|
|
|
|
<h3>Users</h3>
|
2023-02-12 18:06:33 +00:00
|
|
|
@foreach (var u in users)
|
|
|
|
{
|
|
|
|
<UserEntry user="u"/>
|
|
|
|
<hr/>
|
|
|
|
}
|
2023-02-12 16:01:46 +00:00
|
|
|
</Authorized>
|
|
|
|
<NotAuthorized>
|
|
|
|
<DeadLink/>
|
|
|
|
</NotAuthorized>
|
|
|
|
</AuthorizeView>
|
2023-02-07 20:47:28 +00:00
|
|
|
@code {
|
2023-02-12 18:06:33 +00:00
|
|
|
private List<UserData> users { get; set; }
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
{
|
|
|
|
users = await UsersRepository.getUsersAsync();
|
|
|
|
}
|
|
|
|
|
2023-02-07 20:47:28 +00:00
|
|
|
}
|