2023-03-11 01:50:07 +00:00
|
|
|
@page "/sys/modmenu/users"
|
2023-02-12 18:06:33 +00:00
|
|
|
@using ImageBoardServerApp.Data.Repository
|
2023-02-13 17:45:14 +00:00
|
|
|
<AuthorizeView Roles="Admin">
|
2023-02-12 16:01:46 +00:00
|
|
|
<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
|
|
|
}
|