v0.5.2-pre.006
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-app-demo-desktop/src/tauri.rs
|
||||
// version: 38
|
||||
// version: 42
|
||||
|
||||
//! Tauri runtime assembly and private command wrappers.
|
||||
|
||||
@@ -36,6 +36,12 @@ pub fn run() -> ks_core::Result<()> {
|
||||
load_project_readme,
|
||||
open_demo_config_window,
|
||||
load_demo_config,
|
||||
open_demo_wallet_window,
|
||||
demo_wallet_inventory,
|
||||
demo_wallet_create_native,
|
||||
demo_wallet_balance,
|
||||
demo_wallet_inspect_file,
|
||||
demo_wallet_rpc_execute,
|
||||
open_demo_http_window,
|
||||
demo_http_list_pool_clients,
|
||||
demo_http_options,
|
||||
@@ -235,6 +241,53 @@ fn load_demo_config(state: tauri::State<'_, crate::AppState>) -> crate::DemoConf
|
||||
return crate::demo_config_payload(state.inner());
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn open_demo_wallet_window(
|
||||
app_handle: tauri::AppHandle,
|
||||
) -> std::result::Result<(), std::string::String> {
|
||||
return open_or_focus_demo_window(app_handle, "demo_wallet", "demo_wallet.html", "Wallets");
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn demo_wallet_inventory(
|
||||
state: tauri::State<'_, crate::AppState>,
|
||||
) -> std::result::Result<crate::DemoWalletInventoryPayload, std::string::String> {
|
||||
return crate::demo_wallet_inventory(state.inner()).await;
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn demo_wallet_create_native(
|
||||
state: tauri::State<'_, crate::AppState>,
|
||||
request: crate::DemoWalletCreateRequest,
|
||||
) -> std::result::Result<crate::DemoWalletIdentityPayload, std::string::String> {
|
||||
return crate::demo_wallet_create_native(state.inner(), request).await;
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn demo_wallet_balance(
|
||||
state: tauri::State<'_, crate::AppState>,
|
||||
profile: std::string::String,
|
||||
address: std::string::String,
|
||||
) -> std::result::Result<crate::DemoWalletBalancePayload, std::string::String> {
|
||||
return crate::demo_wallet_balance(state.inner(), profile, address).await;
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn demo_wallet_inspect_file(
|
||||
state: tauri::State<'_, crate::AppState>,
|
||||
path: std::string::String,
|
||||
) -> std::result::Result<crate::DemoWalletIdentityPayload, std::string::String> {
|
||||
return crate::demo_wallet_inspect_file(state.inner(), path).await;
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
async fn demo_wallet_rpc_execute(
|
||||
state: tauri::State<'_, crate::AppState>,
|
||||
request: crate::DemoWalletRpcRequest,
|
||||
) -> std::result::Result<crate::DemoWalletRpcExecutionPayload, std::string::String> {
|
||||
return crate::demo_wallet_rpc_execute(state.inner(), request).await;
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn open_demo_backfill_window(
|
||||
app_handle: tauri::AppHandle,
|
||||
|
||||
Reference in New Issue
Block a user