feat: 初始化 Vite React 聊天应用骨架

搭建 React + Vite + React Router + TailwindCSS + Ant Design 基础工程,并通过 vite-plugin-pages 实现文件路由。新增首页响应式聊天布局,移动端在小于 750px 时使用左侧抽屉侧边栏。

Made-with: Cursor
This commit is contained in:
2026-04-01 01:51:04 +08:00
parent d476042856
commit e48462cf4a
13 changed files with 1639 additions and 1 deletions

32
package.json Normal file
View File

@@ -0,0 +1,32 @@
{
"name": "chat-one-web",
"version": "1.0.0",
"description": "ChatOne web端",
"type": "module",
"repository": "git@github.com:alboped/chat-one-web.git",
"author": "alboped <shi_zhaojun@aliyun.com>",
"license": "UNLICENSED",
"private": true,
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview"
},
"dependencies": {
"antd": "^6.3.5",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router-dom": "^7.13.2"
},
"devDependencies": {
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^25.5.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"tailwindcss": "^4.2.2",
"typescript": "^6.0.2",
"vite": "^8.0.3",
"vite-plugin-pages": "^0.33.3"
}
}