Update book handling and improve offline/online sync logic
- Enhanced the `BookProps` struct with updated field mappings for better API compatibility. - Improved offline/online sync workflows in `BookList` by adding `localBook` property handling and new item count methods for segmented tracking of local/online items. - Updated click handlers in `BookList` to fetch data based on connectivity state and prioritize local data when offline. - Refactored the decryption and vault handling logic in Rust to remove obsolete legacy methods and standardize debug behavior. - Introduced `ScribeShell` layout component with foundational logic for book/chapter syncing and offline queue handling. - Added `init_panic_hook` to improve crash reporting during Rust app initialization.
This commit is contained in:
@@ -6,10 +6,13 @@ mod helpers;
|
||||
mod shared;
|
||||
|
||||
use db::connection::create_db_manager;
|
||||
use shared::crash_reporter::init_panic_hook;
|
||||
use shared::session::create_session;
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub fn run() {
|
||||
init_panic_hook();
|
||||
|
||||
let app_data_dir = dirs_next::data_dir()
|
||||
.unwrap_or_else(|| PathBuf::from("."))
|
||||
.join("com.eritors.scribe.desktop");
|
||||
|
||||
Reference in New Issue
Block a user