sunrise-file-upload 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -3
- data/app/assets/javascripts/fileupload/application.js +2 -0
- data/app/assets/stylesheets/fileupload/application.css +6 -0
- data/lib/sunrise/file_upload.rb +2 -2
- data/lib/sunrise/file_upload/engine.rb +2 -5
- data/lib/sunrise/file_upload/http.rb +1 -4
- data/lib/sunrise/file_upload/manager.rb +6 -5
- data/lib/sunrise/file_upload/request.rb +1 -1
- data/lib/sunrise/file_upload/version.rb +1 -1
- data/{lib/generators/sunrise/file_upload/templates → vendor/assets/javascripts/fileupload}/fileuploader-input.js +0 -0
- data/vendor/assets/javascripts/fileupload/fileuploader.js +1301 -0
- data/vendor/assets/stylesheets/fileupload/fileuploader.css +31 -0
- metadata +23 -40
- data/lib/generators/sunrise/file_upload/USAGE +0 -7
- data/lib/generators/sunrise/file_upload/install_generator.rb +0 -26
@@ -0,0 +1,31 @@
|
|
1
|
+
.qq-uploader { position:relative; width: 100%;}
|
2
|
+
|
3
|
+
.qq-upload-button {
|
4
|
+
display:block; /* or inline-block */
|
5
|
+
width: 105px; padding: 7px 0; text-align:center;
|
6
|
+
background:#880000; border-bottom:1px solid #ddd;color:#fff;
|
7
|
+
}
|
8
|
+
.qq-upload-button-hover {background:#cc0000;}
|
9
|
+
.qq-upload-button-focus {outline:1px dotted black;}
|
10
|
+
|
11
|
+
.qq-upload-drop-area {
|
12
|
+
position:absolute; top:0; left:0; width:100%; height:100%; min-height: 70px; z-index:2;
|
13
|
+
background:#FF9797; text-align:center;
|
14
|
+
}
|
15
|
+
.qq-upload-drop-area span {
|
16
|
+
display:block; position:absolute; top: 50%; width:100%; margin-top:-8px; font-size:16px;
|
17
|
+
}
|
18
|
+
.qq-upload-drop-area-active {background:#FF7171;}
|
19
|
+
|
20
|
+
.qq-upload-list {margin:15px 35px; padding:0; list-style:disc;}
|
21
|
+
.qq-upload-list li { margin:0; padding:0; line-height:15px; font-size:12px;}
|
22
|
+
.qq-upload-file, .qq-upload-spinner, .qq-upload-size, .qq-upload-cancel, .qq-upload-failed-text {
|
23
|
+
margin-right: 7px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.qq-upload-file {}
|
27
|
+
.qq-upload-spinner {display:inline-block; background: url("loading.gif"); width:15px; height:15px; vertical-align:text-bottom;}
|
28
|
+
.qq-upload-size,.qq-upload-cancel {font-size:11px;}
|
29
|
+
|
30
|
+
.qq-upload-failed-text {display:none;}
|
31
|
+
.qq-upload-fail .qq-upload-failed-text {display:inline;}
|
metadata
CHANGED
@@ -1,33 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunrise-file-upload
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Igor Galeta
|
14
9
|
- Pavlo Galeta
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2012-04-11 00:00:00 Z
|
13
|
+
date: 2012-01-24 00:00:00.000000000 Z
|
20
14
|
dependencies: []
|
21
|
-
|
22
15
|
description: Sunrise is a Aimbulance CMS
|
23
16
|
email: galeta.igor@gmail.com
|
24
17
|
executables: []
|
25
|
-
|
26
18
|
extensions: []
|
27
|
-
|
28
|
-
extra_rdoc_files:
|
19
|
+
extra_rdoc_files:
|
29
20
|
- README.rdoc
|
30
|
-
files:
|
21
|
+
files:
|
22
|
+
- app/assets/stylesheets/fileupload/application.css
|
23
|
+
- app/assets/javascripts/fileupload/application.js
|
31
24
|
- lib/sunrise/file_upload.rb
|
32
25
|
- lib/sunrise/file_upload/engine.rb
|
33
26
|
- lib/sunrise/file_upload/view_helper.rb
|
@@ -38,45 +31,35 @@ files:
|
|
38
31
|
- lib/sunrise/file_upload/version.rb
|
39
32
|
- lib/sunrise/file_upload/active_record.rb
|
40
33
|
- lib/sunrise/file_upload/callbacks.rb
|
41
|
-
- lib/generators/sunrise/file_upload/install_generator.rb
|
42
|
-
- lib/generators/sunrise/file_upload/templates/fileuploader-input.js
|
43
|
-
- lib/generators/sunrise/file_upload/USAGE
|
44
34
|
- lib/sunrise-file-upload.rb
|
35
|
+
- vendor/assets/stylesheets/fileupload/fileuploader.css
|
36
|
+
- vendor/assets/javascripts/fileupload/fileuploader.js
|
37
|
+
- vendor/assets/javascripts/fileupload/fileuploader-input.js
|
45
38
|
- MIT-LICENSE
|
46
39
|
- Rakefile
|
47
40
|
- README.rdoc
|
48
41
|
homepage: https://github.com/galetahub/sunrise-file-upload
|
49
42
|
licenses: []
|
50
|
-
|
51
43
|
post_install_message:
|
52
44
|
rdoc_options: []
|
53
|
-
|
54
|
-
require_paths:
|
45
|
+
require_paths:
|
55
46
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
48
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
- 0
|
64
|
-
version: "0"
|
65
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
54
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
74
59
|
requirements: []
|
75
|
-
|
76
60
|
rubyforge_project: sunrise-core
|
77
61
|
rubygems_version: 1.8.10
|
78
62
|
signing_key:
|
79
63
|
specification_version: 3
|
80
64
|
summary: Rails HTML5 FileUpload helpers
|
81
65
|
test_files: []
|
82
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'rails/generators'
|
2
|
-
|
3
|
-
module Sunrise
|
4
|
-
module Generators
|
5
|
-
module FileUpload
|
6
|
-
class InstallGenerator < Rails::Generators::Base
|
7
|
-
desc "This generator downloads and installs FileUploader"
|
8
|
-
source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
9
|
-
|
10
|
-
def copy_javascripts
|
11
|
-
copy_file "fileuploader-input.js", 'public/javascripts/fileupload/fileuploader-input.js'
|
12
|
-
end
|
13
|
-
|
14
|
-
def download_stylesheet
|
15
|
-
say_status("fetching fileuploader.css", "", :green)
|
16
|
-
get "https://github.com/galetahub/file-uploader/raw/master/client/fileuploader.css", "public/javascripts/fileupload/fileuploader.css"
|
17
|
-
end
|
18
|
-
|
19
|
-
def download_fileupload
|
20
|
-
say_status("fetching fileuploader.js", "", :green)
|
21
|
-
get "https://github.com/galetahub/file-uploader/raw/master/client/fileuploader.js", "public/javascripts/fileupload/fileuploader.js"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|