1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 21:17:59 +00:00

Moved editors and grid components to their own directories

This commit is contained in:
Romein van Buren 2023-08-07 16:59:22 +02:00
parent f33cac7f5c
commit 5b15782d7d
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49
25 changed files with 30 additions and 29 deletions

View File

@ -2,9 +2,9 @@
import { daysAbbr, months } from '$lib/constants'; import { daysAbbr, months } from '$lib/constants';
import { addDays, getWeek, isDate, isSameDay, startOfWeek } from 'date-fns'; import { addDays, getWeek, isDate, isSameDay, startOfWeek } from 'date-fns';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import Clock from './clock.svelte'; import Clock from '../clock.svelte';
import Icon from './icon.svelte'; import Icon from '../icon.svelte';
import Modal from './modal.svelte'; import Modal from '../modal.svelte';
export let value; export let value;
export let show = false; export let show = false;

View File

@ -4,7 +4,7 @@
import { ObjectId } from 'bson'; import { ObjectId } from 'bson';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import Datepicker from './datepicker.svelte'; import Datepicker from './datepicker.svelte';
import Icon from './icon.svelte'; import Icon from '../icon.svelte';
export let column = {}; export let column = {};
export let value = undefined; export let value = undefined;

View File

@ -22,7 +22,8 @@
}); });
</script> </script>
<CodeEditor bind:editor <CodeEditor
bind:editor
bind:text bind:text
on:inited on:inited
on:updated on:updated

View File

@ -2,8 +2,8 @@
import { pathsAreEqual, resolveKeypath, setValue } from '$lib/objects'; import { pathsAreEqual, resolveKeypath, setValue } from '$lib/objects';
import contextMenu from '$lib/stores/contextmenu'; import contextMenu from '$lib/stores/contextmenu';
import { createEventDispatcher } from 'svelte'; import { createEventDispatcher } from 'svelte';
import FormInput from './forminput.svelte'; import FormInput from '$components/editors/forminput.svelte';
import Icon from './icon.svelte'; import Icon from '$components/icon.svelte';
export let items = []; export let items = [];
export let columns = []; export let columns = [];

View File

@ -1,8 +1,8 @@
<script> <script>
import { onDestroy } from 'svelte'; import { onDestroy } from 'svelte';
import BlankState from './blankstate.svelte'; import BlankState from '../blankstate.svelte';
import GridItems from './grid-items.svelte'; import GridItems from './grid-items.svelte';
import Icon from './icon.svelte'; import Icon from '../icon.svelte';
export let columns = []; export let columns = [];
export let items = []; export let items = [];

View File

@ -4,7 +4,7 @@
import { createEventDispatcher, onDestroy } from 'svelte'; import { createEventDispatcher, onDestroy } from 'svelte';
import Icon from './icon.svelte'; import Icon from './icon.svelte';
import Modal from './modal.svelte'; import Modal from './modal.svelte';
import ObjectEditor from './objecteditor.svelte'; import ObjectEditor from './editors/objecteditor.svelte';
export let data; export let data;
export let readonly = false; export let readonly = false;

View File

@ -1,5 +1,5 @@
<script> <script>
import DirectoryChooser from '$components/directorychooser.svelte'; import DirectoryChooser from '$components/editors/directorychooser.svelte';
import Modal from '$components/modal.svelte'; import Modal from '$components/modal.svelte';
import input from '$lib/actions/input'; import input from '$lib/actions/input';
import settings from '$lib/stores/settings'; import settings from '$lib/stores/settings';

View File

@ -2,7 +2,7 @@
import Details from '$components/details.svelte'; import Details from '$components/details.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import Modal from '$components/modal.svelte'; import Modal from '$components/modal.svelte';
import ObjectEditor from '$components/objecteditor.svelte'; import ObjectEditor from '$components/editors/objecteditor.svelte';
import { aggregationStageDocumentationURL, aggregationStages } from '$lib/mongo'; import { aggregationStageDocumentationURL, aggregationStages } from '$lib/mongo';
import Collation from '$lib/mongo/collation.svelte'; import Collation from '$lib/mongo/collation.svelte';
import { jsonLooseParse, looseJsonIsValid } from '$lib/strings'; import { jsonLooseParse, looseJsonIsValid } from '$lib/strings';

View File

@ -1,5 +1,5 @@
<script> <script>
import FormInput from '$components/forminput.svelte'; import FormInput from '$components/editors/forminput.svelte';
import Hint from '$components/hint.svelte'; import Hint from '$components/hint.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import { inputTypes } from '$lib/mongo'; import { inputTypes } from '$lib/mongo';

View File

