mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 08:02:18 +00:00
* feat(frontend): Migrate Tabs * feat(frontend): Generalise Menu * feat(frontend): Menu component done * feat(frontend): Fix placements * feat(frontend): Clean unused imports * feat(frontend): Fix linting
28 lines
841 B
Svelte
28 lines
841 B
Svelte
<script lang="ts">
|
|
import type { CompletedJob } from '$lib/gen'
|
|
|
|
import DisplayResult from './DisplayResult.svelte'
|
|
import Tabs from './common/tabs/Tabs.svelte'
|
|
import Tab from './common/tabs/Tab.svelte'
|
|
import TabContent from './common/tabs/TabContent.svelte'
|
|
|
|
export let job: CompletedJob | undefined
|
|
</script>
|
|
|
|
{#if job}
|
|
<Tabs selected="results">
|
|
<Tab value="results">Results</Tab>
|
|
<Tab value="logs">Logs</Tab>
|
|
<svelte:fragment slot="content">
|
|
<TabContent value="results" class="border p-2 h-36 overflow-y-scroll">
|
|
<DisplayResult result={job.result} />
|
|
</TabContent>
|
|
<TabContent value="logs" class="border p-2 h-36 overflow-y-scroll">
|
|
<div class="text-xs p-4 bg-gray-50 overflow-auto max-h-80 border">
|
|
<pre class="w-full">{job.logs}</pre>
|
|
</div>
|
|
</TabContent>
|
|
</svelte:fragment>
|
|
</Tabs>
|
|
{/if}
|