mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 16:05:58 +00:00
* fix(frontend): ui refactor * fix(frontend): WIP * fix(frontend): WIP * fix(frontend): WIP * fix(frontend): remove virtual table * fix(frontend): Add virtual list * fix(frontend): fix number of items * fix(frontend): revert changes * fix(frontend): fix build
36 lines
720 B
Svelte
36 lines
720 B
Svelte
<script lang="ts">
|
|
import ArgInfo from './ArgInfo.svelte'
|
|
import { Skeleton } from './common'
|
|
import TableCustom from './TableCustom.svelte'
|
|
|
|
export let args: any
|
|
</script>
|
|
|
|
<TableCustom class="py-2">
|
|
<tr slot="header-row">
|
|
<th>Argument</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
<tbody slot="body">
|
|
{#if args && Object.keys(args).length > 0}
|
|
{#each Object.entries(args) as [arg, value]}
|
|
<tr>
|
|
<td class="font-semibold">{arg}</td>
|
|
<td><ArgInfo {value} /></td>
|
|
</tr>
|
|
{/each}
|
|
{:else if args}
|
|
<tr>No arguments</tr>
|
|
{:else}
|
|
<tr>
|
|
<td>
|
|
<Skeleton layout={[[3], 0.5, [3]]} />
|
|
</td>
|
|
<td>
|
|
<Skeleton layout={[[3], 0.5, [3]]} />
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</TableCustom>
|