2026-08-11
lezi-fun
6947cdaf36
fix: polish forum navigation and interface states
2026-08-11 15:25:05 +08:00
lezi-fun
0562dd735a
feat: i18n (i18next + react-i18next) zh/en + hydration fixes
...
- i18next + react-i18next: zh/en locales, language detection
(localStorage > navigator > zh), settings language switcher
- Components i18n'd: Navbar, Feed, NewPost, Modals, SettingsPage,
SettingsProfile, AccountSecurity, RecoveryCodes
- Fix hydration mismatch (spinner restart): forum name via cookie
(Server Component reads cookie, SSR outputs name, no inline script
DOM injection); remove createPortal in RecoveryCodes modal; i18n
sync init (initImmediate) so SSR/CSR text matches
- LoadingScreen: React-state name rendering (no script-injected nodes)
- Fix double spinner in Feed; DM icon emoji → SVG in ConversationList
2026-08-11 11:32:15 +08:00
lezi-fun
74202f7551
fix: user profile avatar + loading spinners + modal opacity
...
- UserProfile now uses avatar_url (was always default ui-avatars)
- Loading states show spinner-sm spinner instead of plain text
(Feed, UserProfile, chat, admin panels, custom pages)
- Modal background: semi-transparent glass (0.85 light / 0.88 dark)
2026-08-11 10:23:33 +08:00
2026-08-10
lezi-fun
1a8a588d60
feat: markdown rendering + dark mode input fixes + DM icon align
...
- Add marked dependency; render post/reply content and signature via
marked.parse (matches upstream). lib/markdown.js helper + CSS for
code/pre/blockquote/tables in glass theme
- Fix hardcoded #e2e8f0 white inputs in dark mode: NewPost title/content,
Modals report select, ReplyList, AdminForumSettings/Links/Users/Logs
- DM button: replace ✉️ emoji with upstream SVG chat bubble icon
2026-08-10 18:18:19 +08:00
lezi-fun
ac6e2dab84
fix: chat input hidden on small viewports
...
- Chat modal fixed height 70vh, message list flex:1 with minHeight:0
- Input row flexShrink:0 so it's never compressed out of view
2026-08-10 10:38:30 +08:00
lezi-fun
5d90e5c415
fix: hide DM button when logged out
2026-08-10 10:21:26 +08:00
lezi-fun
60c21ae0a6
fix: navbar full-width layout
...
- Remove flex wrapper around Navbar that collapsed it to content width
- Move DM button inside Navbar nav-right, ChatManager renders modals only
- Navbar is a direct body child again, sticky + full width restored
2026-08-10 10:11:32 +08:00
2026-08-09
lezi-fun
300ad5959c
feat: port private messaging (私信) from upstream
...
- Add conversations/messages tables to schema.sql (upstream missed them)
- API: GET/POST /api/conversations, GET/POST /api/conversations/[id]/messages, PUT /api/messages/[id]/read
- Chat UI: conversation list modal, chat window with 3s polling, unread badge
- Navbar message entry opens DM list; user profile has 发私信 button
- Access control: only conversation participants (403 otherwise)
2026-08-09 21:01:55 +08:00