* refactor(frontend): Reorganise app components * refactor(frontend): Restructure app component
19 lines
625 B
Svelte
19 lines
625 B
Svelte
<script lang="ts">
|
|
import type { ConnectedAppInput, RowAppInput, StaticAppInput, UserAppInput } from '../inputType'
|
|
import type { AppComponent } from './component'
|
|
import InputsSpecsEditor from './settingsPanel/InputsSpecsEditor.svelte'
|
|
|
|
export let fields: Record<string, StaticAppInput | ConnectedAppInput | RowAppInput | UserAppInput>
|
|
export let component: AppComponent
|
|
export let resourceOnly: boolean = false
|
|
|
|
$: fields = resourceOnly ? fields : fields
|
|
</script>
|
|
|
|
<InputsSpecsEditor
|
|
id={component.id}
|
|
shouldCapitalize={false}
|
|
bind:inputSpecs={fields}
|
|
userInputEnabled={component.type !== 'buttoncomponent'}
|
|
/>
|