diff --git a/src/lib/components/refactor/ComposerAlice.svelte b/src/lib/components/composer/ComposerAlice.svelte
similarity index 100%
rename from src/lib/components/refactor/ComposerAlice.svelte
rename to src/lib/components/composer/ComposerAlice.svelte
diff --git a/src/lib/components/refactor/ComposerBob.svelte b/src/lib/components/composer/ComposerBob.svelte
similarity index 100%
rename from src/lib/components/refactor/ComposerBob.svelte
rename to src/lib/components/composer/ComposerBob.svelte
diff --git a/src/lib/components/refactor/ComposerForm.svelte b/src/lib/components/composer/ComposerForm.svelte
similarity index 92%
rename from src/lib/components/refactor/ComposerForm.svelte
rename to src/lib/components/composer/ComposerForm.svelte
index 4b8c27d..0c3f9d0 100644
--- a/src/lib/components/refactor/ComposerForm.svelte
+++ b/src/lib/components/composer/ComposerForm.svelte
@@ -2,12 +2,12 @@
import { createMachine, assign } from 'xstate';
import { useMachine } from '@xstate/svelte';
import { superForm } from 'sveltekit-superforms/client';
- import TextInput from './inputFields/TextInput.svelte';
- import ToggleInput from './inputFields/ToggleInput.svelte';
- import SliderInput from './inputFields/SliderInput.svelte';
- import SelectInput from './inputFields/SelectInput.svelte';
- import TextAreaInput from './inputFields/TextAreaInput.svelte';
- import NumberInput from './inputFields/NumberInput.svelte';
+ import TextInput from '../inputfields/TextInput.svelte';
+ import ToggleInput from '../inputfields/ToggleInput.svelte';
+ import SliderInput from '../inputfields/SliderInput.svelte';
+ import SelectInput from '../inputfields/SelectInput.svelte';
+ import TextAreaInput from '../inputfields/TextAreaInput.svelte';
+ import NumberInput from '../inputfields/NumberInput.svelte';
import { derived, writable } from 'svelte/store';
import Stepper from './Stepper.svelte';
@@ -67,7 +67,6 @@
]
}
],
-
PREV: {
target: 'input',
actions: assign({
@@ -94,7 +93,7 @@
target: 'input',
actions: assign({
currentField: 0,
- formData: () => ({ ...initialFormData }) // Create a new object
+ formData: () => ({ ...initialFormData })
})
}
}
@@ -105,7 +104,6 @@
const { state, send } = useMachine(formMachine);
$: if ($state.matches('submitted')) {
- // Reset the superForm instance when the form is submitted
({ form, errors, validate, constraints } = superForm(initialFormData, {
validators: validators,
warnings: {
diff --git a/src/lib/components/refactor/ComposerGraph.svelte b/src/lib/components/composer/ComposerGraph.svelte
similarity index 100%
rename from src/lib/components/refactor/ComposerGraph.svelte
rename to src/lib/components/composer/ComposerGraph.svelte
diff --git a/src/lib/components/refactor/ComposerOverview.svelte b/src/lib/components/composer/ComposerOverview.svelte
similarity index 90%
rename from src/lib/components/refactor/ComposerOverview.svelte
rename to src/lib/components/composer/ComposerOverview.svelte
index 4d6cadd..77c6139 100644
--- a/src/lib/components/refactor/ComposerOverview.svelte
+++ b/src/lib/components/composer/ComposerOverview.svelte
@@ -4,7 +4,6 @@
const routes = [
{ path: '/composer/stateToState', name: 'StateToState', icon: 'iconoir:align-top-box' },
- { path: '/composer/recipies', name: 'Recipies', icon: 'iconoir:stackoverflow' },
{ path: '/composer/graphql', name: 'GraphQL', icon: 'iconoir:network-right' },
{ path: '/composer/queries', name: 'Queries', icon: 'iconoir:brain-research' },
{ path: '/composer/form', name: 'Form', icon: 'iconoir:input-field' }
diff --git a/src/lib/components/refactor/ComposerQueries.svelte b/src/lib/components/composer/ComposerQueries.svelte
similarity index 100%
rename from src/lib/components/refactor/ComposerQueries.svelte
rename to src/lib/components/composer/ComposerQueries.svelte
diff --git a/src/lib/components/refactor/ComposerWallet.svelte b/src/lib/components/composer/ComposerWallet.svelte
similarity index 100%
rename from src/lib/components/refactor/ComposerWallet.svelte
rename to src/lib/components/composer/ComposerWallet.svelte
diff --git a/src/lib/components/refactor/Stepper.svelte b/src/lib/components/composer/Stepper.svelte
similarity index 100%
rename from src/lib/components/refactor/Stepper.svelte
rename to src/lib/components/composer/Stepper.svelte
diff --git a/src/lib/components/refactor/userService.ts b/src/lib/components/composer/userService.ts
similarity index 100%
rename from src/lib/components/refactor/userService.ts
rename to src/lib/components/composer/userService.ts
diff --git a/src/lib/components/refactor/inputfields/NumberInput.svelte b/src/lib/components/inputfields/NumberInput.svelte
similarity index 100%
rename from src/lib/components/refactor/inputfields/NumberInput.svelte
rename to src/lib/components/inputfields/NumberInput.svelte
diff --git a/src/lib/components/refactor/inputfields/SelectInput.svelte b/src/lib/components/inputfields/SelectInput.svelte
similarity index 100%
rename from src/lib/components/refactor/inputfields/SelectInput.svelte
rename to src/lib/components/inputfields/SelectInput.svelte
diff --git a/src/lib/components/refactor/inputfields/SliderInput.svelte b/src/lib/components/inputfields/SliderInput.svelte
similarity index 100%
rename from src/lib/components/refactor/inputfields/SliderInput.svelte
rename to src/lib/components/inputfields/SliderInput.svelte
diff --git a/src/lib/components/refactor/inputfields/TextAreaInput.svelte b/src/lib/components/inputfields/TextAreaInput.svelte
similarity index 100%
rename from src/lib/components/refactor/inputfields/TextAreaInput.svelte
rename to src/lib/components/inputfields/TextAreaInput.svelte
diff --git a/src/lib/components/refactor/inputfields/TextInput.svelte b/src/lib/components/inputfields/TextInput.svelte
similarity index 89%
rename from src/lib/components/refactor/inputfields/TextInput.svelte
rename to src/lib/components/inputfields/TextInput.svelte
index 21183c3..8fed656 100644
--- a/src/lib/components/refactor/inputfields/TextInput.svelte
+++ b/src/lib/components/inputfields/TextInput.svelte
@@ -9,7 +9,7 @@
export let childInput;
- const { form, errors, validate, field, constraints } = childInput;
+ const { form, errors, field, constraints } = childInput;
- import Recipies from '$lib/components/cleanup/Recipies.svelte';
-
-
-