dropzone_input 1.4.1 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3f41b728290a795a124bc3fc91bf84a4f075b4f6e9ac8eb092105eea66cb778
|
4
|
+
data.tar.gz: df21bc1e2e9923f2917c0c0c37db2c2f149c76d1f4d010df1f6af47d33ce945f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc1eaf69b3b090c84005ceaf4c7d35652cb2939909fe40ee4d24c187d3f516e8fab83397b890020c0b9d822c117a68beb777e56d494cc630b5b9a64ad8c2f8ea
|
7
|
+
data.tar.gz: 5b6082de8ca9bf2bee987f58886a818c7082c19e7d181a8f47bc388b946e074ee48c448f8dc7756a956765296adc1775a5ffa9bd465f86a57eb40035e027aacc
|
@@ -1,9 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
<div class="dz-message dz-default">
|
2
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
3
|
+
<svg enable-background="new 0 0 72 43.2" version="1.1" viewBox="0 0 72 43.2" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" class="inline-block w-16 mb-1">
|
4
|
+
<style type="text/css">
|
5
|
+
.st0{fill:none;stroke:#424443;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
|
6
|
+
</style>
|
7
|
+
<polyline class="st0" points="28.3 26.3 34.4 20.3 40.4 26.3 34.4 20.3 34.4 42.3"/>
|
8
|
+
<path class="st0" d="m22.1 33c-6.6 0-11.9-5.3-11.9-11.9s5.4-11.9 11.9-11.9c2.4-4.9 7.4-8.3 13.3-8.3 7.6 0 13.9 5.8 14.7 13.2 0.7-0.1 1.3-0.2 2-0.2 5.3 0 9.5 4.3 9.5 9.5s-4.1 9.6-9.4 9.6h-5.6"/>
|
9
|
+
</svg>
|
10
|
+
<h1 class="text-xl text-gray-700">Upload</h1>
|
11
|
+
</div>
|
@@ -10,12 +10,10 @@ module DropzoneInput
|
|
10
10
|
|
11
11
|
data = {
|
12
12
|
controller: 'dropzone',
|
13
|
-
dropzone_accepted_files: ActiveStorage.variable_content_types.join(',')
|
13
|
+
dropzone_accepted_files: options.delete(:accepted_files) || ActiveStorage.variable_content_types.join(',')
|
14
14
|
}
|
15
15
|
%i(
|
16
|
-
|
17
|
-
max_file_size
|
18
|
-
max_thumbnail_file_size
|
16
|
+
croppable
|
19
17
|
file_added_event
|
20
18
|
file_drop_event
|
21
19
|
file_drop_id
|
@@ -24,8 +22,13 @@ module DropzoneInput
|
|
24
22
|
file_removed_event
|
25
23
|
file_start_event
|
26
24
|
file_success_event
|
25
|
+
max_file_size
|
26
|
+
max_files
|
27
|
+
max_thumbnail_file_size
|
27
28
|
parallel_uploads
|
28
29
|
queue_complete_event
|
30
|
+
thumbnail_height
|
31
|
+
thumbnail_width
|
29
32
|
).each do |key|
|
30
33
|
data["dropzone_#{key}".to_sym] = options.delete(key) if options.key?(key)
|
31
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dropzone_input
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trae Robrock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.1.
|
68
|
+
rubygems_version: 3.1.6
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: A rails helper to easily add Dropzone to forms.
|