desktop: fix rust build + bindings formatting
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
sst-env.d.ts
|
sst-env.d.ts
|
||||||
|
desktop/src/bindings.ts
|
||||||
|
|||||||
@@ -569,6 +569,7 @@ fn setup_window_state_listener(app: &tauri::AppHandle, window: &tauri::WebviewWi
|
|||||||
let (tx, mut rx) = mpsc::channel::<()>(1);
|
let (tx, mut rx) = mpsc::channel::<()>(1);
|
||||||
|
|
||||||
window.on_window_event(move |event| {
|
window.on_window_event(move |event| {
|
||||||
|
use tauri::WindowEvent;
|
||||||
if !matches!(event, WindowEvent::Moved(_) | WindowEvent::Resized(_)) {
|
if !matches!(event, WindowEvent::Moved(_) | WindowEvent::Resized(_)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,20 @@
|
|||||||
// This file has been generated by Tauri Specta. Do not edit this file manually.
|
// This file has been generated by Tauri Specta. Do not edit this file manually.
|
||||||
|
|
||||||
import { invoke as __TAURI_INVOKE, Channel } from "@tauri-apps/api/core"
|
import { invoke as __TAURI_INVOKE, Channel } from '@tauri-apps/api/core';
|
||||||
|
|
||||||
/** Commands */
|
/** Commands */
|
||||||
export const commands = {
|
export const commands = {
|
||||||
killSidecar: () => __TAURI_INVOKE<void>("kill_sidecar"),
|
killSidecar: () => __TAURI_INVOKE<void>("kill_sidecar"),
|
||||||
installCli: () => __TAURI_INVOKE<string>("install_cli"),
|
installCli: () => __TAURI_INVOKE<string>("install_cli"),
|
||||||
ensureServerReady: () => __TAURI_INVOKE<ServerReadyData>("ensure_server_ready"),
|
ensureServerReady: () => __TAURI_INVOKE<ServerReadyData>("ensure_server_ready"),
|
||||||
getDefaultServerUrl: () => __TAURI_INVOKE<string | null>("get_default_server_url"),
|
getDefaultServerUrl: () => __TAURI_INVOKE<string | null>("get_default_server_url"),
|
||||||
setDefaultServerUrl: (url: string | null) => __TAURI_INVOKE<null>("set_default_server_url", { url }),
|
setDefaultServerUrl: (url: string | null) => __TAURI_INVOKE<null>("set_default_server_url", { url }),
|
||||||
parseMarkdownCommand: (markdown: string) => __TAURI_INVOKE<string>("parse_markdown_command", { markdown }),
|
parseMarkdownCommand: (markdown: string) => __TAURI_INVOKE<string>("parse_markdown_command", { markdown }),
|
||||||
}
|
};
|
||||||
|
|
||||||
/* Types */
|
/* Types */
|
||||||
export type ServerReadyData = {
|
export type ServerReadyData = {
|
||||||
url: string
|
url: string,
|
||||||
password: string | null
|
password: string | null,
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user