style Dashboard

This commit is contained in:
Lieu Le
2019-09-13 11:27:52 +07:00
parent 558fb07261
commit 07322c9084
17151 changed files with 1686347 additions and 103 deletions

53
node_modules/stream-consume/README.md generated vendored Executable file
View File

@@ -0,0 +1,53 @@
# stream-consume
A node module ensures a Readable stream continues flowing if it's not piped to
another destination.
npm install stream-consume
## Usage
Simply pass a stream to `stream-consume`.
Both legacy streams and streams2 are supported.
``` js
var consume = require('stream-consume');
consume(readableStream);
```
## Details
Only Readable streams are processed (as determined by presence of `readable`
property and a `resume` property that is a function). If called with anything
else, it's a NOP.
For a streams2 stream (as determined by presence of a `_readableState`
property), nothing is done if the stream has already been piped to at least
one other destination.
`resume()` is used to cause the stream to continue flowing.
## License
The MIT License (MIT)
Copyright (c) 2014 Aron Nopanen
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 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.

14
node_modules/stream-consume/index.js generated vendored Executable file
View File

@@ -0,0 +1,14 @@
module.exports = function(stream) {
if (stream.readable && typeof stream.resume === 'function') {
var state = stream._readableState;
if (!state || state.pipesCount === 0) {
// Either a classic stream or streams2 that's not piped to another destination
try {
stream.resume();
} catch (err) {
console.error("Got error: " + err);
// If we can't, it's not worth dying over
}
}
}
};

54
node_modules/stream-consume/package.json generated vendored Executable file
View File

@@ -0,0 +1,54 @@
{
"_args": [
[
"stream-consume@0.1.1",
"/Applications/XAMPP/xamppfiles/htdocs/wordpress/latehome"
]
],
"_from": "stream-consume@0.1.1",
"_id": "stream-consume@0.1.1",
"_inBundle": false,
"_integrity": "sha512-tNa3hzgkjEP7XbCkbRXe1jpg+ievoa0O4SCFlMOYEscGSS4JJsckGL8swUyAa/ApGU3Ae4t6Honor4HhL+tRyg==",
"_location": "/stream-consume",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "stream-consume@0.1.1",
"name": "stream-consume",
"escapedName": "stream-consume",
"rawSpec": "0.1.1",
"saveSpec": null,
"fetchSpec": "0.1.1"
},
"_requiredBy": [
"/orchestrator"
],
"_resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.1.tgz",
"_spec": "0.1.1",
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/latehome",
"author": {
"name": "Aron Nopanen"
},
"bugs": {
"url": "https://github.com/aroneous/stream-consume/issues"
},
"description": "Consume a stream to ensure it keeps flowing",
"devDependencies": {
"mocha": "^1.20.1",
"should": "^4.0.4",
"through2": "^0.5.1"
},
"homepage": "https://github.com/aroneous/stream-consume",
"license": "MIT",
"main": "index.js",
"name": "stream-consume",
"repository": {
"type": "git",
"url": "git+https://github.com/aroneous/stream-consume.git"
},
"scripts": {
"test": "mocha"
},
"version": "0.1.1"
}