From 44c94d0d725abbc92a038114e5a61425f2cf6d24 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 21 Feb 2023 17:47:21 +0100 Subject: [PATCH] Moved UI methods to their own struct --- .../src/components/directorychooser.svelte | 2 +- frontend/src/components/modal.svelte | 2 +- .../src/organisms/connection/index.svelte | 3 +- frontend/wailsjs/go/app/App.d.ts | 10 ++-- frontend/wailsjs/go/app/App.js | 16 ++---- frontend/wailsjs/go/ui/UI.d.ts | 13 +++++ frontend/wailsjs/go/ui/UI.js | 23 ++++++++ internal/app/app.go | 53 +++---------------- internal/ui/dialogs.go | 30 +++++++++++ internal/{open_file => ui}/open.go | 4 +- internal/{open_file => ui}/open_darwin.go | 2 +- internal/{open_file => ui}/open_windows.go | 2 +- internal/ui/ui.go | 27 ++++++++++ main.go | 11 +++- 14 files changed, 124 insertions(+), 74 deletions(-) create mode 100755 frontend/wailsjs/go/ui/UI.d.ts create mode 100755 frontend/wailsjs/go/ui/UI.js create mode 100644 internal/ui/dialogs.go rename internal/{open_file => ui}/open.go (59%) rename internal/{open_file => ui}/open_darwin.go (86%) rename internal/{open_file => ui}/open_windows.go (85%) create mode 100644 internal/ui/ui.go diff --git a/frontend/src/components/directorychooser.svelte b/frontend/src/components/directorychooser.svelte index 83f60e0..fc0edf7 100644 --- a/frontend/src/components/directorychooser.svelte +++ b/frontend/src/components/directorychooser.svelte @@ -1,5 +1,5 @@