feat: added User Screen for admins

This commit is contained in:
limited_dev 2023-02-12 19:06:33 +01:00
parent 0279df06fa
commit df1ac86636
11 changed files with 163 additions and 31 deletions

View file

@ -6,7 +6,7 @@
}
else
{
<span> /@report.ReportedComment/ </span>
<span> /@report.ReportedComment.Board/ </span>
}
<span>#@report.ReportID</span>
<span>@report.Type</span>

View file

@ -0,0 +1,16 @@
@using System.ComponentModel.DataAnnotations
<span>@user.Email | </span>
<span>@user.Posts.Count Posts | </span>
<span>@user.Comments.Count Comments | </span>
<span>@user.SubmittedReports.Count Reports submitted | </span>
<span>@user.RecivedReports.Count Reports recived | </span>
<span>@user.Role</span>
<br/>
@code {
[Parameter]
[Required]
public UserData user { get; set; }
}

View file

@ -65,5 +65,4 @@
await customAuthStateProvider.UpdateAuthenticationStateAsync(null);
navManager.NavigateTo("/", true);
}
}