diff --git a/ImageBoardServerApp/Pages/Basic/ThreadPage.razor b/ImageBoardServerApp/Pages/Basic/ThreadPage.razor index d6c3dfc..a709fe3 100644 --- a/ImageBoardServerApp/Pages/Basic/ThreadPage.razor +++ b/ImageBoardServerApp/Pages/Basic/ThreadPage.razor @@ -12,7 +12,9 @@
} - +
+ +
@code { [Parameter] diff --git a/ImageBoardServerApp/Pages/Basic/ThreadPage.razor.css b/ImageBoardServerApp/Pages/Basic/ThreadPage.razor.css new file mode 100644 index 0000000..2ef23fb --- /dev/null +++ b/ImageBoardServerApp/Pages/Basic/ThreadPage.razor.css @@ -0,0 +1,3 @@ +.Form{ + text-align: center; +} \ No newline at end of file diff --git a/ImageBoardServerApp/Program.cs b/ImageBoardServerApp/Program.cs index e18ea05..a1e72ce 100644 --- a/ImageBoardServerApp/Program.cs +++ b/ImageBoardServerApp/Program.cs @@ -39,7 +39,7 @@ using (var serviceScope = app.Services.CreateScope()) context.Database.EnsureCreated(); } -ImageThumbnailOptions options = new ImageThumbnailOptions("wwwroot/img/", "wwwroot/img/thumb"); +ImageThumbnailOptions options = new ImageThumbnailOptions("wwwroot/img/", "thumb"); options.ImageQuality = 75L; app.UseImageThumbnail(options); diff --git a/ImageBoardServerApp/Shared/Components/ReportEntry.razor b/ImageBoardServerApp/Shared/Components/ReportEntry.razor index 57d1d53..3069d7b 100644 --- a/ImageBoardServerApp/Shared/Components/ReportEntry.razor +++ b/ImageBoardServerApp/Shared/Components/ReportEntry.razor @@ -1,5 +1,6 @@ @using System.ComponentModel.DataAnnotations @using ImageBoardServerApp.Data.Repository +@inject NavigationManager navigationManager
@if (report.Type == "op") { @@ -38,6 +39,8 @@ 99M Tage
+ Done +
@if (report.Type == "op") { @@ -59,6 +62,7 @@ UserData user = report.UserReported; user.TimeBanned = DateTimeOffset.Now.AddDays(days).ToUnixTimeMilliseconds(); await UsersRepository.updateUserAsync(user); + await removeReport(); } private async Task banReporter(int days) @@ -66,5 +70,12 @@ UserData user = report.UserReporter; user.TimeBanned = DateTimeOffset.Now.AddDays(days).ToUnixTimeMilliseconds(); await UsersRepository.updateUserAsync(user); + await removeReport(); + } + + private async Task removeReport() + { + await ReportsRepository.deleteReportAsync(report.ReportID); + navigationManager.NavigateTo("/sys/reports", true, true); } } \ No newline at end of file diff --git a/ImageBoardServerApp/wwwroot/img/static/logo.png b/ImageBoardServerApp/wwwroot/img/static/logo.png index a0bc58a..4ce8f99 100644 Binary files a/ImageBoardServerApp/wwwroot/img/static/logo.png and b/ImageBoardServerApp/wwwroot/img/static/logo.png differ