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
+3 -2
View File
@@ -1,4 +1,5 @@
'use strict';
module.exports = cb => new Promise(resolve => {
resolve(cb());
module.exports = (callback, ...args) => new Promise(resolve => {
resolve(callback(...args));
});
Generated Vendored
+4 -16
View File
@@ -1,21 +1,9 @@
The MIT License (MIT)
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+12 -15
View File
@@ -1,26 +1,26 @@
{
"_from": "p-try@^1.0.0",
"_id": "p-try@1.0.0",
"_from": "p-try@^2.0.0",
"_id": "p-try@2.0.0",
"_inBundle": false,
"_integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
"_integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==",
"_location": "/p-try",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "p-try@^1.0.0",
"raw": "p-try@^2.0.0",
"name": "p-try",
"escapedName": "p-try",
"rawSpec": "^1.0.0",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/p-limit"
],
"_resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
"_shasum": "cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3",
"_spec": "p-try@^1.0.0",
"_resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz",
"_shasum": "85080bb87c64688fa47996fe8f7dfbe8211760b1",
"_spec": "p-try@^2.0.0",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\p-limit",
"author": {
"name": "Sindre Sorhus",
@@ -32,13 +32,13 @@
},
"bundleDependencies": false,
"deprecated": false,
"description": "`Promise#try()` ponyfill - Starts a promise chain",
"description": "`Start a promise chain",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"files": [
"index.js"
@@ -68,8 +68,5 @@
"scripts": {
"test": "xo && ava"
},
"version": "1.0.0",
"xo": {
"esnext": true
}
"version": "2.0.0"
}
+11 -2
View File
@@ -1,6 +1,6 @@
# p-try [![Build Status](https://travis-ci.org/sindresorhus/p-try.svg?branch=master)](https://travis-ci.org/sindresorhus/p-try)
> [`Promise#try()`](https://github.com/ljharb/proposal-promise-try) [ponyfill](https://ponyfill.com) - Starts a promise chain
> Start a promise chain
[How is it useful?](http://cryto.net/~joepie91/blog/2016/05/11/what-is-promise-try-and-why-does-it-matter/)
@@ -8,7 +8,7 @@
## Install
```
$ npm install --save p-try
$ npm install p-try
```
@@ -27,6 +27,15 @@ pTry(() => {
```
## API
### pTry(fn, ...args)
Returns a `Promise` resolved with the value of calling `fn(...args)`. If the function throws an error, the returned `Promise` will be rejected with that error.
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.
## Related
- [p-finally](https://github.com/sindresorhus/p-finally) - `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome