1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

help menu

This commit is contained in:
Kyle Spearrin 2018-02-09 12:36:37 -05:00
parent 729c710466
commit e763b481ef
2 changed files with 61 additions and 3 deletions

View File

@ -630,5 +630,17 @@
}, },
"passwordGenerator": { "passwordGenerator": {
"message": "Password Generator" "message": "Password Generator"
},
"emailUs": {
"message": "Email Us"
},
"visitOurWebsite": {
"message": "Visit Our Website"
},
"fileBugReport": {
"message": "File a Bug Report"
},
"blog": {
"message": "Blog"
} }
} }

View File

@ -4,6 +4,7 @@ import {
Menu, Menu,
MenuItemConstructorOptions, MenuItemConstructorOptions,
ipcMain, ipcMain,
shell,
} from 'electron'; } from 'electron';
import { WindowMain } from './window.main'; import { WindowMain } from './window.main';
@ -113,9 +114,9 @@ export class MenuMain {
accelerator: 'CmdOrCtrl+F' accelerator: 'CmdOrCtrl+F'
}, },
{ type: 'separator' }, { type: 'separator' },
{ role: 'resetzoom', accelerator: 'CmdOrCtrl+0' },
{ role: 'zoomin', accelerator: 'CmdOrCtrl+=' }, { role: 'zoomin', accelerator: 'CmdOrCtrl+=' },
{ role: 'zoomout', accelerator: 'CmdOrCtrl+-' }, { role: 'zoomout', accelerator: 'CmdOrCtrl+-' },
{ role: 'resetzoom', accelerator: 'CmdOrCtrl+0' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'togglefullscreen' }, { role: 'togglefullscreen' },
{ type: 'separator' }, { type: 'separator' },
@ -146,8 +147,53 @@ export class MenuMain {
role: 'help', role: 'help',
submenu: [ submenu: [
{ {
label: 'Learn More', label: this.i18nService.t('emailUs'),
click() { require('electron').shell.openExternal('https://electronjs.org') } click() {
shell.openExternal('mailTo:hello@bitwarden.com')
}
},
{
label: this.i18nService.t('visitOurWebsite'),
click() {
shell.openExternal('https://bitwarden.com/contact')
}
},
{
label: this.i18nService.t('fileBugReport'),
click() {
shell.openExternal('https://github.com/bitwarden/desktop')
}
},
{ type: 'separator' },
{
label: this.i18nService.t('blog'),
click() {
shell.openExternal('https://blog.bitwarden.com')
}
},
{
label: 'Twitter',
click() {
shell.openExternal('https://twitter.com/bitwarden_app')
}
},
{
label: 'Facebook',
click() {
shell.openExternal('https://www.facebook.com/bitwarden/')
}
},
{
label: 'Google+',
click() {
shell.openExternal('https://plus.google.com/114869903467947368993')
}
},
{
label: 'GitHub',
click() {
shell.openExternal('https://github.com/bitwarden')
}
} }
] ]
} }