From 9662d469570406b05616dc4b51b9d704869a0a8d Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sat, 14 Jan 2023 20:47:29 +0100 Subject: [PATCH] Split a bit of backend code --- frontend/src/app.svelte | 2 +- .../organisms/collection-detail/find.svelte | 2 +- .../organisms/collection-detail/insert.svelte | 2 +- frontend/wailsjs/go/{main => app}/App.d.ts | 8 +- frontend/wailsjs/go/app/App.js | 31 ++ frontend/wailsjs/go/main/App.js | 31 -- frontend/wailsjs/go/models.ts | 2 +- internal/app/app.go | 15 + internal/app/collection.go | 29 ++ internal/app/collection_find.go | 129 +++++++ internal/app/collection_insert.go | 49 +++ internal/app/connection.go | 28 ++ internal/app/database.go | 59 ++++ internal/app/host.go | 58 ++++ main.go | 322 +----------------- 15 files changed, 408 insertions(+), 359 deletions(-) rename frontend/wailsjs/go/{main => app}/App.d.ts (78%) create mode 100755 frontend/wailsjs/go/app/App.js delete mode 100755 frontend/wailsjs/go/main/App.js create mode 100644 internal/app/app.go create mode 100644 internal/app/collection.go create mode 100644 internal/app/collection_find.go create mode 100644 internal/app/collection_insert.go create mode 100644 internal/app/connection.go create mode 100644 internal/app/database.go create mode 100644 internal/app/host.go diff --git a/frontend/src/app.svelte b/frontend/src/app.svelte index 5e75190..39bc4b2 100644 --- a/frontend/src/app.svelte +++ b/frontend/src/app.svelte @@ -1,6 +1,6 @@