s3_cors_fileupload 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +19 -19
- data/README.md +13 -1
- data/lib/generators/s3_cors_fileupload/install/templates/s3_uploads.js +1 -2
- data/lib/generators/s3_cors_fileupload/install/templates/source_file.rb +1 -1
- data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_download.html.erb +19 -16
- data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_upload.html.erb +31 -26
- data/lib/generators/s3_cors_fileupload/install/templates/views/erb/_template_uploaded.html.erb +18 -13
- data/lib/generators/s3_cors_fileupload/install/templates/views/erb/index.html.erb +1 -1
- data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_download.html.haml +16 -21
- data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_upload.html.haml +15 -18
- data/lib/generators/s3_cors_fileupload/install/templates/views/haml/_template_uploaded.html.haml +12 -13
- data/lib/generators/s3_cors_fileupload/install/templates/views/haml/index.html.haml +1 -1
- data/lib/s3_cors_fileupload/rails/form_helper.rb +16 -14
- data/lib/s3_cors_fileupload/version.rb +3 -3
- data/vendor/assets/javascripts/s3_cors_fileupload/index.js +4 -1
- data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-image.js +213 -0
- data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-process.js +164 -0
- data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-ui.js +62 -228
- data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-validate.js +116 -0
- data/vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload.js +212 -84
- data/vendor/assets/javascripts/s3_cors_fileupload/jquery.iframe-transport.js +24 -4
- data/vendor/assets/javascripts/s3_cors_fileupload/vendor/jquery.ui.widget.js +1 -1
- data/vendor/assets/javascripts/s3_cors_fileupload/vendor/load-image.js +138 -172
- data/vendor/assets/javascripts/s3_cors_fileupload/vendor/tmpl.js +3 -4
- data/vendor/assets/stylesheets/jquery.fileupload-ui.css.erb +12 -28
- metadata +5 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
@charset "UTF-8";
|
2
2
|
/*
|
3
|
-
* jQuery File Upload UI Plugin CSS
|
3
|
+
* jQuery File Upload UI Plugin CSS 8.1
|
4
4
|
* https://github.com/blueimp/jQuery-File-Upload
|
5
5
|
*
|
6
6
|
* Copyright 2010, Sebastian Tschan
|
@@ -13,8 +13,6 @@
|
|
13
13
|
.fileinput-button {
|
14
14
|
position: relative;
|
15
15
|
overflow: hidden;
|
16
|
-
float: left;
|
17
|
-
margin-right: 4px;
|
18
16
|
}
|
19
17
|
.fileinput-button input {
|
20
18
|
position: absolute;
|
@@ -32,35 +30,24 @@
|
|
32
30
|
.fileupload-buttonbar .toggle {
|
33
31
|
margin-bottom: 5px;
|
34
32
|
}
|
35
|
-
.files .progress {
|
36
|
-
width: 200px;
|
37
|
-
}
|
38
33
|
.progress-animated .bar {
|
39
34
|
background: url(<%= asset_path 'progressbar.gif' %>) !important;
|
40
35
|
filter: none;
|
41
36
|
}
|
42
37
|
.fileupload-loading {
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
height: 128px;
|
38
|
+
float: right;
|
39
|
+
width: 32px;
|
40
|
+
height: 32px;
|
47
41
|
background: url(<%= asset_path 'loading.gif' %>) center no-repeat;
|
42
|
+
background-size: contain;
|
48
43
|
display: none;
|
49
44
|
}
|
50
45
|
.fileupload-processing .fileupload-loading {
|
51
46
|
display: block;
|
52
47
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
line-height: 24px;
|
57
|
-
margin: 1px -3px 0 0;
|
58
|
-
}
|
59
|
-
|
60
|
-
/* Fix for IE 7: */
|
61
|
-
* + html .fileinput-button {
|
62
|
-
padding: 2px 15px;
|
63
|
-
margin: 1px 0 0 0;
|
48
|
+
.files audio,
|
49
|
+
.files video {
|
50
|
+
max-width: 300px;
|
64
51
|
}
|
65
52
|
|
66
53
|
@media (max-width: 767px) {
|
@@ -69,15 +56,12 @@
|
|
69
56
|
.files .btn span {
|
70
57
|
display: none;
|
71
58
|
}
|
72
|
-
.files .
|
73
|
-
width: 40px;
|
74
|
-
}
|
75
|
-
.files .name * {
|
59
|
+
.files .name {
|
76
60
|
width: 80px;
|
77
|
-
display: inline-block;
|
78
61
|
word-wrap: break-word;
|
79
62
|
}
|
80
|
-
.files
|
81
|
-
|
63
|
+
.files audio,
|
64
|
+
.files video {
|
65
|
+
max-width: 80px;
|
82
66
|
}
|
83
67
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_cors_fileupload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Atkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -177,7 +177,10 @@ files:
|
|
177
177
|
- vendor/assets/images/loading.gif
|
178
178
|
- vendor/assets/images/progressbar.gif
|
179
179
|
- vendor/assets/javascripts/s3_cors_fileupload/index.js
|
180
|
+
- vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-image.js
|
181
|
+
- vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-process.js
|
180
182
|
- vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-ui.js
|
183
|
+
- vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload-validate.js
|
181
184
|
- vendor/assets/javascripts/s3_cors_fileupload/jquery.fileupload.js
|
182
185
|
- vendor/assets/javascripts/s3_cors_fileupload/jquery.iframe-transport.js
|
183
186
|
- vendor/assets/javascripts/s3_cors_fileupload/vendor/jquery.ui.widget.js
|