2023-03-11 02:50:07 +01:00
|
|
|
@page "/sys/modmenu/reports"
|
2023-02-11 23:04:02 +01:00
|
|
|
@using ImageBoardServerApp.Data.Repository
|
2023-02-13 18:45:14 +01:00
|
|
|
<AuthorizeView Roles="Admin,Mod">
|
2023-02-12 17:01:46 +01:00
|
|
|
<Authorized>
|
|
|
|
<h3>Reports</h3>
|
|
|
|
@foreach (var r in reports)
|
|
|
|
{
|
2023-02-13 18:45:14 +01:00
|
|
|
<ReportEntry report="r"/>
|
2023-02-12 17:01:46 +01:00
|
|
|
<hr/>
|
|
|
|
}
|
|
|
|
</Authorized>
|
|
|
|
<NotAuthorized>
|
|
|
|
<DeadLink/>
|
|
|
|
</NotAuthorized>
|
|
|
|
</AuthorizeView>
|
|
|
|
|
2023-02-11 23:04:02 +01:00
|
|
|
|
2023-02-07 21:21:38 +01:00
|
|
|
@code {
|
2023-02-11 23:04:02 +01:00
|
|
|
private List<ReportData> reports;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
{
|
|
|
|
reports = await ReportsRepository.getReportsAsync();
|
|
|
|
Console.WriteLine("Opened Reports");
|
|
|
|
}
|
2023-02-07 21:21:38 +01:00
|
|
|
}
|