2023-02-12 16:01:46 +00:00
|
|
|
@page "/sys/reports"
|
2023-02-11 22:04:02 +00:00
|
|
|
@using ImageBoardServerApp.Data.Repository
|
2023-02-12 16:01:46 +00:00
|
|
|
<AuthorizeView>
|
|
|
|
<Authorized>
|
|
|
|
<h3>Reports</h3>
|
|
|
|
@foreach (var r in reports)
|
|
|
|
{
|
|
|
|
<Report report="r"/>
|
|
|
|
<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
|
|
|
}
|