- 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.
21 lines
646 B
TypeScript
21 lines
646 B
TypeScript
import packageJson from '../package.json';
|
|
|
|
export interface Configs {
|
|
apiUrl: string;
|
|
baseUrl: string;
|
|
appName: string;
|
|
appDescription: string;
|
|
appVersion: string;
|
|
}
|
|
|
|
const isProduction: boolean = false;
|
|
export const isDesktop: boolean = true;
|
|
|
|
export const configs: Configs = {
|
|
apiUrl: isProduction ? 'https://api.eritors.com/' : 'http://localhost:3001/',
|
|
baseUrl: isProduction ? 'https://scribe.eritors.com/' : 'http://localhost:3000/',
|
|
appName: 'Eritors Scribe',
|
|
appDescription: 'Eritors Scribe est une application de prise de notes et d\'écriture collaborative.',
|
|
appVersion: packageJson.version,
|
|
};
|