diff --git a/frontend/src/components/directorychooser.svelte b/frontend/src/components/directorychooser.svelte new file mode 100644 index 0000000..3b854b4 --- /dev/null +++ b/frontend/src/components/directorychooser.svelte @@ -0,0 +1,19 @@ + + + + + diff --git a/frontend/src/organisms/connection/export/dumpinfo.svelte b/frontend/src/organisms/connection/export/export.svelte similarity index 64% rename from frontend/src/organisms/connection/export/dumpinfo.svelte rename to frontend/src/organisms/connection/export/export.svelte index 2c24195..f176b43 100644 --- a/frontend/src/organisms/connection/export/dumpinfo.svelte +++ b/frontend/src/organisms/connection/export/export.svelte @@ -1,12 +1,30 @@ - -
+ +
+ +
@@ -106,11 +142,15 @@ />
- + +
+ +
+
diff --git a/frontend/src/organisms/connection/export/exportinfo.svelte b/frontend/src/organisms/connection/export/exportinfo.svelte deleted file mode 100644 index 5f85575..0000000 --- a/frontend/src/organisms/connection/export/exportinfo.svelte +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/frontend/src/organisms/connection/index.svelte b/frontend/src/organisms/connection/index.svelte index f5d0e6e..b51b80a 100644 --- a/frontend/src/organisms/connection/index.svelte +++ b/frontend/src/organisms/connection/index.svelte @@ -9,8 +9,7 @@ import HostDetail from './hostdetail.svelte'; import Icon from '../../components/icon.svelte'; import { EventsOn } from '../../../wailsjs/runtime/runtime'; - import ExportInfo from './export/exportinfo.svelte'; - import DumpInfo from './export/dumpinfo.svelte'; + import Export from './export/export.svelte'; import Hint from '../../components/hint.svelte'; export let hosts = {}; @@ -29,7 +28,6 @@ let newCollKey = ''; let exportInfo; - let dumpInfo; async function getHosts() { hosts = await Hosts(); @@ -74,6 +72,8 @@ function exportCollection(collKey) { exportInfo = { + type: 'export', + filetype: 'json', hostKey: activeHostKey, dbKey: activeDbKey, collKeys: [ collKey ], @@ -81,7 +81,9 @@ } function dumpCollection(collKey) { - dumpInfo = { + exportInfo = { + type: 'dump', + filetype: 'bson', hostKey: activeHostKey, dbKey: activeDbKey, collKeys: [ collKey ], @@ -125,8 +127,7 @@ {hosts} /> - - + {#if newDb} diff --git a/frontend/src/organisms/settings/index.svelte b/frontend/src/organisms/settings/index.svelte index 6d21596..593e26a 100644 --- a/frontend/src/organisms/settings/index.svelte +++ b/frontend/src/organisms/settings/index.svelte @@ -1,4 +1,5 @@