windmill-components 1.28.6 → 1.35.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/common.d.ts +3 -0
- package/components/AppConnect.svelte +29 -13
- package/components/ArgInput.svelte +28 -14
- package/components/ArgInput.svelte.d.ts +4 -0
- package/components/CenteredPage.svelte +2 -2
- package/components/DisplayResult.svelte +3 -3
- package/components/Editor.svelte +97 -97
- package/components/Editor.svelte.d.ts +3 -0
- package/components/EditorBar.svelte +57 -38
- package/components/FlowBuilder.svelte +40 -32
- package/components/FlowEditor.svelte +19 -57
- package/components/FlowEditor.svelte.d.ts +1 -0
- package/components/FlowJobResult.svelte +16 -16
- package/components/FlowModulesViewer.svelte +97 -0
- package/components/FlowModulesViewer.svelte.d.ts +17 -0
- package/components/FlowPreview.svelte +47 -68
- package/components/FlowPreview.svelte.d.ts +2 -6
- package/components/FlowPreviewContent.svelte +59 -44
- package/components/FlowPreviewContent.svelte.d.ts +0 -1
- package/components/FlowStatusViewer.svelte +104 -204
- package/components/FlowStatusViewer.svelte.d.ts +7 -4
- package/components/FlowViewer.svelte +60 -155
- package/components/FlowViewer.svelte.d.ts +0 -1
- package/components/IconedPath.svelte +12 -0
- package/components/IconedPath.svelte.d.ts +16 -0
- package/components/IconedResourceType.svelte +21 -2
- package/components/IconedResourceType.svelte.d.ts +1 -0
- package/components/InputTransformForm.svelte +9 -8
- package/components/InputTransformForm.svelte.d.ts +1 -1
- package/components/InviteGlobalUser.svelte +1 -1
- package/components/ItemPicker.svelte +6 -1
- package/components/JobStatus.svelte +1 -1
- package/components/ModuleStep.svelte +74 -96
- package/components/ModuleStep.svelte.d.ts +7 -4
- package/components/Multiselect.svelte +1 -1
- package/components/Path.svelte +62 -40
- package/components/Path.svelte.d.ts +2 -0
- package/components/ProgressBar.svelte +31 -0
- package/components/ProgressBar.svelte.d.ts +17 -0
- package/components/ProgressBarPart.svelte +20 -0
- package/components/ProgressBarPart.svelte.d.ts +20 -0
- package/components/ResourceEditor.svelte +2 -1
- package/components/ResourcePicker.svelte +9 -0
- package/components/SchemaForm.svelte +9 -4
- package/components/SchemaForm.svelte.d.ts +1 -1
- package/components/SchemaModal.svelte +20 -3
- package/components/SchemaViewer.svelte +58 -68
- package/components/ScriptBuilder.svelte +145 -122
- package/components/ScriptBuilder.svelte.d.ts +1 -0
- package/components/ScriptEditor.svelte +118 -339
- package/components/ScriptEditor.svelte.d.ts +0 -2
- package/components/ScriptSchema.svelte +45 -44
- package/components/SharedBadge.svelte +8 -3
- package/components/VariableEditor.svelte +1 -1
- package/components/common/drawer/Drawer.svelte +108 -0
- package/components/common/drawer/Drawer.svelte.d.ts +23 -0
- package/components/common/drawer/DrawerContent.svelte +19 -0
- package/components/common/drawer/DrawerContent.svelte.d.ts +20 -0
- package/components/common/menu/Menu.svelte +57 -0
- package/components/common/menu/Menu.svelte.d.ts +23 -0
- package/components/common/menu/MenuItem.svelte +9 -0
- package/components/common/menu/MenuItem.svelte.d.ts +27 -0
- package/components/common/tabs/Tab.svelte +17 -0
- package/components/common/tabs/Tab.svelte.d.ts +18 -0
- package/components/common/tabs/TabContent.svelte +12 -0
- package/components/common/tabs/TabContent.svelte.d.ts +19 -0
- package/components/common/tabs/Tabs.svelte +20 -0
- package/components/common/tabs/Tabs.svelte.d.ts +24 -0
- package/components/flows/CopyFirstStepSchema.svelte +4 -3
- package/components/flows/DynamicInputHelpBox.svelte +6 -4
- package/components/flows/DynamicInputHelpBox.svelte.d.ts +1 -1
- package/components/flows/FlowBox.svelte +15 -2
- package/components/flows/FlowBox.svelte.d.ts +14 -14
- package/components/flows/FlowBoxHeader.svelte +10 -3
- package/components/flows/FlowBoxHeader.svelte.d.ts +3 -0
- package/components/flows/FlowInput.svelte +14 -12
- package/components/flows/FlowInputs.svelte +56 -22
- package/components/flows/FlowInputs.svelte.d.ts +3 -1
- package/components/flows/FlowModuleHeader.svelte +69 -54
- package/components/flows/FlowModuleHeader.svelte.d.ts +6 -6
- package/components/flows/FlowSettings.svelte +82 -92
- package/components/flows/FlowSettings.svelte.d.ts +1 -1
- package/components/flows/FlowTimeline.svelte +169 -0
- package/components/flows/FlowTimeline.svelte.d.ts +21 -0
- package/components/flows/flowState.d.ts +14 -0
- package/components/flows/flowState.js +52 -0
- package/components/flows/flowStateUtils.d.ts +37 -0
- package/components/flows/flowStateUtils.js +220 -0
- package/components/flows/flowStore.d.ts +1 -16
- package/components/flows/flowStore.js +26 -203
- package/components/flows/pickers/FlowScriptPicker.svelte +5 -9
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +0 -1
- package/components/flows/pickers/PickHubScript.svelte +1 -1
- package/components/flows/pickers/PickHubScript.svelte.d.ts +1 -1
- package/components/flows/pickers/PickScript.svelte +1 -1
- package/components/flows/pickers/PickScript.svelte.d.ts +1 -1
- package/components/flows/scheduleUtils.d.ts +7 -0
- package/components/flows/scheduleUtils.js +21 -0
- package/components/flows/stepOpenedStore.d.ts +1 -0
- package/components/flows/stepOpenedStore.js +6 -0
- package/components/flows/utils.d.ts +6 -13
- package/components/flows/utils.js +47 -119
- package/components/icons/DiscordIcon.svelte +16 -0
- package/components/icons/DiscordIcon.svelte.d.ts +17 -0
- package/components/icons/HttpIcon.svelte +21 -0
- package/components/icons/HttpIcon.svelte.d.ts +17 -0
- package/components/icons/MastodonIcon.svelte +16 -0
- package/components/icons/MastodonIcon.svelte.d.ts +17 -0
- package/components/icons/MatrixIcon.svelte +16 -0
- package/components/icons/MatrixIcon.svelte.d.ts +17 -0
- package/components/icons/S3Icon.svelte +16 -0
- package/components/icons/S3Icon.svelte.d.ts +17 -0
- package/components/icons/WindmillIcon.svelte +68 -0
- package/components/icons/WindmillIcon.svelte.d.ts +17 -0
- package/components/jobs/JobDetail.svelte +176 -0
- package/components/jobs/JobDetail.svelte.d.ts +17 -0
- package/components/landing/FlowGettingStarted.svelte +95 -0
- package/components/landing/FlowGettingStarted.svelte.d.ts +19 -0
- package/components/landing/FlowLandingBox.svelte +69 -0
- package/components/landing/FlowLandingBox.svelte.d.ts +17 -0
- package/components/landing/RessourceGettingStarted.svelte +51 -0
- package/components/landing/RessourceGettingStarted.svelte.d.ts +19 -0
- package/components/landing/ScriptBox.svelte +81 -0
- package/components/landing/ScriptBox.svelte.d.ts +17 -0
- package/components/landing/ScriptGettingStarted.svelte +93 -0
- package/components/landing/ScriptGettingStarted.svelte.d.ts +19 -0
- package/components/preview/FlowPreviewStatus.svelte +28 -0
- package/components/preview/FlowPreviewStatus.svelte.d.ts +17 -0
- package/components/propertyPicker/ObjectViewer.svelte +13 -13
- package/components/propertyPicker/utils.js +3 -2
- package/components/script_editor/LogPanel.svelte +172 -0
- package/components/script_editor/LogPanel.svelte.d.ts +22 -0
- package/components/sidebar/MenuLink.svelte +49 -0
- package/components/sidebar/MenuLink.svelte.d.ts +21 -0
- package/components/sidebar/SidebarContent.svelte +55 -0
- package/components/sidebar/SidebarContent.svelte.d.ts +16 -0
- package/components/sidebar/UserMenu.svelte +62 -0
- package/components/sidebar/UserMenu.svelte.d.ts +16 -0
- package/components/sidebar/WorkspaceMenu.svelte +66 -0
- package/components/sidebar/WorkspaceMenu.svelte.d.ts +16 -0
- package/gen/core/OpenAPI.js +1 -1
- package/gen/core/request.js +1 -0
- package/gen/models/FlowModule.d.ts +5 -3
- package/gen/models/ForloopFlow.d.ts +2 -2
- package/gen/models/MainArgSignature.d.ts +14 -3
- package/gen/services/JobService.d.ts +10 -2
- package/gen/services/JobService.js +4 -2
- package/gen/services/ScriptService.d.ts +18 -0
- package/gen/services/ScriptService.js +30 -0
- package/infer.js +47 -24
- package/logout.js +1 -1
- package/package.json +57 -23
- package/script_helpers.d.ts +4 -1
- package/script_helpers.js +68 -17
- package/stores.d.ts +0 -2
- package/stores.js +0 -4
- package/utils.d.ts +5 -2
- package/utils.js +37 -6
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type DiscordIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type DiscordIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type DiscordIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class DiscordIcon extends SvelteComponentTyped<DiscordIconProps, DiscordIconEvents, DiscordIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
12
|
+
viewBox="0 0 1000 1000"
|
|
13
|
+
enable-background="new 0 0 1000 1000"
|
|
14
|
+
xml:space="preserve"
|
|
15
|
+
>
|
|
16
|
+
<g
|
|
17
|
+
><path
|
|
18
|
+
d="M732.4,557.3c-4.2-0.8-12.5-1.2-25.2-1.2h-16.9v49.3h19.2c13.7,0,23-1,27.6-2.8c4.7-1.8,8.3-4.7,11-8.6c2.7-3.9,4-8.3,4-13.5c0-6.3-1.8-11.6-5.5-15.7C742.8,560.9,738.1,558.3,732.4,557.3z M845.2,483.1c-13.4,0-26.4,1.8-38.8,5.3c2.2-10,3.4-20.4,3.4-31c0-79.2-63.9-143.4-142.6-143.4c-32.5,0-62.6,11-86.5,29.5C541.2,274,467,227.2,381.7,227.2c-117.6,0-214.4,89.2-227.3,203.8C72.6,444,10,515.1,10,600.8c0,95,76.8,172,171.4,172h663.7l0,0c80,0,144.9-64.9,144.9-144.9C990.1,547.9,925.3,483.1,845.2,483.1z M342.1,700.5h-35v-76.1h-68.5v76.1h-35V526.7h35v68.5h68.5v-68.5h35V700.5z M497.3,556.1h-51.2v144.4h-35V556.1h-51.4v-29.4h137.5V556.1z M639,556.1h-51.2v144.4h-35V556.1h-51.4v-29.4H639V556.1z M782.3,607.1c-3.9,7.2-8.8,13-14.7,17.1c-5.9,4.1-11.9,6.9-18.1,8.2c-8.3,1.7-20.4,2.5-36.3,2.5h-22.8v65.6h-35l0-173.8h56.1c21.2,0,35.1,0.8,41.6,2.7c9.9,2.7,18.2,8.3,25,17c6.6,8.7,10,20,10,33.9C788.1,590.8,786,599.9,782.3,607.1z"
|
|
19
|
+
/></g
|
|
20
|
+
>
|
|
21
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type HttpIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type HttpIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type HttpIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class HttpIcon extends SvelteComponentTyped<HttpIconProps, HttpIconEvents, HttpIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 32 32"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 15.9375 4.03125 C 12.917 4.0435 9.9179219 4.4269844 8.3574219 5.1464844 C 8.3574219 5.1464844 5 6.6748594 5 11.880859 C 5 18.077859 4.9955 25.860234 10.5625 27.365234 C 12.6945 27.938234 14.527953 28.061562 16.001953 27.976562 C 18.676953 27.825562 20 27.005859 20 27.005859 L 19.910156 25.029297 C 19.910156 25.029297 18.176297 25.640313 16.029297 25.570312 C 13.902297 25.495313 11.6615 25.335688 11.3125 22.679688 C 11.2805 22.432688 11.264625 22.182594 11.265625 21.933594 C 15.772625 23.052594 19.615828 22.420969 20.673828 22.292969 C 23.627828 21.933969 26.199344 20.081672 26.527344 18.388672 C 27.041344 15.720672 26.998047 11.880859 26.998047 11.880859 C 26.998047 6.6748594 23.646484 5.1464844 23.646484 5.1464844 C 22.000984 4.3779844 18.958 4.019 15.9375 4.03125 z M 12.705078 8.0019531 C 13.739953 8.0297031 14.762578 8.4927031 15.392578 9.4707031 L 16.001953 10.505859 L 16.609375 9.4707031 C 17.874375 7.5037031 20.709594 7.6264375 22.058594 9.1484375 C 23.302594 10.596438 23.025391 11.531 23.025391 18 L 23.025391 18.001953 L 20.578125 18.001953 L 20.578125 12.373047 C 20.578125 9.7380469 17.21875 9.6362812 17.21875 12.738281 L 17.21875 16 L 14.787109 16 L 14.787109 12.738281 C 14.787109 9.6362812 11.429688 9.7360938 11.429688 12.371094 L 11.429688 18 L 8.9765625 18 C 8.9765625 11.526 8.7043594 10.585438 9.9433594 9.1484375 C 10.622859 8.3824375 11.670203 7.9742031 12.705078 8.0019531 z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type MastodonIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type MastodonIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type MastodonIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class MastodonIcon extends SvelteComponentTyped<MastodonIconProps, MastodonIconEvents, MastodonIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 50 50"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 5 5 A 1.0001 1.0001 0 0 0 4 6 L 4 44 A 1.0001 1.0001 0 0 0 5 45 L 8 45 A 1.0001 1.0001 0 1 0 8 43 L 6 43 L 6 7 L 8 7 A 1.0001 1.0001 0 1 0 8 5 L 5 5 z M 42 5 A 1.0001 1.0001 0 1 0 42 7 L 44 7 L 44 43 L 42 43 A 1.0001 1.0001 0 1 0 42 45 L 45 45 A 1.0001 1.0001 0 0 0 46 44 L 46 6 A 1.0001 1.0001 0 0 0 45 5 L 42 5 z M 31.074219 17.509766 C 29.975744 17.487506 28.868391 17.760297 27.978516 18.373047 C 27.407516 18.767047 26.915609 19.272813 26.349609 19.757812 C 25.488609 18.039813 23.929344 17.580781 22.152344 17.550781 C 20.351344 17.519781 18.920922 18.341797 17.669922 19.841797 L 17.669922 18 L 14 18 L 14 32 L 17.664062 32 C 17.664062 32 17.657969 26.766016 17.667969 24.166016 C 17.669969 23.704016 17.689203 23.23225 17.783203 22.78125 C 18.073203 21.39225 19.538031 20.534437 20.957031 20.648438 C 22.309031 20.757437 23.100016 21.495656 23.166016 23.097656 C 23.177016 23.376656 23.166016 32 23.166016 32 L 26.832031 32 L 26.832031 24.228516 C 26.838031 23.629516 26.901875 23.0175 27.046875 22.4375 C 27.372875 21.1375 28.590531 20.49825 30.019531 20.65625 C 31.279531 20.79525 32.239031 21.474609 32.332031 22.849609 L 32.332031 32 L 36 32 L 36 22 C 36 21 35.746359 20.490859 35.443359 19.880859 C 34.710859 18.405234 32.90501 17.546865 31.074219 17.509766 z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type MatrixIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type MatrixIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type MatrixIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class MatrixIcon extends SvelteComponentTyped<MatrixIconProps, MatrixIconEvents, MatrixIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 50 50"
|
|
12
|
+
style=" fill:#000000;"
|
|
13
|
+
><path
|
|
14
|
+
d="M 28 7.9453125 L 21 10.279297 L 21 18.279297 L 16 19.945312 L 10 17.945312 L 3 20.279297 L 3 29.720703 L 3.6835938 29.949219 L 9 31.720703 L 9 39.720703 L 9.6835938 39.949219 L 16 42.054688 L 23 39.720703 L 23 31.720703 L 29 29.720703 L 29 21.720703 L 34 20.054688 L 40 22.054688 L 47 19.720703 L 47 10.279297 L 40 7.9453125 L 34 9.9453125 L 28 7.9453125 z M 28 10.054688 L 32.335938 11.5 L 28 12.945312 L 23.664062 11.5 L 28 10.054688 z M 40 10.054688 L 44.335938 11.5 L 40 12.945312 L 35.664062 11.5 L 40 10.054688 z M 23 13.388672 L 27 14.720703 L 27 19.611328 L 23 18.279297 L 23 13.388672 z M 33 13.388672 L 33 18.279297 L 29 19.611328 L 29 14.720703 L 33 13.388672 z M 35 13.388672 L 39 14.720703 L 39 19.611328 L 35 18.279297 L 35 13.388672 z M 45 13.388672 L 45 18.279297 L 41 19.611328 L 41 14.720703 L 45 13.388672 z M 10 20.054688 L 14.335938 21.5 L 10 22.945312 L 5.6640625 21.5 L 10 20.054688 z M 22 20.054688 L 26.335938 21.5 L 22 22.945312 L 17.664062 21.5 L 22 20.054688 z M 5 23.388672 L 9 24.720703 L 9 29.611328 L 5 28.279297 L 5 23.388672 z M 15 23.388672 L 15 28.279297 L 11 29.611328 L 11 24.720703 L 15 23.388672 z M 17 23.388672 L 21 24.720703 L 21 29.611328 L 17 28.279297 L 17 23.388672 z M 27 23.388672 L 27 28.279297 L 23 29.611328 L 23 24.720703 L 27 23.388672 z M 16 30.054688 L 20.335938 31.5 L 16 32.945312 L 11.664062 31.5 L 16 30.054688 z M 11 33.388672 L 15 34.720703 L 15 39.611328 L 11 38.279297 L 11 33.388672 z M 21 33.388672 L 21 38.279297 L 17 39.611328 L 17 34.720703 L 21 33.388672 z"
|
|
15
|
+
/></svg
|
|
16
|
+
>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type S3IconProps = typeof __propDef.props;
|
|
13
|
+
export declare type S3IconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type S3IconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class S3Icon extends SvelteComponentTyped<S3IconProps, S3IconEvents, S3IconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<script>export let height = '24px';
|
|
2
|
+
export let width = '24px';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
x="0px"
|
|
8
|
+
y="0px"
|
|
9
|
+
{width}
|
|
10
|
+
{height}
|
|
11
|
+
viewBox="0 0 188.8 258.10001"
|
|
12
|
+
preserveAspectRatio="xMidYMid meet"
|
|
13
|
+
id="svg12"
|
|
14
|
+
inkscape:export-filename="/home/rfiszel/Downloads/windmill.png"
|
|
15
|
+
inkscape:export-xdpi="31.02663"
|
|
16
|
+
inkscape:export-ydpi="31.02663"
|
|
17
|
+
>
|
|
18
|
+
<defs id="defs16" />
|
|
19
|
+
<sodipodi:namedview
|
|
20
|
+
id="namedview14"
|
|
21
|
+
borderopacity="1.0"
|
|
22
|
+
inkscape:pageshadow="2"
|
|
23
|
+
inkscape:pageopacity="0.0"
|
|
24
|
+
inkscape:pagecheckerboard="0"
|
|
25
|
+
inkscape:document-units="pt"
|
|
26
|
+
showgrid="false"
|
|
27
|
+
inkscape:zoom="0.50043491"
|
|
28
|
+
inkscape:cx="57.949594"
|
|
29
|
+
inkscape:cy="197.82793"
|
|
30
|
+
inkscape:window-width="1276"
|
|
31
|
+
inkscape:window-height="1436"
|
|
32
|
+
inkscape:window-x="0"
|
|
33
|
+
inkscape:window-y="0"
|
|
34
|
+
inkscape:window-maximized="1"
|
|
35
|
+
inkscape:current-layer="svg12"
|
|
36
|
+
fit-margin-top="0"
|
|
37
|
+
fit-margin-left="0"
|
|
38
|
+
fit-margin-right="0"
|
|
39
|
+
fit-margin-bottom="0"
|
|
40
|
+
/>
|
|
41
|
+
<metadata id="metadata2"> Created by potrace 1.16, written by Peter Selinger 2001-2019 </metadata>
|
|
42
|
+
<g
|
|
43
|
+
transform="matrix(0.1,0,0,-0.1,-273.6,405.1)"
|
|
44
|
+
fill="#000000"
|
|
45
|
+
stroke="none"
|
|
46
|
+
id="g10"
|
|
47
|
+
inkscape:export-filename="/home/rfiszel/Downloads/g10.png"
|
|
48
|
+
inkscape:export-xdpi="31.02663"
|
|
49
|
+
inkscape:export-ydpi="31.02663"
|
|
50
|
+
style="fill:#000000;fill-opacity:1"
|
|
51
|
+
>
|
|
52
|
+
<path
|
|
53
|
+
d="m 2760,4025 -24,-26 447,-447 447,-447 -447,-447 -447,-447 24,-26 24,-26 448,448 448,448 448,-448 448,-448 24,26 24,26 -447,447 -447,447 447,447 447,447 -24,26 -24,26 -448,-448 -448,-448 -448,448 -448,448 z"
|
|
54
|
+
id="path4"
|
|
55
|
+
style="fill:#000000;fill-opacity:1"
|
|
56
|
+
/>
|
|
57
|
+
<path
|
|
58
|
+
d="m 3569,2823 -107,-108 -66,-539 c -39,-315 -63,-543 -58,-548 5,-5 67,-7 138,-6 l 129,3 2,155 c 1,146 2,155 23,172 29,23 91,23 119,1 19,-17 21,-29 23,-173 l 3,-155 138,-3 137,-3 v 28 c 0,15 -20,186 -45,378 -25,193 -53,421 -64,509 l -19,159 -118,118 c -65,66 -121,119 -124,119 -3,0 -53,-48 -111,-107 z"
|
|
59
|
+
id="path6"
|
|
60
|
+
style="fill:#000000;fill-opacity:1"
|
|
61
|
+
/>
|
|
62
|
+
<path
|
|
63
|
+
d="m 3317,1543 c -4,-3 -7,-21 -7,-40 v -33 h 380 380 v 24 c 0,59 21,56 -379,56 -202,0 -371,-3 -374,-7 z"
|
|
64
|
+
id="path8"
|
|
65
|
+
style="fill:#000000;fill-opacity:1"
|
|
66
|
+
/>
|
|
67
|
+
</g>
|
|
68
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
height?: string | undefined;
|
|
5
|
+
width?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type WindmillIconProps = typeof __propDef.props;
|
|
13
|
+
export declare type WindmillIconEvents = typeof __propDef.events;
|
|
14
|
+
export declare type WindmillIconSlots = typeof __propDef.slots;
|
|
15
|
+
export default class WindmillIcon extends SvelteComponentTyped<WindmillIconProps, WindmillIconEvents, WindmillIconSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<script>import { displayDate, displayDaysAgo, forLater, msToSec, truncateHash, truncateRev } from '../../utils';
|
|
2
|
+
import { faCalendar, faCircle, faClock, faFastForward, faHourglassHalf, faRobot, faTimes, faUser, faWind } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
+
import Icon from 'svelte-awesome';
|
|
4
|
+
import { check } from 'svelte-awesome/icons';
|
|
5
|
+
const SMALL_ICON_SCALE = 0.7;
|
|
6
|
+
export let job;
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<div class="border rounded py-4">
|
|
10
|
+
<div class="grid grid-cols-1 lg:grid-cols-3 w-full gap-4">
|
|
11
|
+
<div class="flex-col">
|
|
12
|
+
<div class="flex flex-row text-sm">
|
|
13
|
+
{#if job === undefined}
|
|
14
|
+
No job found
|
|
15
|
+
{:else}
|
|
16
|
+
<div class="block text-center align-middle pb-3 pt-2 px-6">
|
|
17
|
+
{#if 'success' in job && job.success}
|
|
18
|
+
{#if job.is_skipped}
|
|
19
|
+
<Icon
|
|
20
|
+
class="text-green-600"
|
|
21
|
+
data={faFastForward}
|
|
22
|
+
scale={SMALL_ICON_SCALE}
|
|
23
|
+
label="Job completed successfully but was skipped"
|
|
24
|
+
/>
|
|
25
|
+
{:else}
|
|
26
|
+
<Icon
|
|
27
|
+
class="text-green-600"
|
|
28
|
+
data={check}
|
|
29
|
+
scale={SMALL_ICON_SCALE}
|
|
30
|
+
label="Job completed successfully"
|
|
31
|
+
/>
|
|
32
|
+
{/if}
|
|
33
|
+
{:else if 'success' in job}
|
|
34
|
+
<Icon
|
|
35
|
+
class="text-red-700"
|
|
36
|
+
data={faTimes}
|
|
37
|
+
scale={SMALL_ICON_SCALE}
|
|
38
|
+
label="Job completed with an error"
|
|
39
|
+
/>
|
|
40
|
+
{:else if 'running' in job && job.running}
|
|
41
|
+
<Icon
|
|
42
|
+
class="text-yellow-500"
|
|
43
|
+
data={faCircle}
|
|
44
|
+
scale={SMALL_ICON_SCALE}
|
|
45
|
+
label="Job is running"
|
|
46
|
+
/>
|
|
47
|
+
{:else if job && 'running' in job && job.scheduled_for && forLater(job.scheduled_for)}
|
|
48
|
+
<Icon
|
|
49
|
+
class="text-gray-700"
|
|
50
|
+
data={faCalendar}
|
|
51
|
+
scale={SMALL_ICON_SCALE}
|
|
52
|
+
label="Job is scheduled to run at a later time"
|
|
53
|
+
/>
|
|
54
|
+
{:else}
|
|
55
|
+
<Icon
|
|
56
|
+
class="text-gray-500"
|
|
57
|
+
data={faHourglassHalf}
|
|
58
|
+
scale={SMALL_ICON_SCALE}
|
|
59
|
+
label="Job is waiting for an executor"
|
|
60
|
+
/>
|
|
61
|
+
{/if}
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<h3 class="break-all py-2">
|
|
65
|
+
{#if job.script_path}
|
|
66
|
+
<a class="pr-3" href="/run/{job.id}">{job.script_path} </a>
|
|
67
|
+
{:else if 'job_kind' in job && job.job_kind == 'preview'}
|
|
68
|
+
<a class="pr-3" href="/run/{job.id}">Preview without path </a>
|
|
69
|
+
{:else if 'job_kind' in job && job.job_kind != 'script'}
|
|
70
|
+
<a class="pr-3" href="/run/{job.id}">lock dependencies</a>
|
|
71
|
+
{/if}
|
|
72
|
+
{#if job.script_hash}
|
|
73
|
+
<a href="/scripts/get/{job.script_hash}" class="commit-hash"
|
|
74
|
+
>{truncateHash(job.script_hash ?? '')}</a
|
|
75
|
+
>
|
|
76
|
+
{/if}
|
|
77
|
+
{#if 'job_kind' in job && job.job_kind != 'script'}<span
|
|
78
|
+
class="bg-blue-200 text-gray-700 text-xs rounded px-1 mx-3 whitespace-nowrap"
|
|
79
|
+
><a href="/run/{job.id}">{job.job_kind}</a></span
|
|
80
|
+
>
|
|
81
|
+
{:else if job.is_flow_step}
|
|
82
|
+
<span class="bg-blue-200 text-gray-700 text-xs rounded px-1 mx-3"
|
|
83
|
+
><a href="/run/{job.parent_job}">step of flow</a></span
|
|
84
|
+
>
|
|
85
|
+
{/if}
|
|
86
|
+
</h3>
|
|
87
|
+
{/if}
|
|
88
|
+
</div>
|
|
89
|
+
<div>
|
|
90
|
+
<span class="pl-14 italic text-gray-500 text-2xs whitespace-nowrap overflow-hidden"
|
|
91
|
+
>Run {job.id}</span
|
|
92
|
+
>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="bg-white grid grid-cols-2 gap-x-2 col-span-2">
|
|
96
|
+
<div class="w-full text-gray-500 text-xs text-left flex flex-col gap-1 mx-4">
|
|
97
|
+
<div>
|
|
98
|
+
<Icon class="text-gray-700" data={faUser} scale={SMALL_ICON_SCALE} /><span class="mx-2">
|
|
99
|
+
By {job.created_by}</span
|
|
100
|
+
>
|
|
101
|
+
</div>
|
|
102
|
+
{#if job && 'duration_ms' in job && job.duration_ms != undefined}
|
|
103
|
+
<div>
|
|
104
|
+
<Icon class="text-gray-700" data={faHourglassHalf} scale={SMALL_ICON_SCALE} /><span
|
|
105
|
+
class="mx-2"
|
|
106
|
+
>
|
|
107
|
+
Ran in {msToSec(job.duration_ms)}s</span
|
|
108
|
+
>
|
|
109
|
+
</div>
|
|
110
|
+
{/if}
|
|
111
|
+
<div>
|
|
112
|
+
{#if job && job.parent_job}
|
|
113
|
+
{#if job.is_flow_step}
|
|
114
|
+
<Icon class="text-gray-700" data={faWind} scale={SMALL_ICON_SCALE} /><span
|
|
115
|
+
class="mx-2"
|
|
116
|
+
>
|
|
117
|
+
Step of flow <a href={`/run/${job.parent_job}`}>{truncateRev(job.parent_job, 6)}</a
|
|
118
|
+
></span
|
|
119
|
+
>
|
|
120
|
+
{:else}
|
|
121
|
+
<Icon class="text-gray-700" data={faRobot} scale={SMALL_ICON_SCALE} /><span
|
|
122
|
+
class="mx-2"
|
|
123
|
+
>
|
|
124
|
+
Triggered by parent <a href={`/run/${job.parent_job}`}>{job.parent_job}</a></span
|
|
125
|
+
>
|
|
126
|
+
{/if}
|
|
127
|
+
{:else if job && job.schedule_path}
|
|
128
|
+
<Icon class="text-gray-700" data={faCalendar} scale={SMALL_ICON_SCALE} />
|
|
129
|
+
<span class="mx-2"
|
|
130
|
+
>Triggered by the schedule: <a
|
|
131
|
+
href={`/schedule/add?edit=${job.schedule_path}&isFlow=${job.job_kind == 'flow'}`}
|
|
132
|
+
>{job.schedule_path}</a
|
|
133
|
+
></span
|
|
134
|
+
>
|
|
135
|
+
{/if}
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="text-gray-500 text-xs text-left place-self-start flex flex-col gap-1">
|
|
139
|
+
<div>
|
|
140
|
+
<Icon class="text-gray-700" data={faClock} scale={SMALL_ICON_SCALE} /><span class="mx-2">
|
|
141
|
+
Created {displayDaysAgo(job.created_at ?? '')}</span
|
|
142
|
+
>
|
|
143
|
+
</div>
|
|
144
|
+
{#if 'started_at' in job && job.started_at}
|
|
145
|
+
<div>
|
|
146
|
+
<Icon class="text-gray-700" data={faClock} scale={SMALL_ICON_SCALE} /><span
|
|
147
|
+
class="mx-2"
|
|
148
|
+
>
|
|
149
|
+
Started {displayDaysAgo(job.started_at ?? '')}</span
|
|
150
|
+
>
|
|
151
|
+
</div>
|
|
152
|
+
{/if}
|
|
153
|
+
{#if 'scheduled_for' in job && !job.running && job.scheduled_for && forLater(job.scheduled_for)}
|
|
154
|
+
<div>
|
|
155
|
+
<Icon class="text-gray-700" data={faCalendar} scale={SMALL_ICON_SCALE} /><span
|
|
156
|
+
class="mx-2"
|
|
157
|
+
>
|
|
158
|
+
<span class="bg-blue-200 text-gray-700 text-xs rounded px-1 ">Scheduled</span>
|
|
159
|
+
for {displayDate(job.scheduled_for ?? '')}
|
|
160
|
+
</span>
|
|
161
|
+
</div>
|
|
162
|
+
{:else if 'scheduled_for' in job && !job.running}
|
|
163
|
+
<div>
|
|
164
|
+
<Icon class="text-gray-700" data={faClock} scale={SMALL_ICON_SCALE} /><span
|
|
165
|
+
class="mx-2"
|
|
166
|
+
>
|
|
167
|
+
<span class="bg-blue-200 text-gray-700 text-xs rounded px-1 "
|
|
168
|
+
>Waiting for an executor</span
|
|
169
|
+
>
|
|
170
|
+
</span>
|
|
171
|
+
</div>
|
|
172
|
+
{/if}
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Job } from '../../gen';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
job: Job;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type JobDetailProps = typeof __propDef.props;
|
|
13
|
+
export declare type JobDetailEvents = typeof __propDef.events;
|
|
14
|
+
export declare type JobDetailSlots = typeof __propDef.slots;
|
|
15
|
+
export default class JobDetail extends SvelteComponentTyped<JobDetailProps, JobDetailEvents, JobDetailSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { goto } from '$app/navigation'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class="p-4 border border-gray-300 rounded-md bg-gray-50 ">
|
|
6
|
+
<div class="flex items-center">
|
|
7
|
+
<h3 class="inline-flex items-center text-lg font-medium text-gray-700 ">
|
|
8
|
+
<svg
|
|
9
|
+
class="w-6 h-6 mr-2"
|
|
10
|
+
fill="none"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
viewBox="0 0 24 24"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
><path d="M12 14l9-5-9-5-9 5 9 5z" /><path
|
|
15
|
+
d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"
|
|
16
|
+
/><path
|
|
17
|
+
stroke-linecap="round"
|
|
18
|
+
stroke-linejoin="round"
|
|
19
|
+
stroke-width="2"
|
|
20
|
+
d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
Getting started
|
|
24
|
+
</h3>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="mt-2 mb-4 text-sm text-gray-700 ">
|
|
27
|
+
Flows allow you to streamline complex processes and operations by chaining simple steps
|
|
28
|
+
together. Each Flow is composed of one or more steps. Create a new flow or find inspiration on
|
|
29
|
+
the Hub!
|
|
30
|
+
</div>
|
|
31
|
+
<div class="inline-flex flex-wrap gap-y-2">
|
|
32
|
+
<button
|
|
33
|
+
type="button"
|
|
34
|
+
on:click={() => goto('flows/add')}
|
|
35
|
+
class="mr-2 inline-flex items-center text-white bg-gray-700 hover:bg-gray-800 focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded-lg text-xs px-3 py-1.5 text-center"
|
|
36
|
+
>
|
|
37
|
+
<svg
|
|
38
|
+
class="w-4 h-4 mr-2"
|
|
39
|
+
fill="none"
|
|
40
|
+
stroke="currentColor"
|
|
41
|
+
viewBox="0 0 24 24"
|
|
42
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
43
|
+
><path
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
stroke-width="2"
|
|
47
|
+
d="M12 6v6m0 0v6m0-6h6m-6 0H6"
|
|
48
|
+
/></svg
|
|
49
|
+
>
|
|
50
|
+
Create flow
|
|
51
|
+
</button>
|
|
52
|
+
<button
|
|
53
|
+
on:click={() => goto('https://docs.windmill.dev/docs/getting_started/flows')}
|
|
54
|
+
type="button"
|
|
55
|
+
class="mr-2 inline-flex items-center text-white bg-blue-600 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-xs px-3 py-1.5 text-center"
|
|
56
|
+
>
|
|
57
|
+
<svg
|
|
58
|
+
class="w-4 h-4 mr-2"
|
|
59
|
+
fill="none"
|
|
60
|
+
stroke="currentColor"
|
|
61
|
+
viewBox="0 0 24 24"
|
|
62
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
63
|
+
><path
|
|
64
|
+
stroke-linecap="round"
|
|
65
|
+
stroke-linejoin="round"
|
|
66
|
+
stroke-width="2"
|
|
67
|
+
d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
68
|
+
/>
|
|
69
|
+
</svg>
|
|
70
|
+
Flow documentation
|
|
71
|
+
</button>
|
|
72
|
+
<button
|
|
73
|
+
type="button"
|
|
74
|
+
class="inline-flex items-center text-gray-700 bg-transparent border border-gray-700 hover:bg-gray-800 hover:text-white focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded-lg text-xs px-3 py-1.5 text-center "
|
|
75
|
+
data-dismiss-target="#alert-additional-content-5"
|
|
76
|
+
aria-label="Close"
|
|
77
|
+
on:click={() => goto('https://hub.windmill.dev/')}
|
|
78
|
+
>
|
|
79
|
+
<svg
|
|
80
|
+
class="w-4 h-4 mr-2"
|
|
81
|
+
fill="none"
|
|
82
|
+
stroke="currentColor"
|
|
83
|
+
viewBox="0 0 24 24"
|
|
84
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
85
|
+
><path
|
|
86
|
+
stroke-linecap="round"
|
|
87
|
+
stroke-linejoin="round"
|
|
88
|
+
stroke-width="2"
|
|
89
|
+
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
|
|
90
|
+
/>
|
|
91
|
+
</svg>
|
|
92
|
+
Explore community flows on WindmillHub
|
|
93
|
+
</button>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} FlowGettingStartedProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} FlowGettingStartedEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} FlowGettingStartedSlots */
|
|
4
|
+
export default class FlowGettingStarted extends SvelteComponentTyped<{}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> {
|
|
7
|
+
}
|
|
8
|
+
export type FlowGettingStartedProps = typeof __propDef.props;
|
|
9
|
+
export type FlowGettingStartedEvents = typeof __propDef.events;
|
|
10
|
+
export type FlowGettingStartedSlots = typeof __propDef.slots;
|
|
11
|
+
import { SvelteComponentTyped } from "svelte";
|
|
12
|
+
declare const __propDef: {
|
|
13
|
+
props: {};
|
|
14
|
+
events: {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
};
|
|
17
|
+
slots: {};
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script>import { goto } from '$app/navigation';
|
|
2
|
+
export let flow;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div
|
|
6
|
+
class="border p-4 rounded-sm shadow-sm space-y-2 hover:border-blue-600 flex flex-col justify-between cursor-pointer"
|
|
7
|
+
on:click={() => goto(`/flows/get/${flow.path}`)}
|
|
8
|
+
>
|
|
9
|
+
<div class="font-bold">{flow.summary}</div>
|
|
10
|
+
|
|
11
|
+
<div class="inline-flex justify-between w-full h-16">
|
|
12
|
+
<div class="text-xs">{flow.path}</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div
|
|
16
|
+
class="inline-flex space-x-2 space-x-reverse flex-row-reverse w-full bottom-4 right-4 flex-wrap"
|
|
17
|
+
>
|
|
18
|
+
<button
|
|
19
|
+
on:click|stopPropagation={() => goto(`/flows/edit/${flow.path}?step=2`)}
|
|
20
|
+
type="button"
|
|
21
|
+
class="inline-flex items-center text-gray-700 bg-transparent border border-gray-700 hover:bg-gray-800 hover:text-white focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded-lg text-xs px-3 py-1.5 text-center"
|
|
22
|
+
data-dismiss-target="#alert-additional-content-5"
|
|
23
|
+
aria-label="Close"
|
|
24
|
+
>
|
|
25
|
+
<svg
|
|
26
|
+
class="w-4 h-4 mr-2"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke="currentColor"
|
|
29
|
+
viewBox="0 0 24 24"
|
|
30
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
+
><path
|
|
32
|
+
stroke-linecap="round"
|
|
33
|
+
stroke-linejoin="round"
|
|
34
|
+
stroke-width="2"
|
|
35
|
+
d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
|
|
36
|
+
/>
|
|
37
|
+
</svg>
|
|
38
|
+
Edit
|
|
39
|
+
</button>
|
|
40
|
+
|
|
41
|
+
<button
|
|
42
|
+
on:click|stopPropagation={() => goto(`/flows/run/${flow.path}`)}
|
|
43
|
+
type="button"
|
|
44
|
+
class="inline-flex items-center text-gray-700 bg-transparent border border-gray-700 hover:bg-gray-800 hover:text-white focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded-lg text-xs px-3 py-1.5 text-center"
|
|
45
|
+
data-dismiss-target="#alert-additional-content-5"
|
|
46
|
+
aria-label="Close"
|
|
47
|
+
>
|
|
48
|
+
<svg
|
|
49
|
+
class="w-4 h-4 mr-2"
|
|
50
|
+
fill="none"
|
|
51
|
+
stroke="currentColor"
|
|
52
|
+
viewBox="0 0 24 24"
|
|
53
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
54
|
+
><path
|
|
55
|
+
stroke-linecap="round"
|
|
56
|
+
stroke-linejoin="round"
|
|
57
|
+
stroke-width="2"
|
|
58
|
+
d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"
|
|
59
|
+
/><path
|
|
60
|
+
stroke-linecap="round"
|
|
61
|
+
stroke-linejoin="round"
|
|
62
|
+
stroke-width="2"
|
|
63
|
+
d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
64
|
+
/>
|
|
65
|
+
</svg>
|
|
66
|
+
Run
|
|
67
|
+
</button>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Flow } from '../../gen';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
flow: Flow;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type FlowLandingBoxProps = typeof __propDef.props;
|
|
13
|
+
export declare type FlowLandingBoxEvents = typeof __propDef.events;
|
|
14
|
+
export declare type FlowLandingBoxSlots = typeof __propDef.slots;
|
|
15
|
+
export default class FlowLandingBox extends SvelteComponentTyped<FlowLandingBoxProps, FlowLandingBoxEvents, FlowLandingBoxSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|