From 1a485560484d8fd4dc44bb2f345125ebca23f08e Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Fri, 6 Oct 2023 19:50:09 +0800 Subject: [PATCH] pref: rebuild topic footer --- src/language/en.ts | 4 +- src/language/zh.ts | 3 +- src/views/topic/components/Master.vue | 17 +- src/views/topic/components/MasterFooter.vue | 431 ------------------ src/views/topic/components/footer/Dislike.vue | 147 ++++++ src/views/topic/components/footer/Footer.vue | 263 +++++++++++ src/views/topic/components/footer/Like.vue | 143 ++++++ src/views/topic/components/footer/Upvote.vue | 146 ++++++ src/views/topic/components/reply/Reply.vue | 22 +- .../topic/components/reply/ReplyFooter.vue | 417 ----------------- 10 files changed, 729 insertions(+), 864 deletions(-) delete mode 100644 src/views/topic/components/MasterFooter.vue create mode 100644 src/views/topic/components/footer/Dislike.vue create mode 100644 src/views/topic/components/footer/Footer.vue create mode 100644 src/views/topic/components/footer/Like.vue create mode 100644 src/views/topic/components/footer/Upvote.vue delete mode 100644 src/views/topic/components/reply/ReplyFooter.vue diff --git a/src/language/en.ts b/src/language/en.ts index 6ec14c7b..aad89a0b 100644 --- a/src/language/en.ts +++ b/src/language/en.ts @@ -211,8 +211,10 @@ export default { publish: 'Confirm to publish?', publishSuccess: 'Publish Successfully', publishCancel: 'Cancel Publish', - upvote: + upvoteTopic: 'Are you sure you want to upvote this topic? This will cost you 17 Moe Moe Points', + upvoteReply: + 'Are you sure you want to upvote this reply? This will cost you 3 Moe Moe Points', rewrite: 'Confirm to Rewrite?', rewriteSuccess: 'Rewrite Successfully', rewriteCancel: 'Cancel Rewrite', diff --git a/src/language/zh.ts b/src/language/zh.ts index 837bf385..fae1cbe5 100644 --- a/src/language/zh.ts +++ b/src/language/zh.ts @@ -210,7 +210,8 @@ export default { publish: '确认发布吗?', publishSuccess: '发布成功', publishCancel: '取消发布', - upvote: '您确定推这个话题吗,这将会消耗您 17 萌萌点', + upvoteTopic: '您确定推这个话题吗,这将会消耗您 17 萌萌点', + upvoteReply: '您确定推这个回复吗,这将会消耗您 3 萌萌点', rewrite: '确认 Rewrite 吗?', rewriteSuccess: 'Rewrite 成功', rewriteCancel: '取消 Rewrite', diff --git a/src/views/topic/components/Master.vue b/src/views/topic/components/Master.vue index 07351495..1b12ebc5 100644 --- a/src/views/topic/components/Master.vue +++ b/src/views/topic/components/Master.vue @@ -2,8 +2,8 @@ 这是 KUNGalgame 话题展示区域楼主话题的区域,楼主的话题将会被展示在这里,位于话题展示区域最上方 --> - - - - diff --git a/src/views/topic/components/footer/Dislike.vue b/src/views/topic/components/footer/Dislike.vue new file mode 100644 index 00000000..36802c69 --- /dev/null +++ b/src/views/topic/components/footer/Dislike.vue @@ -0,0 +1,147 @@ + + + + + + diff --git a/src/views/topic/components/footer/Footer.vue b/src/views/topic/components/footer/Footer.vue new file mode 100644 index 00000000..c55fcd1a --- /dev/null +++ b/src/views/topic/components/footer/Footer.vue @@ -0,0 +1,263 @@ + + + + + + diff --git a/src/views/topic/components/footer/Like.vue b/src/views/topic/components/footer/Like.vue new file mode 100644 index 00000000..9521d4b3 --- /dev/null +++ b/src/views/topic/components/footer/Like.vue @@ -0,0 +1,143 @@ + + + + + + diff --git a/src/views/topic/components/footer/Upvote.vue b/src/views/topic/components/footer/Upvote.vue new file mode 100644 index 00000000..08d6b71c --- /dev/null +++ b/src/views/topic/components/footer/Upvote.vue @@ -0,0 +1,146 @@ + + + + + + diff --git a/src/views/topic/components/reply/Reply.vue b/src/views/topic/components/reply/Reply.vue index c3049447..7739052f 100644 --- a/src/views/topic/components/reply/Reply.vue +++ b/src/views/topic/components/reply/Reply.vue @@ -9,7 +9,7 @@ import { Icon } from '@iconify/vue' // 导入评论组件 import Comments from '../comment/Comments.vue' // 导入 Footer 组件 -import ReplyFooter from './ReplyFooter.vue' +import Footer from '../footer/Footer.vue' // 导入发布时间组件 import Time from '../Time.vue' // 导入标签组件 @@ -97,25 +97,31 @@ const handleClickComment = (rid: number) => { - - - - + +
- +
- - - - -