scrivito_gif_control_widget 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/app/assets/images/scrivito_gif_control_widget_thumbnail.jpg +0 -0
- data/app/views/gif_control_widget/show.html.erb +3 -1
- data/app/views/gif_control_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_gif_control_widget/version.rb +1 -1
- metadata +3 -3
- data/app/assets/stylesheets/scrivito_gif_control_widget/application.css +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4173fa5056657398f49b9c25b52845be12e30687
|
4
|
+
data.tar.gz: a3ee2d43240efc96c4471a0026a4816010c57a9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b98ed93e771ef60a18c95fbac11cb29a1556ddd1c78f0ecfd416c1dcff7155efa62face285830f75ac9c4e5d128240e587e2eb0d4b762337165acaeee9fd4f2
|
7
|
+
data.tar.gz: 32b2a4b5b6a7a505d2b698535ce975d595f05882b01539c13b7a0a85978c11f41fc2e52e25f003913d2c7c6b52f1a355c9fcd11fa59672578c33211c46934fb8
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ScrivitoGifControlWidget
|
2
2
|
|
3
|
-
|
3
|
+
A widget for starting and stopping animated GIFs.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -8,9 +8,13 @@ Add this line to your application's Gemfile:
|
|
8
8
|
|
9
9
|
gem 'scrivito_gif_control_widget'
|
10
10
|
|
11
|
+
Add this line to your application Javascript Manifest:
|
12
|
+
|
13
|
+
//= require scrivito_gif_control_widget
|
14
|
+
|
11
15
|
## Customization
|
12
16
|
|
13
|
-
|
17
|
+
Due to the click event the widget needs to handle, the GIF image in such a widget can only be set via the properties dialog using the Content Browser. You may want to create a corresponding filter for the Content Browser in order to find GIF binaries easier:
|
14
18
|
|
15
19
|
```js
|
16
20
|
scrivito.content_browser.filters = function(filter) {
|
Binary file
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<% if widget.gif %>
|
2
2
|
<img data-gifffer="<%= widget.gif.try(:binary_url) %>" data-gifffer-width="100%" data-gifffer-height="auto" />
|
3
3
|
<% else %>
|
4
|
-
|
4
|
+
<div class="alert alert-info">
|
5
|
+
Select a gif in widgets details view.
|
6
|
+
</div>
|
5
7
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail 'Gif control widget' do %>
|
2
|
-
Add a widget to control
|
1
|
+
<%= scrivito_thumbnail 'Gif control widget', image_tag('scrivito_gif_control_widget_thumbnail.jpg') do %>
|
2
|
+
Add a widget to control start and stop of a gif with click.
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_gif_control_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -48,10 +48,10 @@ files:
|
|
48
48
|
- LICENSE
|
49
49
|
- README.md
|
50
50
|
- Rakefile
|
51
|
+
- app/assets/images/scrivito_gif_control_widget_thumbnail.jpg
|
51
52
|
- app/assets/javascripts/scrivito_gif_control_widget.js
|
52
53
|
- app/assets/javascripts/scrivito_gif_control_widget/gifffer.min.js
|
53
54
|
- app/assets/javascripts/scrivito_gif_control_widget/script.js
|
54
|
-
- app/assets/stylesheets/scrivito_gif_control_widget/application.css
|
55
55
|
- app/models/gif_control_widget.rb
|
56
56
|
- app/views/gif_control_widget/details.html.erb
|
57
57
|
- app/views/gif_control_widget/show.html.erb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|