From f14677211ad3f410eb0caa6be76ca614c2c74468 Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Fri, 27 Sep 2024 07:19:34 +0800 Subject: [PATCH 01/80] Refactor _LightSwitch and remove unused components Centralized _LightSwitch partial to _Layout.cshtml and removed it from individual view files. Removed localized "No Archive" and "No Posts" messages from several views. Eliminated image zoom modal from Post.cshtml and PostPreview.cshtml. --- src/Moonglade.Web/Pages/Archive.cshtml | 2 -- src/Moonglade.Web/Pages/ArchiveList.cshtml | 2 -- src/Moonglade.Web/Pages/CategoryList.cshtml | 2 -- src/Moonglade.Web/Pages/Featured.cshtml | 2 -- src/Moonglade.Web/Pages/Index.cshtml | 2 -- src/Moonglade.Web/Pages/Post.cshtml | 2 -- src/Moonglade.Web/Pages/PostPreview.cshtml | 2 -- src/Moonglade.Web/Pages/Search.cshtml | 2 -- src/Moonglade.Web/Pages/Shared/_Layout.cshtml | 1 + src/Moonglade.Web/Pages/TagList.cshtml | 2 -- src/Moonglade.Web/Pages/Tags.cshtml | 2 -- 11 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/Moonglade.Web/Pages/Archive.cshtml b/src/Moonglade.Web/Pages/Archive.cshtml index 3f4f01598..ea077c25b 100644 --- a/src/Moonglade.Web/Pages/Archive.cshtml +++ b/src/Moonglade.Web/Pages/Archive.cshtml @@ -72,5 +72,3 @@ else - @SharedLocalizer["No Archive"] - } - - \ No newline at end of file diff --git a/src/Moonglade.Web/Pages/ArchiveList.cshtml b/src/Moonglade.Web/Pages/ArchiveList.cshtml index 43f8f2554..dcb707168 100644 --- a/src/Moonglade.Web/Pages/ArchiveList.cshtml +++ b/src/Moonglade.Web/Pages/ArchiveList.cshtml @@ -24,5 +24,3 @@ } } - - \ No newline at end of file diff --git a/src/Moonglade.Web/Pages/CategoryList.cshtml b/src/Moonglade.Web/Pages/CategoryList.cshtml index 46818f1b4..242a48915 100644 --- a/src/Moonglade.Web/Pages/CategoryList.cshtml +++ b/src/Moonglade.Web/Pages/CategoryList.cshtml @@ -28,5 +28,3 @@ else - @SharedLocalizer["No Posts"] - } - - \ No newline at end of file diff --git a/src/Moonglade.Web/Pages/Featured.cshtml b/src/Moonglade.Web/Pages/Featured.cshtml index 465bbd908..cdc442489 100644 --- a/src/Moonglade.Web/Pages/Featured.cshtml +++ b/src/Moonglade.Web/Pages/Featured.cshtml @@ -20,5 +20,3 @@ else @SharedLocalizer["No Posts"] } - - \ No newline at end of file diff --git a/src/Moonglade.Web/Pages/Index.cshtml b/src/Moonglade.Web/Pages/Index.cshtml index 7997a14fa..04b67055a 100644 --- a/src/Moonglade.Web/Pages/Index.cshtml +++ b/src/Moonglade.Web/Pages/Index.cshtml @@ -29,5 +29,3 @@ else @SharedLocalizer["No Posts"] } - - \ No newline at end of file diff --git a/src/Moonglade.Web/Pages/Post.cshtml b/src/Moonglade.Web/Pages/Post.cshtml index 23a8c0d08..248998206 100644 --- a/src/Moonglade.Web/Pages/Post.cshtml +++ b/src/Moonglade.Web/Pages/Post.cshtml @@ -224,8 +224,6 @@ } } - -