mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 03:25:56 +00:00
Settings: full searchable list of every documented world-server setting (575), edited in place with a snapshot before each save
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8f2b585641
commit
9444434734
13 files changed
+557
No files matched your search
@@ -535,6 +535,22 @@ async fn module_save_settings(state: State<'_, AppState>, id: String, module: St
|
||||
.await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn all_settings(state: State<'_, AppState>, id: String) -> std::result::Result<Vec<coa_core::allsettings::Item>, UiError> {
|
||||
let root = path_of(&state, &id)?;
|
||||
blocking(move || coa_core::allsettings::list(&root)).await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn all_settings_save(state: State<'_, AppState>, id: String, changes: BTreeMap<String, String>) -> std::result::Result<Vec<String>, UiError> {
|
||||
let root = path_of(&state, &id)?;
|
||||
blocking(move || {
|
||||
let (dir, _) = install_meta(&root)?;
|
||||
coa_core::allsettings::save(&root, &dir, &changes)
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn list_accounts(state: State<'_, AppState>, id: String) -> std::result::Result<Vec<coa_core::accounts::AccountInfo>, UiError> {
|
||||
let root = path_of(&state, &id)?;
|
||||
@@ -1367,6 +1383,8 @@ pub fn run() {
|
||||
module_set_enabled,
|
||||
module_settings,
|
||||
module_save_settings,
|
||||
all_settings,
|
||||
all_settings_save,
|
||||
account_set_password,
|
||||
account_set_access,
|
||||
account_rename,
|
||||
|
||||
Reference in new issue
Block a user