mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45: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.freetable', hideDisabled: true },
|
||||
{ command: 'new.shell', hideDisabled: true },
|
||||
{ command: 'new.jsonl', hideDisabled: true },
|
||||
{ divider: true },
|
||||
{ command: 'tabs.closeTab', hideDisabled: true },
|
||||
{ command: 'tabs.closeAll', hideDisabled: true },
|
||||
@@ -52,11 +53,7 @@ module.exports = [
|
||||
},
|
||||
{
|
||||
label: 'Tools',
|
||||
submenu: [
|
||||
{ command: 'sql.generator' },
|
||||
{ command: 'file.import' },
|
||||
{ command: 'new.modelCompare' },
|
||||
],
|
||||
submenu: [{ command: 'sql.generator' }, { command: 'file.import' }, { command: 'new.modelCompare' }],
|
||||
},
|
||||
{
|
||||
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({
|
||||
id: 'new.sqliteDatabase',
|
||||
category: 'New',
|
||||
|
||||
Reference in New Issue
Block a user