pageflow 13.6.0 → 14.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 +72 -5
- data/app/assets/javascripts/pageflow/dist/react-client.js +22 -27
- data/app/assets/javascripts/pageflow/dist/react-server.js +22 -27
- data/app/assets/javascripts/pageflow/editor/collections/files_collection.js +0 -1
- data/app/assets/javascripts/pageflow/editor/models/file_uploader.js +3 -1
- data/app/assets/javascripts/pageflow/editor/models/hosted_file.js +2 -7
- data/app/assets/javascripts/pageflow/editor/models/image_file.js +1 -1
- data/app/assets/javascripts/pageflow/editor/models/uploaded_file.js +12 -10
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/general.js +4 -4
- data/app/assets/javascripts/pageflow/editor/views/uploader_view.js +18 -27
- data/app/assets/javascripts/pageflow/slideshow/page_split_layout.js +8 -8
- data/app/assets/javascripts/pageflow/slideshow/page_widget.js +1 -1
- data/app/assets/stylesheets/pageflow/delayed_text_fade_in.scss +10 -5
- data/app/assets/stylesheets/pageflow/editor/file_stages.scss +0 -4
- data/app/assets/stylesheets/pageflow/editor/file_thumbnails.scss +0 -4
- data/app/assets/stylesheets/pageflow/hide_text.scss +2 -2
- data/app/assets/stylesheets/pageflow/lt_ie9.scss +5 -5
- data/app/assets/stylesheets/pageflow/navigation_bar.scss +1 -0
- data/app/assets/stylesheets/pageflow/navigation_mobile.scss +4 -0
- data/app/assets/stylesheets/pageflow/page.scss +2 -2
- data/app/assets/stylesheets/pageflow/page_transitions/crossfade.scss +1 -1
- data/app/assets/stylesheets/pageflow/page_transitions/fade.scss +11 -11
- data/app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss +13 -10
- data/app/assets/stylesheets/pageflow/page_types/audio.scss +3 -3
- data/app/assets/stylesheets/pageflow/page_types/video.scss +9 -9
- data/app/assets/stylesheets/pageflow/page_types/video/content_hiding.scss +2 -2
- data/app/assets/stylesheets/pageflow/page_types/video/mobile_poster.scss +3 -3
- data/app/assets/stylesheets/pageflow/print_view.scss +8 -5
- data/app/assets/stylesheets/pageflow/slideshow.scss +6 -5
- data/app/assets/stylesheets/pageflow/themes/default/base.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/page.scss +3 -168
- data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +2 -2
- data/app/assets/stylesheets/pageflow/themes/default/page/content_text_margin.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/page/header.scss +172 -0
- data/app/assets/stylesheets/pageflow/themes/default/page/hyphenate.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/page/line_lengths.scss +12 -14
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/vjs_mapping.scss +6 -6
- data/app/assets/stylesheets/pageflow/themes/default/{video_wrapper.scss → uncropped_media_wrapper.scss} +1 -1
- data/app/controllers/pageflow/editor/files_controller.rb +11 -8
- data/app/helpers/pageflow/background_image_helper.rb +2 -1
- data/app/helpers/pageflow/files_helper.rb +1 -0
- data/app/helpers/pageflow/pages_helper.rb +31 -0
- data/app/helpers/pageflow/video_files_helper.rb +3 -3
- data/app/jobs/pageflow/process_file_job.rb +15 -5
- data/app/models/concerns/pageflow/hosted_file.rb +42 -33
- data/app/models/concerns/pageflow/uploaded_file.rb +10 -0
- data/app/models/pageflow/audio_file.rb +1 -1
- data/app/models/pageflow/audio_file_url_templates.rb +1 -1
- data/app/models/pageflow/draft_entry.rb +1 -1
- data/app/models/pageflow/image_file.rb +38 -52
- data/app/models/pageflow/image_file_css_background_image_urls.rb +4 -4
- data/app/models/pageflow/image_file_url_templates.rb +2 -2
- data/app/models/pageflow/positioned_file.rb +1 -1
- data/app/models/pageflow/text_track_file.rb +15 -32
- data/app/models/pageflow/text_track_file_url_templates.rb +2 -3
- data/app/models/pageflow/video_file.rb +1 -1
- data/app/models/pageflow/video_file_url_templates.rb +1 -1
- data/app/state_machines/pageflow/{image_file_state_machine.rb → processed_file_state_machine.rb} +4 -10
- data/app/views/pageflow/editor/files/_file.json.jbuilder +4 -0
- data/app/views/pageflow/entries/edit.html.erb +2 -2
- data/app/views/pageflow/entries/mobile_navigation/_page.html.erb +1 -0
- data/app/views/pageflow/entries/navigation/_page.html.erb +2 -1
- data/config/initializers/paperclip.rb +6 -0
- data/config/routes.rb +1 -1
- data/db/migrate/20181115165746_change_processed_attachment_to_attachment_on_s3_for_images.rb +16 -0
- data/db/migrate/20190306161431_copy_file_attributes_of_failed_uploads.rb +25 -0
- data/lib/pageflow/configuration.rb +23 -5
- data/lib/pageflow/configuration/defaults.rb +2 -9
- data/lib/pageflow/version.rb +1 -1
- data/spec/factories/audio_files.rb +17 -10
- data/spec/factories/hosted_files.rb +13 -11
- data/spec/factories/image_files.rb +18 -11
- data/spec/factories/text_track_files.rb +30 -10
- data/spec/factories/video_files.rb +16 -9
- metadata +9 -8
- data/app/assets/javascripts/pageflow/dist/react.js +0 -29944
- data/app/jobs/pageflow/upload_file_to_s3_job.rb +0 -25
@@ -1,25 +0,0 @@
|
|
1
|
-
module Pageflow
|
2
|
-
class UploadFileToS3Job < ApplicationJob
|
3
|
-
queue_as :slow
|
4
|
-
|
5
|
-
include StateMachineJob
|
6
|
-
|
7
|
-
def perform_with_result(file, _options = {})
|
8
|
-
if file && file.attachment_on_filesystem.file?
|
9
|
-
if File.exist?(file.attachment_on_filesystem.path)
|
10
|
-
file.attachment_on_s3 = file.attachment_on_filesystem
|
11
|
-
file.save!
|
12
|
-
|
13
|
-
file.attachment_on_filesystem.destroy
|
14
|
-
:ok
|
15
|
-
else
|
16
|
-
logger.info "#{file.class.name} #{file.id} not yet transfered to instance."
|
17
|
-
:pending
|
18
|
-
end
|
19
|
-
else
|
20
|
-
logger.warn "#{file.class.name} #{file.id} does not have an attachment on the file system. ignoring."
|
21
|
-
:error
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|