Skip to content

Commit

Permalink
Bumped version and enabled devtools in other OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed May 29, 2017
1 parent e5cfe00 commit 8b8d530
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 36 deletions.
65 changes: 31 additions & 34 deletions app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export default class MenuBuilder {

buildDarwinTemplate() {
const subMenuAbout = {
label: 'Electron',
label: 'Vessel',
submenu: [
{ label: 'About ElectronReact', selector: 'orderFrontStandardAboutPanel:' },
{ label: 'About Vessel', selector: 'orderFrontStandardAboutPanel:' },
{ type: 'separator' },
{ label: 'Services', submenu: [] },
{ type: 'separator' },
{ label: 'Hide ElectronReact', accelerator: 'Command+H', selector: 'hide:' },
{ label: 'Hide Vessel', accelerator: 'Command+H', selector: 'hide:' },
{ label: 'Hide Others', accelerator: 'Command+Shift+H', selector: 'hideOtherApplications:' },
{ label: 'Show All', selector: 'unhideAllApplications:' },
{ type: 'separator' },
Expand All @@ -78,12 +78,14 @@ export default class MenuBuilder {
{ label: 'Toggle Developer Tools', accelerator: 'Alt+Command+I', click: () => { this.mainWindow.toggleDevTools(); } }
]
};
const subMenuViewProd = {
label: 'View',
submenu: [
{ label: 'Toggle Full Screen', accelerator: 'Ctrl+Command+F', click: () => { this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen()); } }
]
};
// const subMenuViewProd = {
// label: 'View',
// submenu: [
// { label: 'Reload', accelerator: 'Command+R', click: () => { this.mainWindow.webContents.reload(); } },
// { label: 'Toggle Full Screen', accelerator: 'Ctrl+Command+F', click: () => { this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen()); } },
// { label: 'Toggle Developer Tools', accelerator: 'Alt+Command+I', click: () => { this.mainWindow.toggleDevTools(); } }
// ]
// };
const subMenuWindow = {
label: 'Window',
submenu: [
Expand All @@ -96,10 +98,9 @@ export default class MenuBuilder {
const subMenuHelp = {
label: 'Help',
submenu: [
{ label: 'Learn More', click() { shell.openExternal('http://electron.atom.io'); } },
{ label: 'Documentation', click() { shell.openExternal('https://github.com/atom/electron/tree/master/docs#readme'); } },
{ label: 'Community Discussions', click() { shell.openExternal('https://discuss.atom.io/c/electron'); } },
{ label: 'Search Issues', click() { shell.openExternal('https://github.com/atom/electron/issues'); } }
{ label: 'Source Code (Github)', click() { shell.openExternal('https://github.com/aaroncox/vessel'); } },
{ label: 'Report Bug (Github)', click() { shell.openExternal('https://github.com/aaroncox/vessel/issues'); } },
{ label: 'Releases (Github)', click() { shell.openExternal('https://github.com/aaroncox/vessel/releases'); } }
]
};

Expand Down Expand Up @@ -152,35 +153,31 @@ export default class MenuBuilder {
this.mainWindow.toggleDevTools();
}
}] : [{
label: '&Reload',
accelerator: 'Ctrl+R',
click: () => {
this.mainWindow.webContents.reload();
}
}, {
label: 'Toggle &Full Screen',
accelerator: 'F11',
click: () => {
this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen());
}
}]
}, {
label: 'Help',
submenu: [{
label: 'Learn More',
click() {
shell.openExternal('http://electron.atom.io');
}
}, {
label: 'Documentation',
click() {
shell.openExternal('https://github.com/atom/electron/tree/master/docs#readme');
}
}, {
label: 'Community Discussions',
click() {
shell.openExternal('https://discuss.atom.io/c/electron');
}
}, {
label: 'Search Issues',
click() {
shell.openExternal('https://github.com/atom/electron/issues');
label: 'Toggle &Developer Tools',
accelerator: 'Alt+Ctrl+I',
click: () => {
this.mainWindow.toggleDevTools();
}
}]
}, {
label: 'Help',
submenu: [
{ label: 'Source Code (Github)', click() { shell.openExternal('https://github.com/aaroncox/vessel'); } },
{ label: 'Report Bug (Github)', click() { shell.openExternal('https://github.com/aaroncox/vessel/issues'); } },
{ label: 'Releases (Github)', click() { shell.openExternal('https://github.com/aaroncox/vessel/releases'); } }
]
}];

return templateDefault;
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vessel",
"productName": "vessel",
"version": "0.0.6b",
"version": "0.0.6c",
"description": "A simple wallet for managing your Steem accounts.",
"main": "./main.prod.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vessel",
"productName": "vessel",
"version": "0.0.6b",
"version": "0.0.6c",
"description": "A simple wallet for managing your Steem accounts.",
"scripts": {
"test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 node --trace-warnings ./test/runTests.js",
Expand Down

0 comments on commit 8b8d530

Please sign in to comment.