mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 16:43:59 +00:00
new json lines command
This commit is contained in:
@@ -21,6 +21,7 @@ module.exports = [
|
|||||||
{ command: 'new.query', hideDisabled: true },
|
{ command: 'new.query', hideDisabled: true },
|
||||||
{ command: 'new.freetable', hideDisabled: true },
|
{ command: 'new.freetable', hideDisabled: true },
|
||||||
{ command: 'new.shell', hideDisabled: true },
|
{ command: 'new.shell', hideDisabled: true },
|
||||||
|
{ command: 'new.jsonl', hideDisabled: true },
|
||||||
{ divider: true },
|
{ divider: true },
|
||||||
{ command: 'tabs.closeTab', hideDisabled: true },
|
{ command: 'tabs.closeTab', hideDisabled: true },
|
||||||
{ command: 'tabs.closeAll', hideDisabled: true },
|
{ command: 'tabs.closeAll', hideDisabled: true },
|
||||||
@@ -52,11 +53,7 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Tools',
|
label: 'Tools',
|
||||||
submenu: [
|
submenu: [{ command: 'sql.generator' }, { command: 'file.import' }, { command: 'new.modelCompare' }],
|
||||||
{ command: 'sql.generator' },
|
|
||||||
{ command: 'file.import' },
|
|
||||||
{ command: 'new.modelCompare' },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Help',
|
label: 'Help',
|
||||||
|
|||||||
@@ -259,6 +259,21 @@ registerCommand({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
registerCommand({
|
||||||
|
id: 'new.jsonl',
|
||||||
|
category: 'New',
|
||||||
|
icon: 'img archive',
|
||||||
|
name: 'JSON Lines',
|
||||||
|
menuName: 'New JSON lines file',
|
||||||
|
onClick: () => {
|
||||||
|
openNewTab({
|
||||||
|
title: 'Lines #',
|
||||||
|
icon: 'img archive',
|
||||||
|
tabComponent: 'JsonLinesEditorTab',
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'new.sqliteDatabase',
|
id: 'new.sqliteDatabase',
|
||||||
category: 'New',
|
category: 'New',
|
||||||
|
|||||||
Reference in New Issue
Block a user