concerto_remote_video 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/concerto_remote_video/application.js +1 -0
- data/app/assets/javascripts/{remote_video.js → concerto_remote_video/remote_video.js} +4 -4
- data/app/assets/stylesheets/{remote_video.css → concerto_remote_video/remote_video.css} +1 -1
- data/app/views/contents/remote_video/_form_top.html.erb +2 -2
- data/app/views/contents/remote_video/_render_grid.html.erb +8 -0
- data/app/views/contents/remote_video/_tab_icon.html.erb +1 -0
- data/lib/concerto_remote_video/version.rb +1 -1
- metadata +11 -8
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree .
|
@@ -33,10 +33,10 @@ function attachHandlers() {
|
|
33
33
|
if (typeof vendor != 'undefined') {
|
34
34
|
// we found the vendor selection, call appropriate api
|
35
35
|
if (vendor == 'YouTube') {
|
36
|
-
$(info_el).empty().html('searching...');
|
36
|
+
$(info_el).empty().html('<i class=\"ficon-spinner icon-spin\"></i> searching...');
|
37
37
|
// todo: dont search if video_id is empty
|
38
38
|
$.ajax({
|
39
|
-
url: '
|
39
|
+
url: '//gdata.youtube.com/feeds/api/videos?q='+ encodeURIComponent(video_id) +'&v=2&max-results=1&format=5&alt=jsonc',
|
40
40
|
dataType: 'jsonp',
|
41
41
|
timeout: 4000,
|
42
42
|
success: function (data) {
|
@@ -53,9 +53,9 @@ function attachHandlers() {
|
|
53
53
|
}
|
54
54
|
});
|
55
55
|
} else if (vendor == 'Vimeo') {
|
56
|
-
$(info_el).empty().html('searching...');
|
56
|
+
$(info_el).empty().html('<i class=\"ficon-spinner icon-spin\"></i> searching...');
|
57
57
|
$.ajax({
|
58
|
-
url: '
|
58
|
+
url: '//vimeo.com/api/v2/video/' + encodeURIComponent(video_id) + '.json',
|
59
59
|
dataType: 'jsonp',
|
60
60
|
timeout: 4000,
|
61
61
|
success: function (data) {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<%= javascript_include_tag "
|
2
|
-
<%= stylesheet_link_tag "
|
1
|
+
<%= javascript_include_tag "concerto_remote_video/application" %>
|
2
|
+
<%= stylesheet_link_tag "concerto_remote_video/application" %>
|
3
3
|
|
4
4
|
<fieldset>
|
5
5
|
<legend><span><%= RemoteVideo::DISPLAY_NAME %></span></legend>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<% if content.config['thumb_url'].blank? %>
|
2
|
+
<div class="grid-item with-shadow">
|
3
|
+
<i class="ficon-facetime-video icon-4x"></i>
|
4
|
+
</div>
|
5
|
+
<% else %>
|
6
|
+
<div class="grid-item with-shadow" style="background-image:url(<%= content.config['thumb_url'] %>); background-size: cover; width: 60px; height: 60px;">
|
7
|
+
</div>
|
8
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<i class="ficon-facetime-video"></i>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concerto_remote_video
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-13 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &70359987758320 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '3.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70359987758320
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: sqlite3
|
28
|
-
requirement: &
|
28
|
+
requirement: &70359987757860 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70359987757860
|
37
37
|
description: Adds support for remotely hosted videos, like YouTube or vimeo, in Concerto
|
38
38
|
2
|
39
39
|
email:
|
@@ -42,16 +42,19 @@ executables: []
|
|
42
42
|
extensions: []
|
43
43
|
extra_rdoc_files: []
|
44
44
|
files:
|
45
|
-
- app/assets/javascripts/
|
45
|
+
- app/assets/javascripts/concerto_remote_video/application.js
|
46
|
+
- app/assets/javascripts/concerto_remote_video/remote_video.js
|
46
47
|
- app/assets/stylesheets/concerto_remote_video/application.css
|
47
|
-
- app/assets/stylesheets/remote_video.css
|
48
|
+
- app/assets/stylesheets/concerto_remote_video/remote_video.css
|
48
49
|
- app/controllers/concerto_remote_video/application_controller.rb
|
49
50
|
- app/helpers/concerto_remote_video/application_helper.rb
|
50
51
|
- app/models/remote_video.rb
|
51
52
|
- app/views/contents/remote_video/_form_middle.html.erb
|
52
53
|
- app/views/contents/remote_video/_form_top.html.erb
|
53
54
|
- app/views/contents/remote_video/_render_default.html.erb
|
55
|
+
- app/views/contents/remote_video/_render_grid.html.erb
|
54
56
|
- app/views/contents/remote_video/_render_tile.html.erb
|
57
|
+
- app/views/contents/remote_video/_tab_icon.html.erb
|
55
58
|
- config/routes.rb
|
56
59
|
- lib/concerto_remote_video/engine.rb
|
57
60
|
- lib/concerto_remote_video/version.rb
|