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

View File

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

2420
yarn.lock Normal file

File diff suppressed because it is too large Load Diff