windmill-components 1.430.6 → 1.434.1
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 +27 -2
- package/package/components/ConfirmButton.svelte +31 -0
- package/package/components/ConfirmButton.svelte.d.ts +20 -0
- package/package/components/DiffEditor.svelte +0 -6
- package/package/components/FlowStatusViewerInner.svelte +74 -49
- package/package/components/InstanceSettings.svelte +20 -1
- package/package/components/Login.svelte +31 -6
- package/package/components/ServiceLogsInner.svelte +365 -337
- package/package/components/apps/components/buttons/AppSchemaForm.svelte +1 -1
- package/package/components/apps/components/display/AppNavbarItem.svelte +1 -1
- package/package/components/apps/components/helpers/RunnableComponent.svelte +2 -2
- package/package/components/apps/components/inputs/AppS3FileInput.svelte +1 -1
- package/package/components/apps/editor/AppEditor.svelte +18 -8
- package/package/components/apps/editor/AppEditor.svelte.d.ts +5 -0
- package/package/components/apps/editor/AppEditorHeader.svelte +61 -61
- package/package/components/apps/editor/AppEditorHeader.svelte.d.ts +2 -0
- package/package/components/apps/editor/AppPreview.svelte +6 -1
- package/package/components/apps/editor/AppReportsDrawer.svelte +3 -613
- package/package/components/apps/editor/AppReportsDrawerInner.svelte +622 -0
- package/package/components/apps/editor/AppReportsDrawerInner.svelte.d.ts +17 -0
- package/package/components/apps/editor/component/components.d.ts +79 -79
- package/package/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte +1 -1
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptEditor.svelte +1 -1
- package/package/components/apps/editor/settingsPanel/GridNavbar.svelte +1 -1
- package/package/components/apps/types.d.ts +1 -1
- package/package/components/graph/FlowGraphV2.svelte +11 -1
- package/package/components/graph/graphBuilder.js +1 -0
- package/package/components/splitPanes/SplitPanesOrColumnOnMobile.svelte +34 -0
- package/package/components/splitPanes/SplitPanesOrColumnOnMobile.svelte.d.ts +23 -0
- package/package/components/wizards/AppPicker.svelte +4 -4
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +2 -2
- package/package/gen/schemas.gen.js +2 -2
- package/package/gen/services.gen.d.ts +0 -1
- package/package/gen/services.gen.js +0 -2
- package/package/gen/types.gen.d.ts +2 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ async function createInlineScriptByLanguage(language, path, subkind = undefined)
|
|
|
38
38
|
return newInlineScript(content, language, path);
|
|
39
39
|
}
|
|
40
40
|
async function newInlineScript(content, language, path) {
|
|
41
|
-
const fullPath = `${appPath}/${path}`;
|
|
41
|
+
const fullPath = `${$appPath}/${path}`;
|
|
42
42
|
let schema = emptySchema();
|
|
43
43
|
schema = await inferInlineScriptSchema(language, content, schema);
|
|
44
44
|
const newInlineScript = {
|
|
@@ -42,7 +42,7 @@ async function inferInlineScriptSchema(language, content, schema) {
|
|
|
42
42
|
return schema;
|
|
43
43
|
}
|
|
44
44
|
$: inlineScript &&
|
|
45
|
-
(inlineScript.path = `${defaultIfEmptyString(appPath, `u/${$userStore?.username ?? 'unknown'}/newapp`)}/${name?.replaceAll(' ', '_')}`);
|
|
45
|
+
(inlineScript.path = `${defaultIfEmptyString($appPath, `u/${$userStore?.username ?? 'unknown'}/newapp`)}/${name?.replaceAll(' ', '_')}`);
|
|
46
46
|
onMount(async () => {
|
|
47
47
|
if (inlineScript && !inlineScript.schema) {
|
|
48
48
|
if (inlineScript.language != 'frontend') {
|
|
@@ -162,7 +162,7 @@ let resolvedLabels = [];
|
|
|
162
162
|
{#if resolvedPaths[item.originalIndex]}
|
|
163
163
|
<div class="text-xs text-tertiary flex gap-2 flex-row flex-wrap">
|
|
164
164
|
Path: <Badge small>{resolvedPaths[item.originalIndex]}</Badge>
|
|
165
|
-
{#if appPath && resolvedPaths[item.originalIndex]?.includes(appPath)}
|
|
165
|
+
{#if $appPath && resolvedPaths[item.originalIndex]?.includes($appPath)}
|
|
166
166
|
<Badge small color="blue"
|
|
167
167
|
>Current app
|
|
168
168
|
|
|
@@ -152,7 +152,7 @@ export type AppViewerContext = {
|
|
|
152
152
|
cb: ((inlineScript?: InlineScript, setRunnableJob?: boolean) => CancelablePromise<void>)[];
|
|
153
153
|
}>>;
|
|
154
154
|
staticExporter: Writable<Record<string, () => any>>;
|
|
155
|
-
appPath: string
|
|
155
|
+
appPath: Writable<string>;
|
|
156
156
|
workspace: string;
|
|
157
157
|
onchange: (() => void) | undefined;
|
|
158
158
|
isEditor: boolean;
|
|
@@ -29,6 +29,7 @@ import FlowYamlEditor from '../flows/header/FlowYamlEditor.svelte';
|
|
|
29
29
|
import BranchOneEndNode from './renderers/nodes/branchOneEndNode.svelte';
|
|
30
30
|
import { workspaceStore } from '../../stores';
|
|
31
31
|
import SubflowBound from './renderers/nodes/SubflowBound.svelte';
|
|
32
|
+
import { deepEqual } from 'fast-equals';
|
|
32
33
|
export let success = undefined;
|
|
33
34
|
export let modules = [];
|
|
34
35
|
export let failureModule = undefined;
|
|
@@ -172,7 +173,16 @@ let eventHandler = {
|
|
|
172
173
|
expandedSubflows = expandedSubflows;
|
|
173
174
|
}
|
|
174
175
|
};
|
|
175
|
-
|
|
176
|
+
let lastModules = structuredClone(modules);
|
|
177
|
+
let newModules = modules;
|
|
178
|
+
$: modules && onModulesChange2(modules);
|
|
179
|
+
function onModulesChange2(modules) {
|
|
180
|
+
if (!deepEqual(modules, lastModules)) {
|
|
181
|
+
lastModules = structuredClone(modules);
|
|
182
|
+
newModules = modules;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
$: graph = graphBuilder(newModules, {
|
|
176
186
|
disableAi,
|
|
177
187
|
insertable,
|
|
178
188
|
flowModuleStates,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script>import { Pane, Splitpanes } from 'svelte-splitpanes';
|
|
2
|
+
import SplitPanesWrapper from './SplitPanesWrapper.svelte';
|
|
3
|
+
export let leftPaneSize = 30;
|
|
4
|
+
export let leftPaneMinSize = 25;
|
|
5
|
+
export let rightPaneSize = 70;
|
|
6
|
+
export let rightPaneMinSize = 25;
|
|
7
|
+
export let rightPaneIsFirstInCol = false;
|
|
8
|
+
let clientWidth = window.innerWidth;
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<main class="h-screen w-full" bind:clientWidth>
|
|
12
|
+
{#if clientWidth >= 768}
|
|
13
|
+
<SplitPanesWrapper class="hidden md:block">
|
|
14
|
+
<Splitpanes>
|
|
15
|
+
<Pane size={30} minSize={25}>
|
|
16
|
+
<slot name="left-pane" />
|
|
17
|
+
</Pane>
|
|
18
|
+
<Pane size={70} minSize={25}>
|
|
19
|
+
<slot name="right-pane" />
|
|
20
|
+
</Pane>
|
|
21
|
+
</Splitpanes>
|
|
22
|
+
</SplitPanesWrapper>
|
|
23
|
+
{:else}
|
|
24
|
+
<div class="flex flex-col">
|
|
25
|
+
{#if rightPaneIsFirstInCol}
|
|
26
|
+
<slot name="right-pane" />
|
|
27
|
+
<slot name="left-pane" />
|
|
28
|
+
{:else}
|
|
29
|
+
<slot name="left-pane" />
|
|
30
|
+
<slot name="right-pane" />
|
|
31
|
+
{/if}
|
|
32
|
+
</div>
|
|
33
|
+
{/if}
|
|
34
|
+
</main>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
leftPaneSize?: number | undefined;
|
|
5
|
+
leftPaneMinSize?: number | undefined;
|
|
6
|
+
rightPaneSize?: number | undefined;
|
|
7
|
+
rightPaneMinSize?: number | undefined;
|
|
8
|
+
rightPaneIsFirstInCol?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {
|
|
14
|
+
'left-pane': {};
|
|
15
|
+
'right-pane': {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type SplitPanesOrColumnOnMobileProps = typeof __propDef.props;
|
|
19
|
+
export type SplitPanesOrColumnOnMobileEvents = typeof __propDef.events;
|
|
20
|
+
export type SplitPanesOrColumnOnMobileSlots = typeof __propDef.slots;
|
|
21
|
+
export default class SplitPanesOrColumnOnMobile extends SvelteComponent<SplitPanesOrColumnOnMobileProps, SplitPanesOrColumnOnMobileEvents, SplitPanesOrColumnOnMobileSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -24,8 +24,8 @@ async function loadApps() {
|
|
|
24
24
|
onMount(() => {
|
|
25
25
|
loadApps();
|
|
26
26
|
if (selecteValue === '') {
|
|
27
|
-
selecteValue = appPath;
|
|
28
|
-
value = appPath;
|
|
27
|
+
selecteValue = $appPath;
|
|
28
|
+
value = $appPath;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
</script>
|
|
@@ -45,7 +45,7 @@ onMount(() => {
|
|
|
45
45
|
items={apps.map((app) => {
|
|
46
46
|
return {
|
|
47
47
|
value: app.path,
|
|
48
|
-
label: app.path === appPath ? `${app.path} (current app)` : app.path
|
|
48
|
+
label: app.path === $appPath ? `${app.path} (current app)` : app.path
|
|
49
49
|
}
|
|
50
50
|
})}
|
|
51
51
|
placeholder="Pick an app"
|
|
@@ -60,7 +60,7 @@ onMount(() => {
|
|
|
60
60
|
Current app is not selectable until you have deployed this app at least once.
|
|
61
61
|
</Alert>
|
|
62
62
|
{/if}
|
|
63
|
-
{#if appPath && appPath === value}
|
|
63
|
+
{#if appPath && $appPath === value}
|
|
64
64
|
<div class="text-2xs">
|
|
65
65
|
The current app is selected. If the path changes, the path needs to be updated manually.
|
|
66
66
|
</div>
|
|
@@ -385,7 +385,7 @@ export declare const $QueuedJob: {
|
|
|
385
385
|
};
|
|
386
386
|
readonly job_kind: {
|
|
387
387
|
readonly type: "string";
|
|
388
|
-
readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow"];
|
|
388
|
+
readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow", "flowscript"];
|
|
389
389
|
};
|
|
390
390
|
readonly schedule_path: {
|
|
391
391
|
readonly type: "string";
|
|
@@ -495,7 +495,7 @@ export declare const $CompletedJob: {
|
|
|
495
495
|
};
|
|
496
496
|
readonly job_kind: {
|
|
497
497
|
readonly type: "string";
|
|
498
|
-
readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow"];
|
|
498
|
+
readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow", "flowscript"];
|
|
499
499
|
};
|
|
500
500
|
readonly schedule_path: {
|
|
501
501
|
readonly type: "string";
|
|
@@ -390,7 +390,7 @@ export const $QueuedJob = {
|
|
|
390
390
|
},
|
|
391
391
|
job_kind: {
|
|
392
392
|
type: 'string',
|
|
393
|
-
enum: ['script', 'preview', 'dependencies', 'flowdependencies', 'appdependencies', 'flow', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow']
|
|
393
|
+
enum: ['script', 'preview', 'dependencies', 'flowdependencies', 'appdependencies', 'flow', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow', 'flowscript']
|
|
394
394
|
},
|
|
395
395
|
schedule_path: {
|
|
396
396
|
type: 'string'
|
|
@@ -502,7 +502,7 @@ export const $CompletedJob = {
|
|
|
502
502
|
},
|
|
503
503
|
job_kind: {
|
|
504
504
|
type: 'string',
|
|
505
|
-
enum: ['script', 'preview', 'dependencies', 'flow', 'flowdependencies', 'appdependencies', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow']
|
|
505
|
+
enum: ['script', 'preview', 'dependencies', 'flow', 'flowdependencies', 'appdependencies', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow', 'flowscript']
|
|
506
506
|
},
|
|
507
507
|
schedule_path: {
|
|
508
508
|
type: 'string'
|
|
@@ -3889,7 +3889,6 @@ export declare class IndexSearchService {
|
|
|
3889
3889
|
* Search and count the log line hits on every provided host
|
|
3890
3890
|
* @param data The data for the request.
|
|
3891
3891
|
* @param data.searchQuery
|
|
3892
|
-
* @param data.hosts
|
|
3893
3892
|
* @param data.minTs
|
|
3894
3893
|
* @param data.maxTs
|
|
3895
3894
|
* @returns unknown search results
|
|
@@ -7837,7 +7837,6 @@ export class IndexSearchService {
|
|
|
7837
7837
|
* Search and count the log line hits on every provided host
|
|
7838
7838
|
* @param data The data for the request.
|
|
7839
7839
|
* @param data.searchQuery
|
|
7840
|
-
* @param data.hosts
|
|
7841
7840
|
* @param data.minTs
|
|
7842
7841
|
* @param data.maxTs
|
|
7843
7842
|
* @returns unknown search results
|
|
@@ -7849,7 +7848,6 @@ export class IndexSearchService {
|
|
|
7849
7848
|
url: '/srch/index/search/count_service_logs',
|
|
7850
7849
|
query: {
|
|
7851
7850
|
search_query: data.searchQuery,
|
|
7852
|
-
hosts: data.hosts,
|
|
7853
7851
|
min_ts: data.minTs,
|
|
7854
7852
|
max_ts: data.maxTs
|
|
7855
7853
|
}
|
|
@@ -130,7 +130,7 @@ export type QueuedJob = {
|
|
|
130
130
|
canceled_by?: string;
|
|
131
131
|
canceled_reason?: string;
|
|
132
132
|
last_ping?: string;
|
|
133
|
-
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow';
|
|
133
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript';
|
|
134
134
|
schedule_path?: string;
|
|
135
135
|
/**
|
|
136
136
|
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
@@ -170,7 +170,7 @@ export type CompletedJob = {
|
|
|
170
170
|
canceled: boolean;
|
|
171
171
|
canceled_by?: string;
|
|
172
172
|
canceled_reason?: string;
|
|
173
|
-
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow';
|
|
173
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript';
|
|
174
174
|
schedule_path?: string;
|
|
175
175
|
/**
|
|
176
176
|
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
@@ -5400,7 +5400,6 @@ export type SearchLogsIndexResponse = {
|
|
|
5400
5400
|
hits?: Array<LogSearchHit>;
|
|
5401
5401
|
};
|
|
5402
5402
|
export type CountSearchLogsIndexData = {
|
|
5403
|
-
hosts: string;
|
|
5404
5403
|
maxTs?: string;
|
|
5405
5404
|
minTs?: string;
|
|
5406
5405
|
searchQuery: string;
|
|
@@ -12861,7 +12860,6 @@ export type $OpenApiTs = {
|
|
|
12861
12860
|
'/srch/index/search/count_service_logs': {
|
|
12862
12861
|
get: {
|
|
12863
12862
|
req: {
|
|
12864
|
-
hosts: string;
|
|
12865
12863
|
maxTs?: string;
|
|
12866
12864
|
minTs?: string;
|
|
12867
12865
|
searchQuery: string;
|