Files
chengshishouce/frontend/package.json
maoshen 56da90b88a feat: 添加中国地图交互功能
- 新增 react-simple-maps 地图库
- 实现中国省级行政区划地图(34 个省份)
- 首页集成地图组件,点击省份跳转城市列表
- 悬停显示省份名称,热力图颜色表示内容丰富度
- 重构 stores 导出方式,支持 hooks 模式
2026-04-14 01:11:07 +00:00

52 lines
1.1 KiB
JSON

{
"name": "react-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^1.6.0",
"d3-geo": "^3.1.1",
"d3-scale": "^4.0.2",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.0",
"react-scripts": "5.0.1",
"react-simple-maps": "^3.0.0",
"styled-components": "^6.1.0",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"eslint": "^8.55.0",
"prettier": "^3.1.0"
},
"proxy": "http://localhost:8000"
}