Files
windmill/frontend/src/lib/components/InputTransformsViewer.svelte
T
Faton Ramadani b39f486c91 Dark mode v0 (#1893)
* feat(frontend): wip

* wip

* wip

* wip

* wip

* add toggle

* correctly handle monaco theme

* wip

* wip

* wip

* wip

* wip

* feat(frontend): Dark mode v0

* feat(frontend): Adap AI gen poppup

* feat(frontend): Adap script metadata labels

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix ressource picker

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix unreadable texts

* feat(frontend): Add theme toggle in the login page

* feat(frontend): Fix unreadable texts

* feat(frontend): Fix language selection

* feat(frontend): Fix FlowStatusViewer colors

* feat(frontend): Fix divide colors

* feat(frontend): Fix flow graph buttons

* feat(frontend): add theme toggle in login modal

* feat(frontend): small ui fix

* feat(frontend): fix graph dark mode toggle
2023-07-25 10:43:04 +02:00

34 lines
921 B
Svelte

<script lang="ts">
import type { InputTransform } from '$lib/gen'
import ObjectViewer from './propertyPicker/ObjectViewer.svelte'
import { cleanExpr } from './flows/utils'
export let inputTransforms: Record<string, InputTransform>
$: entries = Object.entries(inputTransforms)
</script>
{#if entries.length}
<ul class="mb-1">
{#each entries as [key, val]}
<li class="flex pb-2 last:pb-0">
<span class="font-black text-secondary text-xs">{key}:</span>
{#if val.type == 'static'}
{#if typeof val.value == 'object'}
<ObjectViewer json={val.value} />
{:else}
<span class="text-xs text-black whitespace-pre-wrap ml-2">
{val.value}
</span>
{/if}
{:else}
<span class="text-xs text-black whitespace-pre-wrap ml-2">
{cleanExpr(val.expr)}
</span>
{/if}
</li>
{/each}
</ul>
{:else}
<div class="text-tertiary text-sm"> No inputs </div>
{/if}