working on making the file upload work over websocket and json
This commit is contained in:
17
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/.gitattributes
generated
vendored
Normal file
17
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
75
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/.npmignore
generated
vendored
Normal file
75
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directory
|
||||
# Commenting this out is preferred by some people, see
|
||||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
|
||||
node_modules
|
||||
|
||||
# Users Environment Variables
|
||||
.lock-wscript
|
||||
|
||||
# =========================
|
||||
# Operating System Files
|
||||
# =========================
|
||||
|
||||
# OSX
|
||||
# =========================
|
||||
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear on external disk
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# Windows
|
||||
# =========================
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
20
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/index.js
generated
vendored
Normal file
20
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
module.exports = function chain(){
|
||||
var len = arguments.length
|
||||
var args = [];
|
||||
|
||||
for (var i = 0; i < len; i++)
|
||||
args[i] = arguments[i]
|
||||
|
||||
args = args.filter(function(fn){ return fn != null })
|
||||
|
||||
if (args.length === 0) return undefined
|
||||
if (args.length === 1) return args[0]
|
||||
|
||||
return args.reduce(function(current, next){
|
||||
return function chainedFunction() {
|
||||
current.apply(this, arguments);
|
||||
next.apply(this, arguments);
|
||||
};
|
||||
})
|
||||
}
|
51
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/package.json
generated
vendored
Normal file
51
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/package.json
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"_from": "chain-function@^1.0.0",
|
||||
"_id": "chain-function@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-DUqzfn4Y6tC9xHuSB2QRjOWHM9w=",
|
||||
"_location": "/material-ui-upload/chain-function",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "chain-function@^1.0.0",
|
||||
"name": "chain-function",
|
||||
"escapedName": "chain-function",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/material-ui-upload/react-transition-group"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/chain-function/-/chain-function-1.0.0.tgz",
|
||||
"_shasum": "0d4ab37e7e18ead0bdc47b920764118ce58733dc",
|
||||
"_spec": "chain-function@^1.0.0",
|
||||
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI\\node_modules\\material-ui-upload\\node_modules\\react-transition-group",
|
||||
"author": {
|
||||
"name": "jquense"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jquense/chain-function/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "chain a bunch of functions together into a single call",
|
||||
"homepage": "https://github.com/jquense/chain-function#readme",
|
||||
"keywords": [
|
||||
"chain",
|
||||
"compose",
|
||||
"function"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "chain-function",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jquense/chain-function.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node ./test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
29
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/test.js
generated
vendored
Normal file
29
goTorrentWebUI/node_modules/material-ui-upload/node_modules/chain-function/test.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
var assert = require('assert')
|
||||
var chain = require('./index')
|
||||
|
||||
console.log('testing...')
|
||||
|
||||
var count = 0;
|
||||
|
||||
chain(
|
||||
function(step){ count += step },
|
||||
function(step){ count += step },
|
||||
function(step){ count += step }
|
||||
)(1)
|
||||
|
||||
assert.equal(count, 3, 'should chain calls')
|
||||
|
||||
count = 0;
|
||||
|
||||
chain(
|
||||
function(step){ count += step },
|
||||
null, undefined,
|
||||
function(step){ count += step }
|
||||
)(1)
|
||||
|
||||
assert.equal(count, 2, 'should filter out null and undefined arguments')
|
||||
|
||||
var fn = function(){}
|
||||
assert.equal(chain(fn, null), fn, 'should return the only function argument')
|
||||
|
||||
console.log('done. tests pass!')
|
Reference in New Issue
Block a user