Add authentication and tracking features with API integration

- Implemented user authentication with signup and signin functionality.
- Created a context for managing authentication state.
- Added protected routes for accessing the dashboard and tracker pages.
- Developed a tracker page for logging cigarette usage with optional notes and timestamps.
- Introduced a statistics page to visualize daily smoking habits using charts.
- Integrated Axios for API requests and error handling.
- Updated package dependencies including React Hook Form and Zod for form validation.
- Enhanced UI components for better user experience with Chakra UI.
- Added routing for authentication and tracking pages.
This commit is contained in:
Primakov Alexandr Alexandrovich
2025-11-17 13:53:25 +03:00
parent c3eab8bcac
commit debd28905a
19 changed files with 1947 additions and 26 deletions
+7 -1
View File
@@ -24,17 +24,23 @@
"@chakra-ui/react": "^3.2.0",
"@emotion/react": "^11.13.5",
"@eslint/js": "^9.11.0",
"@hookform/resolvers": "^5.2.2",
"@stylistic/eslint-plugin": "^2.8.0",
"@types/node": "^22.19.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"axios": "^1.13.2",
"date-fns": "^4.1.0",
"eslint": "^9.11.0",
"eslint-plugin-react": "^7.36.1",
"express": "^4.19.2",
"globals": "^15.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.66.0",
"react-router-dom": "^6.23.1",
"typescript-eslint": "^8.6.0"
"recharts": "^3.4.1",
"typescript-eslint": "^8.6.0",
"zod": "^4.1.12"
}
}