pageflow 13.3.0 → 13.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pageflow might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -17
- data/app/assets/javascripts/pageflow/ready.js +5 -1
- data/app/assets/stylesheets/pageflow/themes/default/mixins/masks.scss +3 -2
- data/app/views/components/pageflow/admin/embedded_index_table.rb +7 -2
- data/lib/pageflow/version.rb +1 -1
- data/vendor/assets/javascripts/audio5.min.js +9 -3
- metadata +2 -3
- data/app/assets/images/pageflow/themes/default/mask_bottom.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44c6592842c365d4b68b9fb2caa51bcf9f50d88048ac74c82a08b73a47588191
|
4
|
+
data.tar.gz: e8aaa710e69700ebb0209ab15a13b181e758f7a9f5cbd94c8228b1d79c6a1564
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aed07b3a52a4e41327b7e05aaba3bc0daaace19ddee4411ed67664d09e5151e59ffdbb562158aa229a4d1f111f1db6b6d8bd2ba883273d6eda88a6c9869cd550
|
7
|
+
data.tar.gz: d2b12c825c29428e897c30d7822d418e922d354bfac3cf6e6c8a4c2283dc0f22af2bce7ea91b1590ff3cd3c23aeaf1c687f22bf9afed0ebf52206a356be3661d
|
data/CHANGELOG.md
CHANGED
@@ -1,24 +1,20 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 13.
|
3
|
+
### Version 13.4.0
|
4
4
|
|
5
|
-
2019-02-
|
5
|
+
2019-02-26
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow/compare/13-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow/compare/13-3-stable...v13.4.0)
|
8
|
+
|
9
|
+
- Prevent missing first pagepreloaded event in pageflow.ready
|
10
|
+
([#1128](https://github.com/codevise/pageflow/pull/1128))
|
11
|
+
- Re-apply loop patch for Audio5js
|
12
|
+
([#1126](https://github.com/codevise/pageflow/pull/1126))
|
13
|
+
- Fix scope filter translation for embedded_index_table
|
14
|
+
([#1125](https://github.com/codevise/pageflow/pull/1125))
|
15
|
+
- Fix audio page mask image in Safari 12
|
16
|
+
([#1124](https://github.com/codevise/pageflow/pull/1124))
|
8
17
|
|
9
|
-
- Lazy load navigation bar thumbnails
|
10
|
-
([#1117](https://github.com/codevise/pageflow/pull/1117))
|
11
|
-
- Ensure entries can be filtered by publication date
|
12
|
-
([#1118](https://github.com/codevise/pageflow/pull/1118))
|
13
|
-
- Add missing Active Admin translations for filters
|
14
|
-
([#1119](https://github.com/codevise/pageflow/pull/1119))
|
15
|
-
- Ignore storyline order error in js specs
|
16
|
-
([#1120](https://github.com/codevise/pageflow/pull/1120))
|
17
|
-
- Add typography theme vars for first page of chapter
|
18
|
-
([#1121](https://github.com/codevise/pageflow/pull/1121))
|
19
|
-
- Display text tracks at the top if waveform is present
|
20
|
-
([#1122](https://github.com/codevise/pageflow/pull/1122))
|
21
|
-
|
22
18
|
See
|
23
|
-
[13-
|
19
|
+
[13-3-stable branch](https://github.com/codevise/pageflow/blob/13-3-stable/CHANGELOG.md)
|
24
20
|
for previous changes.
|
@@ -1,10 +1,14 @@
|
|
1
1
|
pageflow.ready = new $.Deferred(function(readyDeferred) {
|
2
|
+
var pagePreloaded = new $.Deferred(function(pagePreloadedDeferred) {
|
3
|
+
$(document).one('pagepreloaded', pagePreloadedDeferred.resolve);
|
4
|
+
}).promise();
|
5
|
+
|
2
6
|
window.onload = function() {
|
3
7
|
pageflow.browser.detectFeatures().then(function() {
|
4
8
|
var slideshow = $('[data-role=slideshow]');
|
5
9
|
var body = $('body');
|
6
10
|
|
7
|
-
|
11
|
+
pagePreloaded.then(function() {
|
8
12
|
readyDeferred.resolve();
|
9
13
|
pageflow.events.trigger('ready');
|
10
14
|
});
|
@@ -1,7 +1,8 @@
|
|
1
|
-
|
1
|
+
// scss-lint:disable VendorPrefix
|
2
2
|
|
3
3
|
@mixin mask-bottom {
|
4
|
-
|
4
|
+
// Safari 12 requires CORS headers for cross origin mask images
|
5
|
+
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAfQCAYAAAAD0DWNAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIaCRgIHOV+XQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABNSURBVGje7cwxDsJQDETBh79y//NCEShSgRSUPtOM1lrbVe+pAgAAAAAAAAAAAAAAAADcmn2q11TP73R1PF35KS5c/P9ypFVtq3pUzQdYvjO9lSdVBgAAAABJRU5ErkJggg==);
|
5
6
|
-webkit-mask-position: bottom left;
|
6
7
|
-webkit-mask-repeat: repeat-x;
|
7
8
|
}
|
@@ -10,11 +10,16 @@ module Pageflow
|
|
10
10
|
@scopes = []
|
11
11
|
@sort_columns = []
|
12
12
|
@blank_slate_text = options[:blank_slate_text]
|
13
|
+
@model = options[:model]
|
13
14
|
super()
|
14
15
|
end
|
15
16
|
|
16
17
|
def scope(*args)
|
17
|
-
|
18
|
+
options = args.extract_options!
|
19
|
+
title = args[0]
|
20
|
+
method = args[1]
|
21
|
+
options[:localizer] ||= ActiveAdmin::Localizers::ResourceLocalizer.new(@model&.model_name)
|
22
|
+
scopes << ActiveAdmin::Scope.new(title, method, options)
|
18
23
|
end
|
19
24
|
|
20
25
|
def table_for_collection(options = {}, &block)
|
@@ -49,7 +54,7 @@ module Pageflow
|
|
49
54
|
end
|
50
55
|
|
51
56
|
def scoped_collection
|
52
|
-
current_scope ? base_collection.send(current_scope.
|
57
|
+
current_scope ? base_collection.send(current_scope.scope_method) : base_collection
|
53
58
|
end
|
54
59
|
|
55
60
|
def current_scope
|
data/lib/pageflow/version.rb
CHANGED
@@ -514,7 +514,9 @@
|
|
514
514
|
* HTML5 Audio Player
|
515
515
|
* @constructor
|
516
516
|
*/
|
517
|
-
HTML5AudioPlayer = function () {
|
517
|
+
HTML5AudioPlayer = function (options) {
|
518
|
+
this.options = options;
|
519
|
+
};
|
518
520
|
|
519
521
|
HTML5AudioPlayer.prototype = {
|
520
522
|
/**
|
@@ -534,6 +536,10 @@
|
|
534
536
|
this.audio.autobuffer = true;
|
535
537
|
this.audio.playbackRate = this._rate;
|
536
538
|
|
539
|
+
if (this.options.loop) {
|
540
|
+
this.audio.setAttribute('loop', 'true');
|
541
|
+
}
|
542
|
+
|
537
543
|
this.audio.setAttribute('crossorigin', 'anonymous');
|
538
544
|
|
539
545
|
this.bindEvents();
|
@@ -887,7 +893,7 @@
|
|
887
893
|
for (i = 0, l = this.settings.codecs.length; i < l; i++) {
|
888
894
|
codec = this.settings.codecs[i];
|
889
895
|
if (Audio5js.can_play(codec)) {
|
890
|
-
player = new HTML5AudioPlayer();
|
896
|
+
player = new HTML5AudioPlayer(this.settings);
|
891
897
|
this.settings.use_flash = false;
|
892
898
|
this.settings.player = {
|
893
899
|
engine: 'html',
|
@@ -899,7 +905,7 @@
|
|
899
905
|
if (player === undefined) {
|
900
906
|
// here we double check for mp3 support instead of defaulting to Flash in case user overrode the settings.codecs array with an empty array.
|
901
907
|
this.settings.use_flash = !Audio5js.can_play('mp3');
|
902
|
-
player = this.settings.use_flash ? new FlashAudioPlayer() : new HTML5AudioPlayer();
|
908
|
+
player = this.settings.use_flash ? new FlashAudioPlayer() : new HTML5AudioPlayer(this.settings);
|
903
909
|
this.settings.player = {
|
904
910
|
engine: (this.settings.use_flash ? 'flash' : 'html'),
|
905
911
|
codec: 'mp3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.
|
4
|
+
version: 13.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -920,7 +920,6 @@ files:
|
|
920
920
|
- app/assets/images/pageflow/themes/default/logo_header.png
|
921
921
|
- app/assets/images/pageflow/themes/default/logo_header_invert.png
|
922
922
|
- app/assets/images/pageflow/themes/default/logo_print.png
|
923
|
-
- app/assets/images/pageflow/themes/default/mask_bottom.png
|
924
923
|
- app/assets/images/pageflow/themes/default/menu_sprite.png
|
925
924
|
- app/assets/images/pageflow/themes/default/mobile_navigation/imprint_sprite.png
|
926
925
|
- app/assets/images/pageflow/themes/default/mobile_navigation/index_sprite.png
|
Binary file
|