mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-21 03:25:56 +00:00
Add unsaved changes navigation guard and server auto-restart with crash analyzer
- Add UnsavedChangesGuard modal (Save/Discard/Cancel) when navigating between tabs - Wire guard into ModulesPage and SettingsPage with floating action bar - Implement crash parser and explanation engine in coa-core - Expose list_crashes Tauri command and CrashItem API - Add auto-restart on unexpected server crash with crash loop protection - Add crash counter badge and CrashHistoryModal with human-readable explanations and full crashlogs - Support all 6 locales (en, ru, de, fr, es, zh)
This commit is contained in:
1 parent
58c1e1aee0
commit
be68eb4341
21 files changed
+985
-51
No files matched your search
@@ -1543,6 +1543,12 @@ async fn export_diagnostics(state: State<'_, AppState>, id: String) -> std::resu
|
||||
.await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn list_crashes(state: State<'_, AppState>, id: String, limit: Option<usize>) -> std::result::Result<Vec<coa_core::crashes::CrashItem>, UiError> {
|
||||
let root = path_of(&state, &id)?;
|
||||
blocking(move || coa_core::crashes::list(&root, limit.unwrap_or(10))).await
|
||||
}
|
||||
|
||||
|
||||
#[tauri::command]
|
||||
async fn console_tail(
|
||||
@@ -1677,6 +1683,7 @@ pub fn run() {
|
||||
run_diagnostics,
|
||||
verify_files,
|
||||
export_diagnostics,
|
||||
list_crashes,
|
||||
console_tail,
|
||||
console_risk,
|
||||
console_command
|
||||
|
||||
Reference in new issue
Block a user