From 6ad7e951feb7122c6670d4a76186ed66d94317de Mon Sep 17 00:00:00 2001 From: tim Date: Sat, 6 Sep 2025 11:25:44 +0800 Subject: [PATCH] feat: add few icons --- frontend_nuxt/components/Dropdown.vue | 37 ++-------------- .../InviteCodeActivityComponent.vue | 2 +- frontend_nuxt/components/LotteryForm.vue | 2 +- frontend_nuxt/components/MenuComponent.vue | 2 +- frontend_nuxt/components/MessageEditor.vue | 2 +- .../components/MessageFloatWindow.vue | 18 ++------ .../components/MilkTeaActivityComponent.vue | 4 +- frontend_nuxt/components/PostLottery.vue | 11 ++--- frontend_nuxt/components/PostPoll.vue | 20 +++------ frontend_nuxt/components/PostTypeSelect.vue | 6 +-- frontend_nuxt/components/ReactionsGroup.vue | 2 +- frontend_nuxt/components/SearchDropdown.vue | 4 +- .../components/SearchPersonDropdown.vue | 2 +- frontend_nuxt/pages/activities.vue | 2 +- frontend_nuxt/pages/forgot-password.vue | 2 +- frontend_nuxt/pages/login.vue | 4 +- frontend_nuxt/pages/message-box/[id].vue | 8 ++-- frontend_nuxt/pages/message-box/index.vue | 4 +- frontend_nuxt/pages/message.vue | 2 +- frontend_nuxt/pages/new-post.vue | 10 ++--- frontend_nuxt/pages/points.vue | 6 +-- frontend_nuxt/pages/posts/[id]/edit.vue | 8 ++-- frontend_nuxt/pages/posts/[id]/index.vue | 16 +++---- frontend_nuxt/pages/settings.vue | 16 +++---- frontend_nuxt/pages/signup.vue | 4 +- frontend_nuxt/pages/users/[id].vue | 2 +- frontend_nuxt/plugins/iconpark.client.ts | 44 ++++++++++++++++++- 27 files changed, 117 insertions(+), 123 deletions(-) diff --git a/frontend_nuxt/components/Dropdown.vue b/frontend_nuxt/components/Dropdown.vue index b1d82baa2..6cc680874 100644 --- a/frontend_nuxt/components/Dropdown.vue +++ b/frontend_nuxt/components/Dropdown.vue @@ -19,13 +19,7 @@ class="option-icon" :alt="label.name" /> - - + {{ label.name }} @@ -44,13 +38,7 @@ class="option-icon" :alt="selectedLabels[0].name" /> - - + {{ selectedLabels[0].name }} @@ -87,13 +75,7 @@ class="option-icon" :alt="o.name" /> - - + {{ o.name }} @@ -129,13 +111,7 @@ class="option-icon" :alt="o.name" /> - - + {{ o.name }} @@ -273,10 +249,6 @@ export default { return /^https?:\/\//.test(icon) || icon.startsWith('/') } - const isIconComponent = (icon) => { - return typeof icon === 'string' && !icon.includes(' ') - } - expose({ toggle, close }) return { @@ -291,7 +263,6 @@ export default { isSelected, loading, isImageIcon, - isIconComponent, setSearch, isMobile, } diff --git a/frontend_nuxt/components/InviteCodeActivityComponent.vue b/frontend_nuxt/components/InviteCodeActivityComponent.vue index 98bfed71a..f6013b61d 100644 --- a/frontend_nuxt/components/InviteCodeActivityComponent.vue +++ b/frontend_nuxt/components/InviteCodeActivityComponent.vue @@ -2,7 +2,7 @@
- + 邀请规则说明
diff --git a/frontend_nuxt/components/LotteryForm.vue b/frontend_nuxt/components/LotteryForm.vue index 30bcdcd8b..64b3bddde 100644 --- a/frontend_nuxt/components/LotteryForm.vue +++ b/frontend_nuxt/components/LotteryForm.vue @@ -10,7 +10,7 @@ 奖品图片 diff --git a/frontend_nuxt/components/MenuComponent.vue b/frontend_nuxt/components/MenuComponent.vue index 1224e7066..b7c48b6da 100644 --- a/frontend_nuxt/components/MenuComponent.vue +++ b/frontend_nuxt/components/MenuComponent.vue @@ -34,7 +34,7 @@ to="/about" @click="handleItemClick" > - + 关于
- +
diff --git a/frontend_nuxt/components/MessageFloatWindow.vue b/frontend_nuxt/components/MessageFloatWindow.vue index f5370b91a..a2da5a350 100644 --- a/frontend_nuxt/components/MessageFloatWindow.vue +++ b/frontend_nuxt/components/MessageFloatWindow.vue @@ -3,20 +3,10 @@
- - - - + + + +
diff --git a/frontend_nuxt/components/MilkTeaActivityComponent.vue b/frontend_nuxt/components/MilkTeaActivityComponent.vue index 665fb251f..292ce6536 100644 --- a/frontend_nuxt/components/MilkTeaActivityComponent.vue +++ b/frontend_nuxt/components/MilkTeaActivityComponent.vue @@ -2,7 +2,7 @@
- + 升级规则说明
@@ -29,7 +29,7 @@ />
-
请登录查看自身等级
+
请登录查看自身等级
- +
{{ lottery.prizeDescription }}
x {{ lottery.prizeCount }}
- +
离结束
{{ countdown }}
@@ -26,7 +26,8 @@ @click="joinLottery" >
- 参与抽奖 {{ lottery.pointCost }} + 参与抽奖 + {{ lottery.pointCost }}
@@ -43,7 +44,7 @@ @click="joinLottery" >
- 参与抽奖 {{ lottery.pointCost }} + 参与抽奖 {{ lottery.pointCost }}
@@ -61,7 +62,7 @@ @click="gotoUser(p.id)" />
- + 获奖者: 单选
- +
离结束
{{ countdown }}
@@ -55,9 +55,7 @@
-
- 确认投票 -
+
确认投票
@@ -95,22 +91,20 @@ class="poll-option-button" @click="showPollResult = false" > - 投票 + 投票
- 结果 -
-
- 投票已结束 + 结果
+
投票已结束
您已投票,等待结束查看结果
- +
离结束
{{ countdown }}
diff --git a/frontend_nuxt/components/PostTypeSelect.vue b/frontend_nuxt/components/PostTypeSelect.vue index fd713628c..5fa16eab7 100644 --- a/frontend_nuxt/components/PostTypeSelect.vue +++ b/frontend_nuxt/components/PostTypeSelect.vue @@ -31,9 +31,9 @@ export default { const fetchTypes = async () => { return [ - { id: 'NORMAL', name: '普通帖子', icon: 'fa-regular fa-file' }, - { id: 'LOTTERY', name: '抽奖帖子', icon: 'fa-solid fa-gift' }, - { id: 'POLL', name: '投票帖子', icon: 'fa-solid fa-square-poll-vertical' }, + { id: 'NORMAL', name: '普通帖子', icon: 'file-text' }, + { id: 'LOTTERY', name: '抽奖帖子', icon: 'gift' }, + { id: 'POLL', name: '投票帖子', icon: 'ranking-list' }, ] } diff --git a/frontend_nuxt/components/ReactionsGroup.vue b/frontend_nuxt/components/ReactionsGroup.vue index feeac2adf..af293dbaf 100644 --- a/frontend_nuxt/components/ReactionsGroup.vue +++ b/frontend_nuxt/components/ReactionsGroup.vue @@ -42,7 +42,7 @@ @click="toggleReaction('LIKE')" > - + {{ likeCount }}
diff --git a/frontend_nuxt/components/SearchDropdown.vue b/frontend_nuxt/components/SearchDropdown.vue index 4d8b7ce4d..7489be8b4 100644 --- a/frontend_nuxt/components/SearchDropdown.vue +++ b/frontend_nuxt/components/SearchDropdown.vue @@ -13,7 +13,7 @@ >