From b46a945fc466fddcc576527fef0cb165dc4a8686 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 12 Oct 2021 18:45:13 +0100 Subject: [PATCH] Adding the basics of the query transformers to the frontend and to the backend, as well as switching to vm2 for script running. --- .../components/common/CodeMirrorEditor.svelte | 8 + .../components/integration/QueryViewer.svelte | 22 +- packages/server/package.json | 1 + packages/server/src/api/controllers/query.js | 50 +- packages/server/src/api/controllers/script.js | 23 +- packages/server/src/api/routes/query.js | 4 +- packages/server/src/utilities/scriptRunner.js | 21 + packages/server/yarn.lock | 807 +++++++++++++++++- 8 files changed, 891 insertions(+), 45 deletions(-) create mode 100644 packages/server/src/utilities/scriptRunner.js diff --git a/packages/builder/src/components/common/CodeMirrorEditor.svelte b/packages/builder/src/components/common/CodeMirrorEditor.svelte index 047f9874a7..445e94dbf6 100644 --- a/packages/builder/src/components/common/CodeMirrorEditor.svelte +++ b/packages/builder/src/components/common/CodeMirrorEditor.svelte @@ -1,4 +1,6 @@ +{#if label} +
+ +
+{/if}