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.

Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -5
  3. data/app/assets/javascripts/pageflow/dist/react-client.js +22 -27
  4. data/app/assets/javascripts/pageflow/dist/react-server.js +22 -27
  5. data/app/assets/javascripts/pageflow/editor/collections/files_collection.js +0 -1
  6. data/app/assets/javascripts/pageflow/editor/models/file_uploader.js +3 -1
  7. data/app/assets/javascripts/pageflow/editor/models/hosted_file.js +2 -7
  8. data/app/assets/javascripts/pageflow/editor/models/image_file.js +1 -1
  9. data/app/assets/javascripts/pageflow/editor/models/uploaded_file.js +12 -10
  10. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/general.js +4 -4
  11. data/app/assets/javascripts/pageflow/editor/views/uploader_view.js +18 -27
  12. data/app/assets/javascripts/pageflow/slideshow/page_split_layout.js +8 -8
  13. data/app/assets/javascripts/pageflow/slideshow/page_widget.js +1 -1
  14. data/app/assets/stylesheets/pageflow/delayed_text_fade_in.scss +10 -5
  15. data/app/assets/stylesheets/pageflow/editor/file_stages.scss +0 -4
  16. data/app/assets/stylesheets/pageflow/editor/file_thumbnails.scss +0 -4
  17. data/app/assets/stylesheets/pageflow/hide_text.scss +2 -2
  18. data/app/assets/stylesheets/pageflow/lt_ie9.scss +5 -5
  19. data/app/assets/stylesheets/pageflow/navigation_bar.scss +1 -0
  20. data/app/assets/stylesheets/pageflow/navigation_mobile.scss +4 -0
  21. data/app/assets/stylesheets/pageflow/page.scss +2 -2
  22. data/app/assets/stylesheets/pageflow/page_transitions/crossfade.scss +1 -1
  23. data/app/assets/stylesheets/pageflow/page_transitions/fade.scss +11 -11
  24. data/app/assets/stylesheets/pageflow/page_transitions/fade_to_black.scss +13 -10
  25. data/app/assets/stylesheets/pageflow/page_types/audio.scss +3 -3
  26. data/app/assets/stylesheets/pageflow/page_types/video.scss +9 -9
  27. data/app/assets/stylesheets/pageflow/page_types/video/content_hiding.scss +2 -2
  28. data/app/assets/stylesheets/pageflow/page_types/video/mobile_poster.scss +3 -3
  29. data/app/assets/stylesheets/pageflow/print_view.scss +8 -5
  30. data/app/assets/stylesheets/pageflow/slideshow.scss +6 -5
  31. data/app/assets/stylesheets/pageflow/themes/default/base.scss +1 -1
  32. data/app/assets/stylesheets/pageflow/themes/default/page.scss +3 -168
  33. data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +2 -2
  34. data/app/assets/stylesheets/pageflow/themes/default/page/content_text_margin.scss +1 -1
  35. data/app/assets/stylesheets/pageflow/themes/default/page/header.scss +172 -0
  36. data/app/assets/stylesheets/pageflow/themes/default/page/hyphenate.scss +1 -1
  37. data/app/assets/stylesheets/pageflow/themes/default/page/line_lengths.scss +12 -14
  38. data/app/assets/stylesheets/pageflow/themes/default/player_controls/vjs_mapping.scss +6 -6
  39. data/app/assets/stylesheets/pageflow/themes/default/{video_wrapper.scss → uncropped_media_wrapper.scss} +1 -1
  40. data/app/controllers/pageflow/editor/files_controller.rb +11 -8
  41. data/app/helpers/pageflow/background_image_helper.rb +2 -1
  42. data/app/helpers/pageflow/files_helper.rb +1 -0
  43. data/app/helpers/pageflow/pages_helper.rb +31 -0
  44. data/app/helpers/pageflow/video_files_helper.rb +3 -3
  45. data/app/jobs/pageflow/process_file_job.rb +15 -5
  46. data/app/models/concerns/pageflow/hosted_file.rb +42 -33
  47. data/app/models/concerns/pageflow/uploaded_file.rb +10 -0
  48. data/app/models/pageflow/audio_file.rb +1 -1
  49. data/app/models/pageflow/audio_file_url_templates.rb +1 -1
  50. data/app/models/pageflow/draft_entry.rb +1 -1
  51. data/app/models/pageflow/image_file.rb +38 -52
  52. data/app/models/pageflow/image_file_css_background_image_urls.rb +4 -4
  53. data/app/models/pageflow/image_file_url_templates.rb +2 -2
  54. data/app/models/pageflow/positioned_file.rb +1 -1
  55. data/app/models/pageflow/text_track_file.rb +15 -32
  56. data/app/models/pageflow/text_track_file_url_templates.rb +2 -3
  57. data/app/models/pageflow/video_file.rb +1 -1
  58. data/app/models/pageflow/video_file_url_templates.rb +1 -1
  59. data/app/state_machines/pageflow/{image_file_state_machine.rb → processed_file_state_machine.rb} +4 -10
  60. data/app/views/pageflow/editor/files/_file.json.jbuilder +4 -0
  61. data/app/views/pageflow/entries/edit.html.erb +2 -2
  62. data/app/views/pageflow/entries/mobile_navigation/_page.html.erb +1 -0
  63. data/app/views/pageflow/entries/navigation/_page.html.erb +2 -1
  64. data/config/initializers/paperclip.rb +6 -0
  65. data/config/routes.rb +1 -1
  66. data/db/migrate/20181115165746_change_processed_attachment_to_attachment_on_s3_for_images.rb +16 -0
  67. data/db/migrate/20190306161431_copy_file_attributes_of_failed_uploads.rb +25 -0
  68. data/lib/pageflow/configuration.rb +23 -5
  69. data/lib/pageflow/configuration/defaults.rb +2 -9
  70. data/lib/pageflow/version.rb +1 -1
  71. data/spec/factories/audio_files.rb +17 -10
  72. data/spec/factories/hosted_files.rb +13 -11
  73. data/spec/factories/image_files.rb +18 -11
  74. data/spec/factories/text_track_files.rb +30 -10
  75. data/spec/factories/video_files.rb +16 -9
  76. metadata +9 -8
  77. data/app/assets/javascripts/pageflow/dist/react.js +0 -29944
  78. 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