refactor(frontend): 重构状态管理使用Zustand替代Context API

feat(auth): 添加账户锁定功能及自动解锁机制
feat(user): 在用户模型中添加lockedUntil字段
feat(api): 实现账户锁定逻辑和剩余尝试次数提示

perf(3d): 优化3D场景状态管理性能
perf(floorplan): 优化平面图状态管理性能

chore(deps): 添加zustand依赖
chore(config): 更新安全配置锁定时间为3分钟

docs: 更新部分组件注释
style: 调整登录页面样式
This commit is contained in:
zhang1106
2026-05-08 11:17:29 +08:00
parent 03e320af9e
commit 2826a00192
33 changed files with 2026 additions and 1442 deletions
+2 -1
View File
@@ -34,7 +34,8 @@
"styled-components": "^6.3.9",
"swr": "^2.4.0",
"three": "^0.183.2",
"xlsx": "^0.18.5"
"xlsx": "^0.18.5",
"zustand": "^4.5.7"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",