From d89ac69109a59b39d963ff9739c8e8a84263cefe Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 7 Dec 2023 09:40:51 +0100 Subject: [PATCH] improve evalv2 fullscreen --- .../inputEditor/EvalV2InputEditor.svelte | 46 +++++++++++++------ 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/EvalV2InputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/EvalV2InputEditor.svelte index c8286e5a0b..316c0397cb 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/EvalV2InputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/inputEditor/EvalV2InputEditor.svelte @@ -8,6 +8,7 @@ import { inferDeps } from '../../appUtilsInfer' import { Maximize2, X } from 'lucide-svelte' import { Drawer } from '$lib/components/common' + import { Pane, Splitpanes } from 'svelte-splitpanes' export let componentInput: EvalV2AppInput | undefined export let id: string @@ -51,21 +52,36 @@ {#if componentInput?.type === 'evalv2'} {#if fullscreen} (fullscreen = false)} open> - { - if (onchange) { - onchange() - } - inferDepsFromCode(e.detail.code) - }} - /> + + + { + if (onchange) { + onchange() + } + inferDepsFromCode(e.detail.code) + }} + /> + + +
+
+
{JSON.stringify($evalPreview[`${id}.${field}`] ?? null, null, 4) ?? 'null'}
+
+
+
+
{/if}