- Replaced `window.electron.invoke` calls with equivalent `tauri` function calls for all IPC interactions. - Removed `electron.d.ts` TypeScript definitions as they are no longer needed. - Updated related logic for offline/online state synchronization. - Added `types.rs` and `shared/mod.rs` modules to support Tauri IPC integration with Rust enums and shared logic. - Refactored IPC request queues to use updated handler names for consistency with Tauri.
19 lines
605 B
TypeScript
19 lines
605 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 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,
|
|
}; |