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
+2
View File
@@ -12,4 +12,6 @@ export const URLs = {
url: makeUrl(navs[`link.${pkg.name}.auth`]),
isOn: Boolean(navs[`link.${pkg.name}.auth`])
},
tracker: makeUrl('/tracker'),
stats: makeUrl('/stats'),
}