Add terms of use translations, sync detection, and refactor book components

- Introduced new translations for terms of use in French and English locales.
- Added sync status detection logic for books in `BookList` and `BookCard` components.
- Refactored `BookCard` to handle additional props and improve layout flexibility.
- Enhanced `TermsOfUse` component with complete localization support and refuse functionality.
- Updated data decryption logic in Rust services to handle optional fields and additional metadata consistently.
- Improved offline/online synchronization workflows with extended context properties.
This commit is contained in:
natreex
2026-03-23 11:56:35 -04:00
parent 64ed90d993
commit a114592ac9
23 changed files with 588 additions and 438 deletions

View File

@@ -33,7 +33,7 @@ export default function OfflineProvider({ children }: OfflineProviderProps) {
return true;
} catch (error) {
console.error('Failed to initialize database:', error, 'userId:', userId, 'hasKey:', !!userKey);
console.error('Failed to initialize database:', error, 'userId:', userId, 'hasKey:', !!encryptionKey);
setOfflineMode(prev => ({
...prev,
isDatabaseInitialized: false,