akurath
Version:
IDE Frontend for codepsaces.io
50 lines (47 loc) • 1.16 kB
JavaScript
define([
'hr/utils',
'hr/hr',
'views/commands/menubar',
'core/box',
'core/panels',
'core/tabs',
'core/session',
'core/localfs',
'core/settings'
], function (_, hr, MenubarView, box, panels, tabs, session, localfs, settings) {
// Collection for all menu commands
var menu = new MenubarView();
menu.register("view", {
title: "View",
position: 5
}).menuSection({
'id': "themes.settings",
'category': "View",
'title': "Settings",
'description': "Open Theme and View Settings",
'offline': false,
'action': function() {
settings.open("themes");
}
}).menuSection([
panels.panelsCommand
]).menuSection([
tabs.layoutCommand
]);
menu.register("file", {
title: "File",
position: 0
}).menuSection([{
'id': "quit",
'category': "Application",
'title': "Quit",
'description': "Close Current Session",
'shortcuts': [
"alt+q"
],
'action': session.exit
}], {
'position': 1000
});
return menu;
});