windmill-components 1.510.1 → 1.511.0
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.
- package/package/components/AppConnectInner.svelte +28 -5
- package/package/components/Editor.svelte +108 -84
- package/package/components/Editor.svelte.d.ts +30 -55
- package/package/components/HttpAgentWorkerDrawer.svelte +1 -1
- package/package/components/JsonEditor.svelte +11 -11
- package/package/components/JsonEditor.svelte.d.ts +14 -56
- package/package/components/Label.svelte +6 -11
- package/package/components/Label.svelte.d.ts +14 -39
- package/package/components/NumberTypeNarrowing.svelte +13 -16
- package/package/components/NumberTypeNarrowing.svelte.d.ts +4 -18
- package/package/components/ResourceTypePicker.svelte +20 -17
- package/package/components/ResourceTypePicker.svelte.d.ts +7 -6
- package/package/components/Section.svelte +7 -20
- package/package/components/Section.svelte.d.ts +20 -47
- package/package/components/SimpleEditor.svelte +4 -4
- package/package/components/SimpleEditor.svelte.d.ts +1 -0
- package/package/components/SqlRepl.svelte +0 -1
- package/package/components/Subsection.svelte +10 -12
- package/package/components/Subsection.svelte.d.ts +15 -39
- package/package/components/WorkerGroup.svelte +260 -165
- package/package/components/WorkerGroup.svelte.d.ts +2 -0
- package/package/components/WorkerTagPicker.svelte +3 -3
- package/package/components/WorkerTagSelect.svelte +3 -3
- package/package/components/copilot/AIFormSettings.svelte +3 -4
- package/package/components/copilot/AIFormSettings.svelte.d.ts +5 -19
- package/package/components/copilot/autocomplete/Autocompletor.d.ts +3 -1
- package/package/components/copilot/autocomplete/Autocompletor.js +250 -34
- package/package/components/copilot/autocomplete/request.d.ts +3 -0
- package/package/components/copilot/autocomplete/request.js +15 -7
- package/package/components/copilot/chat/script/core.js +30 -22
- package/package/components/copilot/lib.d.ts +1 -1
- package/package/components/copilot/lib.js +3 -0
- package/package/components/flows/content/FlowModuleCache.svelte +4 -4
- package/package/components/flows/content/FlowModuleCache.svelte.d.ts +4 -18
- package/package/components/flows/content/FlowModuleComponent.svelte +0 -1
- package/package/components/flows/content/FlowModuleDeleteAfterUse.svelte +3 -4
- package/package/components/flows/content/FlowModuleDeleteAfterUse.svelte.d.ts +4 -18
- package/package/components/flows/content/FlowModuleSleep.svelte +6 -7
- package/package/components/flows/content/FlowModuleSleep.svelte.d.ts +4 -18
- package/package/components/flows/content/FlowModuleSuspend.svelte +19 -17
- package/package/components/flows/content/FlowModuleSuspend.svelte.d.ts +4 -18
- package/package/components/flows/content/FlowModuleTimeout.svelte +4 -4
- package/package/components/flows/content/FlowModuleTimeout.svelte.d.ts +4 -18
- package/package/components/triggers/gcp/GcpTriggerEditorInner.svelte +4 -4
- package/package/components/triggers/http/OpenAPISpecGenerator.svelte +2 -2
- package/package/components/triggers/http/RouteEditorConfigSection.svelte +26 -23
- package/package/components/triggers/http/RouteEditorConfigSection.svelte.d.ts +5 -19
- package/package/components/triggers/http/RouteEditorInner.svelte +18 -18
- package/package/components/triggers/kafka/KafkaTriggerEditorInner.svelte +4 -4
- package/package/components/triggers/mqtt/MqttTriggerEditorInner.svelte +4 -4
- package/package/components/triggers/nats/NatsTriggerEditorInner.svelte +4 -4
- package/package/components/triggers/schedules/ScheduleEditorInner.svelte +4 -4
- package/package/components/triggers/sqs/SqsTriggerEditorInner.svelte +4 -4
- package/package/components/triggers/websocket/WebsocketTriggerEditorInner.svelte +4 -4
- package/package.json +1 -1
|
@@ -7,25 +7,24 @@ import PropPickerWrapper from '../propPicker/PropPickerWrapper.svelte';
|
|
|
7
7
|
import { SecondsInput } from '../../common';
|
|
8
8
|
import Section from '../../Section.svelte';
|
|
9
9
|
import Label from '../../Label.svelte';
|
|
10
|
-
|
|
11
|
-
export let previousModuleId;
|
|
10
|
+
let { flowModule = $bindable(), previousModuleId } = $props();
|
|
12
11
|
const { selectedId, flowStateStore } = getContext('FlowEditorContext');
|
|
13
|
-
let schema = emptySchema();
|
|
12
|
+
let schema = $state(emptySchema());
|
|
14
13
|
schema.properties['sleep'] = {
|
|
15
14
|
type: 'number'
|
|
16
15
|
};
|
|
17
|
-
let editor = undefined;
|
|
16
|
+
let editor = $state(undefined);
|
|
18
17
|
const result = $flowStateStore[$selectedId]?.previewResult ?? {};
|
|
19
|
-
|
|
18
|
+
let isSleepEnabled = $derived(Boolean(flowModule.sleep));
|
|
20
19
|
</script>
|
|
21
20
|
|
|
22
21
|
<Section label="Sleep" class="w-full">
|
|
23
|
-
|
|
22
|
+
{#snippet header()}
|
|
24
23
|
<Tooltip documentationLink="https://www.windmill.dev/docs/flows/sleep">
|
|
25
24
|
If defined, at the end of the step, the flow will sleep for a number of seconds before
|
|
26
25
|
scheduling the next job (if any, no effect if the step is the last one).
|
|
27
26
|
</Tooltip>
|
|
28
|
-
|
|
27
|
+
{/snippet}
|
|
29
28
|
|
|
30
29
|
<Toggle
|
|
31
30
|
checked={isSleepEnabled}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import type { FlowModule } from '../../../gen';
|
|
2
|
-
interface
|
|
3
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
-
$$bindings?: Bindings;
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
declare const FlowModuleSleep: $$__sveltets_2_IsomorphicComponent<{
|
|
2
|
+
interface Props {
|
|
16
3
|
flowModule: FlowModule;
|
|
17
4
|
previousModuleId: string | undefined;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
type FlowModuleSleep = InstanceType<typeof FlowModuleSleep>;
|
|
5
|
+
}
|
|
6
|
+
declare const FlowModuleSleep: import("svelte").Component<Props, {}, "flowModule">;
|
|
7
|
+
type FlowModuleSleep = ReturnType<typeof FlowModuleSleep>;
|
|
22
8
|
export default FlowModuleSleep;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
<script lang="ts">import
|
|
1
|
+
<script lang="ts">import { run } from 'svelte/legacy';
|
|
2
|
+
import Toggle from '../../Toggle.svelte';
|
|
2
3
|
import Tooltip from '../../Tooltip.svelte';
|
|
3
4
|
import InputTransformForm from '../../InputTransformForm.svelte';
|
|
4
|
-
import { getContext, tick } from 'svelte';
|
|
5
|
+
import { getContext, tick, untrack } from 'svelte';
|
|
5
6
|
import { Alert, Tab, Tabs } from '../../common';
|
|
6
7
|
import { GroupService } from '../../../gen';
|
|
7
8
|
import { emptySchema, emptyString } from '../../../utils';
|
|
@@ -15,13 +16,12 @@ import EditableSchemaDrawer from '../../schema/EditableSchemaDrawer.svelte';
|
|
|
15
16
|
import AddProperty from '../../schema/AddProperty.svelte';
|
|
16
17
|
const { selectedId, flowStateStore } = getContext('FlowEditorContext');
|
|
17
18
|
const result = $flowStateStore[$selectedId]?.previewResult ?? {};
|
|
18
|
-
let editor = undefined;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
let
|
|
22
|
-
let
|
|
23
|
-
let
|
|
24
|
-
$: isSuspendEnabled = Boolean(flowModule.suspend);
|
|
19
|
+
let editor = $state(undefined);
|
|
20
|
+
let { flowModule = $bindable(), previousModuleId } = $props();
|
|
21
|
+
let schema = $state(emptySchema());
|
|
22
|
+
let allUserGroups = $state([]);
|
|
23
|
+
let suspendTabSelected = $state('core');
|
|
24
|
+
let isSuspendEnabled = $derived(Boolean(flowModule.suspend));
|
|
25
25
|
async function loadGroups() {
|
|
26
26
|
allUserGroups = await GroupService.listGroupNames({ workspace: $workspaceStore });
|
|
27
27
|
schema.properties['groups'] = {
|
|
@@ -32,19 +32,21 @@ async function loadGroups() {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
run(() => {
|
|
36
36
|
if ($workspaceStore && allUserGroups.length === 0) {
|
|
37
|
-
|
|
37
|
+
untrack(() => {
|
|
38
|
+
loadGroups();
|
|
39
|
+
});
|
|
38
40
|
}
|
|
39
|
-
}
|
|
40
|
-
let jsonView = false;
|
|
41
|
+
});
|
|
42
|
+
let jsonView = $state(false);
|
|
41
43
|
</script>
|
|
42
44
|
|
|
43
45
|
<Section label="Suspend/Approval/Prompt" class="w-full">
|
|
44
|
-
|
|
46
|
+
{#snippet action()}
|
|
45
47
|
<SuspendDrawer text="Approval/Prompt helpers" />
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
{/snippet}
|
|
49
|
+
{#snippet header()}
|
|
48
50
|
<div class="flex flex-row items-center gap-2">
|
|
49
51
|
<Tooltip documentationLink="https://www.windmill.dev/docs/flows/flow_approval">
|
|
50
52
|
If defined, at the end of the step, the flow will be suspended until it receives external
|
|
@@ -69,7 +71,7 @@ let jsonView = false;
|
|
|
69
71
|
}}
|
|
70
72
|
/>
|
|
71
73
|
</div>
|
|
72
|
-
|
|
74
|
+
{/snippet}
|
|
73
75
|
|
|
74
76
|
<div class="overflow-x-auto scrollbar-hidden">
|
|
75
77
|
<Tabs bind:selected={suspendTabSelected}>
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import { type FlowModule } from '../../../gen';
|
|
2
|
-
interface
|
|
3
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
-
$$bindings?: Bindings;
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
declare const FlowModuleSuspend: $$__sveltets_2_IsomorphicComponent<{
|
|
2
|
+
interface Props {
|
|
16
3
|
flowModule: FlowModule;
|
|
17
4
|
previousModuleId: string | undefined;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
type FlowModuleSuspend = InstanceType<typeof FlowModuleSuspend>;
|
|
5
|
+
}
|
|
6
|
+
declare const FlowModuleSuspend: import("svelte").Component<Props, {}, "flowModule">;
|
|
7
|
+
type FlowModuleSuspend = ReturnType<typeof FlowModuleSuspend>;
|
|
22
8
|
export default FlowModuleSuspend;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import Toggle from '../../Toggle.svelte';
|
|
3
3
|
import Tooltip from '../../Tooltip.svelte';
|
|
4
4
|
import { Alert, SecondsInput } from '../../common';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
let { flowModule = $bindable() } = $props();
|
|
6
|
+
let istimeoutEnabled = $derived(Boolean(flowModule.timeout));
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<Section label="Timeout">
|
|
10
|
-
|
|
10
|
+
{#snippet header()}
|
|
11
11
|
<Tooltip>
|
|
12
12
|
If defined, the custom timeout will be used instead of the instance timeout for the step. The
|
|
13
13
|
step's timeout cannot be greater than the instance timeout.
|
|
14
14
|
</Tooltip>
|
|
15
|
-
|
|
15
|
+
{/snippet}
|
|
16
16
|
|
|
17
17
|
<Toggle
|
|
18
18
|
checked={istimeoutEnabled}
|
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
import type { FlowModule } from '../../../gen';
|
|
2
|
-
interface
|
|
3
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
-
$$bindings?: Bindings;
|
|
5
|
-
} & Exports;
|
|
6
|
-
(internal: unknown, props: Props & {
|
|
7
|
-
$$events?: Events;
|
|
8
|
-
$$slots?: Slots;
|
|
9
|
-
}): Exports & {
|
|
10
|
-
$set?: any;
|
|
11
|
-
$on?: any;
|
|
12
|
-
};
|
|
13
|
-
z_$$bindings?: Bindings;
|
|
14
|
-
}
|
|
15
|
-
declare const FlowModuleTimeout: $$__sveltets_2_IsomorphicComponent<{
|
|
2
|
+
interface Props {
|
|
16
3
|
flowModule: FlowModule;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type FlowModuleTimeout = InstanceType<typeof FlowModuleTimeout>;
|
|
4
|
+
}
|
|
5
|
+
declare const FlowModuleTimeout: import("svelte").Component<Props, {}, "flowModule">;
|
|
6
|
+
type FlowModuleTimeout = ReturnType<typeof FlowModuleTimeout>;
|
|
21
7
|
export default FlowModuleTimeout;
|
|
@@ -220,14 +220,14 @@ $effect(() => {
|
|
|
220
220
|
</Drawer>
|
|
221
221
|
{:else}
|
|
222
222
|
<Section label={!customLabel ? 'GCP Pub/Sub trigger' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
223
|
-
|
|
223
|
+
{#snippet header()}
|
|
224
224
|
{#if customLabel}
|
|
225
225
|
{@render customLabel()}
|
|
226
226
|
{/if}
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
{/snippet}
|
|
228
|
+
{#snippet action()}
|
|
229
229
|
{@render actionsButtons()}
|
|
230
|
-
|
|
230
|
+
{/snippet}
|
|
231
231
|
{@render config()}
|
|
232
232
|
</Section>
|
|
233
233
|
{/if}
|
|
@@ -181,7 +181,7 @@ export function openDrawer() {
|
|
|
181
181
|
</Label>
|
|
182
182
|
|
|
183
183
|
<Label label="Example cURL">
|
|
184
|
-
|
|
184
|
+
{#snippet header()}
|
|
185
185
|
<Tooltip>
|
|
186
186
|
Use this cURL command to call the OpenAPI generation endpoint.
|
|
187
187
|
|
|
@@ -197,7 +197,7 @@ export function openDrawer() {
|
|
|
197
197
|
|
|
198
198
|
<br />
|
|
199
199
|
</Tooltip>
|
|
200
|
-
|
|
200
|
+
{/snippet}
|
|
201
201
|
<CopyableCodeBlock
|
|
202
202
|
code={`token=${emptyString(token) ? '' : token}; \\
|
|
203
203
|
curl -X POST "${window.location.origin}${base}/api/w/${$workspaceStore!}/openapi/generate" \\
|
|
@@ -10,19 +10,10 @@ import { getHttpRoute } from './utils';
|
|
|
10
10
|
import { isCloudHosted } from '../../../cloud';
|
|
11
11
|
import Toggle from '../../Toggle.svelte';
|
|
12
12
|
import TestingBadge from '../testingBadge.svelte';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export let route_path;
|
|
16
|
-
export let http_method;
|
|
17
|
-
export let can_write = false;
|
|
18
|
-
export let static_asset_config = undefined;
|
|
19
|
-
export let headless = false;
|
|
20
|
-
export let workspaced_route = false;
|
|
21
|
-
export let isValid = false;
|
|
22
|
-
export let isDraftOnly = true;
|
|
23
|
-
export let showTestingBadge = false;
|
|
13
|
+
import { untrack } from 'svelte';
|
|
14
|
+
let { initialTriggerPath = undefined, dirtyRoutePath = $bindable(false), route_path = $bindable(), http_method = $bindable(), can_write = false, static_asset_config = $bindable(undefined), headless = false, workspaced_route = $bindable(false), isValid = $bindable(false), isDraftOnly = true, showTestingBadge = false } = $props();
|
|
24
15
|
let validateTimeout = undefined;
|
|
25
|
-
let routeError = '';
|
|
16
|
+
let routeError = $state('');
|
|
26
17
|
async function validateRoute(routePath, method, workspaced_route) {
|
|
27
18
|
if (validateTimeout) {
|
|
28
19
|
clearTimeout(validateTimeout);
|
|
@@ -51,22 +42,34 @@ async function routeExists(route_path, method, workspaced_route) {
|
|
|
51
42
|
}
|
|
52
43
|
});
|
|
53
44
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
$effect.pre(() => {
|
|
46
|
+
;
|
|
47
|
+
[route_path, http_method, workspaced_route];
|
|
48
|
+
untrack(() => {
|
|
49
|
+
validateRoute(route_path, http_method, workspaced_route);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
$effect.pre(() => {
|
|
53
|
+
isValid = routeError === '';
|
|
54
|
+
});
|
|
55
|
+
let fullRoute = $derived(getHttpRoute('r', route_path, workspaced_route, $workspaceStore ?? ''));
|
|
56
|
+
$effect.pre(() => {
|
|
57
|
+
!http_method && (http_method = 'post');
|
|
58
|
+
});
|
|
59
|
+
$effect.pre(() => {
|
|
60
|
+
route_path === undefined && (route_path = '');
|
|
61
|
+
});
|
|
62
|
+
let userIsAdmin = $derived($userStore?.is_admin || $userStore?.is_super_admin);
|
|
63
|
+
let userCanEditConfig = $derived(userIsAdmin || isDraftOnly); // User can edit config if they are admin or if the trigger is a draft which will not be saved
|
|
61
64
|
</script>
|
|
62
65
|
|
|
63
66
|
<div>
|
|
64
67
|
<Section label="HTTP" {headless}>
|
|
65
|
-
|
|
68
|
+
{#snippet header()}
|
|
66
69
|
{#if showTestingBadge}
|
|
67
70
|
<TestingBadge />
|
|
68
71
|
{/if}
|
|
69
|
-
|
|
72
|
+
{/snippet}
|
|
70
73
|
{#if !userCanEditConfig && isDraftOnly}
|
|
71
74
|
<Alert type="info" title="Admin only" collapsible size="xs">
|
|
72
75
|
Route endpoints can only be edited by workspace admins
|
|
@@ -83,7 +86,7 @@ $: userCanEditConfig = userIsAdmin || isDraftOnly; // User can edit config if th
|
|
|
83
86
|
</div>
|
|
84
87
|
<div class="text-2xs text-tertiary"> ':myparam' for path params </div>
|
|
85
88
|
</div>
|
|
86
|
-
<!-- svelte-ignore
|
|
89
|
+
<!-- svelte-ignore a11y_autofocus -->
|
|
87
90
|
<input
|
|
88
91
|
type="text"
|
|
89
92
|
autocomplete="off"
|
|
@@ -92,7 +95,7 @@ $: userCanEditConfig = userIsAdmin || isDraftOnly; // User can edit config if th
|
|
|
92
95
|
class={routeError === ''
|
|
93
96
|
? ''
|
|
94
97
|
: 'border border-red-700 bg-red-100 border-opacity-30 focus:border-red-700 focus:border-opacity-30 focus-visible:ring-red-700 focus-visible:ring-opacity-25 focus-visible:border-red-700'}
|
|
95
|
-
|
|
98
|
+
oninput={() => {
|
|
96
99
|
dirtyRoutePath = true
|
|
97
100
|
}}
|
|
98
101
|
/>
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
interface
|
|
2
|
-
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
-
$$bindings?: Bindings;
|
|
4
|
-
} & Exports;
|
|
5
|
-
(internal: unknown, props: Props & {
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
11
|
-
};
|
|
12
|
-
z_$$bindings?: Bindings;
|
|
13
|
-
}
|
|
14
|
-
declare const RouteEditorConfigSection: $$__sveltets_2_IsomorphicComponent<{
|
|
1
|
+
interface Props {
|
|
15
2
|
initialTriggerPath?: string | undefined;
|
|
16
3
|
dirtyRoutePath?: boolean;
|
|
17
4
|
route_path: string | undefined;
|
|
18
|
-
http_method:
|
|
5
|
+
http_method: 'get' | 'post' | 'put' | 'patch' | 'delete' | undefined;
|
|
19
6
|
can_write?: boolean;
|
|
20
7
|
static_asset_config?: {
|
|
21
8
|
s3: string;
|
|
@@ -27,8 +14,7 @@ declare const RouteEditorConfigSection: $$__sveltets_2_IsomorphicComponent<{
|
|
|
27
14
|
isValid?: boolean;
|
|
28
15
|
isDraftOnly?: boolean;
|
|
29
16
|
showTestingBadge?: boolean;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
type RouteEditorConfigSection = InstanceType<typeof RouteEditorConfigSection>;
|
|
17
|
+
}
|
|
18
|
+
declare const RouteEditorConfigSection: import("svelte").Component<Props, {}, "route_path" | "http_method" | "workspaced_route" | "static_asset_config" | "isValid" | "dirtyRoutePath">;
|
|
19
|
+
type RouteEditorConfigSection = ReturnType<typeof RouteEditorConfigSection>;
|
|
34
20
|
export default RouteEditorConfigSection;
|
|
@@ -73,11 +73,11 @@ let error_handler_path = $state();
|
|
|
73
73
|
let error_handler_args = $state({});
|
|
74
74
|
let retry = $state();
|
|
75
75
|
// Component references
|
|
76
|
-
let s3FilePicker = $state(
|
|
77
|
-
let s3Editor = $state(
|
|
78
|
-
let variablePicker = $state(
|
|
79
|
-
let variableEditor = $state(
|
|
80
|
-
let drawer = $state(
|
|
76
|
+
let s3FilePicker = $state(undefined);
|
|
77
|
+
let s3Editor = $state(undefined);
|
|
78
|
+
let variablePicker = $state(undefined);
|
|
79
|
+
let variableEditor = $state(undefined);
|
|
80
|
+
let drawer = $state(undefined);
|
|
81
81
|
let initialConfig = undefined;
|
|
82
82
|
let deploymentLoading = $state(false);
|
|
83
83
|
let optionTabSelected = $state('request_options');
|
|
@@ -435,7 +435,7 @@ $effect(() => {
|
|
|
435
435
|
{#if s3FileUploadRawMode}
|
|
436
436
|
{#if can_write}
|
|
437
437
|
<JsonEditor
|
|
438
|
-
bind:editor={s3Editor
|
|
438
|
+
bind:editor={s3Editor}
|
|
439
439
|
code={JSON.stringify(static_asset_config ?? { s3: '' }, null, 2)}
|
|
440
440
|
bind:value={static_asset_config}
|
|
441
441
|
/>
|
|
@@ -545,7 +545,7 @@ $effect(() => {
|
|
|
545
545
|
{#if !static_asset_config}
|
|
546
546
|
<div class="flex flex-row justify-between">
|
|
547
547
|
<Label label="Request type" class="w-full">
|
|
548
|
-
|
|
548
|
+
{#snippet action()}
|
|
549
549
|
<ToggleButtonGroup
|
|
550
550
|
class="w-auto h-full"
|
|
551
551
|
selected={is_async ? 'async' : 'sync'}
|
|
@@ -571,12 +571,12 @@ $effect(() => {
|
|
|
571
571
|
/>
|
|
572
572
|
{/snippet}
|
|
573
573
|
</ToggleButtonGroup>
|
|
574
|
-
|
|
574
|
+
{/snippet}
|
|
575
575
|
</Label>
|
|
576
576
|
</div>
|
|
577
577
|
{/if}
|
|
578
578
|
<Label label="Authentication" class="w-full">
|
|
579
|
-
|
|
579
|
+
{#snippet action()}
|
|
580
580
|
<ToggleButtonGroup
|
|
581
581
|
class="w-auto h-full"
|
|
582
582
|
bind:selected={authentication_method}
|
|
@@ -594,7 +594,7 @@ $effect(() => {
|
|
|
594
594
|
{#each authentication_options as option}
|
|
595
595
|
{#if option.value === 'signature'}
|
|
596
596
|
<Popover placement="top-end" usePointerDownOutside>
|
|
597
|
-
|
|
597
|
+
{#snippet trigger()}
|
|
598
598
|
<ToggleButton
|
|
599
599
|
label={option.label}
|
|
600
600
|
value={option.value}
|
|
@@ -602,8 +602,8 @@ $effect(() => {
|
|
|
602
602
|
{item}
|
|
603
603
|
{disabled}
|
|
604
604
|
/>
|
|
605
|
-
|
|
606
|
-
|
|
605
|
+
{/snippet}
|
|
606
|
+
{#snippet content()}
|
|
607
607
|
<ToggleButtonGroup
|
|
608
608
|
class="w-auto h-full"
|
|
609
609
|
bind:selected={signature_options_type}
|
|
@@ -633,7 +633,7 @@ $effect(() => {
|
|
|
633
633
|
/>
|
|
634
634
|
{/snippet}
|
|
635
635
|
</ToggleButtonGroup>
|
|
636
|
-
|
|
636
|
+
{/snippet}
|
|
637
637
|
</Popover>
|
|
638
638
|
{:else}
|
|
639
639
|
<ToggleButton
|
|
@@ -647,7 +647,7 @@ $effect(() => {
|
|
|
647
647
|
{/each}
|
|
648
648
|
{/snippet}
|
|
649
649
|
</ToggleButtonGroup>
|
|
650
|
-
|
|
650
|
+
{/snippet}
|
|
651
651
|
</Label>
|
|
652
652
|
|
|
653
653
|
{#each authentication_options as option}
|
|
@@ -777,14 +777,14 @@ $effect(() => {
|
|
|
777
777
|
</Drawer>
|
|
778
778
|
{:else}
|
|
779
779
|
<Section label={!customLabel ? 'HTTP Route' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
780
|
-
|
|
780
|
+
{#snippet header()}
|
|
781
781
|
{#if customLabel}
|
|
782
782
|
{@render customLabel()}
|
|
783
783
|
{/if}
|
|
784
|
-
|
|
785
|
-
|
|
784
|
+
{/snippet}
|
|
785
|
+
{#snippet action()}
|
|
786
786
|
{@render saveButton()}
|
|
787
|
-
|
|
787
|
+
{/snippet}
|
|
788
788
|
{#if description}
|
|
789
789
|
{@render description()}
|
|
790
790
|
{/if}
|
|
@@ -221,14 +221,14 @@ $effect(() => {
|
|
|
221
221
|
</Drawer>
|
|
222
222
|
{:else}
|
|
223
223
|
<Section label={!customLabel ? 'Kafka trigger' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
224
|
-
|
|
224
|
+
{#snippet header()}
|
|
225
225
|
{#if customLabel}
|
|
226
226
|
{@render customLabel()}
|
|
227
227
|
{/if}
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
{/snippet}
|
|
229
|
+
{#snippet action()}
|
|
230
230
|
{@render actionsButtons('xs')}
|
|
231
|
-
|
|
231
|
+
{/snippet}
|
|
232
232
|
{@render config()}
|
|
233
233
|
</Section>
|
|
234
234
|
{/if}
|
|
@@ -243,14 +243,14 @@ $effect(() => {
|
|
|
243
243
|
</Drawer>
|
|
244
244
|
{:else}
|
|
245
245
|
<Section label={!customLabel ? 'MQTT trigger' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
246
|
-
|
|
246
|
+
{#snippet header()}
|
|
247
247
|
{#if customLabel}
|
|
248
248
|
{@render customLabel()}
|
|
249
249
|
{/if}
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
{/snippet}
|
|
251
|
+
{#snippet action()}
|
|
252
252
|
{@render actionsSnippet()}
|
|
253
|
-
|
|
253
|
+
{/snippet}
|
|
254
254
|
{@render config()}
|
|
255
255
|
</Section>
|
|
256
256
|
{/if}
|
|
@@ -223,14 +223,14 @@ $effect(() => {
|
|
|
223
223
|
</Drawer>
|
|
224
224
|
{:else}
|
|
225
225
|
<Section label={!customLabel ? 'NATS trigger' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
226
|
-
|
|
226
|
+
{#snippet header()}
|
|
227
227
|
{#if customLabel}
|
|
228
228
|
{@render customLabel()}
|
|
229
229
|
{/if}
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
{/snippet}
|
|
231
|
+
{#snippet action()}
|
|
232
232
|
{@render actionsSnippet()}
|
|
233
|
-
|
|
233
|
+
{/snippet}
|
|
234
234
|
{@render config()}
|
|
235
235
|
</Section>
|
|
236
236
|
{/if}
|
|
@@ -1170,16 +1170,16 @@ $effect(() => {
|
|
|
1170
1170
|
</Drawer>
|
|
1171
1171
|
{:else}
|
|
1172
1172
|
<Section label={!customLabel ? 'Schedule' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
1173
|
-
|
|
1173
|
+
{#snippet header()}
|
|
1174
1174
|
{#if customLabel}
|
|
1175
1175
|
{@render customLabel()}
|
|
1176
1176
|
{/if}
|
|
1177
|
-
|
|
1178
|
-
|
|
1177
|
+
{/snippet}
|
|
1178
|
+
{#snippet action()}
|
|
1179
1179
|
<div class="flex flex-row gap-2 items-center">
|
|
1180
1180
|
{@render saveButton()}
|
|
1181
1181
|
</div>
|
|
1182
|
-
|
|
1182
|
+
{/snippet}
|
|
1183
1183
|
{#if docDescription}
|
|
1184
1184
|
{@render docDescription()}
|
|
1185
1185
|
{/if}
|
|
@@ -220,14 +220,14 @@ $effect(() => {
|
|
|
220
220
|
</Drawer>
|
|
221
221
|
{:else}
|
|
222
222
|
<Section label={!customLabel ? 'SQS trigger' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
223
|
-
|
|
223
|
+
{#snippet header()}
|
|
224
224
|
{#if customLabel}
|
|
225
225
|
{@render customLabel()}
|
|
226
226
|
{/if}
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
{/snippet}
|
|
228
|
+
{#snippet action()}
|
|
229
229
|
{@render actionsSnippet()}
|
|
230
|
-
|
|
230
|
+
{/snippet}
|
|
231
231
|
{@render config()}
|
|
232
232
|
</Section>
|
|
233
233
|
{/if}
|
|
@@ -262,14 +262,14 @@ $effect(() => {
|
|
|
262
262
|
</Drawer>
|
|
263
263
|
{:else}
|
|
264
264
|
<Section label={!customLabel ? 'WebSocket trigger' : ''} headerClass="grow min-w-0 h-[30px]">
|
|
265
|
-
|
|
265
|
+
{#snippet header()}
|
|
266
266
|
{#if customLabel}
|
|
267
267
|
{@render customLabel()}
|
|
268
268
|
{/if}
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
{/snippet}
|
|
270
|
+
{#snippet action()}
|
|
271
271
|
{@render actionsButtons()}
|
|
272
|
-
|
|
272
|
+
{/snippet}
|
|
273
273
|
{@render config()}
|
|
274
274
|
</Section>
|
|
275
275
|
{/if}
|