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
Eugine Terentev
committed
Sep 4, 2014
1 parent
c110ed6
commit e3f9faf
Showing
129 changed files
with
25,984 additions
and
22 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,49 @@ | ||
{ | ||
"name": "blueimp-canvas-to-blob", | ||
"version": "2.1.0", | ||
"title": "JavaScript Canvas to Blob", | ||
"description": "JavaScript Canvas to Blob is a function to convert canvas elements into Blob objects.", | ||
"keywords": [ | ||
"javascript", | ||
"canvas", | ||
"blob", | ||
"convert", | ||
"conversion" | ||
], | ||
"homepage": "https://github.com/blueimp/JavaScript-Canvas-to-Blob", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/JavaScript-Canvas-to-Blob.git" | ||
}, | ||
"bugs": "https://github.com/blueimp/JavaScript-Canvas-to-Blob/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"main": "js/canvas-to-blob.js", | ||
"ignore": [ | ||
"/*.*", | ||
"test" | ||
], | ||
"_release": "2.1.0", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "2.1.0", | ||
"commit": "0265c5aff8cfbaabcb8860a227730b6530b9503e" | ||
}, | ||
"_source": "git://github.com/blueimp/JavaScript-Canvas-to-Blob.git", | ||
"_target": ">=2.1.0", | ||
"_originalSource": "blueimp-canvas-to-blob" | ||
} |
95 changes: 95 additions & 0 deletions
95
widget/assets/static/blueimp-canvas-to-blob/js/canvas-to-blob.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,95 @@ | ||
/* | ||
* JavaScript Canvas to Blob 2.0.5 | ||
* https://github.com/blueimp/JavaScript-Canvas-to-Blob | ||
* | ||
* Copyright 2012, Sebastian Tschan | ||
* https://blueimp.net | ||
* | ||
* Licensed under the MIT license: | ||
* http://www.opensource.org/licenses/MIT | ||
* | ||
* Based on stackoverflow user Stoive's code snippet: | ||
* http://stackoverflow.com/q/4998908 | ||
*/ | ||
|
||
/*jslint nomen: true, regexp: true */ | ||
/*global window, atob, Blob, ArrayBuffer, Uint8Array, define */ | ||
|
||
(function (window) { | ||
'use strict'; | ||
var CanvasPrototype = window.HTMLCanvasElement && | ||
window.HTMLCanvasElement.prototype, | ||
hasBlobConstructor = window.Blob && (function () { | ||
try { | ||
return Boolean(new Blob()); | ||
} catch (e) { | ||
return false; | ||
} | ||
}()), | ||
hasArrayBufferViewSupport = hasBlobConstructor && window.Uint8Array && | ||
(function () { | ||
try { | ||
return new Blob([new Uint8Array(100)]).size === 100; | ||
} catch (e) { | ||
return false; | ||
} | ||
}()), | ||
BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || | ||
window.MozBlobBuilder || window.MSBlobBuilder, | ||
dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window.atob && | ||
window.ArrayBuffer && window.Uint8Array && function (dataURI) { | ||
var byteString, | ||
arrayBuffer, | ||
intArray, | ||
i, | ||
mimeString, | ||
bb; | ||
if (dataURI.split(',')[0].indexOf('base64') >= 0) { | ||
// Convert base64 to raw binary data held in a string: | ||
byteString = atob(dataURI.split(',')[1]); | ||
} else { | ||
// Convert base64/URLEncoded data component to raw binary data: | ||
byteString = decodeURIComponent(dataURI.split(',')[1]); | ||
} | ||
// Write the bytes of the string to an ArrayBuffer: | ||
arrayBuffer = new ArrayBuffer(byteString.length); | ||
intArray = new Uint8Array(arrayBuffer); | ||
for (i = 0; i < byteString.length; i += 1) { | ||
intArray[i] = byteString.charCodeAt(i); | ||
} | ||
// Separate out the mime component: | ||
mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]; | ||
// Write the ArrayBuffer (or ArrayBufferView) to a blob: | ||
if (hasBlobConstructor) { | ||
return new Blob( | ||
[hasArrayBufferViewSupport ? intArray : arrayBuffer], | ||
{type: mimeString} | ||
); | ||
} | ||
bb = new BlobBuilder(); | ||
bb.append(arrayBuffer); | ||
return bb.getBlob(mimeString); | ||
}; | ||
if (window.HTMLCanvasElement && !CanvasPrototype.toBlob) { | ||
if (CanvasPrototype.mozGetAsFile) { | ||
CanvasPrototype.toBlob = function (callback, type, quality) { | ||
if (quality && CanvasPrototype.toDataURL && dataURLtoBlob) { | ||
callback(dataURLtoBlob(this.toDataURL(type, quality))); | ||
} else { | ||
callback(this.mozGetAsFile('blob', type)); | ||
} | ||
}; | ||
} else if (CanvasPrototype.toDataURL && dataURLtoBlob) { | ||
CanvasPrototype.toBlob = function (callback, type, quality) { | ||
callback(dataURLtoBlob(this.toDataURL(type, quality))); | ||
}; | ||
} | ||
} | ||
if (typeof define === 'function' && define.amd) { | ||
define(function () { | ||
return dataURLtoBlob; | ||
}); | ||
} else { | ||
window.dataURLtoBlob = dataURLtoBlob; | ||
} | ||
}(this)); |
1 change: 1 addition & 0 deletions
1
widget/assets/static/blueimp-canvas-to-blob/js/canvas-to-blob.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,94 @@ | ||
{ | ||
"name": "blueimp-file-upload", | ||
"version": "9.7.1", | ||
"title": "jQuery File Upload", | ||
"description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.", | ||
"keywords": [ | ||
"jquery", | ||
"file", | ||
"upload", | ||
"widget", | ||
"multiple", | ||
"selection", | ||
"drag", | ||
"drop", | ||
"progress", | ||
"preview", | ||
"cross-domain", | ||
"cross-site", | ||
"chunk", | ||
"resume", | ||
"gae", | ||
"go", | ||
"python", | ||
"php", | ||
"bootstrap" | ||
], | ||
"homepage": "https://github.com/blueimp/jQuery-File-Upload", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/jQuery-File-Upload.git" | ||
}, | ||
"bugs": "https://github.com/blueimp/jQuery-File-Upload/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"dependencies": { | ||
"jquery": ">=1.6", | ||
"blueimp-tmpl": ">=2.5.3", | ||
"blueimp-load-image": ">=1.11.0", | ||
"blueimp-canvas-to-blob": ">=2.1.0" | ||
}, | ||
"main": [ | ||
"css/jquery.fileupload.css", | ||
"css/jquery.fileupload-ui.css", | ||
"css/jquery.fileupload-noscript.css", | ||
"css/jquery.fileupload-ui-noscript.css", | ||
"js/cors/jquery.postmessage-transport.js", | ||
"js/cors/jquery.xdr-transport.js", | ||
"js/vendor/jquery.ui.widget.js", | ||
"js/jquery.fileupload.js", | ||
"js/jquery.fileupload-process.js", | ||
"js/jquery.fileupload-validate.js", | ||
"js/jquery.fileupload-image.js", | ||
"js/jquery.fileupload-audio.js", | ||
"js/jquery.fileupload-video.js", | ||
"js/jquery.fileupload-ui.js", | ||
"js/jquery.fileupload-jquery-ui.js", | ||
"js/jquery.fileupload-angular.js", | ||
"js/jquery.iframe-transport.js" | ||
], | ||
"ignore": [ | ||
"/*.*", | ||
"/cors", | ||
"css/demo-ie8.css", | ||
"css/demo.css", | ||
"css/style.css", | ||
"js/app.js", | ||
"js/main.js", | ||
"server", | ||
"test" | ||
], | ||
"_release": "9.7.1", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "9.7.1", | ||
"commit": "52417a8d60a95398a9b5d3ccb6fe24d639ceebbc" | ||
}, | ||
"_source": "git://github.com/blueimp/jQuery-File-Upload.git", | ||
"_target": "~9.7.0", | ||
"_originalSource": "blueimp-file-upload" | ||
} |
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,85 @@ | ||
{ | ||
"name": "blueimp-file-upload", | ||
"version": "9.7.1", | ||
"title": "jQuery File Upload", | ||
"description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.", | ||
"keywords": [ | ||
"jquery", | ||
"file", | ||
"upload", | ||
"widget", | ||
"multiple", | ||
"selection", | ||
"drag", | ||
"drop", | ||
"progress", | ||
"preview", | ||
"cross-domain", | ||
"cross-site", | ||
"chunk", | ||
"resume", | ||
"gae", | ||
"go", | ||
"python", | ||
"php", | ||
"bootstrap" | ||
], | ||
"homepage": "https://github.com/blueimp/jQuery-File-Upload", | ||
"author": { | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Sebastian Tschan", | ||
"url": "https://blueimp.net" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/blueimp/jQuery-File-Upload.git" | ||
}, | ||
"bugs": "https://github.com/blueimp/jQuery-File-Upload/issues", | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"dependencies": { | ||
"jquery": ">=1.6", | ||
"blueimp-tmpl": ">=2.5.3", | ||
"blueimp-load-image": ">=1.11.0", | ||
"blueimp-canvas-to-blob": ">=2.1.0" | ||
}, | ||
"main": [ | ||
"css/jquery.fileupload.css", | ||
"css/jquery.fileupload-ui.css", | ||
"css/jquery.fileupload-noscript.css", | ||
"css/jquery.fileupload-ui-noscript.css", | ||
"js/cors/jquery.postmessage-transport.js", | ||
"js/cors/jquery.xdr-transport.js", | ||
"js/vendor/jquery.ui.widget.js", | ||
"js/jquery.fileupload.js", | ||
"js/jquery.fileupload-process.js", | ||
"js/jquery.fileupload-validate.js", | ||
"js/jquery.fileupload-image.js", | ||
"js/jquery.fileupload-audio.js", | ||
"js/jquery.fileupload-video.js", | ||
"js/jquery.fileupload-ui.js", | ||
"js/jquery.fileupload-jquery-ui.js", | ||
"js/jquery.fileupload-angular.js", | ||
"js/jquery.iframe-transport.js" | ||
], | ||
"ignore": [ | ||
"/*.*", | ||
"/cors", | ||
"css/demo-ie8.css", | ||
"css/demo.css", | ||
"css/style.css", | ||
"js/app.js", | ||
"js/main.js", | ||
"server", | ||
"test" | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
widget/assets/static/blueimp-file-upload/css/jquery.fileupload-noscript.css
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,22 @@ | ||
@charset "UTF-8"; | ||
/* | ||
* jQuery File Upload Plugin NoScript CSS 1.2.0 | ||
* https://github.com/blueimp/jQuery-File-Upload | ||
* | ||
* Copyright 2013, Sebastian Tschan | ||
* https://blueimp.net | ||
* | ||
* Licensed under the MIT license: | ||
* http://www.opensource.org/licenses/MIT | ||
*/ | ||
|
||
.fileinput-button input { | ||
position: static; | ||
opacity: 1; | ||
filter: none; | ||
font-size: inherit; | ||
direction: inherit; | ||
} | ||
.fileinput-button span { | ||
display: none; | ||
} |
17 changes: 17 additions & 0 deletions
17
widget/assets/static/blueimp-file-upload/css/jquery.fileupload-ui-noscript.css
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,17 @@ | ||
@charset "UTF-8"; | ||
/* | ||
* jQuery File Upload UI Plugin NoScript CSS 8.8.5 | ||
* https://github.com/blueimp/jQuery-File-Upload | ||
* | ||
* Copyright 2012, Sebastian Tschan | ||
* https://blueimp.net | ||
* | ||
* Licensed under the MIT license: | ||
* http://www.opensource.org/licenses/MIT | ||
*/ | ||
|
||
.fileinput-button i, | ||
.fileupload-buttonbar .delete, | ||
.fileupload-buttonbar .toggle { | ||
display: none; | ||
} |
Oops, something went wrong.