Commit Graph
125 Commits
Author SHA1 Message Date

2026-08-10

lezi-fun 694fa2bfaf feat: user signature (设置页编辑 + 帖子底部显示)
- schema: users.signature column (upstream aligned)
- API: posts query JOIN signature, /auth/me returns signature, PUT /users/:id updates signature
- Settings: signature textarea (Markdown hint), saved with profile
- PostDetail: signature shown under post content with divider
- README: remove upstream DB schema note (fixed upstream)
2026-08-10 14:46:05 +08:00
lezi-fun c8dcf32dd4 fix: dropdown menu not opening on avatar click
React synthetic event stopPropagation doesn't stop native document
listeners (React 17+ attaches to root, document listener is separate).
The document click handler was closing the menu right after avatar
opened it. Now it checks if the click target is inside the dropdown
or on the avatar and skips closing.
2026-08-10 14:38:45 +08:00
lezi-fun 89987c430c fix: post detail client error (hooks order), image viewer, messages vs DM split
- Fix critical bug: useState declared after conditional return in PostDetail
  caused 'Rendered more hooks than during previous render' client error
- Add image viewer (click post image to zoom, matching upstream openImageViewer)
- CSS upload warning confirm modal (matching upstream)
- Fix: navbar 消息 menu item now opens notifications page (messages), not DM
  list — DM stays on the ✉️ nav button (matches upstream structure)
2026-08-10 14:18:39 +08:00
lezi-fun 48372aa14f feat: align with upstream — pin posts, edit marker, custom CSS, UX fixes
- Pin/unpin posts (PUT /api/posts/:id/pin, admin) with notification to author
- is_pinned/pinned_at in schema; 📌 badge on feed + detail; admin pin button
- Edited marker (已编辑) on feed + detail; edit button + modal for authors
- Custom CSS: upload/delete API + admin tab + global loader (style.css override)
- Fix: duplicate post title on detail page (remove card title, keep header)
- Fix: forum name flicker on load (localStorage cache before fetch)
- Fix: dropdown menu closes on outside click (document listener)
- Fix: document.title + <title> sync on forum rename
2026-08-10 12:35:50 +08:00
lezi-fun 721e4bfe42 fix: 405 on write methods in Vercel (static GET optimization)
Route handlers with both GET and write methods get the GET statically
optimized on Vercel, which 405s POST/PUT/DELETE. Add
export const dynamic = 'force-dynamic' to all 7 affected routes
(settings, posts, custom-pages, event-logs, links, conversations, reports).
2026-08-10 11:08:10 +08:00
Furrium Network 8ee6cc07c9 Merge pull request #5 from lezi-fun/serverless-support
feat: support serverless deployment (Vercel / Cloudflare Pages)
2026-08-10 10:47:00 +08:00
lezi-fun d1c06741f6 fix: uploads route ignored by .gitignore, image 404s
.gitignore 'uploads/' pattern matched app/api/uploads/ too, so the
image-serving route handler was never committed. Anchor it to /uploads/
so only the runtime storage dir is ignored. Also add vercel.json.
2026-08-10 10:45:25 +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 1486d95f89 fix: no-cache HTML headers (dynamic forum content)
Next.js default s-maxage=31536000 caches HTML for a year at CDN level,
serving stale pages after deploys. Add Cache-Control: no-store for all
routes so CDN/browser always fetch fresh.
2026-08-10 10:15:16 +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
lezi-fun ec50efea89 feat: support serverless deployment (Vercel / Cloudflare Pages)
- Replace bcrypt (native) with bcryptjs (pure JS) — no native build on serverless
- Storage abstraction (lib/storage.js): local uploads/ for traditional deploy, S3-compatible (R2/MinIO/S3 via aws4fetch) for serverless
- DB pool auto-adapts to serverless (single connection, rotation, timeouts)
- next.config.js: standalone output only when DOCKER=1 (serverless skips it)
- Docs: serverless deployment section in README, S3 env vars in .env.example
2026-08-10 09:55:18 +08:00
Furrium Network 83239d498e huh
feat: migrate to Next.js 14 (App Router + Route Handlers)
2026-08-10 09:40:41 +08:00
lezi-fun 95b0d63223 Merge remote-tracking branch 'origin/main' into nextjs-migration 2026-08-10 09:08:30 +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

2026-08-09

Furrium Network 9c53ddb459 Update index.html 2026-08-09 23:56:49 +08:00
Furrium Network e03e1c6110 Update app.js 2026-08-09 23:55:45 +08:00
Furrium Network 01afe089f3 Update api.js 2026-08-09 23:54:34 +08:00
Furrium Network d79662b809 Update server.js 2026-08-09 23:53:39 +08:00
Furrium Network 4594a9acf3 Update auth.js 2026-08-09 23:51:30 +08:00
Furrium Network 6eb1673653 Update index.html 2026-08-09 23:47:26 +08:00
Furrium Network 3f0e82f864 Update server.js 2026-08-09 23:45:19 +08:00
Furrium Network e7493446a7 Update auth.js 2026-08-09 23:43:32 +08:00
Furrium Network 4880859c54 Update app.js 2026-08-09 23:42:51 +08:00
Furrium Network 4ec329afbc Update api.js 2026-08-09 23:41:36 +08:00
Furrium Network c674847586 Update schema.sql 2026-08-09 23:40:43 +08:00
Furrium Network 3ce6bebdec Update server.js 2026-08-09 23:32:16 +08:00
Furrium Network afd3dd54c8 Update post.js 2026-08-09 23:27:34 +08:00
Furrium Network 1a0f6e6b70 Update index.html 2026-08-09 23:23:26 +08:00
Furrium Network 317c9b1281 Update admin.js 2026-08-09 23:20:04 +08:00
Furrium Network 97ab13447d Update feed.js 2026-08-09 23:19:36 +08:00
Furrium Network ffea8d4b89 Update app.js 2026-08-09 23:18:58 +08:00
Furrium Network b0ec3cd3f2 Update api.js 2026-08-09 23:18:32 +08:00
Furrium Network 7a451f2013 Update schema.sql 2026-08-09 23:18:09 +08:00
Furrium Network b222a8919b Update server.js 2026-08-09 23:10:20 +08:00
Furrium Network ee82a253a7 Update app.js 2026-08-09 23:09:56 +08:00
Furrium Network 6544b13d96 Update app.js 2026-08-09 23:06:49 +08:00
Furrium Network 0c2eb50b41 Update app.js 2026-08-09 23:03:38 +08:00
Furrium Network daba717571 Update api.js 2026-08-09 23:02:28 +08:00
Furrium Network 4ac816df19 Update schema.sql 2026-08-09 22:58:31 +08:00
Furrium Network 0906640123 Update style.css 2026-08-09 22:56:22 +08:00
Furrium Network 40bb6efecb Update index.html 2026-08-09 22:56:01 +08:00
Furrium Network aafdd02771 Update app.js 2026-08-09 22:52:44 +08:00
Furrium Network d2d2f3e9b6 Update server.js 2026-08-09 22:51:12 +08:00
Furrium Network 152c0f679f Update index.html 2026-08-09 22:34:44 +08:00
Furrium Network b603091c0e Update api.js 2026-08-09 22:32:52 +08:00
Furrium Network 487773788d Update admin.js 2026-08-09 22:32:33 +08:00
Furrium Network 53ee6fb63a Update app.js 2026-08-09 22:31:54 +08:00
Furrium Network 0142bc5c2a Update schema.sql 2026-08-09 22:22:05 +08:00
Furrium Network de6a926f7b Update index.html 2026-08-09 22:19:24 +08:00