Files
MonkeyCode/frontend/package.json
monster cc76c93fc6 perf(chat): 聊天面板虚拟化列表优化长对话性能
- 引入 @tanstack/react-virtual 实现消息列表虚拟化
- 只渲染可视区域内的消息,大幅减少 DOM 节点数量
- 支持动态高度测量,适配不同长度的消息内容
- 任务状态和文件变更提示纳入虚拟化统一处理

Made-with: Cursor
2026-03-10 15:02:34 +08:00

101 lines
3.1 KiB
JSON

{
"name": "monkeycode-ai",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"api": "sta --path ${SWAGGER} --output src/api"
},
"dependencies": {
"@cap.js/widget": "^0.1.32",
"@mdxeditor/editor": "^3.52.1",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-aspect-ratio": "^1.1.8",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@tabler/icons-react": "^3.35.0",
"@tailwindcss/vite": "^4.1.17",
"@tanstack/react-virtual": "^3.13.21",
"@types/react-syntax-highlighter": "^15.5.13",
"@uiw/react-json-view": "2.0.0-alpha.40",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-unicode11": "^0.8.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/addon-webgl": "^0.18.0",
"@xterm/xterm": "^5.5.0",
"ace-builds": "^1.43.4",
"buffer": "^6.0.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"dayjs": "^1.11.19",
"dev": "^0.1.3",
"diff": "^8.0.3",
"gray-matter": "^4.0.3",
"jszip": "^3.10.1",
"lucide-react": "^0.553.0",
"mermaid": "^11.12.2",
"next-themes": "^0.4.6",
"react": "^19.2.0",
"react-ace": "^14.0.1",
"react-diff-view": "^3.3.2",
"react-dom": "^19.2.0",
"react-markdown": "^10.1.0",
"react-resizable-panels": "^3.0.6",
"react-router-dom": "^7.9.5",
"react-syntax-highlighter": "^16.1.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"remark": "^15.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"sonner": "^2.0.7",
"streamsaver": "^2.0.6",
"strip-markdown": "^6.0.0",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.17",
"uuid": "^13.0.0",
"vaul": "^1.1.2",
"yaml": "^2.4.0"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@types/streamsaver": "^2.0.5",
"@vitejs/plugin-react": "^5.1.0",
"baseline-browser-mapping": "^2.9.19",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"swagger-typescript-api": "^12.0.4",
"tw-animate-css": "^1.4.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.46.3",
"vite": "^7.2.2",
"vite-plugin-node-polyfills": "^0.23.0"
}
}