Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dropzone] 4.3.0-0: initial release (#718)
- Loading branch information
Martin Klepsch
committed
Sep 1, 2016
1 parent
b882c70
commit 0fbd137
Showing
3 changed files
with
149 additions
and
0 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,18 @@ | ||
# cljsjs/dropzone | ||
|
||
[](dependency) | ||
```clojure | ||
[cljsjs/dropzone "4.3.0-0"] ;; latest release | ||
``` | ||
[](/dependency) | ||
|
||
This jar comes with `deps.cljs` as used by the [Foreign Libs][flibs] feature | ||
of the Clojurescript compiler. After adding the above dependency to your project | ||
you can require the packaged library like so: | ||
|
||
```clojure | ||
(ns application.core | ||
(:require cljsjs.dropzone)) | ||
``` | ||
|
||
[flibs]: https://github.com/clojure/clojurescript/wiki/Packaging-Foreign-Dependencies |
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,29 @@ | ||
(set-env! | ||
:resource-paths #{"resources"} | ||
:dependencies '[[cljsjs/boot-cljsjs "0.5.2" :scope "test"]]) | ||
|
||
(require '[cljsjs.boot-cljsjs.packaging :refer :all]) | ||
|
||
(def +lib-version+ "4.3.0") | ||
(def +version+ (str +lib-version+ "-0")) | ||
|
||
(task-options! | ||
pom {:project 'cljsjs/dropzone | ||
:version +version+ | ||
:description "DropzoneJS is a library that provides drag’n’drop file uploads with image previews" | ||
:url "http://www.dropzonejs.com/" | ||
:scm {:url "https://github.com/cljsjs/packages"} | ||
:license {"MIT" "http://opensource.org/licenses/MIT"}}) | ||
|
||
(deftask package [] | ||
(comp | ||
(download :url (format "https://github.com/enyo/dropzone/archive/v%s.zip" +lib-version+) | ||
:checksum "8BD1A2E5DE0903CB3140B597F23B07D8" | ||
:unzip true) | ||
(sift :move {#"^dropzone-\d\.\d\.\d/dist/dropzone.js" "cljsjs/dropzone/development/dropzone.inc.js" | ||
#"^dropzone-\d\.\d\.\d/dist/min/dropzone.min.js" "cljsjs/dropzone/production/dropzone.min.inc.js" | ||
#"^dropzone-\d\.\d\.\d/dist/min/dropzone.min.css" "cljsjs/dropzone/common/dropzone.min.css"}) | ||
(sift :include #{#"^cljsjs"}) | ||
(deps-cljs :name "cljsjs.dropzone") | ||
(pom) | ||
(jar))) |
102 changes: 102 additions & 0 deletions
102
dropzone/resources/cljsjs/dropzone/common/dropzone.ext.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,102 @@ | ||
/********************************************************************** | ||
* Extern for Dropzone | ||
* Generated by http://jmmk.github.io/javascript-externs-generator | ||
**********************************************************************/ | ||
var Dropzone = { | ||
"__super__": { | ||
"addEventListener": {}, | ||
"on": function () {}, | ||
"emit": function () {}, | ||
"removeListener": {}, | ||
"removeAllListeners": {}, | ||
"removeEventListener": {}, | ||
"off": function () {} | ||
}, | ||
"version": {}, | ||
"options": {}, | ||
"optionsForElement": function () {}, | ||
"instances": {}, | ||
"forElement": function () {}, | ||
"autoDiscover": {}, | ||
"discover": function () {}, | ||
"blacklistedBrowsers": {}, | ||
"isBrowserSupported": function () {}, | ||
"createElement": function () {}, | ||
"elementInside": function () {}, | ||
"getElement": function () {}, | ||
"getElements": function () {}, | ||
"confirm": function () {}, | ||
"isValidFile": function () {}, | ||
"ADDED": {}, | ||
"QUEUED": {}, | ||
"ACCEPTED": {}, | ||
"UPLOADING": {}, | ||
"PROCESSING": {}, | ||
"CANCELED": {}, | ||
"ERROR": {}, | ||
"SUCCESS": {}, | ||
"_autoDiscoverFunction": function () {} | ||
}; | ||
Dropzone.prototype = { | ||
"constructor": function () {}, | ||
"Emitter": function () {}, | ||
"events": function () {}, | ||
"defaultOptions": function () {}, | ||
"getAcceptedFiles": function () {}, | ||
"getRejectedFiles": function () {}, | ||
"getFilesWithStatus": function () {}, | ||
"getQueuedFiles": function () {}, | ||
"getUploadingFiles": function () {}, | ||
"getAddedFiles": function () {}, | ||
"getActiveFiles": function () {}, | ||
"init": function () {}, | ||
"destroy": function () {}, | ||
"updateTotalUploadProgress": function () {}, | ||
"_getParamName": function () {}, | ||
"_renameFilename": function () {}, | ||
"getFallbackForm": function () {}, | ||
"getExistingFallback": function () {}, | ||
"setupEventListeners": function () {}, | ||
"removeEventListeners": function () {}, | ||
"disable": function () {}, | ||
"enable": function () {}, | ||
"filesize": function () {}, | ||
"_updateMaxFilesReachedClass": function () {}, | ||
"drop": function () {}, | ||
"paste": function () {}, | ||
"handleFiles": function () {}, | ||
"_addFilesFromItems": function () {}, | ||
"_addFilesFromDirectory": function () {}, | ||
"accept": function () {}, | ||
"addFile": function () {}, | ||
"enqueueFiles": function () {}, | ||
"enqueueFile": function () {}, | ||
"_thumbnailQueue": function () {}, | ||
"_processingThumbnail": function () {}, | ||
"_enqueueThumbnail": function () {}, | ||
"_processThumbnailQueue": function () {}, | ||
"removeFile": function () {}, | ||
"removeAllFiles": function () {}, | ||
"createThumbnail": function () {}, | ||
"createThumbnailFromUrl": function () {}, | ||
"processQueue": function () {}, | ||
"processFile": function () {}, | ||
"processFiles": function () {}, | ||
"_getFilesWithXhr": function () {}, | ||
"cancelUpload": function () {}, | ||
"uploadFile": function () {}, | ||
"uploadFiles": function () {}, | ||
"submitRequest": function () {}, | ||
"_finished": function () {}, | ||
"_errorProcessing": function () {}, | ||
"addEventListener": function () {}, | ||
"on": function () {}, | ||
"emit": function () {}, | ||
"removeListener": function () {}, | ||
"removeAllListeners": function () {}, | ||
"removeEventListener": function () {}, | ||
"off": function () {} | ||
}; | ||
/********************************************************************** | ||
* End Generated Extern for Dropzone | ||
/**********************************************************************/ |