- 实现了完整的登录注册认证流程,包括密码验证和用户资料获取 - 集成了JWT令牌管理和自动刷新机制,支持设备ID生成和管理 - 添加了WebSocket连接配置和API基础URL环境变量设置 - 实现了API客户端的请求拦截器,包括令牌验证和错误处理逻辑 - 集成了MD5加密和认证令牌缓存机制,提升安全性 - 添加了多语言国际化支持,包括英语、中文、马来语和印尼语 - 实现了认证状态管理和本地存储持久化功能 - 添加了表单验证schema和错误处理机制,增强用户体验
80 lines
2.2 KiB
JSON
80 lines
2.2 KiB
JSON
{
|
|
"name": "react-spa-template",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"commit": "cz",
|
|
"dev": "pnpm generate-routes && vite",
|
|
"build": "pnpm generate-routes && tsc -b && vite build",
|
|
"generate-routes": "tsr generate",
|
|
"lint": "biome check .",
|
|
"lint:fix": "biome check --write .",
|
|
"format": "biome format --write .",
|
|
"prepare": "husky",
|
|
"preview": "vite preview"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx,json,jsonc,css,md,html}": [
|
|
"biome check --write"
|
|
]
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "cz-conventional-changelog"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/geist": "^5.2.8",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@tanstack/react-query": "^5.99.0",
|
|
"@tanstack/react-query-devtools": "^5.99.0",
|
|
"@tanstack/react-router": "^1.168.22",
|
|
"@tanstack/react-virtual": "^3.13.24",
|
|
"@types/md5": "^2.3.6",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"dayjs": "^1.11.20",
|
|
"i18next": "^26.0.5",
|
|
"ky": "^2.0.1",
|
|
"lottie-web": "^5.13.0",
|
|
"lucide-react": "^1.9.0",
|
|
"md5": "^2.3.0",
|
|
"motion": "^12.38.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "19.2.5",
|
|
"react-dom": "19.2.5",
|
|
"react-hook-form": "^7.75.0",
|
|
"react-i18next": "^17.0.3",
|
|
"shadcn": "^4.7.0",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"zod": "^4.4.3",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.29.0",
|
|
"@biomejs/biome": "2.4.12",
|
|
"@commitlint/cli": "20.5.0",
|
|
"@commitlint/config-conventional": "20.5.0",
|
|
"@rolldown/plugin-babel": "^0.2.2",
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@tanstack/router-cli": "^1.166.33",
|
|
"@tanstack/router-plugin": "^1.167.22",
|
|
"@types/babel__core": "^7.20.5",
|
|
"@types/node": "^24.12.2",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
"commitizen": "4.3.1",
|
|
"cz-conventional-changelog": "3.3.0",
|
|
"husky": "9.1.7",
|
|
"lint-staged": "16.4.0",
|
|
"postcss": "^8.5.12",
|
|
"tailwindcss": "^4.2.2",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.0.4"
|
|
}
|
|
}
|