feat: added images for ban screen, added reportscreen, added reportsscreen for mods & admins

This commit is contained in:
limited_dev 2023-02-11 23:04:02 +01:00
parent 75d75a2c84
commit cb7ca62590
43 changed files with 358 additions and 46 deletions

View file

@ -10,8 +10,6 @@
<PageFooter/>
</div>
<br/>
<br/>
@ -28,11 +26,6 @@
}
}
<!--Admin -->
<!--Moderator -->
<!--Janitor -->
@code {
private List<PostData> posts;

View file

@ -1,5 +1,13 @@
<ul class="notesInfo">
<li>The max. image size is 2MiB.</li>
<li>Supported file types are: jpeg, png & gif</li>
<li>Read the rules before posting</li>
</ul>
<div class="notesInfo">
<span>The max. image size is 2MiB.</span>
<br/>
<span>Supported file types are: jpeg, png & gif</span>
<br/>
<div>
<span>Read the </span>
<a href="/rules">rules</a>
<span> and </span>
<a href="/faq">faq</a>
<span> before posting</span>
</div>
</div>

View file

@ -0,0 +1,47 @@
@using System.ComponentModel.DataAnnotations
<div>
@if (report.Type == "op")
{
<span> /@report.ReportedPost.Board/ </span>
}
else
{
<span> /@report.ReportedComment/ </span>
}
<span>#@report.ReportID</span>
<span>@report.Type</span>
<br/>
<span>Reason: @report.ReportReason</span>
<br/>
<span>Explaination: @report.ReportExlaination</span>
<br/>
<a @onclick="@banTarget" href="javascript:void(0)">Ban Reported User</a>
<br/>
<a @onclick="@banReporter" href="javascript:void(0)" >Ban Reporter</a>
<br/>
@if (report.Type == "op")
{
<Post post="report.ReportedPost" showOpenThread="true"></Post>
}
else
{
<Comment comment="report.ReportedComment"></Comment>
}
</div>
@code {
[Parameter]
[Required]
public ReportData report { get; set; }
private async Task banTarget()
{
}
private async Task banReporter()
{
}
}

View file

@ -1,5 +0,0 @@
<h3>Reports</h3>
@code {
}