From 5b15782d7d9618e07629ef4e0ac6a65b16e3f98e Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 7 Aug 2023 16:59:22 +0200 Subject: [PATCH] Moved editors and grid components to their own directories --- frontend/src/components/{ => editors}/codeeditor.svelte | 0 frontend/src/components/{ => editors}/datepicker.svelte | 6 +++--- .../src/components/{ => editors}/directorychooser.svelte | 0 frontend/src/components/{ => editors}/forminput.svelte | 2 +- frontend/src/components/{ => editors}/objecteditor.svelte | 3 ++- frontend/src/components/{ => grid}/grid-items.svelte | 4 ++-- frontend/src/components/{ => grid}/grid.svelte | 4 ++-- frontend/src/components/{ => grid}/objectgrid.svelte | 0 frontend/src/components/objectviewer.svelte | 2 +- frontend/src/dialogs/settings/index.svelte | 2 +- .../src/organisms/connection/collection/aggregate.svelte | 2 +- .../organisms/connection/collection/components/form.svelte | 2 +- .../connection/collection/dialogs/querychooser.svelte | 2 +- frontend/src/organisms/connection/collection/find.svelte | 4 ++-- frontend/src/organisms/connection/collection/indexes.svelte | 2 +- frontend/src/organisms/connection/collection/insert.svelte | 4 ++-- frontend/src/organisms/connection/collection/remove.svelte | 2 +- frontend/src/organisms/connection/collection/stats.svelte | 2 +- .../src/organisms/connection/database/dialogs/dump.svelte | 4 ++-- frontend/src/organisms/connection/database/stats.svelte | 2 +- frontend/src/organisms/connection/host/logs.svelte | 2 +- frontend/src/organisms/connection/host/status.svelte | 2 +- frontend/src/organisms/connection/host/systeminfo.svelte | 2 +- frontend/src/organisms/connection/hosttree.svelte | 2 +- frontend/src/organisms/connection/shell.svelte | 2 +- 25 files changed, 30 insertions(+), 29 deletions(-) rename frontend/src/components/{ => editors}/codeeditor.svelte (100%) rename frontend/src/components/{ => editors}/datepicker.svelte (97%) rename frontend/src/components/{ => editors}/directorychooser.svelte (100%) rename frontend/src/components/{ => editors}/forminput.svelte (99%) rename frontend/src/components/{ => editors}/objecteditor.svelte (95%) rename frontend/src/components/{ => grid}/grid-items.svelte (98%) rename frontend/src/components/{ => grid}/grid.svelte (97%) rename frontend/src/components/{ => grid}/objectgrid.svelte (100%) diff --git a/frontend/src/components/codeeditor.svelte b/frontend/src/components/editors/codeeditor.svelte similarity index 100% rename from frontend/src/components/codeeditor.svelte rename to frontend/src/components/editors/codeeditor.svelte diff --git a/frontend/src/components/datepicker.svelte b/frontend/src/components/editors/datepicker.svelte similarity index 97% rename from frontend/src/components/datepicker.svelte rename to frontend/src/components/editors/datepicker.svelte index c4659d8..12f30e0 100644 --- a/frontend/src/components/datepicker.svelte +++ b/frontend/src/components/editors/datepicker.svelte @@ -2,9 +2,9 @@ import { daysAbbr, months } from '$lib/constants'; import { addDays, getWeek, isDate, isSameDay, startOfWeek } from 'date-fns'; import { onMount } from 'svelte'; - import Clock from './clock.svelte'; - import Icon from './icon.svelte'; - import Modal from './modal.svelte'; + import Clock from '../clock.svelte'; + import Icon from '../icon.svelte'; + import Modal from '../modal.svelte'; export let value; export let show = false; diff --git a/frontend/src/components/directorychooser.svelte b/frontend/src/components/editors/directorychooser.svelte similarity index 100% rename from frontend/src/components/directorychooser.svelte rename to frontend/src/components/editors/directorychooser.svelte diff --git a/frontend/src/components/forminput.svelte b/frontend/src/components/editors/forminput.svelte similarity index 99% rename from frontend/src/components/forminput.svelte rename to frontend/src/components/editors/forminput.svelte index 9d2498a..6e0d9f1 100644 --- a/frontend/src/components/forminput.svelte +++ b/frontend/src/components/editors/forminput.svelte @@ -4,7 +4,7 @@ import { ObjectId } from 'bson'; import { onMount } from 'svelte'; import Datepicker from './datepicker.svelte'; - import Icon from './icon.svelte'; + import Icon from '../icon.svelte'; export let column = {}; export let value = undefined; diff --git a/frontend/src/components/objecteditor.svelte b/frontend/src/components/editors/objecteditor.svelte similarity index 95% rename from frontend/src/components/objecteditor.svelte rename to frontend/src/components/editors/objecteditor.svelte index 4a6b4db..4b446ca 100644 --- a/frontend/src/components/objecteditor.svelte +++ b/frontend/src/components/editors/objecteditor.svelte @@ -22,7 +22,8 @@ }); - import { onDestroy } from 'svelte'; - import BlankState from './blankstate.svelte'; + import BlankState from '../blankstate.svelte'; import GridItems from './grid-items.svelte'; - import Icon from './icon.svelte'; + import Icon from '../icon.svelte'; export let columns = []; export let items = []; diff --git a/frontend/src/components/objectgrid.svelte b/frontend/src/components/grid/objectgrid.svelte similarity index 100% rename from frontend/src/components/objectgrid.svelte rename to frontend/src/components/grid/objectgrid.svelte diff --git a/frontend/src/components/objectviewer.svelte b/frontend/src/components/objectviewer.svelte index 41b62fa..4063111 100644 --- a/frontend/src/components/objectviewer.svelte +++ b/frontend/src/components/objectviewer.svelte @@ -4,7 +4,7 @@ import { createEventDispatcher, onDestroy } from 'svelte'; import Icon from './icon.svelte'; import Modal from './modal.svelte'; - import ObjectEditor from './objecteditor.svelte'; + import ObjectEditor from './editors/objecteditor.svelte'; export let data; export let readonly = false; diff --git a/frontend/src/dialogs/settings/index.svelte b/frontend/src/dialogs/settings/index.svelte index c203330..a1a148d 100644 --- a/frontend/src/dialogs/settings/index.svelte +++ b/frontend/src/dialogs/settings/index.svelte @@ -1,5 +1,5 @@