Frontend Architecture
Vue components and frontend structure
Frontend Architecture
Component Structure
Composables Pattern
Reusable reactive functions:
useAuth- AuthenticationuseApi- API requestsuseToast- NotificationsusePermissions- Permission checking
Routing Strategy
- Public routes - No authentication
- Staff routes - Require authentication
- Admin routes - Require admin role
- Lazy loading - Code splitting
State Management
- No external state library
- Composables for shared state
- Props for component communication
- Events for parent-child communication