评论新增作者标签

This commit is contained in:
ember 2025-04-22 17:09:19 +08:00
parent 16b2c240c2
commit 533fa959da
6 changed files with 28 additions and 8 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.f7fe2dc8.js"></script><script defer="defer" src="/js/app.651b1950.js"></script><link href="/css/app.8f37ce57.css" rel="stylesheet"></head><body><noscript><strong>抱歉NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>NEU小站</title><script defer="defer" src="/js/chunk-vendors.f7fe2dc8.js"></script><script defer="defer" src="/js/app.c0f7deb1.js"></script><link href="/css/app.8f37ce57.css" rel="stylesheet"></head><body><noscript><strong>抱歉NEU小站无法在没有 JavaScript 的情况下正常工作。请启用 JavaScript 以继续。</strong></noscript><div id="app"></div></body></html>

File diff suppressed because one or more lines are too long

2
dist/js/972.62874a58.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -91,7 +91,10 @@
<div v-for="comment in topLevelComments" :key="comment.id" class="comment-thread">
<div class="comment-item">
<div class="comment-header">
<UserMeta :id="comment.user_id" />
<div class="user-info-container">
<UserMeta :id="comment.user_id" />
<span v-if="comment.is_author" class="author-tag">作者</span>
</div>
<div class="comment-date">{{ formatDate(comment.created_at) }}</div>
</div>
@ -180,7 +183,10 @@
class="comment-item child"
>
<div class="comment-header">
<UserMeta :id="childComment.user_id" />
<div class="user-info-container">
<UserMeta :id="childComment.user_id" />
<span v-if="childComment.is_author" class="author-tag">作者</span>
</div>
<div class="comment-date">{{ formatDate(childComment.created_at) }}</div>
</div>
@ -1005,6 +1011,20 @@
align-items: center;
margin-bottom: 0.5rem;
.user-info-container {
display: flex;
align-items: center;
gap: 8px;
}
.author-tag {
background-color: #4CAF50;
color: white;
padding: 1px 6px;
border-radius: 4px;
font-size: 12px;
}
.comment-date {
font-size: 0.8rem;
color: #888;