activeadmin-dropzone 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/VERSION +1 -1
- data/activeadmin-dropzone.gemspec +5 -1
- data/app/assets/images/hamburger-retina.gif +0 -0
- data/app/assets/images/hamburger.gif +0 -0
- data/app/assets/images/spritemap.png +0 -0
- data/app/assets/images/spritemap@2x.png +0 -0
- data/app/assets/stylesheets/activeadmin-dropzone.css.scss +37 -35
- data/lib/activeadmin-dropzone/active_record/dropzone.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c583aafa8b2b98364e3138f90831e046417d4fd
|
|
4
|
+
data.tar.gz: ea414d1d2bb97a3f7be322638dc2176758111e29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d08cb8a780afd811e74a57612d582813dc72c2e3f216050de2d76c92588a13c1a774a8a641833904def7d6d5aaece6e8b3ce3d5ff1b4e37453264dd30a653f09
|
|
7
|
+
data.tar.gz: 8da7a876ccc550bf4db9847bc44f964720022a1f19a7f2bce88c00b85f4ae46496b43549f78460db1f29e57fb43d0374911cd96bf0118b3d3993f2eec1802d76
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# activeadmin-dropzone
|
|
1
|
+
# activeadmin-dropzone [](http://badge.fury.io/rb/activeadmin-dropzone)
|
|
2
2
|
|
|
3
3
|
Easy to use integration of drag&drop files upload via [dropzone.js](http://www.dropzonejs.com) for [ActiveAdmin](http://www.activeadmin.info).
|
|
4
4
|
|
|
@@ -31,6 +31,10 @@ Add `input` to your ActiveAdmin form:
|
|
|
31
31
|
|
|
32
32
|
f.input :images, as: :dropzone
|
|
33
33
|
|
|
34
|
+
Add `activeadmin-dropzone` to both `active_admin.js` and `active_admin.css` files:
|
|
35
|
+
|
|
36
|
+
//= require activeadmin-dropzone
|
|
37
|
+
|
|
34
38
|
## Configuration
|
|
35
39
|
|
|
36
40
|
You can customize columns used for upload by passing `Hash` to the `dropzone_item` method. Here are the default values:
|
|
@@ -38,8 +42,8 @@ You can customize columns used for upload by passing `Hash` to the `dropzone_ite
|
|
|
38
42
|
dropzone_item title: :title,
|
|
39
43
|
position: :position,
|
|
40
44
|
data: :data,
|
|
41
|
-
file_size: :
|
|
42
|
-
url: :
|
|
45
|
+
file_size: :data_file_size,
|
|
46
|
+
url: :data_url
|
|
43
47
|
|
|
44
48
|
## Contributing to activeadmin-dropzone
|
|
45
49
|
|
|
@@ -53,4 +57,4 @@ You can customize columns used for upload by passing `Hash` to the `dropzone_ite
|
|
|
53
57
|
## Copyright
|
|
54
58
|
|
|
55
59
|
Copyright (c) 2014 Maxim Gladkov. See LICENSE.txt for
|
|
56
|
-
further details.
|
|
60
|
+
further details.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.2
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "activeadmin-dropzone"
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Maxim Gladkov"]
|
|
@@ -28,6 +28,10 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
"app/.DS_Store",
|
|
29
29
|
"app/assets/.DS_Store",
|
|
30
30
|
"app/assets/images/.DS_Store",
|
|
31
|
+
"app/assets/images/hamburger-retina.gif",
|
|
32
|
+
"app/assets/images/hamburger.gif",
|
|
33
|
+
"app/assets/images/spritemap.png",
|
|
34
|
+
"app/assets/images/spritemap@2x.png",
|
|
31
35
|
"app/assets/javascripts/activeadmin-dropzone.js",
|
|
32
36
|
"app/assets/javascripts/dropzone.js",
|
|
33
37
|
"app/assets/stylesheets/activeadmin-dropzone.css.scss",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
//= require dropzone
|
|
2
2
|
|
|
3
|
-
.
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
.active_admin {
|
|
4
|
+
.dropzone {
|
|
5
|
+
margin: 10px 20px;
|
|
6
|
+
border: 1px solid #ccc;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
a {
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
font-size: 13px;
|
|
11
|
+
color: #666;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
color: #000;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
span.notice {
|
|
20
|
+
position: absolute;
|
|
21
|
+
bottom: 10px;
|
|
22
|
+
right: 10px;
|
|
23
|
+
color: #666;
|
|
24
|
+
}
|
|
12
25
|
|
|
13
26
|
&:hover {
|
|
14
|
-
|
|
27
|
+
span.notice {
|
|
28
|
+
color: #000;
|
|
29
|
+
}
|
|
15
30
|
}
|
|
16
31
|
}
|
|
17
32
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
33
|
+
.dropzone-hint {
|
|
34
|
+
margin: 0 0 0 20px;
|
|
35
|
+
font-size: 0.95em;
|
|
36
|
+
font-style: italic;
|
|
22
37
|
color: #666;
|
|
23
38
|
}
|
|
24
39
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
.sortable-placeholder {
|
|
41
|
+
position: relative;
|
|
42
|
+
display: inline-block;
|
|
43
|
+
margin: 17px !important;
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
border: 1px dashed #acacac !important;
|
|
46
|
+
padding: 6px 6px 6px 6px !important;
|
|
47
|
+
width: 112px !important;
|
|
48
|
+
height: 166px !important;
|
|
29
49
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.dropzone-hint {
|
|
33
|
-
margin: 0 0 0 20px;
|
|
34
|
-
font-size: 0.95em;
|
|
35
|
-
font-style: italic;
|
|
36
|
-
color: #666;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.sortable-placeholder {
|
|
40
|
-
position: relative;
|
|
41
|
-
display: inline-block;
|
|
42
|
-
margin: 17px !important;
|
|
43
|
-
vertical-align: top;
|
|
44
|
-
border: 1px dashed #acacac !important;
|
|
45
|
-
padding: 6px 6px 6px 6px !important;
|
|
46
|
-
width: 112px !important;
|
|
47
|
-
height: 166px !important;
|
|
48
50
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-dropzone
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxim Gladkov
|
|
@@ -58,6 +58,10 @@ files:
|
|
|
58
58
|
- app/.DS_Store
|
|
59
59
|
- app/assets/.DS_Store
|
|
60
60
|
- app/assets/images/.DS_Store
|
|
61
|
+
- app/assets/images/hamburger-retina.gif
|
|
62
|
+
- app/assets/images/hamburger.gif
|
|
63
|
+
- app/assets/images/spritemap.png
|
|
64
|
+
- app/assets/images/spritemap@2x.png
|
|
61
65
|
- app/assets/javascripts/activeadmin-dropzone.js
|
|
62
66
|
- app/assets/javascripts/dropzone.js
|
|
63
67
|
- app/assets/stylesheets/activeadmin-dropzone.css.scss
|