@ -1,5 +1,5 @@
<script> <script>
import Grid from '$components/grid.svelte'; import Grid from '$components/grid/grid.svelte';
import Hint from '$components/hint.svelte'; import Hint from '$components/hint.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import Modal from '$components/modal.svelte'; import Modal from '$components/modal.svelte';

View File

@ -1,7 +1,7 @@
<script> <script>
import Grid from '$components/grid.svelte'; import Grid from '$components/grid/grid.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectGrid from '$components/objectgrid.svelte'; import ObjectGrid from '$components/grid/objectgrid.svelte';
import ObjectViewer from '$components/objectviewer.svelte'; import ObjectViewer from '$components/objectviewer.svelte';
import input from '$lib/actions/input'; import input from '$lib/actions/input';
import dialogs from '$lib/dialogs'; import dialogs from '$lib/dialogs';

View File

@ -1,6 +1,6 @@
<script> <script>
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectGrid from '$components/objectgrid.svelte'; import ObjectGrid from '$components/grid/objectgrid.svelte';
export let collection; export let collection;
export let visible = false; export let visible = false;

View File

@ -1,8 +1,8 @@
<script> <script>
import Details from '$components/details.svelte'; import Details from '$components/details.svelte';
import Grid from '$components/grid.svelte'; import Grid from '$components/grid/grid.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectEditor from '$components/objecteditor.svelte'; import ObjectEditor from '$components/editors/objecteditor.svelte';
import ObjectViewer from '$components/objectviewer.svelte'; import ObjectViewer from '$components/objectviewer.svelte';
import { randomString } from '$lib/math'; import { randomString } from '$lib/math';
import { inputTypes } from '$lib/mongo'; import { inputTypes } from '$lib/mongo';

View File

@ -1,6 +1,6 @@
<script> <script>
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectEditor from '$components/objecteditor.svelte'; import ObjectEditor from '$components/editors/objecteditor.svelte';
import { convertLooseJson } from '$lib/strings'; import { convertLooseJson } from '$lib/strings';
import { RemoveItems } from '$wails/go/app/App'; import { RemoveItems } from '$wails/go/app/App';
import { onMount } from 'svelte'; import { onMount } from 'svelte';

View File

@ -1,6 +1,6 @@
<script> <script>
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectGrid from '$components/objectgrid.svelte'; import ObjectGrid from '$components/grid/objectgrid.svelte';
export let collection; export let collection;

View File

@ -1,6 +1,6 @@
<script> <script>
import DirectoryChooser from '$components/directorychooser.svelte'; import DirectoryChooser from '$components/editors/directorychooser.svelte';
import Grid from '$components/grid.svelte'; import Grid from '$components/grid/grid.svelte';
import Modal from '$components/modal.svelte'; import Modal from '$components/modal.svelte';
import { startProgress } from '$lib/progress'; import { startProgress } from '$lib/progress';
import hostTree from '$lib/stores/hosttree'; import hostTree from '$lib/stores/hosttree';

View File

@ -1,6 +1,6 @@
<script> <script>
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectGrid from '$components/objectgrid.svelte'; import ObjectGrid from '$components/grid/objectgrid.svelte';
export let database; export let database;

View File

@ -1,5 +1,5 @@
<script> <script>
import Grid from '$components/grid.svelte'; import Grid from '$components/grid/grid.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectViewer from '$components/objectviewer.svelte'; import ObjectViewer from '$components/objectviewer.svelte';
import input from '$lib/actions/input'; import input from '$lib/actions/input';

View File

@ -1,6 +1,6 @@
<script> <script>
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectGrid from '$components/objectgrid.svelte'; import ObjectGrid from '$components/grid/objectgrid.svelte';
export let host; export let host;

View File

@ -1,6 +1,6 @@
<script> <script>
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import ObjectGrid from '$components/objectgrid.svelte'; import ObjectGrid from '$components/grid/objectgrid.svelte';
export let host; export let host;

View File

@ -1,5 +1,5 @@
<script> <script>
import Grid from '$components/grid.svelte'; import Grid from '$components/grid/grid.svelte';
import hostTree from '$lib/stores/hosttree'; import hostTree from '$lib/stores/hosttree';
export let path = []; export let path = [];

View File

@ -1,6 +1,6 @@
<script> <script>
import BlankState from '$components/blankstate.svelte'; import BlankState from '$components/blankstate.svelte';
import CodeEditor from '$components/codeeditor.svelte'; import CodeEditor from '$components/editors/codeeditor.svelte';
import Icon from '$components/icon.svelte'; import Icon from '$components/icon.svelte';
import environment from '$lib/stores/environment'; import environment from '$lib/stores/environment';
import { OpenShellScript, SaveShellScript } from '$wails/go/app/App'; import { OpenShellScript, SaveShellScript } from '$wails/go/app/App';