windmill-components 1.406.4 → 1.406.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import AppConnectInner from './AppConnectInner.svelte';
|
|
1
|
+
<script>import AppConnectInner from './AppConnectInner.svelte';
|
|
3
2
|
import DarkModeObserver from './DarkModeObserver.svelte';
|
|
4
3
|
import { Button } from './common';
|
|
5
4
|
import { workspaceStore } from '../stores';
|
|
@@ -9,7 +8,6 @@ export let workspace;
|
|
|
9
8
|
export let express = false;
|
|
10
9
|
let step = 1;
|
|
11
10
|
let disabled = false;
|
|
12
|
-
let isGoogleSignin = false;
|
|
13
11
|
let manual = true;
|
|
14
12
|
let appConnect = undefined;
|
|
15
13
|
let darkMode = false;
|
|
@@ -32,32 +30,21 @@ onMount(async () => {
|
|
|
32
30
|
<Button variant="border" on:click={appConnect?.back}>Back</Button>
|
|
33
31
|
{/if}
|
|
34
32
|
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<Button {disabled} on:click={appConnect?.next}>
|
|
45
|
-
{#if step == 2 && !manual}
|
|
46
|
-
Connect
|
|
47
|
-
{:else if step == 1}
|
|
48
|
-
Next
|
|
49
|
-
{:else}
|
|
50
|
-
Save
|
|
51
|
-
{/if}
|
|
52
|
-
</Button>
|
|
53
|
-
{/if}
|
|
33
|
+
<Button {disabled} on:click={appConnect?.next}>
|
|
34
|
+
{#if step == 2 && !manual}
|
|
35
|
+
Connect
|
|
36
|
+
{:else if step == 1}
|
|
37
|
+
Next
|
|
38
|
+
{:else}
|
|
39
|
+
Save
|
|
40
|
+
{/if}
|
|
41
|
+
</Button>
|
|
54
42
|
</div>
|
|
55
43
|
</div>
|
|
56
44
|
<AppConnectInner
|
|
57
45
|
bind:this={appConnect}
|
|
58
46
|
bind:step
|
|
59
47
|
bind:resourceType
|
|
60
|
-
bind:isGoogleSignin
|
|
61
48
|
bind:disabled
|
|
62
49
|
bind:manual
|
|
63
50
|
on:error
|
|
@@ -324,7 +324,7 @@ function setFlowInput(argName) {
|
|
|
324
324
|
class={advancedSelected === 'runtime' ? 'h-[calc(100%-68px)]' : 'h-[calc(100%-34px)]'}
|
|
325
325
|
>
|
|
326
326
|
{#if selected === 'inputs' && (flowModule.value.type == 'rawscript' || flowModule.value.type == 'script' || flowModule.value.type == 'flow')}
|
|
327
|
-
<div class="h-full overflow-auto" id="flow-editor-step-input">
|
|
327
|
+
<div class="h-full overflow-auto px-2" id="flow-editor-step-input">
|
|
328
328
|
<PropPickerWrapper
|
|
329
329
|
pickableProperties={stepPropPicker.pickableProperties}
|
|
330
330
|
error={failureModule}
|
|
@@ -7,6 +7,7 @@ export declare const INITIAL_CODE: {
|
|
|
7
7
|
approval: string;
|
|
8
8
|
failure: string;
|
|
9
9
|
preprocessor: string;
|
|
10
|
+
clear: string;
|
|
10
11
|
};
|
|
11
12
|
python3: {
|
|
12
13
|
script: string;
|
|
@@ -14,6 +15,7 @@ export declare const INITIAL_CODE: {
|
|
|
14
15
|
approval: string;
|
|
15
16
|
failure: string;
|
|
16
17
|
preprocessor: string;
|
|
18
|
+
clear: string;
|
|
17
19
|
};
|
|
18
20
|
deno: {
|
|
19
21
|
script: string;
|
|
@@ -22,6 +24,7 @@ export declare const INITIAL_CODE: {
|
|
|
22
24
|
failure: string;
|
|
23
25
|
preprocessor: string;
|
|
24
26
|
fetch: string;
|
|
27
|
+
clear: string;
|
|
25
28
|
};
|
|
26
29
|
go: {
|
|
27
30
|
script: string;
|
|
@@ -638,14 +638,16 @@ export const INITIAL_CODE = {
|
|
|
638
638
|
trigger: BUN_INIT_CODE_TRIGGER,
|
|
639
639
|
approval: BUN_INIT_CODE_APPROVAL,
|
|
640
640
|
failure: BUN_FAILURE_MODULE_CODE,
|
|
641
|
-
preprocessor: BUN_PREPROCESSOR_MODULE_CODE
|
|
641
|
+
preprocessor: BUN_PREPROCESSOR_MODULE_CODE,
|
|
642
|
+
clear: BUN_INIT_CODE_CLEAR
|
|
642
643
|
},
|
|
643
644
|
python3: {
|
|
644
645
|
script: PYTHON_INIT_CODE,
|
|
645
646
|
trigger: PYTHON_INIT_CODE_TRIGGER,
|
|
646
647
|
approval: PYTHON_INIT_CODE_APPROVAL,
|
|
647
648
|
failure: PYTHON_FAILURE_MODULE_CODE,
|
|
648
|
-
preprocessor: PYTHON_PREPROCESSOR_MODULE_CODE
|
|
649
|
+
preprocessor: PYTHON_PREPROCESSOR_MODULE_CODE,
|
|
650
|
+
clear: PYTHON_INIT_CODE_CLEAR
|
|
649
651
|
},
|
|
650
652
|
deno: {
|
|
651
653
|
script: DENO_INIT_CODE,
|
|
@@ -653,7 +655,8 @@ export const INITIAL_CODE = {
|
|
|
653
655
|
approval: DENO_INIT_CODE_APPROVAL,
|
|
654
656
|
failure: DENO_FAILURE_MODULE_CODE,
|
|
655
657
|
preprocessor: DENO_PREPROCESSOR_MODULE_CODE,
|
|
656
|
-
fetch: FETCH_INIT_CODE
|
|
658
|
+
fetch: FETCH_INIT_CODE,
|
|
659
|
+
clear: DENO_INIT_CODE_CLEAR
|
|
657
660
|
},
|
|
658
661
|
go: {
|
|
659
662
|
script: GO_INIT_CODE,
|
|
@@ -723,7 +726,7 @@ export function initialCode(language, kind, subkind) {
|
|
|
723
726
|
}
|
|
724
727
|
else if (kind === 'script') {
|
|
725
728
|
if (subkind === 'flow') {
|
|
726
|
-
return INITIAL_CODE.deno.
|
|
729
|
+
return INITIAL_CODE.deno.clear;
|
|
727
730
|
}
|
|
728
731
|
else if (subkind === 'pgsql') {
|
|
729
732
|
return INITIAL_CODE.postgresql.script;
|
|
@@ -762,7 +765,7 @@ export function initialCode(language, kind, subkind) {
|
|
|
762
765
|
return INITIAL_CODE.python3.failure;
|
|
763
766
|
}
|
|
764
767
|
else if (subkind === 'flow') {
|
|
765
|
-
return INITIAL_CODE.python3.
|
|
768
|
+
return INITIAL_CODE.python3.clear;
|
|
766
769
|
}
|
|
767
770
|
else if (subkind === 'preprocessor') {
|
|
768
771
|
return INITIAL_CODE.python3.preprocessor;
|
|
@@ -829,7 +832,7 @@ export function initialCode(language, kind, subkind) {
|
|
|
829
832
|
return INITIAL_CODE.bun.preprocessor;
|
|
830
833
|
}
|
|
831
834
|
else if (subkind === 'flow') {
|
|
832
|
-
return INITIAL_CODE.bun.
|
|
835
|
+
return INITIAL_CODE.bun.clear;
|
|
833
836
|
}
|
|
834
837
|
return INITIAL_CODE.bun.script;
|
|
835
838
|
}
|