sql editor - not working

This commit is contained in:
Jan Prochazka
2021-03-07 09:50:20 +01:00
parent 2eebe44f87
commit da6bd9b475
11 changed files with 258 additions and 18 deletions

View File

@@ -4,6 +4,7 @@ import { derived, get } from 'svelte/store';
import { ThemeDefinition } from 'dbgate-types';
import ConnectionModal from '../modals/ConnectionModal.svelte';
import { showModal } from '../modals/modalTools';
import newQuery from '../query/newQuery';
function themeCommand(theme: ThemeDefinition) {
return {
@@ -52,3 +53,14 @@ registerCommand({
name: 'Connection',
onClick: () => showModal(ConnectionModal),
});
registerCommand({
id: 'new.query',
category: 'New',
icon: 'icon file',
toolbar: true,
toolbarOrder: 2,
name: 'Query',
keyText: 'Ctrl+Q',
onClick: () => newQuery(),
});