Services
portalService
File:services/portalService.ts
Portal dashboard API integration:
Functions
fetchUpdates() Fetches portal updates from the API.Mock Data
The service includes fallback mock data when the API is unreachable (e.g., local development).authService
File:services/authService.ts
Authentication service:
- Login handling: Session management
- Token storage: Secure token storage
- GitHub OAuth: OAuth flow integration
- Steganographic auth: Image-based authentication
pdfGenerator
File:services/pdfGenerator.ts
PDF generation service:
- Document generation: Create PDFs from data
- Formatting: Structured PDF layout
- Export: Download functionality
API Integration
Base URL
Portal API base URL configuration:Error Handling
Services include error handling with fallbacks:Type Definitions
Services use TypeScript types defined intypes.ts:
PortalUpdate- Update entriesPortalGoal- Goal entriesUserRole- User role typesSearchResult- Search resultsStatusResponse- Status information
Related Documentation
- Frontend Components - Component usage
- API Workers - Backend API