Migrate from window.electron to tauri IPC functions across components
- 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.
This commit is contained in:
27
src-tauri/src/domains/mod.rs
Normal file
27
src-tauri/src/domains/mod.rs
Normal file
@@ -0,0 +1,27 @@
|
||||
pub mod act;
|
||||
pub mod book;
|
||||
pub mod chapter;
|
||||
pub mod chapter_content;
|
||||
pub mod character;
|
||||
pub mod cover;
|
||||
pub mod download;
|
||||
pub mod export;
|
||||
pub mod guideline;
|
||||
pub mod incident;
|
||||
pub mod offline;
|
||||
pub mod issue;
|
||||
pub mod location;
|
||||
pub mod plotpoint;
|
||||
pub mod series;
|
||||
pub mod series_character;
|
||||
pub mod series_location;
|
||||
pub mod series_spell;
|
||||
pub mod series_sync;
|
||||
pub mod series_world;
|
||||
pub mod spell;
|
||||
pub mod spell_tag;
|
||||
pub mod sync;
|
||||
pub mod tombstone;
|
||||
pub mod upload;
|
||||
pub mod user;
|
||||
pub mod world;
|
||||
Reference in New Issue
Block a user