From f3b3b3cacb01c22322378ddaff5e70b986235813 Mon Sep 17 00:00:00 2001 From: Tim <135014430+nagisa77@users.noreply.github.com> Date: Wed, 9 Jul 2025 18:15:53 +0800 Subject: [PATCH 1/4] feat(ui): add topic switching --- open-isle-cli/src/views/HomePageView.vue | 124 ++++++++++++++--------- 1 file changed, 75 insertions(+), 49 deletions(-) diff --git a/open-isle-cli/src/views/HomePageView.vue b/open-isle-cli/src/views/HomePageView.vue index ff34318b3..e6931d563 100644 --- a/open-isle-cli/src/views/HomePageView.vue +++ b/open-isle-cli/src/views/HomePageView.vue @@ -9,7 +9,13 @@
-
+
{{ topic }}
@@ -18,60 +24,71 @@
-
-
-
话题
-
-
-
参与人员
-
-
-
回复
-
-
-
浏览
-
-
-
活动
-
-
- -
- -
- -
-
-
暂时没有帖子 :( 点击发帖发送第一篇相关帖子吧!
-
-
- -
-
- - {{ article.title }} - -
{{ sanitizeDescription(article.description) }}
- @@ -325,4 +342,13 @@ export default { height: 100%; object-fit: cover; } + +.placeholder-container { + display: flex; + justify-content: center; + align-items: center; + height: 200px; + font-size: 16px; + opacity: 0.7; +} From 4627d34dbe29c127fdea37b955cb8a2d93432d91 Mon Sep 17 00:00:00 2001 From: Tim <135014430+nagisa77@users.noreply.github.com> Date: Wed, 9 Jul 2025 18:17:35 +0800 Subject: [PATCH 2/4] Implement reaction panel with backend support --- open-isle-cli/src/components/CommentItem.vue | 26 +-- .../src/components/ReactionsGroup.vue | 172 ++++++++++++++++++ open-isle-cli/src/views/PostPageView.vue | 36 ++-- .../controller/ReactionController.java | 6 + .../java/com/openisle/model/Reaction.java | 4 +- .../repository/ReactionRepository.java | 4 +- .../com/openisle/service/ReactionService.java | 16 +- 7 files changed, 213 insertions(+), 51 deletions(-) create mode 100644 open-isle-cli/src/components/ReactionsGroup.vue diff --git a/open-isle-cli/src/components/CommentItem.vue b/open-isle-cli/src/components/CommentItem.vue index e4dfcd4a0..0dad7f7e9 100644 --- a/open-isle-cli/src/components/CommentItem.vue +++ b/open-isle-cli/src/components/CommentItem.vue @@ -18,27 +18,14 @@