-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: add WorkflowDetail, but comment out until we decide where to pu…
…t it
- Loading branch information
Showing
6 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script lang="ts"> | ||
import { JsonView } from '@zerodevx/svelte-json-view' | ||
import { slide } from 'svelte/transition' | ||
import { quartOut } from 'svelte/easing' | ||
import { prepareWorkflow } from '$lib/workflows' | ||
export let uploadedImage | ||
export let workflowRun | ||
let preparedWorkflow | ||
const processWorkflow = async () => { | ||
preparedWorkflow = await prepareWorkflow(workflowRun.payload, uploadedImage) | ||
} | ||
$: { | ||
if (workflowRun) { | ||
preparedWorkflow = processWorkflow() | ||
} | ||
} | ||
</script> | ||
|
||
<div | ||
transition:slide={{ delay: 50, duration: 500, easing: quartOut }} | ||
class="absolute w-screen h-[calc(100vh-48px)] top-12 z-50 bg-white" | ||
> | ||
<div class="w-full h-full"> | ||
<div class="p-4 overflow-y-auto scrollbar-hide"> | ||
<div class="text-lg uppercase font-medium">Raw workflow for Homestar</div> | ||
{#if preparedWorkflow} | ||
<div class="jsonview"> | ||
{#await preparedWorkflow then workflowOne} | ||
<JsonView json={workflowOne} /> | ||
{/await} | ||
</div> | ||
{/if} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters