diff --git a/frontend/src2/components/Code.vue b/frontend/src2/components/Code.vue index f037b172..2bf64392 100644 --- a/frontend/src2/components/Code.vue +++ b/frontend/src2/components/Code.vue @@ -20,9 +20,8 @@ import { autocompletion, closeBrackets } from '@codemirror/autocomplete' import { javascript } from '@codemirror/lang-javascript' import { python } from '@codemirror/lang-python' import { MySQL, sql } from '@codemirror/lang-sql' -import { HighlightStyle, syntaxHighlighting, syntaxTree } from '@codemirror/language' +import { syntaxTree } from '@codemirror/language' import { EditorView } from '@codemirror/view' -import { tags } from '@lezer/highlight' import { onMounted, ref, watch } from 'vue' import { Codemirror } from 'vue-codemirror' import { tomorrow } from 'thememirror' diff --git a/frontend/src2/data_source/data_source.ts b/frontend/src2/data_source/data_source.ts index 5376b5f5..62d96e19 100644 --- a/frontend/src2/data_source/data_source.ts +++ b/frontend/src2/data_source/data_source.ts @@ -63,6 +63,10 @@ export function getDataSourceOptions() { }) } +function getSchema(data_source: string) { + return call('insights.api.data_sources.get_schema', { data_source }) +} + export default function useDataSourceStore() { if (!sources.value.length) { fetchSources() @@ -75,6 +79,8 @@ export default function useDataSourceStore() { getSource, getOptions: getDataSourceOptions, + getSchema, + testing, testConnection, diff --git a/frontend/src2/query/Query.vue b/frontend/src2/query/Query.vue index ce350b6d..9bcb4d46 100644 --- a/frontend/src2/query/Query.vue +++ b/frontend/src2/query/Query.vue @@ -1,27 +1,15 @@