From f4fe5b9b53285819cf0c3aaafa513192c01db8f4 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 7 Mar 2021 11:38:02 +0100 Subject: [PATCH] use editor data --- packages/web/src/query/AceEditor.svelte | 2 +- packages/web/src/query/SqlEditor.svelte | 2 +- packages/web/src/query/useEditorData.ts | 148 ++++++++++++++++++ packages/web/src/tabs/QueryTab.svelte | 18 ++- packages/web/src/utility/applySqlTemplate.ts | 32 ++++ .../web/src/utility/{common.js => common.ts} | 8 +- packages/web/tsconfig.json | 2 + 7 files changed, 204 insertions(+), 8 deletions(-) create mode 100644 packages/web/src/query/useEditorData.ts create mode 100644 packages/web/src/utility/applySqlTemplate.ts rename packages/web/src/utility/{common.js => common.ts} (74%) diff --git a/packages/web/src/query/AceEditor.svelte b/packages/web/src/query/AceEditor.svelte index 17ac6a23..21eccf54 100644 --- a/packages/web/src/query/AceEditor.svelte +++ b/packages/web/src/query/AceEditor.svelte @@ -6,7 +6,7 @@
- +