Compare commits

..

10 Commits

Author SHA1 Message Date
Tim cb531d1337 chore: use iconpark icons in points page 2025-09-06 21:02:14 +08:00
tim cfe24b5e8e fix: 修改为小写拼写 2025-09-06 13:55:13 +08:00
Tim 52633c8073 Merge pull request #901 from nagisa77/codex/adapt-notification.js-for-iconpark
refactor: switch notification icons to iconpark
2025-09-06 13:50:52 +08:00
Tim 4802c78156 refactor: switch notification icons to iconpark 2025-09-06 13:50:39 +08:00
Tim cf2299f9bf Merge pull request #900 from nagisa77/codex/adapt-tagselect-for-iconpark
feat: adapt TagSelect to IconPark icons
2025-09-06 11:50:52 +08:00
Tim f03bf92641 feat: adapt TagSelect to IconPark icons 2025-09-06 11:50:38 +08:00
Tim 8bb9c3e3d9 Merge pull request #899 from nagisa77/codex/adapt-searchdropdown-to-iconpark
refactor: replace font awesome with iconpark in search dropdown
2025-09-06 11:48:40 +08:00
Tim 8c554465f6 refactor: replace font awesome with iconpark in search dropdown 2025-09-06 11:48:22 +08:00
tim 05d56df44e fix 2025-09-06 11:47:18 +08:00
Tim 5b0cbe8ce9 Merge pull request #898 from nagisa77/codex/adapt-basetimeline-for-icon-park
Adapt BaseTimeline for IconPark icons
2025-09-06 11:44:42 +08:00
7 changed files with 51 additions and 51 deletions
@@ -12,7 +12,6 @@
:is="item.icon" :is="item.icon"
:size="20" :size="20"
/> />
<i v-else-if="item.icon" :class="item.icon"></i>
<BaseImage v-else-if="item.emoji" :src="item.emoji" class="timeline-emoji" alt="emoji" /> <BaseImage v-else-if="item.emoji" :src="item.emoji" class="timeline-emoji" alt="emoji" />
</div> </div>
<div class="timeline-content"> <div class="timeline-content">
+7 -6
View File
@@ -24,7 +24,7 @@
</template> </template>
<template #option="{ option }"> <template #option="{ option }">
<div class="search-option-item"> <div class="search-option-item">
<i :class="['result-icon', iconMap[option.type]]"></i> <component :is="iconMap[option.type]" class="result-icon" />
<div class="result-body"> <div class="result-body">
<div class="result-main" v-html="highlight(option.text)"></div> <div class="result-main" v-html="highlight(option.text)"></div>
<div v-if="option.subText" class="result-sub" v-html="highlight(option.subText)"></div> <div v-if="option.subText" class="result-sub" v-html="highlight(option.subText)"></div>
@@ -83,11 +83,12 @@ const highlight = (text) => {
} }
const iconMap = { const iconMap = {
user: 'fas fa-user', user: 'UserIcon',
post: 'fas fa-file-alt', post: 'FileText',
comment: 'fas fa-comment', post_title: 'FileText',
category: 'fas fa-folder', comment: 'CommentIcon',
tag: 'fas fa-hashtag', category: 'Inbox',
tag: 'TagOne',
} }
watch(selected, (val) => { watch(selected, (val) => {
+4 -4
View File
@@ -10,14 +10,14 @@
<template #option="{ option }"> <template #option="{ option }">
<div class="option-container"> <div class="option-container">
<div class="option-main"> <div class="option-main">
<template v-if="option.icon"> <template v-if="option.smallIcon || option.icon">
<BaseImage <BaseImage
v-if="isImageIcon(option.icon)" v-if="isImageIcon(option.smallIcon || option.icon)"
:src="option.icon" :src="option.smallIcon || option.icon"
class="option-icon" class="option-icon"
:alt="option.name" :alt="option.name"
/> />
<i v-else :class="['option-icon', option.icon]"></i> <component v-else :is="option.smallIcon || option.icon" class="option-icon" />
</template> </template>
<span>{{ option.name }}</span> <span>{{ option.name }}</span>
<span class="option-count" v-if="option.count > 0"> x {{ option.count }}</span> <span class="option-count" v-if="option.count > 0"> x {{ option.count }}</span>
+12 -12
View File
@@ -238,18 +238,18 @@ const loading = ref(false)
const selectedGood = ref(null) const selectedGood = ref(null)
const iconMap = { const iconMap = {
POST: 'fas fa-file-alt', POST: 'file-text',
COMMENT: 'fas fa-comment', COMMENT: 'comment-icon',
POST_LIKED: 'fas fa-thumbs-up', POST_LIKED: 'like',
COMMENT_LIKED: 'fas fa-thumbs-up', COMMENT_LIKED: 'like',
INVITE: 'fas fa-user-plus', INVITE: 'add-user',
SYSTEM_ONLINE: 'fas fa-clock', SYSTEM_ONLINE: 'history-icon',
REDEEM: 'fas fa-gift', REDEEM: 'gift',
FEATURE: 'fas fa-star', FEATURE: 'star',
LOTTERY_JOIN: 'fas fa-ticket-alt', LOTTERY_JOIN: 'medal-one',
LOTTERY_REWARD: 'fas fa-ticket-alt', LOTTERY_REWARD: 'fireworks',
POST_LIKE_CANCELLED: 'fas fa-thumbs-down', POST_LIKE_CANCELLED: 'clear-icon',
COMMENT_LIKE_CANCELLED: 'fas fa-thumbs-down', COMMENT_LIKE_CANCELLED: 'clear-icon',
} }
const loadTrend = async () => { const loadTrend = async () => {
+5 -5
View File
@@ -368,11 +368,11 @@ const selectedTab = ref(
: 'summary', : 'summary',
) )
const tabs = [ const tabs = [
{ key: 'summary', label: '总结', icon: 'ChartLine' }, { key: 'summary', label: '总结', icon: 'chart-line' },
{ key: 'timeline', label: '时间线', icon: 'AlarmClock' }, { key: 'timeline', label: '时间线', icon: 'alarm-clock' },
{ key: 'following', label: '关注', icon: 'AddUser' }, { key: 'following', label: '关注', icon: 'add-user' },
{ key: 'favorites', label: '收藏', icon: 'Bookmark' }, { key: 'favorites', label: '收藏', icon: 'bookmark' },
{ key: 'achievements', label: '勋章', icon: 'MedalOne' }, { key: 'achievements', label: '勋章', icon: 'medal-one' },
] ]
const followTab = ref('followers') const followTab = ref('followers')
+22 -22
View File
@@ -9,28 +9,28 @@ export const notificationState = reactive({
}) })
const iconMap = { const iconMap = {
POST_VIEWED: 'fas fa-eye', POST_VIEWED: 'HistoryIcon',
COMMENT_REPLY: 'fas fa-reply', COMMENT_REPLY: 'MessageOne',
POST_REVIEWED: 'fas fa-shield-alt', POST_REVIEWED: 'CheckCorrect',
POST_REVIEW_REQUEST: 'fas fa-gavel', POST_REVIEW_REQUEST: 'FileText',
POST_UPDATED: 'fas fa-comment-dots', POST_UPDATED: 'Edit',
USER_ACTIVITY: 'fas fa-user', USER_ACTIVITY: 'UserIcon',
FOLLOWED_POST: 'fas fa-feather-alt', FOLLOWED_POST: 'Pin',
USER_FOLLOWED: 'fas fa-user-plus', USER_FOLLOWED: 'AddUser',
USER_UNFOLLOWED: 'fas fa-user-minus', USER_UNFOLLOWED: 'ReduceUser',
POST_SUBSCRIBED: 'fas fa-bookmark', POST_SUBSCRIBED: 'Bookmark',
POST_UNSUBSCRIBED: 'fas fa-bookmark', POST_UNSUBSCRIBED: 'Bookmark',
REGISTER_REQUEST: 'fas fa-user-clock', REGISTER_REQUEST: 'AlarmClock',
ACTIVITY_REDEEM: 'fas fa-coffee', ACTIVITY_REDEEM: 'PaperMoneyTwo',
POINT_REDEEM: 'fas fa-gift', POINT_REDEEM: 'Gift',
LOTTERY_WIN: 'fas fa-trophy', LOTTERY_WIN: 'MedalOne',
LOTTERY_DRAW: 'fas fa-bullhorn', LOTTERY_DRAW: 'Fireworks',
POLL_VOTE: 'fas fa-square-poll-vertical', POLL_VOTE: 'ChartHistogram',
POLL_RESULT_OWNER: 'fas fa-flag-checkered', POLL_RESULT_OWNER: 'RankingList',
POLL_RESULT_PARTICIPANT: 'fas fa-flag-checkered', POLL_RESULT_PARTICIPANT: 'ChartLine',
MENTION: 'fas fa-at', MENTION: 'HashtagKey',
POST_DELETED: 'fas fa-trash', POST_DELETED: 'ClearIcon',
POST_FEATURED: 'fas fa-star', POST_FEATURED: 'Star',
} }
export async function fetchUnreadCount() { export async function fetchUnreadCount() {
+1 -1
View File
@@ -23,7 +23,7 @@ export default (apiBaseUrl, websiteBaseUrl) => {
return ( return (
body.map((item) => ({ body.map((item) => ({
value: `[🔗${item.title}](${websiteBaseUrl}/posts/${item.id})`, value: `[🔗${item.title}](${websiteBaseUrl}/posts/${item.id})`,
html: `<div><i class="fas fa-link"></i> ${item.title}</div>`, html: `<div><link-icon /> ${item.title}</div>`,
})) ?? [] })) ?? []
) )
} else { } else {