- Implemented UnitsEquivalenceModal for managing unit equivalences.
- Added unit equivalence store and service for CRUD operations.
- Integrated unit equivalence management into Units.vue component.
- Created new HTML page for unit equivalence management layout.
- Defined TypeScript interfaces for unit equivalences.
- Enhanced user permissions for managing unit equivalences.
- Added methods to normalize permissions and roles from API responses.
- Implemented a centralized error handling method for authentication errors.
- Updated API endpoints for login, registration, and user profile management.
- Introduced session refresh functionality to retrieve user roles and permissions.
feat(catalog): improve companies and units management with permissions and filters
- Integrated permission checks for creating, updating, and deleting companies.
- Added user role and permission checks to the Companies component.
- Enhanced the Units component with search and status filters.
- Refactored unit creation and update logic to handle validation errors.
fix(catalog): update unit measure services and mapping logic
- Improved API service methods for fetching, creating, and updating units of measure.
- Added mapping functions to convert API responses to internal data structures.
- Enhanced error handling in unit measure services.
chore(auth): refactor authentication storage utilities
- Created utility functions for managing authentication tokens and user data in local storage.
- Updated API interceptor to use new storage utility functions for session management.
style: clean up code formatting and improve readability across components and services
- Added axios as a dependency for handling HTTP requests.
- Refactored the authentication logic by moving it to a new module structure.
- Replaced the old auth store with a composable useAuth for better state management.
- Created a new Login.vue component for the login page with improved UI.
- Implemented an AuthService for handling authentication-related API calls.
- Removed the old Login.vue and uth.ts files to clean up the codebase.
- Updated router to use the new login component and auth composable.
- Added interceptors to handle token management and error responses globally.