dropzone_input 1.4.1 → 2.0.2.1

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: 2c222252af65ae10f2918e34e8347a481a8789153f7b63de38dba68a26d6ef00
4
- data.tar.gz: c7e6fc8d3868a3314c52249928fbe0609c07824a05f008349758c8a88b495bb5
3
+ metadata.gz: 5fae8094cd628f5ed97b757205b3884a4be885c2bba2a75f46d1a17071ba45b0
4
+ data.tar.gz: ae20cc28b3ac85006737beb1ce3fc67d279f409b707dff5534fc645d93d29dc9
5
5
  SHA512:
6
- metadata.gz: 7c63999368bcae1efdde40b8bdee7c7360b33d543208e17f631c4c4d0ed22c7155498042182b02fc0001444b1a45954d3a9a6df6db7e9d5eb890391998f1ac9c
7
- data.tar.gz: a2523c5b095f92a14c3a1efcb3d30358ca37b901e52d3231aca93cee1c477c6f9a7793a7787a9f5b547496cda92c74485a15a1d8a2573f13d67fabf11adf5d1d
6
+ metadata.gz: f079d0f7f2e3f0a9c91f90e587b24a5b58e8682b19e3d25612d02f5f0a4cb0461ecbd1d41c25d60a51af00f7483bdaddc86c8f5bb121aa375f6c5f64e57c1b7a
7
+ data.tar.gz: 53a1af0f3e1085c5e43ac17cdf5e41133d8b66c42384e29a43c8d21b8e8dbae05debef6e8c5ede51c9f93b1621ea032ae0f532a24ddd6d732edacbe403c484d8
@@ -1,9 +1,11 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <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">
3
- <style type="text/css">
4
- .st0{fill:none;stroke:#424443;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
5
- </style>
6
- <polyline class="st0" points="28.3 26.3 34.4 20.3 40.4 26.3 34.4 20.3 34.4 42.3"/>
7
- <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"/>
8
- </svg>
9
- <h1 class="text-xl text-gray-700">Upload</h1>
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>
@@ -1,4 +1,2 @@
1
1
  <%= form.file_field field, direct_upload: true, data: { 'dropzone-target': 'input' } %>
2
- <div class="dz-default dz-message">
3
- <%= yield %>
4
- </div>
2
+ <%= yield %>
@@ -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
- max_files
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DropzoneInput
4
- VERSION = '1.4.1'
4
+ VERSION = '2.0.2.1'
5
5
  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: 1.4.1
4
+ version: 2.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2022-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '7'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '5'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '7'
33
27
  description: A rails helper to easily add Dropzone to forms.
34
28
  email:
35
29
  - trobrock@gmail.com
@@ -50,7 +44,7 @@ homepage: https://github.com/darkroom-com/dropzone_input
50
44
  licenses:
51
45
  - MIT
52
46
  metadata: {}
53
- post_install_message:
47
+ post_install_message:
54
48
  rdoc_options: []
55
49
  require_paths:
56
50
  - lib
@@ -65,8 +59,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
59
  - !ruby/object:Gem::Version
66
60
  version: '0'
67
61
  requirements: []
68
- rubygems_version: 3.1.4
69
- signing_key:
62
+ rubygems_version: 3.2.32
63
+ signing_key:
70
64
  specification_version: 4
71
65
  summary: A rails helper to easily add Dropzone to forms.
72
66
  test_files: []