From 2bf802ab6b4ac1aa72eeb75151c3bcaca0d0cdb1 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 7 Dec 2022 13:40:46 +0100 Subject: [PATCH] nit fix --- .../content/BranchPredicateEditor.svelte | 50 ++++++++++ .../flows/content/FlowBranchAllWrapper.svelte | 2 +- .../content/FlowBranchesAllWrapper.svelte | 97 +++++++++++++++++++ .../content/FlowBranchesOneWrapper.svelte | 94 ++++++++++++++++++ 4 files changed, 242 insertions(+), 1 deletion(-) create mode 100644 frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte create mode 100644 frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte create mode 100644 frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte diff --git a/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte b/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte new file mode 100644 index 0000000000..f965fc41ee --- /dev/null +++ b/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte @@ -0,0 +1,50 @@ + + + { + editor?.insertAtCursor(detail) + }} +> + + diff --git a/frontend/src/lib/components/flows/content/FlowBranchAllWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchAllWrapper.svelte index 2a927cfd62..ea27216983 100644 --- a/frontend/src/lib/components/flows/content/FlowBranchAllWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowBranchAllWrapper.svelte @@ -20,7 +20,7 @@ diff --git a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte new file mode 100644 index 0000000000..8ca0a2abcb --- /dev/null +++ b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte @@ -0,0 +1,97 @@ + + +
+ +
+
+ + The result of this step is the list of the result of each branch. + + +
+

{value.branches.length} branch{value.branches.length > 1 ? 'es' : ''}

+
+ {#each value.branches as branch, i} +
+
+ +
+
+ +
+
+ {/each} +
+
Run in parallel
+ +
+
+ {#if flowModule} + + + Early Stop/Break + Suspend + Sleep + + +
+ + + +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+
+
+
+ {/if} +
+
+
diff --git a/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte new file mode 100644 index 0000000000..c0dc6dbb5b --- /dev/null +++ b/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte @@ -0,0 +1,94 @@ + + +
+ +
+
+ + The result of this step is the result of the branch. + + +
+

{value.branches.length + 1} branch{value.branches.length + 1 > 1 ? 'es' : ''}

+
+
+ Default branch +

If none of the predicates' expressions evaluated in-order match, this branch is + chosen

+
+ {#each value.branches as branch, i} +
+ + +
+ {/each} +
+
+
+ {#if flowModule} + + + Early Stop/Break + Suspend + Sleep + + +
+ + + +
+ +
+
+ + +
+ +
+
+ +
+ +
+
+
+
+
+ {/if} +
+
+