- 修复 onRenderClient 引入 serverClient 导致浏览器 process is not defined: 抽出双端安全的 ssr/feedSeed.ts 作为唯一数据播种入口,serverClient 加 SSR 守卫 - 修复 React 19 Fizz Suspense Outlining:Suspense 边界从布局 Outlet 下移到 各懒加载路由,SSR 输出不再出现 <!--$?--> / $RB / template 探针标记 - 修复窄屏 React #418 hydration 致命错误:useMediaQuery 首帧恒 false, useLayoutEffect 绘制前同步真实值;主题改 cookie 存储供 SSR 直出, head 内联防闪烁/缩放脚本移除(缩放锁改为客户端 zoomGuard 模块) - 清理假 SSR 残留:删除 StaticFeedList 镜像组件、SSR 图标生成脚本、 探针与死代码;列表接口裁剪正文,仅下发 excerpt/first_image - Feed 与帖子详情改为窗口滚动(app-shell--doc-scroll):删除虚拟列表、 自研滚动快照与全局滚轮 hack;F5/前进后退滚动位置全部交给浏览器原生 历史恢复,HTML 响应头 no-cache 配合;锚点/楼层用 scrollIntoView + scroll-margin-top 适配 sticky 顶栏
77 lines
2.2 KiB
JSON
77 lines
2.2 KiB
JSON
{
|
|
"name": "jiang13-forum-web",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vike dev",
|
|
"build": "vike build",
|
|
"preview": "vike preview",
|
|
"start": "node server/index.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@hookform/resolvers": "^5.4.0",
|
|
"@radix-ui/react-alert-dialog": "^1.1.16",
|
|
"@radix-ui/react-dialog": "^1.1.16",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.17",
|
|
"@radix-ui/react-label": "^2.1.9",
|
|
"@radix-ui/react-slot": "^1.2.5",
|
|
"@radix-ui/react-switch": "^1.3.0",
|
|
"@svg-maps/china": "^2.0.0",
|
|
"@svg-maps/world": "^2.0.0",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@tiptap/core": "^3.26.1",
|
|
"@tiptap/extension-code-block": "^3.26.1",
|
|
"@tiptap/extension-image": "^3.26.1",
|
|
"@tiptap/extension-link": "^3.26.1",
|
|
"@tiptap/extension-placeholder": "^3.26.1",
|
|
"@tiptap/extension-table": "^3.26.1",
|
|
"@tiptap/extension-underline": "^3.26.1",
|
|
"@tiptap/pm": "^3.26.1",
|
|
"@tiptap/react": "^3.26.1",
|
|
"@tiptap/starter-kit": "^3.26.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"compression": "^1.8.1",
|
|
"dayjs": "^1.11.13",
|
|
"diff": "^9.0.0",
|
|
"dompurify": "^3.4.10",
|
|
"express": "^5.2.1",
|
|
"highlight.js": "^11.11.1",
|
|
"http-proxy-middleware": "^4.2.0",
|
|
"linkedom": "^0.18.13",
|
|
"lucide-react": "^1.18.0",
|
|
"marked": "^18.0.5",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"react-easy-crop": "^6.0.2",
|
|
"react-hook-form": "^7.79.0",
|
|
"react-router": "^8.3.1",
|
|
"react-streaming": "^0.4.20",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"turndown": "^7.2.4",
|
|
"tw-animate-css": "^1.4.0",
|
|
"vike": "^0.4.266",
|
|
"zod": "^4.4.3",
|
|
"zustand": "^5.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.6",
|
|
"@types/node": "^25.9.3",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/turndown": "^5.0.6",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"typescript": "^7.0.2",
|
|
"vite": "^8.2.2"
|
|
},
|
|
"allowScripts": {
|
|
"esbuild@0.28.2": true
|
|
}
|
|
}
|