pageflow 0.11.4 → 12.0.0.rc1
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 +224 -1207
- data/README.md +7 -3
- data/Rakefile +2 -0
- data/admins/pageflow/accounts.rb +27 -8
- data/admins/pageflow/entry.rb +130 -47
- data/admins/pageflow/folder.rb +28 -17
- data/admins/pageflow/membership.rb +58 -6
- data/admins/pageflow/user.rb +105 -98
- data/app/assets/fonts/pageflow/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/fontawesome-webfont.svg +644 -463
- data/app/assets/fonts/pageflow/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.svg +2864 -696
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.svg +2572 -613
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.svg +2977 -779
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/javascripts/pageflow/admin/entries.js +21 -3
- data/app/assets/javascripts/pageflow/audio.js +30 -15
- data/app/assets/javascripts/pageflow/audio/multi_player.js +12 -1
- data/app/assets/javascripts/pageflow/audio_player.js +15 -1
- data/app/assets/javascripts/pageflow/audio_player/rewind_method.js +3 -1
- data/app/assets/javascripts/pageflow/base.js +4 -1
- data/app/assets/javascripts/pageflow/browser.js +3 -0
- data/app/assets/javascripts/pageflow/browser/autoplay_support.js +3 -0
- data/app/assets/javascripts/pageflow/browser/facebook.js +1 -2
- data/app/assets/javascripts/pageflow/browser/ios_platform.js +5 -0
- data/app/assets/javascripts/pageflow/browser/video.js +4 -0
- data/app/assets/javascripts/pageflow/components.js +7 -0
- data/app/assets/javascripts/pageflow/cookies.js +1 -4
- data/app/assets/javascripts/pageflow/dist/react.js +4724 -5808
- data/app/assets/javascripts/pageflow/editor/api.js +201 -161
- data/app/assets/javascripts/pageflow/editor/api/errors.js +80 -0
- data/app/assets/javascripts/pageflow/editor/api/failure.js +9 -0
- data/app/assets/javascripts/pageflow/editor/api/failures.js +25 -2
- data/app/assets/javascripts/pageflow/editor/api/file_type.js +42 -3
- data/app/assets/javascripts/pageflow/editor/api/file_types.js +75 -46
- data/app/assets/javascripts/pageflow/editor/base.js +8 -0
- data/app/assets/javascripts/pageflow/editor/collections/file_types_collection.js +37 -0
- data/app/assets/javascripts/pageflow/editor/collections/files_collection.js +32 -1
- data/app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js +1 -1
- data/app/assets/javascripts/pageflow/editor/collections/multi_collection.js +4 -6
- data/app/assets/javascripts/pageflow/editor/collections/nested_files_collection.js +27 -0
- data/app/assets/javascripts/pageflow/editor/collections/pages_collection.js +21 -1
- data/app/assets/javascripts/pageflow/editor/collections/subset_collection.js +8 -2
- data/app/assets/javascripts/pageflow/editor/controllers/sidebar_controller.js +3 -2
- data/app/assets/javascripts/pageflow/editor/initializers/error_listener.js +10 -5
- data/app/assets/javascripts/pageflow/editor/initializers/routing.js +3 -1
- data/app/assets/javascripts/pageflow/editor/initializers/setup_collections.js +3 -0
- data/app/assets/javascripts/pageflow/editor/initializers/setup_file_types.js +136 -6
- data/app/assets/javascripts/pageflow/editor/initializers/setup_file_uploader.js +10 -0
- data/app/assets/javascripts/pageflow/editor/initializers/setup_hotkeys.js +5 -7
- data/app/assets/javascripts/pageflow/editor/initializers/stylesheet_reloading.js +1 -1
- data/app/assets/javascripts/pageflow/editor/models/configuration.js +1 -0
- data/app/assets/javascripts/pageflow/editor/models/entry.js +34 -26
- data/app/assets/javascripts/pageflow/editor/models/file_configuration.js +10 -0
- data/app/assets/javascripts/pageflow/editor/models/file_reuse.js +23 -0
- data/app/assets/javascripts/pageflow/editor/models/file_uploader.js +69 -0
- data/app/assets/javascripts/pageflow/editor/models/mixins/retryable.js +1 -1
- data/app/assets/javascripts/pageflow/editor/models/page.js +13 -0
- data/app/assets/javascripts/pageflow/editor/models/text_track_file.js +48 -0
- data/app/assets/javascripts/pageflow/editor/models/uploaded_file.js +62 -11
- data/app/assets/javascripts/pageflow/editor/routers/sidebar_router.js +1 -0
- data/app/assets/javascripts/pageflow/editor/templates/confirm_upload.jst.ejs +18 -0
- data/app/assets/javascripts/pageflow/editor/templates/delete_row_table_cell.jst.ejs +1 -0
- data/app/assets/javascripts/pageflow/editor/templates/drop_down_button.jst.ejs +0 -2
- data/app/assets/javascripts/pageflow/editor/templates/drop_down_button_item.jst.ejs +1 -0
- data/app/assets/javascripts/pageflow/editor/templates/edit_entry.jst.ejs +3 -1
- data/app/assets/javascripts/pageflow/editor/templates/edit_file.jst.ejs +0 -0
- data/app/assets/javascripts/pageflow/editor/templates/file_item.jst.ejs +1 -6
- data/app/assets/javascripts/pageflow/editor/templates/file_meta_data_item_value_view.jst.ejs +3 -0
- data/app/assets/javascripts/pageflow/editor/templates/file_settings_dialog.jst.ejs +10 -0
- data/app/assets/javascripts/pageflow/editor/templates/files_blank_slate.jst.ejs +1 -1
- data/app/assets/javascripts/pageflow/editor/templates/filtered_files.jst.ejs +10 -0
- data/app/assets/javascripts/pageflow/{ui → editor}/templates/inputs/file_input.jst.ejs +1 -1
- data/app/assets/javascripts/pageflow/editor/templates/inputs/reference.jst.ejs +2 -2
- data/app/assets/javascripts/pageflow/editor/templates/nested_files.jst.ejs +1 -0
- data/app/assets/javascripts/pageflow/editor/templates/table_cell.jst.ejs +0 -0
- data/app/assets/javascripts/pageflow/editor/templates/text_tracks.jst.ejs +13 -0
- data/app/assets/javascripts/pageflow/editor/templates/uploadable_files.jst.ejs +1 -0
- data/app/assets/javascripts/pageflow/editor/utils/form_data_utils.js +19 -0
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/audio.js +5 -2
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/background_image.js +3 -2
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/background.js +35 -0
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/options.js +7 -9
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/video.js +6 -5
- data/app/assets/javascripts/pageflow/editor/views/confirm_upload_view.js +69 -0
- data/app/assets/javascripts/pageflow/editor/views/confirmable_file_item_view.js +1 -1
- data/app/assets/javascripts/pageflow/editor/views/drop_down_button_item_list_view.js +9 -0
- data/app/assets/javascripts/pageflow/editor/views/drop_down_button_item_view.js +14 -1
- data/app/assets/javascripts/pageflow/editor/views/drop_down_button_view.js +51 -20
- data/app/assets/javascripts/pageflow/editor/views/edit_entry_view.js +21 -2
- data/app/assets/javascripts/pageflow/editor/views/edit_file_view.js +52 -0
- data/app/assets/javascripts/pageflow/editor/views/edit_storyline_view.js +1 -1
- data/app/assets/javascripts/pageflow/editor/views/entry_preview_view.js +15 -7
- data/app/assets/javascripts/pageflow/editor/views/file_item_view.js +33 -22
- data/app/assets/javascripts/pageflow/editor/views/file_meta_data_item_value_view.js +49 -0
- data/app/assets/javascripts/pageflow/editor/views/file_meta_data_item_view.js +16 -5
- data/app/assets/javascripts/pageflow/editor/views/file_settings_dialog_view.js +31 -0
- data/app/assets/javascripts/pageflow/editor/views/files_explorer_view.js +6 -7
- data/app/assets/javascripts/pageflow/editor/views/files_view.js +13 -14
- data/app/assets/javascripts/pageflow/editor/views/filtered_files_view.js +75 -0
- data/app/assets/javascripts/pageflow/editor/views/help_view.js +3 -0
- data/app/assets/javascripts/pageflow/editor/views/inputs/file_input_view.js +217 -0
- data/app/assets/javascripts/pageflow/editor/views/inputs/page_link_input_view.js +6 -0
- data/app/assets/javascripts/pageflow/editor/views/inputs/reference_input_view.js +13 -2
- data/app/assets/javascripts/pageflow/editor/views/list_view.js +24 -14
- data/app/assets/javascripts/pageflow/editor/views/model_thumbnail_view.js +4 -1
- data/app/assets/javascripts/pageflow/editor/views/nested_files_view.js +94 -0
- data/app/assets/javascripts/pageflow/editor/views/page_preview_view.js +7 -2
- data/app/assets/javascripts/pageflow/editor/views/text_file_meta_data_item_value_view.js +25 -0
- data/app/assets/javascripts/pageflow/editor/views/text_tracks_file_meta_data_item_value_view.js +12 -0
- data/app/assets/javascripts/pageflow/editor/views/text_tracks_view.js +65 -0
- data/app/assets/javascripts/pageflow/editor/views/uploadable_files_view.js +56 -0
- data/app/assets/javascripts/pageflow/editor/views/uploader_view.js +13 -10
- data/app/assets/javascripts/pageflow/features.js +8 -12
- data/app/assets/javascripts/pageflow/focus_outline.js +2 -0
- data/app/assets/javascripts/pageflow/media_player/volume_binding.js +2 -0
- data/app/assets/javascripts/pageflow/media_player/volume_fading.js +6 -0
- data/app/assets/javascripts/pageflow/page_type.js +0 -1
- data/app/assets/javascripts/pageflow/phone_landscape_fullscreen.js +34 -0
- data/app/assets/javascripts/pageflow/react.js +4 -0
- data/app/assets/javascripts/pageflow/ready.js +3 -0
- data/app/assets/javascripts/pageflow/seed_entry_data.js +4 -1
- data/app/assets/javascripts/pageflow/slideshow.js +1 -0
- data/app/assets/javascripts/pageflow/slideshow/adjacent_preparer.js +7 -5
- data/app/assets/javascripts/pageflow/slideshow/atmo.js +3 -3
- data/app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js +4 -2
- data/app/assets/javascripts/pageflow/slideshow/hide_text.js +8 -4
- data/app/assets/javascripts/pageflow/slideshow/lazy_page_widget.js +5 -0
- data/app/assets/javascripts/pageflow/slideshow/scroller_widget.js +11 -18
- data/app/assets/javascripts/pageflow/ui.js +6 -0
- data/app/assets/javascripts/pageflow/ui/templates/inputs/url_display.jst.ejs +7 -0
- data/app/assets/javascripts/pageflow/ui/templates/table.jst.ejs +7 -0
- data/app/assets/javascripts/pageflow/ui/templates/table_blank_slate.jst.ejs +3 -0
- data/app/assets/javascripts/pageflow/ui/utils/i18n_utils.js +97 -2
- data/app/assets/javascripts/pageflow/ui/views/collection_view.js +8 -1
- data/app/assets/javascripts/pageflow/ui/views/inputs/check_box_input_view.js +12 -1
- data/app/assets/javascripts/pageflow/ui/views/inputs/proxy_url_input_view.js +51 -5
- data/app/assets/javascripts/pageflow/ui/views/inputs/select_input_view.js +80 -2
- data/app/assets/javascripts/pageflow/ui/views/inputs/slider_input_view.js +8 -1
- data/app/assets/javascripts/pageflow/ui/views/inputs/text_area_input_view.js +17 -1
- data/app/assets/javascripts/pageflow/ui/views/inputs/text_input_view.js +47 -4
- data/app/assets/javascripts/pageflow/ui/views/inputs/url_display_view.js +42 -0
- data/app/assets/javascripts/pageflow/ui/views/inputs/url_input_view.js +20 -2
- data/app/assets/javascripts/pageflow/ui/views/mixins/input_view.js +74 -46
- data/app/assets/javascripts/pageflow/ui/views/table_cells/delete_row_table_cell_view.js +63 -0
- data/app/assets/javascripts/pageflow/ui/views/table_cells/enum_table_cell_view.js +26 -0
- data/app/assets/javascripts/pageflow/ui/views/table_cells/icon_table_cell_view.js +40 -0
- data/app/assets/javascripts/pageflow/ui/views/table_cells/presence_table_cell_view.js +31 -0
- data/app/assets/javascripts/pageflow/ui/views/table_cells/table_cell_view.js +101 -0
- data/app/assets/javascripts/pageflow/ui/views/table_cells/table_header_cell_view.js +10 -0
- data/app/assets/javascripts/pageflow/ui/views/table_cells/text_table_cell_view.js +46 -0
- data/app/assets/javascripts/pageflow/ui/views/table_row_view.js +47 -0
- data/app/assets/javascripts/pageflow/ui/views/table_view.js +47 -0
- data/app/assets/javascripts/pageflow/video_player.js +9 -5
- data/app/assets/javascripts/pageflow/video_player/buffer_underrun_waiting.js +15 -13
- data/app/assets/javascripts/pageflow/video_player/cue_settings_methods.js +33 -0
- data/app/assets/javascripts/pageflow/video_player/dash.js +3 -0
- data/app/assets/javascripts/pageflow/video_player/filter_sources.js +1 -1
- data/app/assets/javascripts/pageflow/video_player/lazy.js +3 -9
- data/app/assets/javascripts/pageflow/video_player/prebuffering.js +11 -2
- data/app/assets/javascripts/pageflow/video_player/use_slim_controls_during_phone_playback.js +16 -0
- data/app/assets/javascripts/pageflow/videojs.js +6 -0
- data/app/assets/javascripts/pageflow/widgets.js +41 -7
- data/app/assets/stylesheets/pageflow/admin.scss +7 -4
- data/app/assets/stylesheets/pageflow/admin/{entries/user_badge_list.scss → badge_list.scss} +6 -9
- data/app/assets/stylesheets/pageflow/admin/embed_code.scss +13 -0
- data/app/assets/stylesheets/pageflow/admin/entries.scss +1 -2
- data/app/assets/stylesheets/pageflow/admin/hint.scss +20 -0
- data/app/assets/stylesheets/pageflow/admin/tooltip_bubble.scss +34 -0
- data/app/assets/stylesheets/pageflow/editor/base.scss +4 -4
- data/app/assets/stylesheets/pageflow/editor/confirm_upload.scss +66 -0
- data/app/assets/stylesheets/pageflow/editor/dialogs.scss +9 -1
- data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +56 -20
- data/app/assets/stylesheets/pageflow/editor/file_meta_data.scss +26 -6
- data/app/assets/stylesheets/pageflow/editor/file_settings_dialog.scss +32 -0
- data/app/assets/stylesheets/pageflow/editor/files.scss +5 -0
- data/app/assets/stylesheets/pageflow/editor/filtered_files.scss +25 -0
- data/app/assets/stylesheets/pageflow/editor/inputs.scss +2 -1
- data/app/assets/stylesheets/pageflow/editor/inputs/file_input.scss +65 -0
- data/app/assets/stylesheets/pageflow/editor/inputs/reference.scss +2 -2
- data/app/assets/stylesheets/pageflow/editor/text_tracks.scss +39 -0
- data/app/assets/stylesheets/pageflow/entries.scss +1 -0
- data/app/assets/stylesheets/pageflow/mixins/buttons.scss +77 -5
- data/app/assets/stylesheets/pageflow/mixins/icons/fontawesome.scss +3 -1
- data/app/assets/stylesheets/pageflow/page_types.scss +0 -4
- data/app/assets/stylesheets/pageflow/page_types/video.scss +5 -1
- data/app/assets/stylesheets/pageflow/page_types/video/content_hiding.scss +1 -0
- data/app/assets/stylesheets/pageflow/themes/default/base.scss +1 -0
- data/app/assets/stylesheets/pageflow/themes/default/built_in_page_types.scss +0 -2
- data/app/assets/stylesheets/pageflow/themes/default/definitions.scss +1 -0
- data/app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss +31 -12
- data/app/assets/stylesheets/pageflow/themes/default/logo.scss +9 -1
- data/app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss +8 -2
- data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +21 -0
- data/app/assets/stylesheets/pageflow/themes/default/mixins/cue_margins.scss +43 -0
- data/app/assets/stylesheets/pageflow/themes/default/mixins/indicator_typography.scss +7 -3
- data/app/assets/stylesheets/pageflow/themes/default/page.scss +20 -2
- data/app/assets/stylesheets/pageflow/themes/default/player_controls.scss +4 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic.scss +4 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/container.scss +8 -6
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/control_bar.scss +18 -3
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/cue_margins.scss +1 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/icons/custom.scss +14 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/icons/icon_font.scss +4 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/icons/sprite.scss +4 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/info_box.scss +2 -2
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/menu_bar.scss +5 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/shared/menu_bar.scss +121 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim.scss +2 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/container.scss +2 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/control_bar.scss +74 -12
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/cue_margins.scss +3 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/info_box.scss +31 -5
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/menu_bar.scss +13 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/quality_menu.scss +116 -0
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/vjs_mapping.scss +13 -3
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/widget_margins.scss +8 -3
- data/app/assets/stylesheets/pageflow/themes/default/text_track_cues.scss +25 -0
- data/app/assets/stylesheets/pageflow/themes/default/variables/widgets.scss +2 -2
- data/app/assets/stylesheets/pageflow/themes/default/video_player/vjs_base.scss +122 -79
- data/app/assets/stylesheets/pageflow/themes/default/video_wrapper.scss +16 -7
- data/app/assets/stylesheets/pageflow/ui.scss +5 -1
- data/app/assets/stylesheets/pageflow/ui/forms.scss +5 -58
- data/app/assets/stylesheets/pageflow/ui/table_cells/delete_row_table_cell.scss +7 -0
- data/app/assets/stylesheets/pageflow/ui/table_cells/icon_table_cell.scss +16 -0
- data/app/assets/stylesheets/pageflow/ui/table_cells/presence_table_cell.scss +8 -0
- data/app/assets/stylesheets/pageflow/ui/table_view.scss +33 -0
- data/app/assets/stylesheets/pageflow/ui/tooltip.scss +1 -1
- data/app/controllers/pageflow/editor/encoding_confirmations_controller.rb +3 -3
- data/app/controllers/pageflow/editor/entry_publications_controller.rb +3 -3
- data/app/controllers/pageflow/editor/files_controller.rb +72 -14
- data/app/controllers/pageflow/editor/widgets_controller.rb +1 -1
- data/app/controllers/pageflow/entries_controller.rb +12 -2
- data/app/controllers/pageflow/files_controller.rb +1 -1
- data/app/helpers/pageflow/admin/entries_helper.rb +17 -0
- data/app/helpers/pageflow/admin/form_helper.rb +1 -1
- data/app/helpers/pageflow/admin/memberships_helper.rb +117 -13
- data/app/helpers/pageflow/common_entry_seed_helper.rb +36 -5
- data/app/helpers/pageflow/embed_code_helper.rb +32 -0
- data/app/helpers/pageflow/entries_helper.rb +1 -1
- data/app/helpers/pageflow/entry_json_seed_helper.rb +6 -16
- data/app/helpers/pageflow/files_helper.rb +5 -2
- data/app/helpers/pageflow/folders_helper.rb +26 -2
- data/app/helpers/pageflow/page_background_asset_helper.rb +8 -0
- data/app/helpers/pageflow/quota_helper.rb +1 -1
- data/app/helpers/pageflow/video_files_helper.rb +0 -5
- data/app/jobs/pageflow/poll_zencoder_job.rb +1 -1
- data/app/jobs/pageflow/process_file_job.rb +18 -0
- data/app/mailers/pageflow/user_mailer.rb +4 -2
- data/app/models/concerns/pageflow/hosted_file.rb +9 -0
- data/app/models/concerns/pageflow/output_source.rb +60 -0
- data/app/models/concerns/pageflow/uploaded_file.rb +33 -5
- data/app/models/pageflow/account.rb +3 -1
- data/app/models/pageflow/audio_file_url_templates.rb +21 -0
- data/app/models/pageflow/draft_entry.rb +19 -9
- data/app/models/pageflow/entry.rb +2 -1
- data/app/models/pageflow/entry_duplicate.rb +2 -2
- data/app/models/pageflow/entry_role_query.rb +81 -0
- data/app/models/pageflow/file_reuse.rb +25 -0
- data/app/models/pageflow/file_usage.rb +7 -1
- data/app/models/pageflow/image_file.rb +7 -1
- data/app/models/pageflow/image_file_url_templates.rb +19 -0
- data/app/models/pageflow/invited_user.rb +2 -0
- data/app/models/pageflow/membership.rb +46 -3
- data/app/models/pageflow/published_entry.rb +2 -2
- data/app/models/pageflow/revision.rb +16 -5
- data/app/models/pageflow/roles.rb +36 -0
- data/app/models/pageflow/text_track_file.rb +45 -0
- data/app/models/pageflow/text_track_file_url_templates.rb +16 -0
- data/app/models/pageflow/thumbnail_file_resolver.rb +22 -2
- data/app/models/pageflow/url_template.rb +13 -0
- data/app/models/pageflow/used_file.rb +21 -0
- data/app/models/pageflow/video_file.rb +72 -27
- data/app/models/pageflow/video_file_url_templates.rb +34 -0
- data/app/policies/pageflow/account_policy.rb +145 -0
- data/app/policies/pageflow/admin/admin_only_tab_policy.rb +16 -0
- data/app/policies/pageflow/admin/entry_tab_policy.rb +25 -0
- data/app/policies/pageflow/application_policy.rb +11 -0
- data/app/policies/pageflow/entry_policy.rb +138 -0
- data/app/policies/pageflow/file_policy.rb +42 -0
- data/app/policies/pageflow/folder_policy.rb +54 -0
- data/app/policies/pageflow/membership_policy.rb +105 -0
- data/app/policies/pageflow/theming_policy.rb +57 -0
- data/app/policies/pageflow/user_policy.rb +69 -0
- data/app/state_machines/pageflow/encoded_file_state_machine.rb +4 -0
- data/app/state_machines/pageflow/image_file_state_machine.rb +5 -1
- data/app/views/admin/entries/_attributes_table.html.arb +21 -2
- data/app/views/admin/entries/_links.html.arb +1 -1
- data/app/views/admin/memberships/_entity_account_input.html.erb +5 -0
- data/app/views/admin/memberships/_entity_entry_input.html.erb +5 -0
- data/app/views/admin/memberships/_form.html.erb +16 -5
- data/app/views/admin/memberships/_role_hint.html.arb +2 -0
- data/app/views/admin/users/_form.html.erb +29 -20
- data/app/views/components/pageflow/admin/add_membership_button_if_needed.rb +62 -0
- data/app/views/components/pageflow/admin/embed_code_field.rb +15 -0
- data/app/views/components/pageflow/admin/entry_user_badge_list.rb +15 -7
- data/app/views/components/pageflow/admin/grouped_folder_list.rb +20 -16
- data/app/views/components/pageflow/admin/members_tab.rb +22 -11
- data/app/views/components/pageflow/admin/membership_role_with_tooltip.rb +21 -0
- data/app/views/components/pageflow/admin/tabs_view.rb +13 -13
- data/app/views/components/pageflow/admin/user_account_badge_list.rb +43 -0
- data/app/views/components/pageflow/admin/user_accounts_tab.rb +46 -0
- data/app/views/components/pageflow/admin/user_entries_tab.rb +50 -0
- data/app/views/components/pageflow/admin/users_tab.rb +32 -4
- data/app/views/layouts/pageflow/application.html.erb +3 -2
- data/app/views/pageflow/config/_editor_seeds.json.jbuilder +15 -2
- data/app/views/pageflow/editor/entries/_entry.json.jbuilder +1 -0
- data/app/views/pageflow/editor/files/_file.json.jbuilder +10 -2
- data/app/views/pageflow/entries/show.css.erb +4 -11
- data/app/views/pageflow/entries/show.json.jbuilder +1 -1
- data/app/views/pageflow/entry_json_seed/_entry.json.jbuilder +19 -0
- data/app/views/pageflow/file_types/_thumbnails.css.erb +1 -1
- data/app/views/pageflow/files/_file.json.jbuilder +12 -0
- data/app/views/pageflow/page_background_asset/_element.html.erb +3 -0
- data/app/views/pageflow/page_types/_page_type.json.jbuilder +7 -0
- data/app/views/pageflow/react/_widget.html.erb +1 -0
- data/app/views/pageflow/react/page.html.erb +6 -0
- data/app/views/pageflow/video_files/_video_file.json.jbuilder +2 -0
- data/config/initializers/admin_resource_tabs.rb +8 -1
- data/config/initializers/features.rb +1 -4
- data/config/initializers/help_entries.rb +2 -1
- data/config/initializers/paperclip.rb +4 -0
- data/config/initializers/zencoder.rb +5 -2
- data/config/locales/de.yml +370 -108
- data/config/locales/en.yml +333 -83
- data/config/routes.rb +18 -10
- data/db/migrate/20150825133449_update_audio_loop_pages_to_use_atmo.rb +24 -0
- data/db/migrate/20160304072911_rename_membership_entry_and_make_polymorphic.rb +19 -0
- data/db/migrate/20160304151327_add_role_to_membership.rb +19 -0
- data/db/migrate/20160504093145_replace_role_and_account_on_user.rb +42 -0
- data/db/migrate/20160531152500_update_users_count.rb +27 -0
- data/db/migrate/20160707125400_add_output_presences_to_video_files.rb +5 -0
- data/db/migrate/20160824115000_add_parent_file_to_video_files.rb +8 -0
- data/db/migrate/20160824115100_add_parent_file_to_audio_files.rb +8 -0
- data/db/migrate/20160824115200_add_parent_file_to_image_files.rb +8 -0
- data/db/migrate/20160929102700_add_configuration_to_files.rb +7 -0
- data/db/migrate/20161007144500_add_text_track_files.rb +31 -0
- data/db/migrate/20161216175734_move_configuration_from_file_to_file_usage.rb +27 -0
- data/db/migrate/20161230144429_add_processed_attachment_to_text_track_files.rb +8 -0
- data/db/migrate/20170222124848_update_video_file_output_presences.rb +12 -0
- data/db/migrate/20170421112300_turn_background_video_pages_into_background_image_pages.rb +22 -0
- data/lib/generators/pageflow/assets/assets_generator.rb +2 -0
- data/lib/generators/pageflow/assets/templates/components.js +4 -0
- data/lib/generators/pageflow/initializer/templates/pageflow.rb +23 -20
- data/lib/generators/pageflow/seeds/templates/seeds.rb +81 -15
- data/lib/pageflow.rb +8 -0
- data/lib/pageflow/ability_mixin.rb +196 -62
- data/lib/pageflow/admin/tab.rb +21 -0
- data/lib/pageflow/admin/tabs.rb +31 -6
- data/lib/pageflow/built_in_file_type.rb +39 -0
- data/lib/pageflow/built_in_page_types_plugin.rb +80 -0
- data/lib/pageflow/configuration.rb +13 -1
- data/lib/pageflow/engine.rb +6 -1
- data/lib/pageflow/file_type.rb +60 -15
- data/lib/pageflow/file_types.rb +20 -2
- data/lib/pageflow/page_type.rb +53 -4
- data/lib/pageflow/page_types.rb +4 -0
- data/lib/pageflow/paperclip_processors/vtt.rb +35 -0
- data/lib/pageflow/react.rb +11 -0
- data/lib/pageflow/react/page_type.rb +26 -0
- data/lib/pageflow/react/widget_type.rb +20 -0
- data/lib/pageflow/seeds.rb +59 -15
- data/lib/pageflow/user_mixin.rb +18 -25
- data/lib/pageflow/version.rb +1 -1
- data/lib/pageflow/zencoder_api.rb +18 -4
- data/lib/pageflow/zencoder_video_output_definition.rb +375 -127
- data/lib/tasks/pageflow_tasks.rake +7 -0
- data/spec/factories/accounts.rb +36 -3
- data/spec/factories/entries.rb +22 -4
- data/spec/factories/invited_user.rb +3 -4
- data/spec/factories/memberships.rb +34 -2
- data/spec/factories/text_track_files.rb +40 -0
- data/spec/factories/users.rb +32 -7
- data/spec/factories/video_files.rb +7 -1
- data/spec/fixtures/sample.srt +12 -0
- data/spec/fixtures/sample.vtt +40 -0
- data/vendor/assets/javascripts/dash.all.min.js +14 -0
- data/vendor/assets/javascripts/polyfills/bind.js +17 -11
- data/vendor/assets/javascripts/videojs-dash.js +302 -0
- data/vendor/assets/javascripts/videojs.js +26804 -0
- metadata +187 -49
- data/app/assets/images/pageflow/themes/default/page_type_pictograms/audio_loop/sprite.png +0 -0
- data/app/assets/images/pageflow/themes/default/page_type_pictograms/audio_loop/wide.png +0 -0
- data/app/assets/javascripts/pageflow/editor/collections/file_usages_collection.js +0 -21
- data/app/assets/javascripts/pageflow/editor/models/file_usage.js +0 -8
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/audio_loop.js +0 -20
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/background_video.js +0 -24
- data/app/assets/javascripts/pageflow/page_types/audio.js +0 -135
- data/app/assets/javascripts/pageflow/page_types/audio_loop.js +0 -102
- data/app/assets/javascripts/pageflow/page_types/background_image.js +0 -44
- data/app/assets/javascripts/pageflow/page_types/background_video.js +0 -137
- data/app/assets/javascripts/pageflow/page_types/video.js +0 -277
- data/app/assets/javascripts/pageflow/ui/views/inputs/file_input_view.js +0 -79
- data/app/assets/javascripts/pageflow/video_player/play_button_patch.js +0 -39
- data/app/assets/javascripts/pageflow/video_player/player_buffered_patch.js +0 -47
- data/app/assets/javascripts/pageflow/video_player/src_from_options_method.js +0 -31
- data/app/assets/stylesheets/pageflow/page_types/audio_loop.scss +0 -18
- data/app/assets/stylesheets/pageflow/page_types/background-video.scss +0 -50
- data/app/controllers/pageflow/editor/file_usages_controller.rb +0 -37
- data/app/jobs/pageflow/process_image_file_job.rb +0 -18
- data/app/views/pageflow/pages/templates/_audio.html.erb +0 -69
- data/app/views/pageflow/pages/templates/_audio_loop.html.erb +0 -34
- data/app/views/pageflow/pages/templates/_background_image.html.erb +0 -24
- data/app/views/pageflow/pages/templates/_background_video.html.erb +0 -32
- data/app/views/pageflow/pages/templates/_video.html.erb +0 -42
- data/lib/pageflow/built_in_page_type.rb +0 -79
@@ -1,18 +1,28 @@
|
|
1
|
+
$file-meta-data-label-color: #888 !default;
|
2
|
+
$file-meta-data-icon-link-color: #555 !default;
|
3
|
+
$file-meta-data-active-icon-link-color: #000 !default;
|
4
|
+
|
1
5
|
.file_meta_data {
|
2
6
|
margin-left: -65px;
|
7
|
+
white-space: normal;
|
3
8
|
|
4
9
|
table {
|
5
10
|
margin-bottom: 5px;
|
6
11
|
width: 100%;
|
7
12
|
}
|
8
13
|
|
14
|
+
th,
|
15
|
+
td {
|
16
|
+
vertical-align: top;
|
17
|
+
}
|
18
|
+
|
9
19
|
th {
|
10
20
|
width: 45px;
|
11
|
-
padding:
|
21
|
+
padding: 7px 20px 5px 0;
|
12
22
|
font-weight: normal;
|
13
23
|
text-align: right;
|
14
24
|
font-size: 11px;
|
15
|
-
color:
|
25
|
+
color: $file-meta-data-label-color;
|
16
26
|
}
|
17
27
|
|
18
28
|
td {
|
@@ -23,9 +33,19 @@
|
|
23
33
|
text-decoration: underline;
|
24
34
|
}
|
25
35
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
36
|
+
.edit {
|
37
|
+
@include background-icon-center($font-size: 15px,
|
38
|
+
$color: $file-meta-data-icon-link-color);
|
39
|
+
@include pencil-icon;
|
40
|
+
|
41
|
+
display: inline-block;
|
42
|
+
width: 20px;
|
43
|
+
height: 20px;
|
44
|
+
float: right;
|
45
|
+
margin-top: -2px;
|
46
|
+
|
47
|
+
&:hover {
|
48
|
+
@include background-icon-color($file-meta-data-active-icon-link-color);
|
49
|
+
}
|
30
50
|
}
|
31
51
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
&.file_settings_dialog {
|
2
|
+
.box {
|
3
|
+
position: absolute;
|
4
|
+
top: 20px;
|
5
|
+
left: 20px;
|
6
|
+
bottom: 20px;
|
7
|
+
right: 20px;
|
8
|
+
max-width: 1100px;
|
9
|
+
max-height: 800px;
|
10
|
+
background-color: #eee;
|
11
|
+
}
|
12
|
+
|
13
|
+
.content {
|
14
|
+
position: absolute;
|
15
|
+
top: 20px;
|
16
|
+
right: 20px;
|
17
|
+
bottom: 50px;
|
18
|
+
left: 20px;
|
19
|
+
overflow: auto;
|
20
|
+
}
|
21
|
+
|
22
|
+
.footer {
|
23
|
+
position: absolute;
|
24
|
+
right: 20px;
|
25
|
+
bottom: 10px;
|
26
|
+
left: 20px;
|
27
|
+
}
|
28
|
+
|
29
|
+
.edit_file {
|
30
|
+
max-width: 600px;
|
31
|
+
}
|
32
|
+
}
|
@@ -49,6 +49,7 @@ ul.files {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
|
52
|
+
a.settings,
|
52
53
|
a.cancel,
|
53
54
|
a.confirm,
|
54
55
|
a.remove,
|
@@ -56,6 +57,10 @@ ul.files {
|
|
56
57
|
@include icon-only-button(#aaa);
|
57
58
|
}
|
58
59
|
|
60
|
+
a.settings {
|
61
|
+
@include cog-icon;
|
62
|
+
}
|
63
|
+
|
59
64
|
a.remove {
|
60
65
|
@include trash-icon;
|
61
66
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.filtered_files {
|
2
|
+
position: relative;
|
3
|
+
|
4
|
+
&-banner {
|
5
|
+
display: block;
|
6
|
+
padding: 7px 10px;
|
7
|
+
margin: 0 -10px;
|
8
|
+
background-color: #f9f1b7;
|
9
|
+
border-top: solid 1px #e4dc9d;
|
10
|
+
border-bottom: solid 1px #e4dc9d;
|
11
|
+
}
|
12
|
+
|
13
|
+
&-filter_name {
|
14
|
+
font-weight: bold;
|
15
|
+
}
|
16
|
+
|
17
|
+
&-reset_filter {
|
18
|
+
@include background-icon-center;
|
19
|
+
@include cancel-icon;
|
20
|
+
|
21
|
+
position: absolute;
|
22
|
+
right: 7px;
|
23
|
+
top: 15px;
|
24
|
+
}
|
25
|
+
}
|
@@ -1 +1,2 @@
|
|
1
|
-
@import "./inputs/
|
1
|
+
@import "./inputs/file_input";
|
2
|
+
@import "./inputs/reference";
|
@@ -0,0 +1,65 @@
|
|
1
|
+
.file_input {
|
2
|
+
position: relative;
|
3
|
+
white-space: nowrap;
|
4
|
+
height: 80px;
|
5
|
+
|
6
|
+
.file_thumbnail {
|
7
|
+
width: 60px;
|
8
|
+
height: 60px;
|
9
|
+
vertical-align: bottom;
|
10
|
+
margin-right: 5px;
|
11
|
+
border: solid 1px #888;
|
12
|
+
}
|
13
|
+
|
14
|
+
div.file_thumbnail {
|
15
|
+
float: left;
|
16
|
+
}
|
17
|
+
|
18
|
+
div.file_name {
|
19
|
+
position: absolute;
|
20
|
+
top: 20px;
|
21
|
+
left: 70px;
|
22
|
+
right: 20px;
|
23
|
+
overflow: hidden;
|
24
|
+
}
|
25
|
+
|
26
|
+
a.choose {
|
27
|
+
@include icon-only-button;
|
28
|
+
@include pencil-icon;
|
29
|
+
|
30
|
+
position: absolute;
|
31
|
+
top: 53px;
|
32
|
+
right: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
a.unset {
|
36
|
+
@include icon-only-button($base-color: #d00);
|
37
|
+
@include cancel-circled-icon;
|
38
|
+
|
39
|
+
position: absolute;
|
40
|
+
top: 53px;
|
41
|
+
right: 35px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.drop_down_button {
|
45
|
+
button {
|
46
|
+
@include fa-ellipsis-v-icon;
|
47
|
+
width: 31px;
|
48
|
+
}
|
49
|
+
|
50
|
+
position: absolute;
|
51
|
+
top: 53px;
|
52
|
+
left: 70px;
|
53
|
+
}
|
54
|
+
|
55
|
+
.inline_help {
|
56
|
+
white-space: normal;
|
57
|
+
}
|
58
|
+
|
59
|
+
&.is_unset {
|
60
|
+
.unset,
|
61
|
+
.drop_down_button {
|
62
|
+
display: none;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -27,7 +27,7 @@
|
|
27
27
|
overflow: hidden;
|
28
28
|
}
|
29
29
|
|
30
|
-
|
30
|
+
.choose {
|
31
31
|
@include icon-only-button;
|
32
32
|
@include pencil-icon;
|
33
33
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
right: 0;
|
37
37
|
}
|
38
38
|
|
39
|
-
|
39
|
+
.unset {
|
40
40
|
@include icon-only-button($base-color: #d00);
|
41
41
|
@include cancel-circled-icon;
|
42
42
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.text_tracks {
|
2
|
+
$table-cell-color: #eee;
|
3
|
+
|
4
|
+
height: 700px;
|
5
|
+
|
6
|
+
.text_tracks_container {
|
7
|
+
background-color: #fff;
|
8
|
+
min-height: 100%;
|
9
|
+
}
|
10
|
+
|
11
|
+
.files_upload_panel {
|
12
|
+
position: absolute;
|
13
|
+
top: 60px;
|
14
|
+
right: 370px;
|
15
|
+
bottom: 50px;
|
16
|
+
left: 20px;
|
17
|
+
overflow: auto;
|
18
|
+
}
|
19
|
+
|
20
|
+
.selected_file_panel {
|
21
|
+
position: absolute;
|
22
|
+
right: 20px;
|
23
|
+
top: 60px;
|
24
|
+
width: 330px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.table_view {
|
28
|
+
width: 100%;
|
29
|
+
}
|
30
|
+
|
31
|
+
td {
|
32
|
+
background-color: $table-cell-color;
|
33
|
+
}
|
34
|
+
|
35
|
+
.upload {
|
36
|
+
position: relative;
|
37
|
+
top: 12px;
|
38
|
+
}
|
39
|
+
}
|
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
$icon-button-default-base-color: #6aacf7 !default;
|
2
|
+
|
3
|
+
@mixin icon-button($base-color: $icon-button-default-base-color) {
|
4
|
+
@include simple-button($base-color);
|
3
5
|
|
4
6
|
color: #fff;
|
5
7
|
padding-top: 5px;
|
@@ -13,8 +15,8 @@
|
|
13
15
|
}
|
14
16
|
}
|
15
17
|
|
16
|
-
@mixin icon-only-button($
|
17
|
-
@include button($
|
18
|
+
@mixin icon-only-button($base-color: $icon-button-default-base-color) {
|
19
|
+
@include simple-button($base-color);
|
18
20
|
|
19
21
|
padding-top: 5px;
|
20
22
|
padding-bottom: 4px;
|
@@ -25,4 +27,74 @@
|
|
25
27
|
font-size: 16px;
|
26
28
|
vertical-align: middle;
|
27
29
|
}
|
28
|
-
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin simple-button($base-color) {
|
33
|
+
$grayscale: $base-color == grayscale($base-color);
|
34
|
+
$color: hsl(0, 0, 100%);
|
35
|
+
$border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
36
|
+
$inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
|
37
|
+
$stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
|
38
|
+
$text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
|
39
|
+
|
40
|
+
@if lightness($base-color) > 70% {
|
41
|
+
$color: hsl(0, 0, 20%);
|
42
|
+
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
|
43
|
+
}
|
44
|
+
|
45
|
+
@if $grayscale == true {
|
46
|
+
$border: grayscale($border);
|
47
|
+
$inset-shadow: grayscale($inset-shadow);
|
48
|
+
$stop-gradient: grayscale($stop-gradient);
|
49
|
+
$text-shadow: grayscale($text-shadow);
|
50
|
+
}
|
51
|
+
|
52
|
+
border: 1px solid $border;
|
53
|
+
border-radius: 3px;
|
54
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow;
|
55
|
+
color: $color;
|
56
|
+
display: inline-block;
|
57
|
+
font-size: 11px;
|
58
|
+
font-weight: bold;
|
59
|
+
@include linear-gradient ($base-color, $stop-gradient);
|
60
|
+
padding: 7px 18px;
|
61
|
+
text-decoration: none;
|
62
|
+
text-shadow: 0 1px 0 $text-shadow;
|
63
|
+
background-clip: padding-box;
|
64
|
+
|
65
|
+
&:hover:not(:disabled):not(.disabled) {
|
66
|
+
$base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
|
67
|
+
$inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
|
68
|
+
$stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
|
69
|
+
|
70
|
+
@if $grayscale == true {
|
71
|
+
$base-color-hover: grayscale($base-color-hover);
|
72
|
+
$inset-shadow-hover: grayscale($inset-shadow-hover);
|
73
|
+
$stop-gradient-hover: grayscale($stop-gradient-hover);
|
74
|
+
}
|
75
|
+
|
76
|
+
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
|
77
|
+
cursor: pointer;
|
78
|
+
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
|
79
|
+
}
|
80
|
+
|
81
|
+
&:active:not(:disabled):not(.disabled) {
|
82
|
+
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
|
83
|
+
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
|
84
|
+
$inset-shadow: #eee;
|
85
|
+
|
86
|
+
@if $grayscale == true {
|
87
|
+
$border-active: grayscale($border-active);
|
88
|
+
$inset-shadow-active: grayscale($inset-shadow-active);
|
89
|
+
}
|
90
|
+
|
91
|
+
border: 1px solid $border-active;
|
92
|
+
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active, 0 1px 1px 0 $inset-shadow;
|
93
|
+
}
|
94
|
+
|
95
|
+
&:disabled,
|
96
|
+
&.disabled {
|
97
|
+
opacity: 0.5;
|
98
|
+
cursor: default;
|
99
|
+
}
|
100
|
+
}
|
@@ -517,4 +517,6 @@
|
|
517
517
|
@mixin fa-sliders-icon { @include fontawesome-icon("\f1de"); }
|
518
518
|
@mixin fa-share-alt-icon { @include fontawesome-icon("\f1e0"); }
|
519
519
|
@mixin fa-share-alt-square-icon { @include fontawesome-icon("\f1e1"); }
|
520
|
-
@mixin fa-bomb-icon { @include fontawesome-icon("\f1e2"); }
|
520
|
+
@mixin fa-bomb-icon { @include fontawesome-icon("\f1e2"); }
|
521
|
+
@mixin fa-deafness-icon { @include fontawesome-icon("\f2a4"); }
|
522
|
+
@mixin fa-low-vision-icon { @include fontawesome-icon("\f2a8"); }
|
@@ -1,11 +1,7 @@
|
|
1
1
|
@import "page_types/audio";
|
2
|
-
@import "page_types/audio_loop";
|
3
2
|
@import "page_types/background-image";
|
4
|
-
@import "page_types/background-video";
|
5
3
|
@import "page_types/video";
|
6
4
|
|
7
5
|
@include pageflow-page-type(audio);
|
8
|
-
@include pageflow-page-type(audio_loop);
|
9
6
|
@include pageflow-page-type(background_image);
|
10
|
-
@include pageflow-page-type(background_video);
|
11
7
|
@include pageflow-page-type(video);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@import "./video/content_hiding";
|
2
2
|
|
3
|
-
.
|
3
|
+
.has_native_video_player .page .videoPage .videoWrapper {
|
4
4
|
margin-right: 0;
|
5
5
|
position: initial;
|
6
6
|
height: 100%;
|
@@ -114,3 +114,7 @@
|
|
114
114
|
.js .non_js_video {
|
115
115
|
display: none;
|
116
116
|
}
|
117
|
+
|
118
|
+
.has_no_native_video_player .videoPage .background_image {
|
119
|
+
display: none;
|
120
|
+
}
|
@@ -1,5 +1,3 @@
|
|
1
1
|
@include pageflow-page-type-pictograms("background_image", "pageflow/themes/default/page_type_pictograms/background_image");
|
2
|
-
@include pageflow-page-type-pictograms("background_video", "pageflow/themes/default/page_type_pictograms/background_video");
|
3
2
|
@include pageflow-page-type-pictograms("video", "pageflow/themes/default/page_type_pictograms/video");
|
4
3
|
@include pageflow-page-type-pictograms("audio", "pageflow/themes/default/page_type_pictograms/audio");
|
5
|
-
@include pageflow-page-type-pictograms("audio_loop", "pageflow/themes/default/page_type_pictograms/audio_loop");
|
@@ -20,9 +20,19 @@ $loading-spinner-logo-height: 112px !default;
|
|
20
20
|
/// Spinner background color.
|
21
21
|
$loading-spinner-background-color: #3b5159 !default;
|
22
22
|
|
23
|
-
///
|
23
|
+
/// What to display behind the logo:
|
24
|
+
///
|
25
|
+
/// - `"glow"`: Display radial gradient (default).
|
26
|
+
/// - `"custom"`: Display `loading_spinner/background.png` image.
|
27
|
+
/// - `"none"`: Nothing
|
28
|
+
$loading-spinner-background: "glow" !default;
|
29
|
+
|
30
|
+
/// Radial gradient color.
|
24
31
|
$loading-spinner-glow-color: rgba(117, 149, 160, 0.8) !default;
|
25
32
|
|
33
|
+
/// Apply opacity animation to glow or background image.
|
34
|
+
$loading-spinner-animate-background: true !default;
|
35
|
+
|
26
36
|
@if not $custom-loading-spinner {
|
27
37
|
.loading_spinner {
|
28
38
|
// scss-lint:disable ImportantRule
|
@@ -32,21 +42,30 @@ $loading-spinner-glow-color: rgba(117, 149, 160, 0.8) !default;
|
|
32
42
|
// scss-lint:enable ImportantRule
|
33
43
|
|
34
44
|
&:before {
|
35
|
-
content: "";
|
36
|
-
@include radial-gradient(circle,
|
37
|
-
$loading-spinner-glow-color 0%,
|
38
|
-
$loading-spinner-background-color 140px);
|
39
45
|
background-position: 50% 50%;
|
40
46
|
background-repeat: no-repeat;
|
41
|
-
|
42
|
-
display: inline-block;
|
47
|
+
display: block;
|
43
48
|
height: 100%;
|
44
49
|
width: 100%;
|
45
|
-
|
46
|
-
@
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
+
|
51
|
+
@if $loading-spinner-background == "glow" {
|
52
|
+
content: "";
|
53
|
+
@include radial-gradient(circle,
|
54
|
+
$loading-spinner-glow-color 0%,
|
55
|
+
$loading-spinner-background-color 140px);
|
56
|
+
background-size: 100% 100%;
|
57
|
+
} @else if $loading-spinner-background == "custom" {
|
58
|
+
content: "";
|
59
|
+
background-image: image-url("pageflow/themes/#{$theme-name}/loading_spinner/background.png");
|
60
|
+
}
|
61
|
+
|
62
|
+
@if $loading-spinner-animate-background {
|
63
|
+
opacity: 0;
|
64
|
+
@include animation-name(loadingSpinnerGradientAnimation);
|
65
|
+
@include animation-duration(5s);
|
66
|
+
@include animation-iteration-count(infinite);
|
67
|
+
@include animation-timing-function(ease-in);
|
68
|
+
}
|
50
69
|
}
|
51
70
|
|
52
71
|
@include keyframes(loadingSpinnerGradientAnimation) {
|