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

44
node_modules/p-limit/index.js generated vendored
View File

@@ -1,7 +1,7 @@
'use strict';
const pTry = require('p-try');
module.exports = concurrency => {
const pLimit = concurrency => {
if (concurrency < 1) {
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
}
@@ -17,26 +17,36 @@ module.exports = concurrency => {
}
};
return fn => new Promise((resolve, reject) => {
const run = () => {
activeCount++;
const run = (fn, resolve, ...args) => {
activeCount++;
pTry(fn).then(
val => {
resolve(val);
next();
},
err => {
reject(err);
next();
}
);
};
const result = pTry(fn, ...args);
resolve(result);
result.then(next, next);
};
const enqueue = (fn, resolve, ...args) => {
if (activeCount < concurrency) {
run();
run(fn, resolve, ...args);
} else {
queue.push(run);
queue.push(run.bind(null, fn, resolve, ...args));
}
};
const generator = (fn, ...args) => new Promise(resolve => enqueue(fn, resolve, ...args));
Object.defineProperties(generator, {
activeCount: {
get: () => activeCount
},
pendingCount: {
get: () => queue.length
}
});
return generator;
};
module.exports = pLimit;
module.exports.default = pLimit;

36
node_modules/p-limit/package.json generated vendored
View File

@@ -1,26 +1,26 @@
{
"_from": "p-limit@^1.1.0",
"_id": "p-limit@1.3.0",
"_from": "p-limit@^2.0.0",
"_id": "p-limit@2.2.0",
"_inBundle": false,
"_integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
"_integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==",
"_location": "/p-limit",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "p-limit@^1.1.0",
"raw": "p-limit@^2.0.0",
"name": "p-limit",
"escapedName": "p-limit",
"rawSpec": "^1.1.0",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^1.1.0"
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/p-locate"
],
"_resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
"_shasum": "b86bd5f0c25690911c7590fcbfc2010d54b3ccb8",
"_spec": "p-limit@^1.1.0",
"_resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz",
"_shasum": "417c9941e6027a9abcba5092dd2904e255b5fbc2",
"_spec": "p-limit@^2.0.0",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\p-locate",
"author": {
"name": "Sindre Sorhus",
@@ -32,23 +32,25 @@
},
"bundleDependencies": false,
"dependencies": {
"p-try": "^1.0.0"
"p-try": "^2.0.0"
},
"deprecated": false,
"description": "Run multiple promise-returning & async functions with limited concurrency",
"devDependencies": {
"ava": "*",
"delay": "^2.0.0",
"ava": "^1.2.1",
"delay": "^4.1.0",
"in-range": "^1.0.0",
"random-int": "^1.0.0",
"time-span": "^2.0.0",
"xo": "*"
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/p-limit#readme",
"keywords": [
@@ -75,7 +77,7 @@
"url": "git+https://github.com/sindresorhus/p-limit.git"
},
"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd-check"
},
"version": "1.3.0"
"version": "2.2.0"
}

25
node_modules/p-limit/readme.md generated vendored
View File

@@ -44,9 +44,9 @@ Minimum: `1`
Concurrency limit.
### limit(fn)
### limit(fn, ...args)
Returns the promise returned by calling `fn`.
Returns the promise returned by calling `fn(...args)`.
#### fn
@@ -54,6 +54,27 @@ Type: `Function`
Promise-returning/async function.
#### args
Any arguments to pass through to `fn`.
Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions.
### limit.activeCount
The number of promises that are currently running.
### limit.pendingCount
The number of promises that are waiting to run (i.e. their internal `fn` was not called yet).
## FAQ
### How is this different from the [`p-queue`](https://github.com/sindresorhus/p-queue) package?
This package is only about limiting the number of concurrent executions, while `p-queue` is a fully featured queue implementation with lots of different options, introspection, and ability to pause and clear the queue.
## Related