feat(frontend): use Wails bindings for file I/O

Replace hidden file inputs and anchor downloads with native open/save
dialogs via a thin platform layer. WAV export sends base64 audio data to
the Go backend for writing to the user-chosen path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 22:23:35 -07:00
parent 3a5d9d849f
commit 45075b3328
8 changed files with 120 additions and 42 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ export function OpenVideo(): $CancellablePromise<$models.VideoResult> {
});
}
export function SaveAudio(data: string, defaultName: string): $CancellablePromise<void> {
return $Call.ByID(1785178400, data, defaultName);
export function SaveAudio(dataBase64: string, defaultName: string): $CancellablePromise<void> {
return $Call.ByID(1785178400, dataBase64, defaultName);
}
export function SaveProject(content: string, defaultName: string): $CancellablePromise<void> {