feat: 新增贡献者勋章

This commit is contained in:
tim
2025-08-10 02:02:36 +08:00
parent c6e88792a3
commit 9462c284d6
5 changed files with 42 additions and 10 deletions

View File

@@ -21,6 +21,9 @@
<template v-else-if="medal.type === 'POST'">
{{ medal.currentPostCount }}/{{ medal.targetPostCount }}
</template>
<template v-else-if="medal.type === 'CONTRIBUTOR'">
{{ medal.currentContributionLines }}/{{ medal.targetContributionLines }}
</template>
</div>
</div>
</div>

View File

@@ -11,6 +11,7 @@
<div class="common-info-content-header">
<div class="info-content-header-left">
<span class="user-name">{{ comment.userName }}</span>
<i class="fas fa-medal medal-icon"></i>
<router-link
v-if="comment.medal"
class="medal-name"
@@ -291,9 +292,19 @@ export default CommentItem
.medal-name {
font-size: 12px;
margin-left: 4px;
margin-left: 1px;
opacity: 0.6;
cursor: pointer;
text-decoration: none;
color: var(--text-color);
}
.medal-icon {
font-size: 12px;
opacity: 0.6;
cursor: pointer;
text-decoration: none;
margin-left: 10px;
}
@keyframes highlight {