pageflow 12.6.0 → 13.0.0.beta1
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 +78 -16
- data/README.md +8 -1
- data/Rakefile +0 -4
- data/admins/pageflow/accounts.rb +6 -9
- data/admins/pageflow/entry.rb +1 -1
- data/admins/pageflow/folder.rb +1 -1
- data/admins/pageflow/user.rb +4 -4
- data/app/assets/javascripts/pageflow/asset_urls.js.erb +1 -1
- data/app/assets/javascripts/pageflow/audio/multi_player.js +0 -4
- data/app/assets/javascripts/pageflow/audio_player.js +1 -1
- data/app/assets/javascripts/pageflow/base.js +0 -2
- data/app/assets/javascripts/pageflow/browser/agent.js +78 -92
- data/app/assets/javascripts/pageflow/browser/autoplay_support.js +2 -2
- data/app/assets/javascripts/pageflow/browser/video.js +1 -6
- data/app/assets/javascripts/pageflow/dist/react.js +1100 -2209
- data/app/assets/javascripts/pageflow/editor/models/configuration.js +5 -5
- data/app/assets/javascripts/pageflow/editor/templates/background_positioning_sliders.jst.ejs +0 -8
- data/app/assets/javascripts/pageflow/editor/views/background_positioning_sliders_view.js +23 -37
- data/app/assets/javascripts/pageflow/editor/views/background_positioning_view.js +2 -2
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/video.js +1 -1
- data/app/assets/javascripts/pageflow/editor/views/edit_widget_view.js +0 -9
- data/app/assets/javascripts/pageflow/jquery_utils.js +0 -10
- data/app/assets/javascripts/pageflow/media_player.js +3 -7
- data/app/assets/javascripts/pageflow/media_player/catch_play_promise.js +23 -0
- data/app/assets/javascripts/pageflow/media_player/volume_binding.js +1 -2
- data/app/assets/javascripts/pageflow/media_player/volume_fading/web_audio.js +24 -73
- data/app/assets/javascripts/pageflow/ready.js +1 -2
- data/app/assets/javascripts/pageflow/seed_entry_data.js +3 -3
- data/app/assets/javascripts/pageflow/slideshow.js +9 -17
- data/app/assets/javascripts/pageflow/slideshow/adjacent_pages.js +4 -9
- data/app/assets/javascripts/pageflow/slideshow/{successor_preparer.js → adjacent_preparer.js} +11 -14
- data/app/assets/javascripts/pageflow/slideshow/atmo.js +12 -23
- data/app/assets/javascripts/pageflow/slideshow/lazy_page_widget.js +2 -2
- data/app/assets/javascripts/pageflow/slideshow/progressive_preload.js +42 -0
- data/app/assets/javascripts/pageflow/ui/views/configuration_editor_view.js +2 -2
- data/app/assets/javascripts/pageflow/video_player/filter_sources.js +2 -16
- data/app/assets/javascripts/pageflow/video_player/lazy.js +1 -1
- data/app/assets/javascripts/pageflow/visited.js +0 -2
- data/app/assets/javascripts/pageflow/widgets.js +0 -1
- data/app/assets/javascripts/pageflow/widgets/multimedia_alert.js +1 -2
- data/app/assets/javascripts/pageflow/widgets/navigation.js +0 -1
- data/app/assets/javascripts/pageflow/widgets/navigation_mobile.js +0 -1
- data/app/assets/javascripts/pageflow/widgets/overview.js +1 -3
- data/app/assets/stylesheets/pageflow/admin.scss +2 -0
- data/app/assets/stylesheets/pageflow/admin/status_tags.scss +13 -0
- data/app/assets/stylesheets/pageflow/editor/background_positioning.scss +10 -34
- data/app/assets/stylesheets/pageflow/navigation_bar.scss +4 -0
- data/app/assets/stylesheets/pageflow/page_types/video.scss +4 -1
- data/app/assets/stylesheets/pageflow/themes/default/anchors.scss +0 -5
- data/app/assets/stylesheets/pageflow/themes/default/base.scss +0 -2
- data/app/assets/stylesheets/pageflow/themes/default/overview/icons/icon_font.scss +1 -4
- data/app/assets/stylesheets/pageflow/themes/default/page.scss +0 -19
- data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +0 -4
- data/app/assets/stylesheets/pageflow/themes/default/slideshow.scss +0 -1
- data/app/controllers/concerns/pageflow/edit_locking.rb +2 -2
- data/app/controllers/concerns/pageflow/public_https_mode.rb +1 -5
- data/app/controllers/concerns/pageflow/quota_verification.rb +1 -1
- data/app/controllers/pageflow/application_controller.rb +2 -2
- data/app/controllers/pageflow/chapters_controller.rb +2 -2
- data/app/controllers/pageflow/edit_locks_controller.rb +1 -1
- data/app/controllers/pageflow/editor/encoding_confirmations_controller.rb +1 -1
- data/app/controllers/pageflow/editor/entries_controller.rb +1 -1
- data/app/controllers/pageflow/editor/entry_publications_controller.rb +1 -1
- data/app/controllers/pageflow/editor/files_controller.rb +1 -1
- data/app/controllers/pageflow/entries_controller.rb +5 -11
- data/app/controllers/pageflow/files_controller.rb +1 -1
- data/app/controllers/pageflow/pages_controller.rb +2 -2
- data/app/controllers/pageflow/revisions_controller.rb +1 -1
- data/app/controllers/pageflow/storylines_controller.rb +2 -3
- data/app/helpers/pageflow/common_entry_seed_helper.rb +0 -1
- data/app/helpers/pageflow/entries_helper.rb +6 -31
- data/app/helpers/pageflow/entry_json_seed_helper.rb +1 -1
- data/app/helpers/pageflow/public_i18n_helper.rb +1 -6
- data/app/jobs/pageflow/application_job.rb +6 -0
- data/app/jobs/pageflow/poll_meta_data_from_zencoder_job.rb +2 -4
- data/app/jobs/pageflow/poll_zencoder_job.rb +8 -8
- data/app/jobs/pageflow/process_file_job.rb +4 -4
- data/app/jobs/pageflow/prune_auto_snapshots_job.rb +3 -3
- data/app/jobs/pageflow/request_meta_data_from_zencoder_job.rb +4 -4
- data/app/jobs/pageflow/submit_file_to_zencoder_job.rb +4 -4
- data/app/jobs/pageflow/upload_file_to_s3_job.rb +5 -5
- data/app/mailers/pageflow/user_mailer.rb +1 -15
- data/app/models/concerns/pageflow/uploaded_file.rb +3 -3
- data/app/models/pageflow/audio_file.rb +1 -1
- data/app/models/pageflow/chapter.rb +1 -1
- data/app/models/pageflow/entry.rb +1 -1
- data/app/models/pageflow/invited_user.rb +1 -1
- data/app/models/pageflow/membership.rb +4 -2
- data/app/models/pageflow/page.rb +1 -1
- data/app/models/pageflow/published_entry.rb +3 -4
- data/app/models/pageflow/revision.rb +5 -3
- data/app/models/pageflow/storyline.rb +5 -1
- data/app/models/pageflow/theming.rb +1 -2
- data/app/models/pageflow/used_file.rb +12 -0
- data/app/models/pageflow/video_file.rb +1 -1
- data/app/views/admin/accounts/_form.html.erb +0 -8
- data/app/views/admin/accounts/_theming_details.html.arb +0 -3
- data/app/views/pageflow/entries/_mobile_navigation.html.erb +3 -2
- data/app/views/pageflow/entries/navigation/_page.html.erb +1 -3
- data/app/views/pageflow/entries/overview/_page.html.erb +1 -1
- data/app/views/pageflow/entry_json_seed/_entry.json.jbuilder +1 -1
- data/app/views/pageflow/user_mailer/invitation.html.erb +2 -2
- data/app/views/pageflow/user_mailer/invitation.text.erb +1 -1
- data/config/locales/de.yml +6 -16
- data/config/locales/en.yml +8 -18
- data/config/routes.rb +0 -6
- data/db/migrate/20140418225525_setup_schema.rb +295 -203
- data/db/migrate/20140418240000_add_attributes_to_users.rb +3 -6
- data/lib/generators/pageflow/resque/resque_generator.rb +6 -3
- data/lib/pageflow.rb +1 -1
- data/lib/pageflow/ability_mixin.rb +0 -1
- data/lib/pageflow/active_admin_patches/views/attributes_table.rb +1 -1
- data/lib/pageflow/active_admin_patches/views/table_for.rb +1 -1
- data/lib/pageflow/built_in_widget_type.rb +0 -8
- data/lib/pageflow/built_in_widget_types_plugin.rb +0 -2
- data/lib/pageflow/configuration.rb +0 -10
- data/lib/pageflow/engine.rb +5 -9
- data/lib/pageflow/user_mixin.rb +5 -0
- data/lib/pageflow/version.rb +1 -1
- data/lib/tasks/pageflow_tasks.rake +1 -11
- data/spec/factories/accounts.rb +1 -1
- data/spec/factories/audio_files.rb +1 -1
- data/spec/factories/chapters.rb +1 -3
- data/spec/factories/edit_locks.rb +2 -4
- data/spec/factories/entries.rb +1 -1
- data/spec/factories/feature_targets.rb +1 -1
- data/spec/factories/file_usages.rb +1 -1
- data/spec/factories/folders.rb +1 -1
- data/spec/factories/hosted_files.rb +6 -6
- data/spec/factories/image_files.rb +1 -1
- data/spec/factories/invited_user.rb +1 -1
- data/spec/factories/memberships.rb +1 -1
- data/spec/factories/pages.rb +1 -1
- data/spec/factories/revisions.rb +1 -1
- data/spec/factories/storylines.rb +1 -1
- data/spec/factories/text_track_files.rb +1 -1
- data/spec/factories/themings.rb +1 -1
- data/spec/factories/users.rb +1 -1
- data/spec/factories/video_files.rb +1 -1
- data/spec/factories/widgets.rb +1 -1
- data/vendor/assets/javascripts/audio5.min.js +129 -280
- metadata +103 -219
- data/app/assets/audios/pageflow/unmute.mp3 +0 -0
- data/app/assets/javascripts/pageflow/background_media.js +0 -22
- data/app/assets/javascripts/pageflow/cookie_notice.js +0 -7
- data/app/assets/javascripts/pageflow/editor/views/info_box_view.js +0 -8
- data/app/assets/javascripts/pageflow/editor/views/widget_types/cookie_notice_bar.js +0 -15
- data/app/assets/javascripts/pageflow/media_player/handle_failed_play.js +0 -34
- data/app/assets/javascripts/pageflow/slideshow/adjacent_preloader.js +0 -26
- data/app/assets/stylesheets/pageflow/page_types/video/mobile_poster.scss +0 -15
- data/app/assets/stylesheets/pageflow/themes/default/background_media_unmute_button.scss +0 -77
- data/app/assets/stylesheets/pageflow/themes/default/cookie_notice_bar.scss +0 -57
- data/app/assets/stylesheets/pageflow/themes/default/page/hyphenate.scss +0 -24
- data/app/controllers/pageflow/admin/initial_passwords_controller.rb +0 -8
- data/app/views/pageflow/admin/initial_passwords/edit.html.erb +0 -16
- data/app/views/pageflow/entries/mobile_navigation/_page.html.erb +0 -5
- data/db/migrate/20140624135420_create_themings.rb +0 -15
- data/db/migrate/20140624135421_create_themings_for_existing_accounts.rb +0 -26
- data/db/migrate/20140624135422_change_theme_references_to_theming_references.rb +0 -45
- data/db/migrate/20140624135423_remove_attributes_from_themes.rb +0 -10
- data/db/migrate/20140624135424_create_accounts_themes_join_table.rb +0 -8
- data/db/migrate/20140624135425_move_cname_from_account_to_theming.rb +0 -21
- data/db/migrate/20140625184800_drop_themes.rb +0 -14
- data/db/migrate/20140704110631_add_confirmed_by_to_encoded_files.rb +0 -6
- data/db/migrate/20140819081454_add_home_url_attributes_to_themings_and_revisions.rb +0 -9
- data/db/migrate/20141027102310_create_widgets.rb +0 -11
- data/db/migrate/20141028125408_add_emphasize_chapter_beginning_to_revisions.rb +0 -5
- data/db/migrate/20141119164526_add_emphasize_new_pages_to_revisions.rb +0 -5
- data/db/migrate/20141119174032_add_sharing_image_to_revisions.rb +0 -7
- data/db/migrate/20141128150305_add_locale_to_users.rb +0 -5
- data/db/migrate/20141208161030_add_locale_to_revisions.rb +0 -5
- data/db/migrate/20141211110226_add_configuration_to_chapters.rb +0 -5
- data/db/migrate/20150115175116_add_features_configuration_to_accounts.rb +0 -5
- data/db/migrate/20150115175207_add_features_configuration_to_entries.rb +0 -5
- data/db/migrate/20150603091823_add_password_attributes_to_revisions.rb +0 -6
- data/db/migrate/20150825133449_update_audio_loop_pages_to_use_atmo.rb +0 -24
- data/db/migrate/20150826125417_create_pageflow_storylines.rb +0 -12
- data/db/migrate/20150826125744_add_storyline_id_to_chapters.rb +0 -6
- data/db/migrate/20150826125745_insert_main_storylines.rb +0 -28
- data/db/migrate/20150830105831_remove_revision_id_from_chapters.rb +0 -5
- data/db/migrate/20150830110006_remove_entry_id_from_chapters.rb +0 -5
- data/db/migrate/20151022080518_add_first_published_at_to_entries.rb +0 -14
- data/db/migrate/20160131222203_add_cache_counters.rb +0 -23
- data/db/migrate/20160201130118_add_additional_cnames_to_themings.rb +0 -5
- data/db/migrate/20160216130336_add_meta_fields_to_revision.rb +0 -7
- data/db/migrate/20160225075853_add_overview_button_enabled_to_revisions.rb +0 -5
- data/db/migrate/20160304072911_rename_membership_entry_and_make_polymorphic.rb +0 -19
- data/db/migrate/20160304151327_add_role_to_membership.rb +0 -19
- data/db/migrate/20160310080213_add_edited_at_to_entries.rb +0 -9
- data/db/migrate/20160425192648_add_index_for_revision_publication_timestamps.rb +0 -5
- data/db/migrate/20160504093145_replace_role_and_account_on_user.rb +0 -42
- data/db/migrate/20160531152500_update_users_count.rb +0 -27
- data/db/migrate/20160617123557_add_meta_fields_to_theming.rb +0 -7
- data/db/migrate/20160707125400_add_output_presences_to_video_files.rb +0 -5
- data/db/migrate/20160715105408_add_share_url_to_revisions.rb +0 -5
- data/db/migrate/20160824115000_add_parent_file_to_video_files.rb +0 -8
- data/db/migrate/20160824115100_add_parent_file_to_audio_files.rb +0 -8
- data/db/migrate/20160824115200_add_parent_file_to_image_files.rb +0 -8
- data/db/migrate/20160929102700_add_configuration_to_files.rb +0 -7
- data/db/migrate/20161007144500_add_text_track_files.rb +0 -31
- data/db/migrate/20161216175734_move_configuration_from_file_to_file_usage.rb +0 -27
- data/db/migrate/20161230144429_add_processed_attachment_to_text_track_files.rb +0 -8
- data/db/migrate/20170201074328_add_configuration_to_widgets.rb +0 -5
- data/db/migrate/20170222124848_update_video_file_output_presences.rb +0 -12
- data/db/migrate/20170315130000_add_theme_name_to_revisions.rb +0 -12
- data/db/migrate/20170421112300_turn_background_video_pages_into_background_image_pages.rb +0 -22
- data/db/migrate/20170912165050_reset_copied_snapshot_type.rb +0 -24
- data/db/migrate/20170913105048_fix_hls_output_presences_for_legacy_video_files.rb +0 -12
- data/db/migrate/20180528144334_add_privacy_link_url_to_themings.rb +0 -5
- data/db/migrate/20190109085744_add_default_locale_to_themings.rb +0 -6
- data/lib/generators/pageflow/resque/templates/devise_async.rb +0 -6
- data/lib/generators/pageflow/resque/templates/resque_logger.rb +0 -16
- data/lib/generators/pageflow/resque/templates/resque_mailer.rb +0 -4
- data/lib/pageflow/primary_domain_entry_redirect.rb +0 -25
Binary file
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Mute feature settings for background media (ATMO and background videos)
|
3
|
-
*
|
4
|
-
* @since 12.3
|
5
|
-
*/
|
6
|
-
pageflow.backgroundMedia = {
|
7
|
-
muted: false,
|
8
|
-
|
9
|
-
unmute: function() {
|
10
|
-
if (this.muted) {
|
11
|
-
this.muted = false;
|
12
|
-
pageflow.events.trigger('background_media:unmute');
|
13
|
-
}
|
14
|
-
},
|
15
|
-
|
16
|
-
mute: function() {
|
17
|
-
if (!this.muted) {
|
18
|
-
this.muted = true;
|
19
|
-
pageflow.events.trigger('background_media:mute');
|
20
|
-
}
|
21
|
-
}
|
22
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
pageflow.editor.widgetTypes.registerRole('cookie_notice', {
|
2
|
-
isOptional: true
|
3
|
-
});
|
4
|
-
|
5
|
-
pageflow.editor.widgetTypes.register('cookie_notice_bar', {
|
6
|
-
configurationEditorView: pageflow.ConfigurationEditorView.extend({
|
7
|
-
configure: function() {
|
8
|
-
this.tab('cookie_notice_bar', function() {
|
9
|
-
this.view(pageflow.InfoBoxView, {
|
10
|
-
text: I18n.t('pageflow.editor.cookie_notice_bar.widget_type_info_box_text')
|
11
|
-
});
|
12
|
-
});
|
13
|
-
}
|
14
|
-
})
|
15
|
-
});
|
@@ -1,34 +0,0 @@
|
|
1
|
-
pageflow.mediaPlayer.handleFailedPlay = function(player, options) {
|
2
|
-
var originalPlay = player.play;
|
3
|
-
|
4
|
-
player.play = function(/* arguments */) {
|
5
|
-
var result = originalPlay.apply(player, arguments);
|
6
|
-
|
7
|
-
if (result && typeof result.catch !== 'undefined') {
|
8
|
-
return result.catch(function(e) {
|
9
|
-
if (e.name === 'NotAllowedError' && options.hasAutoplaySupport) {
|
10
|
-
if (options.fallbackToMutedAutoplay) {
|
11
|
-
player.muted(true);
|
12
|
-
|
13
|
-
return originalPlay.apply(player, arguments).then(
|
14
|
-
function() {
|
15
|
-
player.trigger('playmuted');
|
16
|
-
},
|
17
|
-
function() {
|
18
|
-
player.trigger('playfailed');
|
19
|
-
}
|
20
|
-
);
|
21
|
-
}
|
22
|
-
else {
|
23
|
-
player.trigger('playfailed');
|
24
|
-
}
|
25
|
-
}
|
26
|
-
else {
|
27
|
-
pageflow.log('Caught play exception for video.');
|
28
|
-
}
|
29
|
-
});
|
30
|
-
}
|
31
|
-
|
32
|
-
return result;
|
33
|
-
};
|
34
|
-
};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
//= require ./adjacent_pages
|
2
|
-
|
3
|
-
pageflow.AdjacentPreloader = pageflow.Object.extend({
|
4
|
-
initialize: function(adjacentPages) {
|
5
|
-
this.adjacentPages = adjacentPages;
|
6
|
-
},
|
7
|
-
|
8
|
-
attach: function(events) {
|
9
|
-
this.listenTo(events, 'page:change', this.preloadAdjacent);
|
10
|
-
},
|
11
|
-
|
12
|
-
preloadAdjacent: function(page) {
|
13
|
-
_(this.adjacentPages.of(page)).each(function(page) {
|
14
|
-
page.preload();
|
15
|
-
});
|
16
|
-
}
|
17
|
-
});
|
18
|
-
|
19
|
-
pageflow.AdjacentPreloader.create = function(pages, scrollNavigator) {
|
20
|
-
return new pageflow.AdjacentPreloader(
|
21
|
-
new pageflow.AdjacentPages(
|
22
|
-
pages,
|
23
|
-
scrollNavigator
|
24
|
-
)
|
25
|
-
);
|
26
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
.videoPage .background_image {
|
2
|
-
display: none;
|
3
|
-
}
|
4
|
-
|
5
|
-
.has_phone_platform {
|
6
|
-
// Show mobile poster only on phone platform
|
7
|
-
.videoPage .background_image {
|
8
|
-
display: block;
|
9
|
-
}
|
10
|
-
|
11
|
-
// But not while playing inline (e.g. on Android)
|
12
|
-
&.has_no_native_video_player .videoPage.should_play .background_image {
|
13
|
-
display: none;
|
14
|
-
}
|
15
|
-
}
|
@@ -1,77 +0,0 @@
|
|
1
|
-
$background-media-unmute-button-color: rgba(53, 53, 53, 0.9) !default;
|
2
|
-
|
3
|
-
$background-media-unmute-button-shadow-color: #ccc !default;
|
4
|
-
|
5
|
-
$background-media-unmute-button-icon-color: #ddd !default;
|
6
|
-
|
7
|
-
$background-media-unmute-button-icon-size: 24px !default;
|
8
|
-
|
9
|
-
$background-media-unmute-button-size: 34px !default;
|
10
|
-
|
11
|
-
$background-media-unmute-button-margin: 10px !default;
|
12
|
-
|
13
|
-
$background-media-unmute-button-custom-image: false !default;
|
14
|
-
|
15
|
-
.background_media_unmute_button {
|
16
|
-
position: absolute;
|
17
|
-
top: 26px;
|
18
|
-
right: 25px;
|
19
|
-
width: $background-media-unmute-button-size + $background-media-unmute-button-margin;
|
20
|
-
height: $background-media-unmute-button-size + $background-media-unmute-button-margin;
|
21
|
-
|
22
|
-
@extend %pageflow_widget_margin_right_max !optional;
|
23
|
-
@extend %pageflow_widget_margin_top !optional;
|
24
|
-
|
25
|
-
@include mobile {
|
26
|
-
top: 70px;
|
27
|
-
right: 11px;
|
28
|
-
}
|
29
|
-
|
30
|
-
@if not $background-media-unmute-button-custom-image {
|
31
|
-
&:after {
|
32
|
-
content: "";
|
33
|
-
display: block;
|
34
|
-
position: absolute;
|
35
|
-
top: 6px;
|
36
|
-
left: 6px;
|
37
|
-
width: $background-media-unmute-button-size;
|
38
|
-
height: $background-media-unmute-button-size;
|
39
|
-
border-radius: $background-media-unmute-button-size / 2;
|
40
|
-
background-color: $background-media-unmute-button-color;
|
41
|
-
@include box-shadow(0 0 7px $background-media-unmute-button-shadow-color);
|
42
|
-
z-index: 1;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
a {
|
47
|
-
display: block;
|
48
|
-
width: 100%;
|
49
|
-
height: 100%;
|
50
|
-
z-index: 2;
|
51
|
-
|
52
|
-
@if $background-media-unmute-button-custom-image {
|
53
|
-
background-image: image-url("pageflow/themes/#{$theme-name}/background_media_unmute_button.svg");
|
54
|
-
background-size: $background-media-unmute-button-size
|
55
|
-
$background-media-unmute-button-size;
|
56
|
-
background-repeat: no-repeat;
|
57
|
-
background-position: 50% 50%;
|
58
|
-
} @else {
|
59
|
-
position: relative;
|
60
|
-
@include background-icon-center($color: $background-media-unmute-button-icon-color,
|
61
|
-
$font-size: $background-media-unmute-button-icon-size);
|
62
|
-
@include fa-volume-down-icon;
|
63
|
-
|
64
|
-
&:after {
|
65
|
-
content: "";
|
66
|
-
display: block;
|
67
|
-
position: absolute;
|
68
|
-
width: 25px;
|
69
|
-
left: 22px;
|
70
|
-
top: 22px;
|
71
|
-
border-top: solid 2px $background-media-unmute-button-icon-color;
|
72
|
-
border-bottom: solid 1px $background-media-unmute-button-color;
|
73
|
-
@include transform(translate(-50%, -50%) rotate(45deg));
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
/// Color of the cookie notice bar
|
2
|
-
$cookie-notice-bar-background-color: rgba(20, 20, 20, 0.9);
|
3
|
-
|
4
|
-
/// Color of the text inside cookie notice bar
|
5
|
-
$cookie-notice-bar-text-color: #fff;
|
6
|
-
|
7
|
-
$cookie-notice-bar-link-text-color: $main-color;
|
8
|
-
|
9
|
-
$cookie-notice-bar-typography: ();
|
10
|
-
|
11
|
-
$cookie-notice-bar-dismiss-button-background-color: $main-color-dark;
|
12
|
-
|
13
|
-
$cookie-notice-bar-dismiss-button-text-color: #fff;
|
14
|
-
|
15
|
-
.cookie_notice_bar {
|
16
|
-
position: absolute;
|
17
|
-
bottom: 0;
|
18
|
-
left: 0;
|
19
|
-
right: 0;
|
20
|
-
background-color: $cookie-notice-bar-background-color;
|
21
|
-
color: $cookie-notice-bar-text-color;
|
22
|
-
padding: 10px 20px;
|
23
|
-
z-index: 2;
|
24
|
-
|
25
|
-
@include standard-typography(
|
26
|
-
$cookie-notice-bar-typography
|
27
|
-
);
|
28
|
-
|
29
|
-
&-content {
|
30
|
-
@extend %pageflow_widget_margin_right_max !optional;
|
31
|
-
}
|
32
|
-
|
33
|
-
&-text {
|
34
|
-
margin-top: 10px;
|
35
|
-
margin-bottom: 10px;
|
36
|
-
display: inline-block;
|
37
|
-
|
38
|
-
a {
|
39
|
-
color: $cookie-notice-bar-link-text-color;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
&-dismiss {
|
44
|
-
background-color: $cookie-notice-bar-dismiss-button-background-color;
|
45
|
-
color: $cookie-notice-bar-dismiss-button-text-color;
|
46
|
-
border-radius: 3px;
|
47
|
-
float: right;
|
48
|
-
margin-top: 5px;
|
49
|
-
padding: 5px 10px;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
@include pageflow-widget-margin("cookie_notice_bar_visible", "bottom") {
|
54
|
-
@include desktop {
|
55
|
-
margin-bottom: 60px;
|
56
|
-
}
|
57
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/// Let browser break words in header.
|
2
|
-
///
|
3
|
-
/// - `"narrow"`: Only allow hyphenating words when header is narrow,
|
4
|
-
/// i.e. in portrait phone layout.
|
5
|
-
///
|
6
|
-
/// - `"always"`: Always break words
|
7
|
-
///
|
8
|
-
/// - `"never"`: Never break words
|
9
|
-
$page-hyphenate-header: "narrow" !default;
|
10
|
-
|
11
|
-
.page {
|
12
|
-
h2 {
|
13
|
-
@if $page-hyphenate-header == "always" {
|
14
|
-
|
15
|
-
hyphens: auto;
|
16
|
-
|
17
|
-
} @else if $page-hyphenate-header == "narrow" {
|
18
|
-
|
19
|
-
@include phone_portrait {
|
20
|
-
hyphens: auto;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<div id="login">
|
2
|
-
<h2><%= render_or_call_method_or_proc_on(self, active_admin_application.site_title) %> - <%= title t('pageflow.initial_password.title') %></h2>
|
3
|
-
|
4
|
-
<%= devise_error_messages! %>
|
5
|
-
<%= active_admin_form_for(resource, as: resource_name, url: admin_initial_password_path, html: { method: :put }) do |f|
|
6
|
-
f.inputs do
|
7
|
-
f.input :password
|
8
|
-
f.input :password_confirmation
|
9
|
-
f.input :reset_password_token, as: :hidden, input_html: { value: resource.reset_password_token }
|
10
|
-
end
|
11
|
-
f.actions do
|
12
|
-
f.action :submit, label: t('pageflow.initial_password.submit'), button_html: { value: t('pageflow.initial_password.submit') }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
%>
|
16
|
-
</div>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class CreateThemings < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :pageflow_themings do |t|
|
4
|
-
t.string :imprint_link_url
|
5
|
-
t.string :imprint_link_label
|
6
|
-
t.string :copyright_link_url
|
7
|
-
t.string :copyright_link_label
|
8
|
-
|
9
|
-
t.belongs_to :account
|
10
|
-
t.belongs_to :theme
|
11
|
-
|
12
|
-
t.timestamps
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
class CreateThemingsForExistingAccounts < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
# For each account create a theming. Copy link attributes from
|
4
|
-
# theme to theming. Store account_id on theming so we can identify
|
5
|
-
# it as the accounts default_theming later on.
|
6
|
-
execute(<<-SQL)
|
7
|
-
INSERT INTO pageflow_themings
|
8
|
-
(account_id, theme_id, imprint_link_label, imprint_link_url, copyright_link_label, copyright_link_url, created_at, updated_at)
|
9
|
-
SELECT a.id, default_theme_id, imprint_link_label, imprint_link_url, copyright_link_label, copyright_link_url, a.created_at, a.updated_at
|
10
|
-
FROM pageflow_accounts AS a
|
11
|
-
LEFT JOIN pageflow_themes AS t ON t.id = a.default_theme_id;
|
12
|
-
SQL
|
13
|
-
end
|
14
|
-
|
15
|
-
def down
|
16
|
-
# Copy link attributes back to themes.
|
17
|
-
execute(<<-SQL)
|
18
|
-
UPDATE pageflow_themes AS t
|
19
|
-
LEFT JOIN pageflow_themings AS g ON g.theme_id = t.id
|
20
|
-
SET t.imprint_link_label = g.imprint_link_label,
|
21
|
-
t.imprint_link_url = g.imprint_link_url,
|
22
|
-
t.copyright_link_label = g.copyright_link_label,
|
23
|
-
t.copyright_link_url = g.copyright_link_url
|
24
|
-
SQL
|
25
|
-
end
|
26
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
class ChangeThemeReferencesToThemingReferences < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
add_reference :pageflow_accounts, :default_theming, :index => true
|
4
|
-
add_reference :pageflow_entries, :theming, :index => true
|
5
|
-
|
6
|
-
# Use theming created for account as default_theming.
|
7
|
-
execute(<<-SQL)
|
8
|
-
UPDATE pageflow_accounts SET default_theming_id =
|
9
|
-
(SELECT id FROM pageflow_themings where pageflow_accounts.id = pageflow_themings.account_id LIMIT 1);
|
10
|
-
SQL
|
11
|
-
|
12
|
-
# Use default theming from entry's account as theming
|
13
|
-
execute(<<-SQL)
|
14
|
-
UPDATE pageflow_entries SET theming_id =
|
15
|
-
(SELECT default_theming_id FROM pageflow_accounts where pageflow_accounts.id = pageflow_entries.account_id);
|
16
|
-
SQL
|
17
|
-
|
18
|
-
remove_reference :pageflow_accounts, :default_theme
|
19
|
-
remove_reference :pageflow_entries, :theme
|
20
|
-
end
|
21
|
-
|
22
|
-
def down
|
23
|
-
add_reference :pageflow_accounts, :default_theme, :index => true
|
24
|
-
add_reference :pageflow_entries, :theme, :index => true
|
25
|
-
|
26
|
-
# Set default_theme_id to theme_id of account's default_theming.
|
27
|
-
execute(<<-SQL)
|
28
|
-
UPDATE pageflow_accounts SET default_theme_id =
|
29
|
-
(SELECT id FROM pageflow_themes where pageflow_themes.id =
|
30
|
-
(SELECT theme_id FROM pageflow_themings
|
31
|
-
WHERE pageflow_accounts.default_theming_id = pageflow_themings.id LIMIT 1));
|
32
|
-
SQL
|
33
|
-
|
34
|
-
# Set theme_id to theme_id of entries's theming.
|
35
|
-
execute(<<-SQL)
|
36
|
-
UPDATE pageflow_entries SET theme_id =
|
37
|
-
(SELECT id FROM pageflow_themes where pageflow_themes.id =
|
38
|
-
(SELECT theme_id FROM pageflow_themings
|
39
|
-
WHERE pageflow_entries.theming_id = pageflow_themings.id LIMIT 1));
|
40
|
-
SQL
|
41
|
-
|
42
|
-
remove_reference :pageflow_accounts, :default_theming
|
43
|
-
remove_reference :pageflow_entries, :theming
|
44
|
-
end
|
45
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class RemoveAttributesFromThemes < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
remove_column :pageflow_themes, :copyright_link_url, :string
|
4
|
-
remove_column :pageflow_themes, :copyright_link_label, :string
|
5
|
-
remove_column :pageflow_themes, :imprint_link_url, :string
|
6
|
-
remove_column :pageflow_themes, :imprint_link_label, :string
|
7
|
-
|
8
|
-
rename_column :pageflow_themes, :name, :css_dir
|
9
|
-
end
|
10
|
-
end
|