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:
natreex
2026-04-05 11:36:12 -04:00
parent b9bc024e91
commit 2b6d4cc48b
6 changed files with 585 additions and 50 deletions

View File

@@ -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");