Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71dca9b
commit e35da25
Showing
223 changed files
with
16,769 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", { | ||
"exclude": ["transform-typeof-symbol"], | ||
"modules": false | ||
}] | ||
], | ||
"plugins": [ | ||
["@babel/plugin-proposal-object-rest-spread", { | ||
"loose": true, | ||
"useBuiltIns": true | ||
}] | ||
] | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
npm-debug.log | ||
npm-debug.log | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const banner = require('./banner'); | ||
const pkg = require('./package.json'); | ||
const args = process.argv.slice(2); | ||
process.stdin.resume(); | ||
process.stdin.setEncoding('utf8'); | ||
process.stdin.on('data', function(data) { | ||
process.stdout.write(banner({ id: args[0], ...pkg }) + data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = ({ id, version, license, homepage }) => `/*! | ||
* ${ id } ${ version } | ||
* Licensed under ${ license }, https://opensource.org/licenses/${ license }/ | ||
* Please visit ${ homepage } for details. | ||
*/ | ||
/* eslint-disable */ | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>FilePond Demo</title> | ||
<link href="./dist/filepond.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
|
||
<input type="file"/> | ||
|
||
<script src="./dist/filepond.js"></script> | ||
|
||
<script> | ||
// Get a reference to the file input element | ||
const inputElement = document.querySelector('input[type="file"]'); | ||
|
||
// Create the FilePond instance | ||
const pond = FilePond.create(inputElement); | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
bail: true, | ||
verbose: true, | ||
setupFiles: ['<rootDir>/jest.stubs.js'], | ||
roots: ['<rootDir>/js'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const uuid = require('uuid/v4'); | ||
|
||
window.URL.createObjectURL = (blob) => { | ||
return `blob:${serializeURL(location.origin)}/${uuid()}`; | ||
} | ||
|
||
window.URL.revokeObjectURL = (url) => {} | ||
|
||
// var _createObjectURL = window.URL.createObjectURL; | ||
// Object.defineProperty(window.URL, 'createObjectURL', { | ||
// set: function (value) { | ||
// console.trace('set createObjectURL') | ||
// _createObjectURL = value; | ||
// }, | ||
// get: function () { | ||
// console.trace('get createObjectURL') | ||
// return _createObjectURL; | ||
// } | ||
// }) | ||
|
||
// var _URL = window.URL; | ||
// Object.defineProperty(window, 'URL', { | ||
// set: function (value) { | ||
// console.trace('set URL') | ||
// _URL = value; | ||
// }, | ||
// get: function () { | ||
// console.trace('get URL') | ||
// return _URL; | ||
// } | ||
// }) |
Oops, something went wrong.