1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-27 12:26:38 +01:00

update to electron 6

This commit is contained in:
Kyle Spearrin 2020-01-27 09:46:50 -05:00
parent f975323175
commit c344c5c13d
4 changed files with 865 additions and 572 deletions

2
jslib

@ -1 +1 @@
Subproject commit dce1453732553d991ac910e3a93038f7331c8ab9
Subproject commit e1d42f95d9c662bd4ffc8221bc4e5b9b96a095a6

1403
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -228,11 +228,11 @@
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"del": "^3.0.0",
"electron": "5.0.8",
"electron-builder": "21.1.5",
"electron-notarize": "^0.1.1",
"electron-rebuild": "^1.8.5",
"electron-reload": "^1.4.1",
"electron": "6.1.7",
"electron-builder": "22.3.2",
"electron-notarize": "^0.2.1",
"electron-rebuild": "^1.9.0",
"electron-reload": "^1.5.0",
"extract-text-webpack-plugin": "next",
"file-loader": "^2.0.0",
"font-awesome": "4.7.0",
@ -276,7 +276,7 @@
"duo_web_sdk": "git+https://github.com/duosecurity/duo_web_sdk.git",
"electron-log": "2.2.17",
"electron-store": "1.3.0",
"electron-updater": "4.1.2",
"electron-updater": "4.2.0",
"keytar": "4.13.0",
"lunr": "2.3.3",
"node-forge": "0.7.6",

View File

@ -90,7 +90,7 @@ export class MenuMain extends BaseMenu {
label: this.main.i18nService.t('changeMasterPass'),
id: 'changeMasterPass',
click: async () => {
const result = dialog.showMessageBox(this.main.windowMain.win, {
const result = await dialog.showMessageBox(this.main.windowMain.win, {
title: this.main.i18nService.t('changeMasterPass'),
message: this.main.i18nService.t('changeMasterPass'),
detail: this.main.i18nService.t('changeMasterPasswordConfirmation'),
@ -99,7 +99,7 @@ export class MenuMain extends BaseMenu {
defaultId: 0,
noLink: true,
});
if (result === 0) {
if (result.response === 0) {
await this.openWebVault();
}
},
@ -108,7 +108,7 @@ export class MenuMain extends BaseMenu {
label: this.main.i18nService.t('twoStepLogin'),
id: 'twoStepLogin',
click: async () => {
const result = dialog.showMessageBox(this.main.windowMain.win, {
const result = await dialog.showMessageBox(this.main.windowMain.win, {
title: this.main.i18nService.t('twoStepLogin'),
message: this.main.i18nService.t('twoStepLogin'),
detail: this.main.i18nService.t('twoStepLoginConfirmation'),
@ -117,7 +117,7 @@ export class MenuMain extends BaseMenu {
defaultId: 0,
noLink: true,
});
if (result === 0) {
if (result.response === 0) {
await this.openWebVault();
}
},
@ -131,8 +131,8 @@ export class MenuMain extends BaseMenu {
{
label: this.i18nService.t('logOut'),
id: 'logOut',
click: () => {
const result = dialog.showMessageBox(this.windowMain.win, {
click: async () => {
const result = await dialog.showMessageBox(this.windowMain.win, {
title: this.i18nService.t('logOut'),
message: this.i18nService.t('logOut'),
detail: this.i18nService.t('logOutConfirmation'),
@ -141,7 +141,7 @@ export class MenuMain extends BaseMenu {
defaultId: 0,
noLink: true,
});
if (result === 0) {
if (result.response === 0) {
this.main.messagingService.send('logout');
}
},
@ -431,13 +431,13 @@ export class MenuMain extends BaseMenu {
aboutMenuAdditions.push({
label: this.i18nService.t('aboutBitwarden'),
click: () => {
click: async () => {
const aboutInformation = this.i18nService.t('version', app.getVersion()) +
'\nShell ' + process.versions.electron +
'\nRenderer ' + process.versions.chrome +
'\nNode ' + process.versions.node +
'\nArchitecture ' + process.arch;
const result = dialog.showMessageBox(this.windowMain.win, {
const result = await dialog.showMessageBox(this.windowMain.win, {
title: 'Bitwarden',
message: 'Bitwarden',
detail: aboutInformation,
@ -445,7 +445,7 @@ export class MenuMain extends BaseMenu {
noLink: true,
buttons: [this.i18nService.t('ok'), this.i18nService.t('copy')],
});
if (result === 1) {
if (result.response === 1) {
clipboard.writeText(aboutInformation);
}
},