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