Commit Graph
32 Commits
Author SHA1 Message Date
plebeius ca9f743cef fix(vite.config.js): remove deprecated rolldown dep optimizer config 2026-03-06 21:09:04 +08:00
plebeius 4508f589dd chore(deps): migrate from pkc-react-hooks to bitsocial-react-hooks 2026-03-05 17:14:23 +08:00
plebeius 3bd1c0ad4f feat(favicon): swap tab favicon for SFW vs NSFW boards 2026-03-02 21:08:46 +08:00
plebeius 276fca8080 fix(build): restore Vercel deployment with vite-plugin-pwa 1.2.0 and process.version define
- Upgrade vite-plugin-pwa 0.21.1 → 1.2.0 (Vite 7/Rolldown compatible)
- Add workbox-*@7.4.0 to satisfy peer deps
- Define process.version in vite config to fix stream polyfill crash
2026-02-28 15:15:52 +08:00
plebeius e556a9e662 chore(deps): replace plebbit/plebbit-react-hooks with bitsocialhq/pkc-react-hooks
bitsocialhq/pkc-react-hooks is a fork of plebbit-react-hooks that we're maintaining temporarily as an attempt to modernize the original repository using AI tools, possibly merging changes back into plebbit-react-hooks, which should also be rebranded to pkc-react-hooks eventually, under the org pkcprotocol.
2026-02-28 15:02:56 +08:00
plebeius 13abea916d chore: rephrase 5chan description 2026-02-27 13:56:29 +08:00
plebeius 4bdee0362d perf(bundle): replace plebbit-js imports with local utility, split chunks, fix CLS and rerenders
Eliminate direct @plebbit/plebbit-js (8.7MB) imports from all UI components by replacing
Plebbit.getShortAddress() with a local get-short-address utility. Add Vite manual chunks for
plebbit-js, plebbit-react-hooks, and react-spring/use-gesture. Fix catalog CLS by matching
skeleton to wrapper dimensions. Lazy-load ChallengeModal and ReplyModal. Add failed-URL cache
to useFetchGifFirstFrame, optimize useHide selector, and memoize useFeed options in mod-queue.
2026-02-26 16:42:36 +08:00
plebeius cd71602730 feat(profiling): add react-scan via direct import for dev-only profiling 2026-02-26 16:02:19 +08:00
plebeiusandCursor 87f6a0bf89 fix: open portless URL instead of raw IP when dev server starts
Vite was auto-opening http://127.0.0.1:<port> which bypasses the portless proxy. Now opens http://5chan.localhost:1355 when portless is active, falls back to default behavior with PORTLESS=0.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-24 14:33:45 +08:00
plebeius 91667966f8 perf(feeds): defer useReplies, Virtuoso for all paths, CLS fixes, memo
Defer useReplies to hover-only in CatalogPost. Memo CatalogRow and Post. Remove useWindowWidth and autoUpdate from CatalogPost. Replace display:none with opacity for images. Add width/height to img tags in catalog-row and comment-media. Use Virtuoso for all rendering paths (infinite, finite, pagination). Optimize filteredComments with Set lookup. Add Vite manual chunks for markdown, virtuoso, floating-ui.
2026-02-23 18:51:42 +08:00
plebeius 815f618320 refactor: migrate from electron-rebuild to electron-forge 2026-01-30 12:28:41 +08:00
plebeius 10a266ceab perf: migrate from vite to rolldown-vite for faster builds 2025-12-26 17:02:37 +01:00
plebeius 4dd81edd3f chore: replace eslint and prettier with oxlint and oxfmt
Migrate from ESLint/Prettier to oxlint/oxfmt for 50-100x faster linting and 35x faster formatting.
2025-12-26 16:41:03 +01:00
plebeius 5d1219f31e chore(package.json): remove react-grab 2025-12-24 17:36:43 +01:00
plebeius a68a8903d3 update description 2025-12-17 13:11:45 +01:00
plebeius f65635b549 fix: limit vite-plugin-eslint to src/ files only 2025-11-28 15:50:11 +01:00
plebeius ac19034ac4 perf: pre-optimize workbox dependencies to prevent dev server reload 2025-11-02 11:16:02 +01:00
plebeius 6f4250fa4a revert 2025-11-02 11:12:17 +01:00
plebeius 341fae91fc fix(deps): resolve build dependency conflicts for Vercel deployment 2025-11-01 23:24:56 +01:00
plebeius cb376ff498 refactor: use standard dist directory for vite build output 2025-11-01 23:08:14 +01:00
plebeius dd08a3adff chore: add react-scan and react-grab as development-only tools 2025-10-24 19:14:02 +02:00
plebeius 1360dd8348 feat: rename plebchan to 5chan 2025-10-17 23:30:35 +02:00
plebeius 1e44317a3d Update vite.config.js 2025-07-29 18:16:44 +02:00
Tom (plebeius.eth) 69962cf3c4 Update vite.config.js 2025-06-03 17:52:45 +02:00
Tom (plebeius.eth) 475a9e4a32 Update vite.config.js 2025-05-22 17:57:08 +02:00
plebeiusandGitHub 320c016c40 Merge branch 'development' into master 2025-05-22 17:51:10 +02:00
Tom (plebeius.eth) 0a5f868747 fix env, sw, pwa 2025-05-22 17:42:04 +02:00
Tom (plebeius.eth) dda404fa40 update android 2025-05-13 14:19:28 +02:00
Tom (plebeius.eth) 327a463939 update PWA 2025-03-08 22:32:45 +01:00
Tom (plebeius.eth) 6c2b5a0107 Update vite.config.js 2025-03-04 18:39:34 +01:00
Tom (plebeius.eth) d149258fe3 fix netlify build command 2025-03-04 18:11:21 +01:00
Tom (plebeius.eth) ffe42c35ea upgrade react to v19, migrate from CRA to Vite, add react compiler 2025-03-04 17:53:05 +01:00