mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-07 02:27:34 +08:00
feat: 新增贡献者前端标识
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
<div v-if="isMobile" class="info-content-header">
|
<div v-if="isMobile" class="info-content-header">
|
||||||
<div class="user-name">
|
<div class="user-name">
|
||||||
{{ author.username }}
|
{{ author.username }}
|
||||||
|
<i class="fas fa-medal medal-icon"></i>
|
||||||
<router-link
|
<router-link
|
||||||
v-if="author.displayMedal"
|
v-if="author.displayMedal"
|
||||||
class="user-medal"
|
class="user-medal"
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
<div v-if="!isMobile" class="info-content-header">
|
<div v-if="!isMobile" class="info-content-header">
|
||||||
<div class="user-name">
|
<div class="user-name">
|
||||||
{{ author.username }}
|
{{ author.username }}
|
||||||
|
<i class="fas fa-medal medal-icon"></i>
|
||||||
<router-link
|
<router-link
|
||||||
v-if="author.displayMedal"
|
v-if="author.displayMedal"
|
||||||
class="user-medal"
|
class="user-medal"
|
||||||
@@ -739,6 +741,14 @@ export default {
|
|||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.medal-icon {
|
||||||
|
font-size: 12px;
|
||||||
|
margin-left: 4px;
|
||||||
|
opacity: 0.6;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.scroller-range {
|
.scroller-range {
|
||||||
writing-mode: vertical-rl;
|
writing-mode: vertical-rl;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
@@ -950,6 +960,8 @@ export default {
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-time {
|
.post-time {
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
export const medalTitles = {
|
export const medalTitles = {
|
||||||
COMMENT: '评论达人',
|
COMMENT: '评论达人',
|
||||||
POST: '发帖达人',
|
POST: '发帖达人',
|
||||||
SEED: '种子用户'
|
SEED: '种子用户',
|
||||||
|
CONTRIBUTOR: '贡献者'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getMedalTitle(type) {
|
export function getMedalTitle(type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user