main menu available in web version

This commit is contained in:
Jan Prochazka
2022-02-12 08:23:37 +01:00
parent 0c951b4659
commit db6d930d0c
8 changed files with 94 additions and 49 deletions

View File

@@ -2,29 +2,28 @@ module.exports = [
{
label: 'File',
submenu: [
{ command: 'new.connection' },
{ command: 'new.sqliteDatabase' },
{ command: 'new.connection', hideDisabled: true },
{ command: 'new.sqliteDatabase', hideDisabled: true },
{ divider: true },
{ command: 'file.open' },
{ command: 'file.openArchive' },
{ command: 'file.open', hideDisabled: true },
{ command: 'file.openArchive', hideDisabled: true },
{ divider: true },
{ command: 'group.save' },
{ command: 'group.saveAs' },
{ command: 'database.search' },
{ command: 'group.save', hideDisabled: true },
{ command: 'group.saveAs', hideDisabled: true },
{ command: 'database.search', hideDisabled: true },
{ divider: true },
{ command: 'file.exit' },
{ command: 'file.exit', hideDisabled: true },
],
},
{
label: 'Window',
submenu: [
{ command: 'new.query' },
{ command: 'new.modelCompare' },
{ command: 'new.freetable' },
{ command: 'new.query', hideDisabled: true },
{ command: 'new.modelCompare', hideDisabled: true },
{ command: 'new.freetable', hideDisabled: true },
{ divider: true },
{ command: 'tabs.closeTab' },
{ command: 'tabs.closeAll' },
{ command: 'tabs.closeTab', hideDisabled: true },
{ command: 'tabs.closeAll', hideDisabled: true },
],
},
@@ -42,23 +41,23 @@ module.exports = [
{
label: 'View',
submenu: [
{ command: 'app.reload' },
{ command: 'app.toggleDevTools' },
{ command: 'app.toggleFullScreen' },
{ command: 'app.minimize' },
{ command: 'theme.changeTheme' },
{ command: 'app.reload', hideDisabled: true },
{ command: 'app.toggleDevTools', hideDisabled: true },
{ command: 'app.toggleFullScreen', hideDisabled: true },
{ command: 'app.minimize', hideDisabled: true },
{ command: 'theme.changeTheme', hideDisabled: true },
],
},
{
label: 'help',
label: 'Help',
submenu: [
{ command: 'app.openDocs' },
{ command: 'app.openWeb' },
{ command: 'app.openIssue' },
{ command: 'app.openSponsoring' },
{ command: 'app.openDocs', hideDisabled: true },
{ command: 'app.openWeb', hideDisabled: true },
{ command: 'app.openIssue', hideDisabled: true },
{ command: 'app.openSponsoring', hideDisabled: true },
{ divider: true },
{ command: 'tabs.changelog' },
{ command: 'about.show' },
{ command: 'tabs.changelog', hideDisabled: true },
{ command: 'about.show', hideDisabled: true },
],
},
];