This commit introduces a platform-specific service architecture and configuration
system, with the following changes:
- Created platform-specific service implementations for database backup:
- Web: Uses URL.createObjectURL and download link
- Mobile: Uses Capacitor Filesystem and Share APIs
- Base: Abstract DatabaseBackupService class
- Implemented PlatformServiceFactory for dynamic service loading:
- Singleton pattern for factory management
- Dynamic imports based on platform environment
- Error handling for service loading failures
- Refactored Vite configuration:
- Split into base and platform-specific configs
- Added environment-based platform detection
- Improved build optimization settings
- Enhanced error handling:
- Added type-safe error interfaces
- Improved error message formatting
- Better error logging with context
- Updated AccountViewView:
- Moved profile management to ProfileSection component
- Improved type safety in error handling
- Enhanced database backup functionality
Note: This is a work in progress. Some features may need additional testing
and refinement before being production-ready.