From a5e29e5f4f948b09b57e96e80c785ea4c145dfd4 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 2 Mar 2023 14:47:29 +0100 Subject: [PATCH] fix tailwind JIT for devmode + graph fixes --- frontend/src/lib/components/FlowJobResult.svelte | 6 +++--- frontend/src/lib/components/FlowPreviewContent.svelte | 4 ---- frontend/src/lib/components/FlowStatusViewer.svelte | 1 + frontend/src/lib/components/SchemaForm.svelte | 1 - .../(root)/(logged)/scripts/run/[...hash]/+page.svelte | 2 +- frontend/tailwind.config.cjs | 10 +++++++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/lib/components/FlowJobResult.svelte b/frontend/src/lib/components/FlowJobResult.svelte index 2188f8dd04..016aa8d48e 100644 --- a/frontend/src/lib/components/FlowJobResult.svelte +++ b/frontend/src/lib/components/FlowJobResult.svelte @@ -12,9 +12,9 @@
-
+
Result {#if result} @@ -24,7 +24,7 @@
No result (result is undefined)
{/if}
-
+
diff --git a/frontend/src/lib/components/FlowPreviewContent.svelte b/frontend/src/lib/components/FlowPreviewContent.svelte index 0898f34ad1..98a320db77 100644 --- a/frontend/src/lib/components/FlowPreviewContent.svelte +++ b/frontend/src/lib/components/FlowPreviewContent.svelte @@ -21,7 +21,6 @@ export let jobId: string | undefined = undefined export let job: Job | undefined = undefined - let isValid: boolean = true let isRunning: boolean = false let jobProgressReset: () => void @@ -105,7 +104,6 @@ {#if isRunning}
diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index fc4b5478b3..6edd266b7f 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -505,6 +505,7 @@
+
diff --git a/frontend/tailwind.config.cjs b/frontend/tailwind.config.cjs index a278af48a3..3a73000dc6 100644 --- a/frontend/tailwind.config.cjs +++ b/frontend/tailwind.config.cjs @@ -8,9 +8,13 @@ const config = { 'hljs', 'splitpanes__pane', 'splitpanes__splitter', - { - pattern: /.*/ - } + ...(process.env.NODE_ENV === 'production' + ? [ + { + pattern: /.*/ + } + ] + : []) ], theme: { colors: {