lezi-fun
1934edebd5
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
# Conflicts:
# components/AppProvider.js
# components/NewPost.js
2026-08-11 11:33:57 +08:00
lezi-fun
4732e7d61d
feat: port upstream custom pages, notifications, recovery codes, account security
...
- schema: custom_pages, notifications, recovery_codes tables + UNIQUE(conversations) + posts.edited_at
- API: custom-pages CRUD (public + admin), notifications (list/read/read-all), recovery-codes (generate/count/reset-password), user avatar/password/email, post edit
- UI: custom page nav links + iframe rendering, admin custom pages tab with editor modal, messages page shows notifications, settings page gains avatar upload, password/email change, recovery codes manager
- Sync globals.css with upstream rewrite
2026-08-10 09:07:06 +08:00