diff --git a/frontend/src/lib/components/flows/content/FlowInputs.svelte b/frontend/src/lib/components/flows/content/FlowInputs.svelte index 811ab3e98f..f4e245e216 100644 --- a/frontend/src/lib/components/flows/content/FlowInputs.svelte +++ b/frontend/src/lib/components/flows/content/FlowInputs.svelte @@ -7,7 +7,6 @@ import PickHubScript from '../pickers/PickHubScript.svelte' import PickScript from '../pickers/PickScript.svelte' - export let shouldDisableLoopCreation: boolean = false export let shouldDisableTriggerScripts: boolean = false export let failureModule: boolean @@ -15,9 +14,55 @@
- {#if !shouldDisableTriggerScripts} -
Scripts
- {/if} +
Inline script
+
+ + dispatch('new', { + language: RawScript.language.PYTHON3, + kind: 'script', + subkind: failureModule ? 'failure' : 'flow' + })} + /> + + + dispatch('new', { + language: RawScript.language.DENO, + kind: 'script', + subkind: failureModule ? 'failure' : 'flow' + })} + /> + + + dispatch('new', { + language: RawScript.language.GO, + kind: 'script', + subkind: failureModule ? 'failure' : 'flow' + })} + /> + + {#if !failureModule} + + dispatch('new', { language: RawScript.language.DENO, kind: 'script', subkind: 'pgsql' })} + /> + {/if} +
+
Pre-made script
- {#if !failureModule} - - - {/if} - - {#if !shouldDisableLoopCreation} - dispatch('loop')} - /> - {/if} - - {#if !failureModule} - - dispatch('new', { language: RawScript.language.DENO, kind: 'script', subkind: 'pgsql' })} - /> - {/if} - - - dispatch('new', { - language: RawScript.language.PYTHON3, - kind: 'script', - subkind: failureModule ? 'failure' : 'flow' - })} - /> - - - dispatch('new', { - language: RawScript.language.DENO, - kind: 'script', - subkind: failureModule ? 'failure' : 'flow' - })} - /> - - - dispatch('new', { - language: RawScript.language.GO, - kind: 'script', - subkind: failureModule ? 'failure' : 'flow' - })} - />
{#if !shouldDisableTriggerScripts} -
Trigger scripts
+
Trigger script
- - + +
{/if} + + {#if !failureModule} +
Approval step
+
+ + +
+ +
Flow primitive
+ +
+ dispatch('loop')} + /> +
+ {/if}
diff --git a/frontend/src/lib/components/flows/pickers/PickHubScript.svelte b/frontend/src/lib/components/flows/pickers/PickHubScript.svelte index 969fac52d5..2805996604 100644 --- a/frontend/src/lib/components/flows/pickers/PickHubScript.svelte +++ b/frontend/src/lib/components/flows/pickers/PickHubScript.svelte @@ -32,7 +32,7 @@ /> itemPicker.openModal()} diff --git a/frontend/src/lib/components/flows/pickers/PickScript.svelte b/frontend/src/lib/components/flows/pickers/PickScript.svelte index a4512c6633..c8dddcf251 100644 --- a/frontend/src/lib/components/flows/pickers/PickScript.svelte +++ b/frontend/src/lib/components/flows/pickers/PickScript.svelte @@ -2,7 +2,7 @@ import ItemPicker from '$lib/components/ItemPicker.svelte' import { faUserGroup } from '@fortawesome/free-solid-svg-icons' - import { ScriptService } from '$lib/gen' + import { Script, ScriptService } from '$lib/gen' import { workspaceStore } from '$lib/stores' import { createEventDispatcher } from 'svelte' import FlowScriptPicker from './FlowScriptPicker.svelte' @@ -32,7 +32,7 @@ /> itemPicker.openModal()} diff --git a/frontend/src/lib/components/landing/FlowGettingStarted.svelte b/frontend/src/lib/components/landing/FlowGettingStarted.svelte index 70abd51a7e..9216032c92 100644 --- a/frontend/src/lib/components/landing/FlowGettingStarted.svelte +++ b/frontend/src/lib/components/landing/FlowGettingStarted.svelte @@ -42,6 +42,7 @@ variant="border" size="xs" startIcon={{ icon: faExternalLink }} + target="_blank" > Explore community flows on WindmillHub diff --git a/frontend/src/lib/components/landing/ScriptGettingStarted.svelte b/frontend/src/lib/components/landing/ScriptGettingStarted.svelte index 79a6d5706f..27f1c6ebf5 100644 --- a/frontend/src/lib/components/landing/ScriptGettingStarted.svelte +++ b/frontend/src/lib/components/landing/ScriptGettingStarted.svelte @@ -40,6 +40,7 @@ variant="border" size="xs" startIcon={{ icon: faExternalLink }} + target="_blank" > Explore community scripts on WindmillHub