From 197096305b92e68a8bed7a675450f7add2eebbec Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 12 Jul 2023 09:53:12 +0800 Subject: [PATCH] refactor: logic of comment data filtering (#4195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area console /kind improvement /milestone 2.8.x #### What this PR does / why we need it: 重构评论数据管理的筛选条件逻辑以及 UI。 image Ref https://github.com/halo-dev/halo/pull/4182 Ref https://github.com/halo-dev/halo/issues/4181 #### Special notes for your reviewer: 需要测试: 1. 测试评论的筛选条件包括关键词筛选功能是否正常。 #### Does this PR introduce a user-facing change? ```release-note 重构 Console 端评论数据列表的筛选项 UI 和逻辑。 ``` --- console/src/locales/en.yaml | 1 - console/src/locales/zh-CN.yaml | 1 - console/src/locales/zh-TW.yaml | 1 - .../modules/contents/comments/CommentList.vue | 288 ++++++------------ 4 files changed, 93 insertions(+), 198 deletions(-) diff --git a/console/src/locales/en.yaml b/console/src/locales/en.yaml index 9e7361896..cc000f595 100644 --- a/console/src/locales/en.yaml +++ b/console/src/locales/en.yaml @@ -424,7 +424,6 @@ core: filters: status: items: - all: All approved: Approved pending_review: Pending Review owner: diff --git a/console/src/locales/zh-CN.yaml b/console/src/locales/zh-CN.yaml index f24c64e67..f2326d10b 100644 --- a/console/src/locales/zh-CN.yaml +++ b/console/src/locales/zh-CN.yaml @@ -424,7 +424,6 @@ core: filters: status: items: - all: 全部 approved: 已审核 pending_review: 待审核 owner: diff --git a/console/src/locales/zh-TW.yaml b/console/src/locales/zh-TW.yaml index 2d45ec38f..1756713d2 100644 --- a/console/src/locales/zh-TW.yaml +++ b/console/src/locales/zh-TW.yaml @@ -424,7 +424,6 @@ core: filters: status: items: - all: 全部 approved: 已審核 pending_review: 待審核 owner: diff --git a/console/src/modules/contents/comments/CommentList.vue b/console/src/modules/contents/comments/CommentList.vue index 2a589481a..e538cc85e 100644 --- a/console/src/modules/contents/comments/CommentList.vue +++ b/console/src/modules/contents/comments/CommentList.vue @@ -1,6 +1,5 @@