diff --git a/web/src/lib/components/ToolPage.svelte b/web/src/lib/components/ToolPage.svelte index 3b41797..67dc3be 100644 --- a/web/src/lib/components/ToolPage.svelte +++ b/web/src/lib/components/ToolPage.svelte @@ -15,7 +15,7 @@ import { t } from '$lib/i18n/t'; import { toolDescription, toolTitle } from '$lib/i18n/tool-strings'; import type { StageStatus } from './stage/stage-props'; - import ToolStageClassic from './stage/ToolStageClassic.svelte'; + import ToolStageInline from './stage/ToolStageInline.svelte'; let { tool, restoreChain = false }: { tool: ToolEntry; restoreChain?: boolean } = $props(); @@ -265,7 +265,7 @@ {/if} - + import { t } from '$lib/i18n/t'; + import ParamsCard from '../tool/ParamsCard.svelte'; + import ResultCard from '../tool/ResultCard.svelte'; + import SourceCard from '../tool/SourceCard.svelte'; + import TextInputCard from '../tool/TextInputCard.svelte'; + import type { StageProps } from './stage-props'; + + let { + tool, + source, + result, + displayImage, + info, + status, + isInfo, + isSourceless, + isTextSource, + textResult, + sanitized, + canChainBase, + hasChain, + hasMask, + showMask = $bindable(false), + values = $bindable(), + pipetteTargetId, + handleFile, + onTextSubmit, + onSourceError, + reset, + toggleChain, + handlePipetteToggle, + handlePickColor, + showError + }: StageProps = $props(); + + const showParams = $derived( + (source !== null || isSourceless) && !isInfo && (tool.params.length > 0 || hasMask) + ); + + +
+ {#if !isSourceless} +
+ +
+ {#if isTextSource && !source} + + {:else} + + {/if} +
+
+ {/if} + + {#if showParams} +
+ +
+ +
+
+ {/if} + +
+ +
+ +
+
+
+ +