diff --git a/src/Moonglade.Web/Pages/Admin/Comments.cshtml b/src/Moonglade.Web/Pages/Admin/Comments.cshtml index 4ddebf2a8..f24ab9a9e 100644 --- a/src/Moonglade.Web/Pages/Admin/Comments.cshtml +++ b/src/Moonglade.Web/Pages/Admin/Comments.cshtml @@ -191,8 +191,9 @@ } } + @Html.PagedListPager(Model.CommentDetailedItems, page => $"?pageIndex={page}", new() { - UlElementClasses = new[] { "pagination mt-3" } + UlElementClasses = ["pagination mt-3"] }) \ No newline at end of file diff --git a/src/Moonglade.Web/Pages/Admin/Post.cshtml b/src/Moonglade.Web/Pages/Admin/Post.cshtml index 611377843..d5d8eabf2 100644 --- a/src/Moonglade.Web/Pages/Admin/Post.cshtml +++ b/src/Moonglade.Web/Pages/Admin/Post.cshtml @@ -98,8 +98,8 @@ } @Html.PagedListPager(Model.PostSegments, page => $"?pageIndex={page}&searchTerm={Model.SearchTerm}", new() -{ - UlElementClasses = new[] { "pagination mt-4" } -}) + { + UlElementClasses = ["pagination mt-4"] + }) } \ No newline at end of file diff --git a/src/Moonglade.Web/Program.cs b/src/Moonglade.Web/Program.cs index 3fe527825..5de1aa582 100644 --- a/src/Moonglade.Web/Program.cs +++ b/src/Moonglade.Web/Program.cs @@ -137,15 +137,14 @@ private static void ConfigureCaptcha(IServiceCollection services, IConfiguration if (bool.Parse(configuration["BlockPRCFuryCode"]!)) { - magics.AddRange(new[] - { + magics.AddRange([ Helper.GetMagic(0x7DB14, 21, 25), Helper.GetMagic(0x78E10, 13, 17), Helper.GetMagic(0x17808, 34, 38), Helper.GetMagic(0x1B5ED, 4, 8), Helper.GetMagic(0x9CFB, 25, 29), "NMSL", "CNMB", "MDZZ", "TNND" - }); + ]); } options.FontStyle = FontStyle.Bold;