feat: support Chinese nickname in registration

- User input "昵称" stored in `name` field (supports Chinese)
- `username` auto-generated (PocketBase requires ASCII)
- Password rules displayed inline with real-time validation
- All UI displays prefer `name` over `username`

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
congsh
2026-04-18 13:01:41 +08:00
parent 262f946a4e
commit 5cec2101af
13 changed files with 191 additions and 74 deletions
@@ -71,7 +71,7 @@ function formatDate(dateStr: string) {
<div v-else class="comment-list">
<div v-for="c in comments" :key="c.id" class="comment-item">
<div class="comment-header">
<span class="comment-author">{{ c.expand?.author?.username || '用户' }}</span>
<span class="comment-author">{{ c.expand?.author?.name || c.expand?.author?.username || '用户' }}</span>
<span v-if="c.rating" class="comment-rating">
<el-icon v-for="i in c.rating" :key="i" :size="12"><StarFilled /></el-icon>
</span>