Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
upgrade to electron 12
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Apr 19, 2021
1 parent e03e48e commit 23b16b0
Show file tree
Hide file tree
Showing 5 changed files with 9,805 additions and 286 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@egoist/prettier-config"
16 changes: 9 additions & 7 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const login = require('./login')

require('electron-debug')()
require('electron-context-menu')({
showInspectElement: true
showInspectElement: true,
})

app.setAppUserModelId('sh.egoist.devdocs')
Expand Down Expand Up @@ -56,12 +56,14 @@ function createMainWindow() {
titleBarStyle: process.platform === 'darwin' ? 'hidden' : 'default',
trafficLightPosition: {
x: 10,
y: 10
y: 10,
},
webPreferences: {
nodeIntegration: true,
webviewTag: true
}
webviewTag: true,
contextIsolation: false,
enableRemoteModule: true,
},
})

if (process.platform === 'darwin') {
Expand Down Expand Up @@ -100,15 +102,15 @@ app.on('ready', () => {
name,
accelerator,
registered: false,
action: toggleWindow
action: toggleWindow,
})
}
}

Menu.setApplicationMenu(
createMenu({
toggleWindow
})
toggleWindow,
}),
)
mainWindow = createMainWindow()
tray.create(mainWindow)
Expand Down
16 changes: 8 additions & 8 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
},
"homepage": "https://github.com/egoist/devdocs-desktop#readme",
"dependencies": {
"axios": "^0.16.2",
"debug": "^3.1.0",
"electron-context-menu": "^0.16.0",
"axios": "^0.21.1",
"debug": "^4.3.1",
"electron-context-menu": "^2.5.1",
"electron-debug": "^3.0.1",
"electron-is-dev": "^1.1.0",
"electron-log": "^4.0.7",
"electron-store": "^5.1.1",
"electron-updater": "^4.2.4",
"mkdirp": "^1.0.3",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.3.4",
"electron-store": "^7.0.3",
"electron-updater": "^4.3.8",
"mkdirp": "^1.0.4",
"semver-compare": "^1.0.0"
}
}
Loading

0 comments on commit 23b16b0

Please sign in to comment.