mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
23 lines
677 B
Svelte
23 lines
677 B
Svelte
<script lang="ts">
|
|
import type { InputTransform } from '$lib/gen'
|
|
import { Highlight } from 'svelte-highlight'
|
|
import ObjectViewer from './propertyPicker/ObjectViewer.svelte'
|
|
import typescript from 'svelte-highlight/languages/typescript'
|
|
|
|
export let inputTransforms: Record<string, InputTransform>
|
|
</script>
|
|
|
|
<ul class="mb-1">
|
|
{#each Object.entries(inputTransforms) as [key, val]}
|
|
<li>
|
|
<span class="font-black text-gray-700">{key}</span>: {#if val.type == 'static'}<ObjectViewer
|
|
json={val.value}
|
|
/>{:else}
|
|
<span class="inline-highlight">
|
|
<Highlight offsetTop={0} language={typescript} code={val.expr} />
|
|
</span>
|
|
{/if}
|
|
</li>
|
|
{/each}
|
|
</ul>
|