cleaning up files and folders

This commit is contained in:
Samuel Andert 2023-08-08 15:40:43 +02:00
parent 844334bd27
commit 1f8b2db956
16 changed files with 8 additions and 16 deletions

View File

@ -2,12 +2,12 @@
import { createMachine, assign } from 'xstate'; import { createMachine, assign } from 'xstate';
import { useMachine } from '@xstate/svelte'; import { useMachine } from '@xstate/svelte';
import { superForm } from 'sveltekit-superforms/client'; import { superForm } from 'sveltekit-superforms/client';
import TextInput from './inputFields/TextInput.svelte'; import TextInput from '../inputfields/TextInput.svelte';
import ToggleInput from './inputFields/ToggleInput.svelte'; import ToggleInput from '../inputfields/ToggleInput.svelte';
import SliderInput from './inputFields/SliderInput.svelte'; import SliderInput from '../inputfields/SliderInput.svelte';
import SelectInput from './inputFields/SelectInput.svelte'; import SelectInput from '../inputfields/SelectInput.svelte';
import TextAreaInput from './inputFields/TextAreaInput.svelte'; import TextAreaInput from '../inputfields/TextAreaInput.svelte';
import NumberInput from './inputFields/NumberInput.svelte'; import NumberInput from '../inputfields/NumberInput.svelte';
import { derived, writable } from 'svelte/store'; import { derived, writable } from 'svelte/store';
import Stepper from './Stepper.svelte'; import Stepper from './Stepper.svelte';
@ -67,7 +67,6 @@
] ]
} }
], ],
PREV: { PREV: {
target: 'input', target: 'input',
actions: assign({ actions: assign({
@ -94,7 +93,7 @@
target: 'input', target: 'input',
actions: assign({ actions: assign({
currentField: 0, currentField: 0,
formData: () => ({ ...initialFormData }) // Create a new object formData: () => ({ ...initialFormData })
}) })
} }
} }
@ -105,7 +104,6 @@
const { state, send } = useMachine(formMachine); const { state, send } = useMachine(formMachine);
$: if ($state.matches('submitted')) { $: if ($state.matches('submitted')) {
// Reset the superForm instance when the form is submitted
({ form, errors, validate, constraints } = superForm(initialFormData, { ({ form, errors, validate, constraints } = superForm(initialFormData, {
validators: validators, validators: validators,
warnings: { warnings: {

View File

@ -4,7 +4,6 @@
const routes = [ const routes = [
{ path: '/composer/stateToState', name: 'StateToState', icon: 'iconoir:align-top-box' }, { 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/graphql', name: 'GraphQL', icon: 'iconoir:network-right' },
{ path: '/composer/queries', name: 'Queries', icon: 'iconoir:brain-research' }, { path: '/composer/queries', name: 'Queries', icon: 'iconoir:brain-research' },
{ path: '/composer/form', name: 'Form', icon: 'iconoir:input-field' } { path: '/composer/form', name: 'Form', icon: 'iconoir:input-field' }

View File

@ -9,7 +9,7 @@
export let childInput; export let childInput;
const { form, errors, validate, field, constraints } = childInput; const { form, errors, field, constraints } = childInput;
</script> </script>
<input <input

View File

@ -1,5 +0,0 @@
<script>
import Recipies from '$lib/components/cleanup/Recipies.svelte';
</script>
<Recipies />