nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -1,6 +1,7 @@
var shellwords = require('shellwords');
var cp = require('child_process');
var semver = require('semver');
var isWSL = require('is-wsl');
var path = require('path');
var url = require('url');
var os = require('os');
@@ -29,6 +30,7 @@ var notifySendFlags = {
urgency: 'urgency',
t: 'expire-time',
time: 'expire-time',
timeout: 'expire-time',
e: 'expire-time',
expire: 'expire-time',
'expire-time': 'expire-time',
@@ -208,6 +210,10 @@ module.exports.mapToMac = function(options) {
delete options.wait;
}
if (!options.wait && !options.timeout) {
options.timeout = 10;
}
options.json = true;
return options;
};
@@ -337,9 +343,8 @@ module.exports.mapToWin8 = function(options) {
if (options.icon) {
if (/^file:\/+/.test(options.icon)) {
// should parse file protocol URL to path
options.p = url
.parse(options.icon)
.pathname.replace(/^\/(\w:\/)/, '$1')
options.p = new url.URL(options.icon).pathname
.replace(/^\/(\w:\/)/, '$1')
.replace(/\//g, '\\');
} else {
options.p = options.icon;
@@ -485,6 +490,10 @@ module.exports.isWin8 = function() {
);
};
module.exports.isWSL = function() {
return isWSL;
};
module.exports.isLessThanWin8 = function() {
return (
os.type() === 'Windows_NT' &&