maj de nwjs

This commit is contained in:
Antoine WEBER 2017-07-10 13:51:00 +02:00
parent 858c5bd713
commit f72206156d
3 changed files with 2435 additions and 11 deletions

View File

@ -1,7 +1,9 @@
"use strict";
var gui = global.window.nwDispatcher.requireNwGui();
var gui = window.require('nw.gui');
var util = require('util');
class CustomTrayMenu {
constructor(windowPath, trayIcon, windowOptions) {
this.shown = false;
@ -18,6 +20,7 @@ class CustomTrayMenu {
this._initTray();
this._initMenuWindow();
this.tray.on('click', this.toggleTrayMenuAt.bind(this));
}
@ -45,7 +48,6 @@ class CustomTrayMenu {
frame: false,
transparent: true,
resizable: false,
toolbar: false,
show: false,
'show_in_taskbar': process.platform == "darwin"
}, this.menuWndowOptions);

View File

@ -12,20 +12,22 @@
"height": 348
},
"scripts": {
"start": "nw ."
"start": "nw .",
"vers": "nw --version"
},
"private": true,
"dependencies": {
"basic-auth": "^1.0.3",
"body-parser": "~1.13.2",
"basic-auth": "^1.1.0",
"body-parser": "~1.17.2",
"cluster": "~0.7.7",
"cookie-parser": "~1.3.5",
"debug": "~2.2.0",
"express": "~4.13.1",
"cookie-parser": "~1.4.3",
"debug": "~2.6.8",
"express": "~4.15.3",
"fs.extra": "^1.3.2",
"jade": "~1.11.0",
"morgan": "~1.6.1",
"serve-favicon": "~2.3.0",
"sqlite3": "~3"
"morgan": "~1.8.2",
"nw": "0.20.1",
"serve-favicon": "~2.4.3",
"sqlite3": "~3.1.8"
}
}

2420
yarn.lock Normal file

File diff suppressed because it is too large Load Diff