pageflow 12.0.4 → 12.1.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.

Files changed (217) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +158 -374
  3. data/README.md +24 -3
  4. data/Rakefile +2 -2
  5. data/admins/pageflow/accounts.rb +30 -4
  6. data/admins/pageflow/entry.rb +59 -9
  7. data/admins/pageflow/membership.rb +57 -6
  8. data/admins/pageflow/user.rb +25 -4
  9. data/app/assets/images/pageflow/themes/default/preview.png +0 -0
  10. data/app/assets/images/pageflow/themes/default/preview_thumbnail.png +0 -0
  11. data/app/assets/javascripts/pageflow/admin/entries.js +5 -3
  12. data/app/assets/javascripts/pageflow/admin/users.js +33 -0
  13. data/app/assets/javascripts/pageflow/admin.js +4 -1
  14. data/app/assets/javascripts/pageflow/audio_context.js +28 -0
  15. data/app/assets/javascripts/pageflow/audio_player/get_media_element_method.js +5 -0
  16. data/app/assets/javascripts/pageflow/audio_player.js +2 -0
  17. data/app/assets/javascripts/pageflow/base.js +4 -22
  18. data/app/assets/javascripts/pageflow/dist/react.js +323 -242
  19. data/app/assets/javascripts/pageflow/editor/api/widget_type.js +23 -0
  20. data/app/assets/javascripts/pageflow/editor/api/widget_types.js +53 -0
  21. data/app/assets/javascripts/pageflow/editor/api.js +9 -1
  22. data/app/assets/javascripts/pageflow/editor/base.js +0 -1
  23. data/app/assets/javascripts/pageflow/editor/collections/pages_collection.js +1 -0
  24. data/app/assets/javascripts/pageflow/editor/collections/subset_collection.js +21 -1
  25. data/app/assets/javascripts/pageflow/editor/collections/themes_collection.js +13 -0
  26. data/app/assets/javascripts/pageflow/editor/collections/widgets_collection.js +23 -8
  27. data/app/assets/javascripts/pageflow/editor/controllers/sidebar_controller.js +7 -1
  28. data/app/assets/javascripts/pageflow/editor/initializers/setup_collections.js +10 -3
  29. data/app/assets/javascripts/pageflow/editor/initializers/setup_widget_types.js +5 -1
  30. data/app/assets/javascripts/pageflow/editor/initializers/stylesheet_reloading.js +8 -3
  31. data/app/assets/javascripts/pageflow/editor/models/edit_lock_container.js +1 -1
  32. data/app/assets/javascripts/pageflow/editor/models/entry.js +7 -4
  33. data/app/assets/javascripts/pageflow/editor/models/entry_configuration.js +1 -1
  34. data/app/assets/javascripts/pageflow/editor/models/file_stage.js +1 -0
  35. data/app/assets/javascripts/pageflow/editor/models/page.js +3 -1
  36. data/app/assets/javascripts/pageflow/editor/models/preview_entry_data.js +2 -2
  37. data/app/assets/javascripts/pageflow/editor/models/theme.js +25 -0
  38. data/app/assets/javascripts/pageflow/editor/models/theming.js +1 -19
  39. data/app/assets/javascripts/pageflow/editor/models/widget.js +22 -1
  40. data/app/assets/javascripts/pageflow/editor/models/widget_configuration.js +5 -0
  41. data/app/assets/javascripts/pageflow/editor/routers/sidebar_router.js +1 -0
  42. data/app/assets/javascripts/pageflow/editor/templates/change_theme_dialog.jst.ejs +23 -0
  43. data/app/assets/javascripts/pageflow/editor/templates/edit_widget.jst.ejs +1 -2
  44. data/app/assets/javascripts/pageflow/editor/templates/inputs/reference.jst.ejs +2 -2
  45. data/app/assets/javascripts/pageflow/editor/templates/static_thumbnail.jst.ejs +1 -0
  46. data/app/assets/javascripts/pageflow/editor/templates/theme_item.jst.ejs +5 -0
  47. data/app/assets/javascripts/pageflow/editor/templates/widget_item.jst.ejs +3 -0
  48. data/app/assets/javascripts/pageflow/editor/utils/stylesheet.js +23 -0
  49. data/app/assets/javascripts/pageflow/editor/views/change_theme_dialog_view.js +76 -0
  50. data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/options.js +4 -2
  51. data/app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js +17 -4
  52. data/app/assets/javascripts/pageflow/editor/views/edit_widget_view.js +11 -21
  53. data/app/assets/javascripts/pageflow/editor/views/edit_widgets_view.js +1 -3
  54. data/app/assets/javascripts/pageflow/editor/views/file_meta_data_item_value_view.js +10 -1
  55. data/app/assets/javascripts/pageflow/editor/views/inputs/reference_input_view.js +36 -4
  56. data/app/assets/javascripts/pageflow/editor/views/inputs/theme_input_view.js +26 -0
  57. data/app/assets/javascripts/pageflow/editor/views/model_thumbnail_view.js +28 -14
  58. data/app/assets/javascripts/pageflow/editor/views/static_thumbnail_view.js +20 -0
  59. data/app/assets/javascripts/pageflow/editor/views/theme_item_view.js +41 -0
  60. data/app/assets/javascripts/pageflow/editor/views/widget_item_view.js +49 -0
  61. data/app/assets/javascripts/pageflow/history.js +7 -1
  62. data/app/assets/javascripts/pageflow/media_player/volume_fading/interval.js +65 -0
  63. data/app/assets/javascripts/pageflow/media_player/volume_fading/noop.js +5 -0
  64. data/app/assets/javascripts/pageflow/media_player/volume_fading/web_audio.js +109 -0
  65. data/app/assets/javascripts/pageflow/media_player/volume_fading.js +14 -65
  66. data/app/assets/javascripts/pageflow/slideshow/dom_order_scroll_navigator.js +5 -2
  67. data/app/assets/javascripts/pageflow/slideshow.js +19 -8
  68. data/app/assets/javascripts/pageflow/ui/views/configuration_editor_view.js +4 -0
  69. data/app/assets/javascripts/pageflow/ui/views/inputs/text_area_input_view.js +10 -5
  70. data/app/assets/javascripts/pageflow/ui/views/inputs/text_input_view.js +4 -48
  71. data/app/assets/javascripts/pageflow/ui/views/mixins/input_with_placeholder_text.js +58 -0
  72. data/app/assets/javascripts/pageflow/vendor.js +16 -0
  73. data/app/assets/javascripts/pageflow/video_player/get_media_element_method.js +6 -0
  74. data/app/assets/javascripts/pageflow/video_player.js +2 -0
  75. data/app/assets/stylesheets/pageflow/admin/entries.scss +1 -1
  76. data/app/assets/stylesheets/pageflow/admin/quotas.scss +1 -1
  77. data/app/assets/stylesheets/pageflow/admin.scss +2 -0
  78. data/app/assets/stylesheets/pageflow/base.scss +0 -1
  79. data/app/assets/stylesheets/pageflow/editor/base.scss +2 -0
  80. data/app/assets/stylesheets/pageflow/editor/change_theme.scss +114 -0
  81. data/app/assets/stylesheets/pageflow/editor/static_thumbnails.scss +4 -0
  82. data/app/assets/stylesheets/pageflow/editor/widgets.scss +26 -2
  83. data/app/assets/stylesheets/pageflow/page.scss +1 -14
  84. data/app/assets/stylesheets/pageflow/themes/default/indicators.scss +12 -0
  85. data/app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss +11 -0
  86. data/app/assets/stylesheets/pageflow/themes/default/logo/alignment.scss +27 -0
  87. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss +20 -2
  88. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +4 -1
  89. data/app/assets/stylesheets/pageflow/themes/default/page/line_lengths.scss +113 -0
  90. data/app/assets/stylesheets/pageflow/themes/default/page.scss +1 -0
  91. data/app/controllers/pageflow/editor/widgets_controller.rb +15 -1
  92. data/app/controllers/pageflow/entries_controller.rb +1 -1
  93. data/app/helpers/pageflow/admin/entries_helper.rb +0 -9
  94. data/app/helpers/pageflow/admin/memberships_helper.rb +43 -123
  95. data/app/helpers/pageflow/admin/users_helper.rb +15 -0
  96. data/app/helpers/pageflow/entries_helper.rb +3 -1
  97. data/app/helpers/pageflow/entry_json_seed_helper.rb +9 -3
  98. data/app/helpers/pageflow/public_i18n_helper.rb +2 -2
  99. data/app/helpers/pageflow/quota_helper.rb +2 -2
  100. data/app/helpers/pageflow/social_share_helper.rb +3 -2
  101. data/app/helpers/pageflow/themes_helper.rb +11 -3
  102. data/app/helpers/pageflow/widgets_helper.rb +10 -2
  103. data/app/jobs/pageflow/prune_auto_snapshots_job.rb +9 -0
  104. data/app/mailers/pageflow/user_mailer.rb +11 -1
  105. data/app/models/concerns/pageflow/feature_target.rb +1 -1
  106. data/app/models/concerns/pageflow/hosted_file.rb +9 -0
  107. data/app/models/concerns/pageflow/output_source.rb +2 -1
  108. data/app/models/concerns/pageflow/serialization_blacklist.rb +19 -0
  109. data/app/models/concerns/pageflow/serialized_configuration.rb +17 -0
  110. data/app/models/concerns/pageflow/theme_referencer.rb +23 -0
  111. data/app/models/pageflow/account.rb +6 -1
  112. data/app/models/pageflow/account_member_query.rb +6 -12
  113. data/app/models/pageflow/account_role_query.rb +68 -0
  114. data/app/models/pageflow/application_query.rb +13 -0
  115. data/app/models/pageflow/application_record.rb +5 -0
  116. data/app/models/pageflow/audio_file.rb +1 -1
  117. data/app/models/pageflow/auto_snapshot_pruning.rb +26 -0
  118. data/app/models/pageflow/chapter.rb +4 -8
  119. data/app/models/pageflow/draft_entry.rb +2 -1
  120. data/app/models/pageflow/edit_lock.rb +11 -5
  121. data/app/models/pageflow/encoding_confirmation.rb +2 -1
  122. data/app/models/pageflow/entry.rb +13 -2
  123. data/app/models/pageflow/entry_publication.rb +2 -0
  124. data/app/models/pageflow/entry_role_query.rb +24 -9
  125. data/app/models/pageflow/entry_title_or_account_name_query.rb +33 -0
  126. data/app/models/pageflow/file_usage.rb +3 -7
  127. data/app/models/pageflow/folder.rb +1 -1
  128. data/app/models/pageflow/home_button.rb +1 -1
  129. data/app/models/pageflow/image_file.rb +22 -4
  130. data/app/models/pageflow/invitation_form.rb +10 -4
  131. data/app/models/pageflow/managed_user_query.rb +44 -0
  132. data/app/models/pageflow/membership.rb +1 -1
  133. data/app/models/pageflow/overview_button.rb +3 -4
  134. data/app/models/pageflow/page.rb +3 -7
  135. data/app/models/pageflow/potential_memberships.rb +112 -0
  136. data/app/models/pageflow/published_entry.rb +2 -1
  137. data/app/models/pageflow/revision.rb +13 -4
  138. data/app/models/pageflow/storyline.rb +3 -4
  139. data/app/models/pageflow/text_track_file.rb +1 -1
  140. data/app/models/pageflow/theming.rb +15 -10
  141. data/app/models/pageflow/url_template.rb +8 -2
  142. data/app/models/pageflow/user_name_query.rb +30 -0
  143. data/app/models/pageflow/video_file.rb +5 -1
  144. data/app/models/pageflow/widget.rb +3 -1
  145. data/app/models/pageflow/zencoder_attachment.rb +16 -5
  146. data/app/policies/pageflow/account_policy.rb +31 -61
  147. data/app/policies/pageflow/application_policy.rb +6 -0
  148. data/app/policies/pageflow/entry_policy.rb +11 -3
  149. data/app/policies/pageflow/membership_policy.rb +1 -2
  150. data/app/policies/pageflow/user_policy.rb +20 -1
  151. data/app/views/admin/accounts/_form.html.erb +4 -4
  152. data/app/views/admin/accounts/_theming_defaults_inline_help.html.erb +5 -0
  153. data/app/views/admin/memberships/_form.html.erb +9 -14
  154. data/app/views/admin/memberships/_role_hint.html.arb +1 -1
  155. data/app/views/admin/users/invitation.html.erb +18 -9
  156. data/app/views/admin/users/me.html.erb +2 -2
  157. data/app/views/admin/users/quota_state.html.erb +1 -0
  158. data/app/views/components/pageflow/admin/add_membership_button.rb +81 -0
  159. data/app/views/components/pageflow/admin/members_tab.rb +6 -4
  160. data/app/views/components/pageflow/admin/revisions_tab.rb +16 -4
  161. data/app/views/components/pageflow/admin/user_accounts_tab.rb +8 -2
  162. data/app/views/components/pageflow/admin/user_entries_tab.rb +6 -2
  163. data/app/views/components/pageflow/admin/users_tab.rb +9 -5
  164. data/app/views/layouts/pageflow/application.html.erb +2 -1
  165. data/app/views/pageflow/admin/users/_quota_exhausted.html.erb +1 -0
  166. data/app/views/pageflow/admin/users/_quota_state.html.erb +7 -0
  167. data/app/views/pageflow/config/_editor_seeds.json.jbuilder +2 -0
  168. data/app/views/pageflow/editor/entries/_entry.json.jbuilder +1 -0
  169. data/app/views/pageflow/editor/entries/seed.json.erb +3 -1
  170. data/app/views/pageflow/editor/image_files/_image_file.json.jbuilder +1 -1
  171. data/app/views/pageflow/editor/themings/_theming.json.jbuilder +0 -7
  172. data/app/views/pageflow/editor/widgets/_widget.json.jbuilder +1 -1
  173. data/app/views/pageflow/entries/_entry.html.erb +5 -5
  174. data/app/views/pageflow/entries/edit.html.erb +1 -1
  175. data/app/views/pageflow/entries/show.html.erb +1 -1
  176. data/app/views/pageflow/entry_json_seed/_entry.json.jbuilder +1 -0
  177. data/app/views/pageflow/themes/_theme.json.jbuilder +13 -0
  178. data/config/initializers/admin_resource_tabs.rb +19 -6
  179. data/config/initializers/features.rb +1 -0
  180. data/config/locales/de.yml +26 -3
  181. data/config/locales/en.yml +26 -3
  182. data/db/migrate/20170201074328_add_configuration_to_widgets.rb +5 -0
  183. data/db/migrate/20170222124848_update_video_file_output_presences.rb +1 -1
  184. data/db/migrate/20170315130000_add_theme_name_to_revisions.rb +12 -0
  185. data/db/migrate/20170912165050_reset_copied_snapshot_type.rb +24 -0
  186. data/lib/generators/pageflow/routes/routes_generator.rb +11 -1
  187. data/lib/generators/pageflow/seeds/seeds_generator.rb +5 -0
  188. data/lib/generators/pageflow/seeds/templates/seeds.rb +5 -3
  189. data/lib/generators/pageflow/theme/templates/preview.png +0 -0
  190. data/lib/generators/pageflow/theme/templates/preview_thumbnail.png +0 -0
  191. data/lib/generators/pageflow/theme/theme_generator.rb +3 -0
  192. data/lib/pageflow/ability_mixin.rb +27 -6
  193. data/lib/pageflow/active_admin_can_can_fix.rb +34 -0
  194. data/lib/pageflow/configuration/permissions.rb +27 -0
  195. data/lib/pageflow/configuration.rb +28 -0
  196. data/lib/pageflow/engine.rb +25 -19
  197. data/lib/pageflow/images/palette.png +0 -0
  198. data/lib/pageflow/seeds.rb +1 -1
  199. data/lib/pageflow/theme.rb +8 -0
  200. data/lib/pageflow/version.rb +1 -1
  201. data/lib/pageflow/widget_type.rb +13 -0
  202. data/lib/pageflow/zencoder_video_output_definition.rb +16 -16
  203. data/lib/tasks/pageflow_tasks.rake +14 -0
  204. data/spec/factories/entries.rb +4 -0
  205. data/spec/factories/revisions.rb +10 -0
  206. data/spec/factories/users.rb +6 -0
  207. data/spec/factories/video_files.rb +4 -0
  208. data/vendor/assets/javascripts/audio5.min.js +3 -0
  209. metadata +78 -15
  210. data/app/assets/javascripts/pageflow/editor/models/mixins/widget_subject.js +0 -37
  211. data/app/assets/javascripts/pageflow/editor/utils/reload_stylesheet.js +0 -9
  212. data/app/assets/stylesheets/pageflow/text_variants.scss +0 -24
  213. data/app/views/admin/accounts/_widgets_inline_help.html.erb +0 -5
  214. data/app/views/admin/memberships/_entity_account_input.html.erb +0 -5
  215. data/app/views/admin/memberships/_entity_entry_input.html.erb +0 -5
  216. data/app/views/admin/users/_quota_exhausted.html.erb +0 -1
  217. data/app/views/components/pageflow/admin/add_membership_button_if_needed.rb +0 -62
@@ -34,7 +34,7 @@ module Pageflow
34
34
  private
35
35
 
36
36
  def mp4_highdef_definitions
37
- return [] unless video_file.entry.feature_state('highdef_video_encoding')
37
+ return [] unless video_file.encode_highdef?
38
38
  [transferable(mp4_4k_definition), transferable(mp4_fullhd_definition)]
39
39
  end
40
40
 
@@ -128,7 +128,7 @@ module Pageflow
128
128
  end
129
129
 
130
130
  def dash_highdef_definitions
131
- return [] unless video_file.entry.feature_state('highdef_video_encoding')
131
+ return [] unless video_file.encode_highdef?
132
132
 
133
133
  [
134
134
  non_transferable(dash_fullhd_definition),
@@ -149,7 +149,7 @@ module Pageflow
149
149
  end
150
150
 
151
151
  def hls_highdef_definitions
152
- return [] unless video_file.entry.feature_state('highdef_video_encoding')
152
+ return [] unless video_file.encode_highdef?
153
153
 
154
154
  [
155
155
  non_transferable(hls_fullhd_definition),
@@ -243,29 +243,29 @@ module Pageflow
243
243
  [
244
244
  {
245
245
  source: 'dash-low',
246
- path: video_file.dash_low.url
246
+ path: video_file.dash_low.url_relative_to(video_file.dash_playlist)
247
247
  },
248
248
  {
249
249
  source: 'dash-medium',
250
- path: video_file.dash_medium.url
250
+ path: video_file.dash_medium.url_relative_to(video_file.dash_playlist)
251
251
  },
252
252
  {
253
253
  source: 'dash-high',
254
- path: video_file.dash_high.url
254
+ path: video_file.dash_high.url_relative_to(video_file.dash_playlist)
255
255
  }
256
256
  ] + dash_highdef_stream_definitions
257
257
  end
258
258
 
259
259
  def dash_highdef_stream_definitions
260
- return [] unless video_file.entry.feature_state('highdef_video_encoding')
260
+ return [] unless video_file.encode_highdef?
261
261
  [
262
262
  {
263
263
  source: 'dash-fullhd',
264
- path: video_file.dash_fullhd.url
264
+ path: video_file.dash_fullhd.url_relative_to(video_file.dash_playlist)
265
265
  },
266
266
  {
267
267
  source: 'dash-4k',
268
- path: video_file.dash_4k.url
268
+ path: video_file.dash_4k.url_relative_to(video_file.dash_playlist)
269
269
  }
270
270
  ]
271
271
  end
@@ -350,33 +350,33 @@ module Pageflow
350
350
  [
351
351
  {
352
352
  source: 'hls-medium',
353
- path: video_file.hls_medium.url(host: :hls_origin, default_protocol: 'http'),
353
+ path: video_file.hls_medium.url_relative_to(video_file.hls_playlist),
354
354
  bandwidth: 1769
355
355
  },
356
356
  {
357
357
  source: 'hls-low',
358
- path: video_file.hls_low.url(host: :hls_origin, default_protocol: 'http'),
358
+ path: video_file.hls_low.url_relative_to(video_file.hls_playlist),
359
359
  bandwidth: 619
360
360
  },
361
361
  {
362
362
  source: 'hls-high',
363
- path: video_file.hls_high.url(host: :hls_origin, default_protocol: 'http'),
363
+ path: video_file.hls_high.url_relative_to(video_file.hls_playlist),
364
364
  bandwidth: 3538
365
365
  }
366
366
  ] + hls_highdef_stream_definitions
367
367
  end
368
368
 
369
369
  def hls_highdef_stream_definitions
370
- return [] unless video_file.entry.feature_state('highdef_video_encoding')
370
+ return [] unless video_file.encode_highdef?
371
371
  [
372
372
  {
373
373
  source: 'hls-fullhd',
374
- path: video_file.hls_fullhd.url(host: :hls_origin, default_protocol: 'http'),
374
+ path: video_file.hls_fullhd.url_relative_to(video_file.hls_playlist),
375
375
  bandwidth: 8575
376
376
  },
377
377
  {
378
378
  source: 'hls-4k',
379
- path: video_file.hls_4k.url(host: :hls_origin, default_protocol: 'http'),
379
+ path: video_file.hls_4k.url_relative_to(video_file.hls_playlist),
380
380
  bandwidth: 32000
381
381
  }
382
382
  ]
@@ -404,7 +404,7 @@ module Pageflow
404
404
  # these cases the input file is just a tiny bit larger than the
405
405
  # next lower resolution, so we do not really care if the SMIL
406
406
  # file which does not include the higher quality does not win.
407
- if video_file.entry.feature_state('highdef_video_encoding')
407
+ if video_file.encode_highdef?
408
408
  [
409
409
  non_transferable(smil_definition.merge(streams: smil_default_stream_definitions,
410
410
  skip: {
@@ -11,4 +11,18 @@ namespace :pageflow do
11
11
  system('bin/npm run build')
12
12
  end
13
13
  end
14
+
15
+ namespace :prune_auto_snapshots_jobs do
16
+ desc 'Enqueue jobs to destroy old auto snapshot revisions'
17
+ task :enqueue => :environment do
18
+ options = {
19
+ created_before: ENV['CREATED_BEFORE'] ? Time.parse(ENV['CREATED_BEFORE']) : 1.month.ago,
20
+ keep_count: ENV.fetch('KEEP_COUNT', 20)
21
+ }
22
+
23
+ Pageflow::AutoSnapshotPruning.dirty_entry_ids(options).each do |entry_id|
24
+ Resque.enqueue(Pageflow::PruneAutoSnapshotsJob, entry_id, options)
25
+ end
26
+ end
27
+ end
14
28
  end
@@ -56,6 +56,10 @@ module Pageflow
56
56
  create(:revision, :published, entry: entry, password_protected: true)
57
57
  end
58
58
  end
59
+
60
+ trait :with_highdef_video_encoding do
61
+ feature_states('highdef_video_encoding' => true)
62
+ end
59
63
  end
60
64
  end
61
65
  end
@@ -18,6 +18,16 @@ module Pageflow
18
18
  published_until { 1.day.ago }
19
19
  end
20
20
 
21
+ trait :user_snapshot do
22
+ frozen
23
+ snapshot_type 'user'
24
+ end
25
+
26
+ trait :auto_snapshot do
27
+ frozen
28
+ snapshot_type 'auto'
29
+ end
30
+
21
31
  trait :with_home_button do
22
32
  home_button_enabled true
23
33
  home_url 'http://example.com'
@@ -48,6 +48,12 @@ module Pageflow
48
48
 
49
49
  trait :admin do
50
50
  admin true
51
+ after(:create) do |user, evaluator|
52
+ create(:membership,
53
+ user: user,
54
+ role: :member,
55
+ entity: evaluator.on || create(:account))
56
+ end
51
57
  end
52
58
 
53
59
  trait :suspended do
@@ -47,6 +47,10 @@ module Pageflow
47
47
 
48
48
  trait :encoded do
49
49
  end
50
+
51
+ trait :with_highdef_encoding do
52
+ association :entry, :with_highdef_video_encoding
53
+ end
50
54
  end
51
55
  end
52
56
  end
@@ -484,6 +484,9 @@
484
484
  this.audio.autoplay = false;
485
485
  this.audio.preload = 'auto';
486
486
  this.audio.autobuffer = true;
487
+
488
+ this.audio.setAttribute('crossorigin', 'anonymous');
489
+
487
490
  this.bindEvents();
488
491
  },
489
492
  destroyAudio: function(){
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: 12.0.4
4
+ version: 12.1.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: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.0.pre4
41
+ - !ruby/object:Gem::Dependency
42
+ name: activeadmin-searchable_select
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: devise-async
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -625,19 +639,19 @@ dependencies:
625
639
  - !ruby/object:Gem::Version
626
640
  version: '2.4'
627
641
  - !ruby/object:Gem::Dependency
628
- name: capybara-webkit
642
+ name: poltergeist
629
643
  requirement: !ruby/object:Gem::Requirement
630
644
  requirements:
631
645
  - - "~>"
632
646
  - !ruby/object:Gem::Version
633
- version: '1.3'
647
+ version: 1.15.0
634
648
  type: :development
635
649
  prerelease: false
636
650
  version_requirements: !ruby/object:Gem::Requirement
637
651
  requirements:
638
652
  - - "~>"
639
653
  - !ruby/object:Gem::Version
640
- version: '1.3'
654
+ version: 1.15.0
641
655
  - !ruby/object:Gem::Dependency
642
656
  name: domino
643
657
  requirement: !ruby/object:Gem::Requirement
@@ -931,6 +945,8 @@ files:
931
945
  - app/assets/images/pageflow/themes/default/player_controls/slim/scroller_mask.png
932
946
  - app/assets/images/pageflow/themes/default/player_controls_loading_spinner.png
933
947
  - app/assets/images/pageflow/themes/default/player_controls_sprite.png
948
+ - app/assets/images/pageflow/themes/default/preview.png
949
+ - app/assets/images/pageflow/themes/default/preview_thumbnail.png
934
950
  - app/assets/images/pageflow/themes/default/text_sprite.png
935
951
  - app/assets/images/pageflow/video_controls.png
936
952
  - app/assets/images/pageflow/video_pictogram.png
@@ -939,11 +955,14 @@ files:
939
955
  - app/assets/javascripts/pageflow/admin.js
940
956
  - app/assets/javascripts/pageflow/admin/accounts.js
941
957
  - app/assets/javascripts/pageflow/admin/entries.js
958
+ - app/assets/javascripts/pageflow/admin/users.js
942
959
  - app/assets/javascripts/pageflow/asset_urls.js.erb
943
960
  - app/assets/javascripts/pageflow/audio.js
944
961
  - app/assets/javascripts/pageflow/audio/multi_player.js
945
962
  - app/assets/javascripts/pageflow/audio/player_pool.js
963
+ - app/assets/javascripts/pageflow/audio_context.js
946
964
  - app/assets/javascripts/pageflow/audio_player.js
965
+ - app/assets/javascripts/pageflow/audio_player/get_media_element_method.js
947
966
  - app/assets/javascripts/pageflow/audio_player/media_events.js
948
967
  - app/assets/javascripts/pageflow/audio_player/null.js
949
968
  - app/assets/javascripts/pageflow/audio_player/pause_in_background.js
@@ -978,6 +997,8 @@ files:
978
997
  - app/assets/javascripts/pageflow/editor/api/file_types.js
979
998
  - app/assets/javascripts/pageflow/editor/api/page_type.js
980
999
  - app/assets/javascripts/pageflow/editor/api/page_types.js
1000
+ - app/assets/javascripts/pageflow/editor/api/widget_type.js
1001
+ - app/assets/javascripts/pageflow/editor/api/widget_types.js
981
1002
  - app/assets/javascripts/pageflow/editor/base.js
982
1003
  - app/assets/javascripts/pageflow/editor/collections/chapter_pages_collection.js
983
1004
  - app/assets/javascripts/pageflow/editor/collections/chapters_collection.js
@@ -995,6 +1016,7 @@ files:
995
1016
  - app/assets/javascripts/pageflow/editor/collections/storyline_chapters_collection.js
996
1017
  - app/assets/javascripts/pageflow/editor/collections/storylines_collection.js
997
1018
  - app/assets/javascripts/pageflow/editor/collections/subset_collection.js
1019
+ - app/assets/javascripts/pageflow/editor/collections/themes_collection.js
998
1020
  - app/assets/javascripts/pageflow/editor/collections/widgets_collection.js
999
1021
  - app/assets/javascripts/pageflow/editor/controllers/sidebar_controller.js
1000
1022
  - app/assets/javascripts/pageflow/editor/edit_widget.jst.ejs
@@ -1044,7 +1066,6 @@ files:
1044
1066
  - app/assets/javascripts/pageflow/editor/models/mixins/retryable.js
1045
1067
  - app/assets/javascripts/pageflow/editor/models/mixins/stage_provider.js
1046
1068
  - app/assets/javascripts/pageflow/editor/models/mixins/transient_references.js
1047
- - app/assets/javascripts/pageflow/editor/models/mixins/widget_subject.js
1048
1069
  - app/assets/javascripts/pageflow/editor/models/other_entry.js
1049
1070
  - app/assets/javascripts/pageflow/editor/models/page.js
1050
1071
  - app/assets/javascripts/pageflow/editor/models/page_configuration_file_selection_handler.js
@@ -1058,10 +1079,12 @@ files:
1058
1079
  - app/assets/javascripts/pageflow/editor/models/storyline_scaffold.js
1059
1080
  - app/assets/javascripts/pageflow/editor/models/storyline_transitive_child_pages.js
1060
1081
  - app/assets/javascripts/pageflow/editor/models/text_track_file.js
1082
+ - app/assets/javascripts/pageflow/editor/models/theme.js
1061
1083
  - app/assets/javascripts/pageflow/editor/models/theming.js
1062
1084
  - app/assets/javascripts/pageflow/editor/models/uploaded_file.js
1063
1085
  - app/assets/javascripts/pageflow/editor/models/video_file.js
1064
1086
  - app/assets/javascripts/pageflow/editor/models/widget.js
1087
+ - app/assets/javascripts/pageflow/editor/models/widget_configuration.js
1065
1088
  - app/assets/javascripts/pageflow/editor/routers/sidebar_router.js
1066
1089
  - app/assets/javascripts/pageflow/editor/sync.js
1067
1090
  - app/assets/javascripts/pageflow/editor/templates/back_button_decorator.jst.ejs
@@ -1069,6 +1092,7 @@ files:
1069
1092
  - app/assets/javascripts/pageflow/editor/templates/background_positioning_preview.jst.ejs
1070
1093
  - app/assets/javascripts/pageflow/editor/templates/background_positioning_sliders.jst.ejs
1071
1094
  - app/assets/javascripts/pageflow/editor/templates/blank_entry.jst.ejs
1095
+ - app/assets/javascripts/pageflow/editor/templates/change_theme_dialog.jst.ejs
1072
1096
  - app/assets/javascripts/pageflow/editor/templates/chapter_item.jst.ejs
1073
1097
  - app/assets/javascripts/pageflow/editor/templates/confirm_encoding.jst.ejs
1074
1098
  - app/assets/javascripts/pageflow/editor/templates/confirm_upload.jst.ejs
@@ -1119,18 +1143,22 @@ files:
1119
1143
  - app/assets/javascripts/pageflow/editor/templates/page_selection.jst.ejs
1120
1144
  - app/assets/javascripts/pageflow/editor/templates/publish_entry.jst.ejs
1121
1145
  - app/assets/javascripts/pageflow/editor/templates/select_button.jst.ejs
1146
+ - app/assets/javascripts/pageflow/editor/templates/static_thumbnail.jst.ejs
1122
1147
  - app/assets/javascripts/pageflow/editor/templates/storyline_outline.jst.ejs
1123
1148
  - app/assets/javascripts/pageflow/editor/templates/storyline_picker.jst.ejs
1124
1149
  - app/assets/javascripts/pageflow/editor/templates/table_cell.jst.ejs
1125
1150
  - app/assets/javascripts/pageflow/editor/templates/text_tracks.jst.ejs
1151
+ - app/assets/javascripts/pageflow/editor/templates/theme_item.jst.ejs
1126
1152
  - app/assets/javascripts/pageflow/editor/templates/uploadable_files.jst.ejs
1153
+ - app/assets/javascripts/pageflow/editor/templates/widget_item.jst.ejs
1127
1154
  - app/assets/javascripts/pageflow/editor/utils/form_data_utils.js
1128
- - app/assets/javascripts/pageflow/editor/utils/reload_stylesheet.js
1155
+ - app/assets/javascripts/pageflow/editor/utils/stylesheet.js
1129
1156
  - app/assets/javascripts/pageflow/editor/views/back_button_decorator_view.js
1130
1157
  - app/assets/javascripts/pageflow/editor/views/background_positioning_preview_view.js
1131
1158
  - app/assets/javascripts/pageflow/editor/views/background_positioning_sliders_view.js
1132
1159
  - app/assets/javascripts/pageflow/editor/views/background_positioning_view.js
1133
1160
  - app/assets/javascripts/pageflow/editor/views/blank_entry_view.js
1161
+ - app/assets/javascripts/pageflow/editor/views/change_theme_dialog_view.js
1134
1162
  - app/assets/javascripts/pageflow/editor/views/chapter_item_view.js
1135
1163
  - app/assets/javascripts/pageflow/editor/views/configuration_editors/audio.js
1136
1164
  - app/assets/javascripts/pageflow/editor/views/configuration_editors/background_image.js
@@ -1176,6 +1204,7 @@ files:
1176
1204
  - app/assets/javascripts/pageflow/editor/views/inputs/file_input_view.js
1177
1205
  - app/assets/javascripts/pageflow/editor/views/inputs/page_link_input_view.js
1178
1206
  - app/assets/javascripts/pageflow/editor/views/inputs/reference_input_view.js
1207
+ - app/assets/javascripts/pageflow/editor/views/inputs/theme_input_view.js
1179
1208
  - app/assets/javascripts/pageflow/editor/views/list_item_view.js
1180
1209
  - app/assets/javascripts/pageflow/editor/views/list_view.js
1181
1210
  - app/assets/javascripts/pageflow/editor/views/loading_view.js
@@ -1201,13 +1230,16 @@ files:
1201
1230
  - app/assets/javascripts/pageflow/editor/views/publish_entry_view.js
1202
1231
  - app/assets/javascripts/pageflow/editor/views/scrolling_view.js
1203
1232
  - app/assets/javascripts/pageflow/editor/views/select_button_view.js
1233
+ - app/assets/javascripts/pageflow/editor/views/static_thumbnail_view.js
1204
1234
  - app/assets/javascripts/pageflow/editor/views/storyline_outline_view.js
1205
1235
  - app/assets/javascripts/pageflow/editor/views/storyline_picker_view.js
1206
1236
  - app/assets/javascripts/pageflow/editor/views/text_file_meta_data_item_value_view.js
1207
1237
  - app/assets/javascripts/pageflow/editor/views/text_tracks_file_meta_data_item_value_view.js
1208
1238
  - app/assets/javascripts/pageflow/editor/views/text_tracks_view.js
1239
+ - app/assets/javascripts/pageflow/editor/views/theme_item_view.js
1209
1240
  - app/assets/javascripts/pageflow/editor/views/uploadable_files_view.js
1210
1241
  - app/assets/javascripts/pageflow/editor/views/uploader_view.js
1242
+ - app/assets/javascripts/pageflow/editor/views/widget_item_view.js
1211
1243
  - app/assets/javascripts/pageflow/entry_data.js
1212
1244
  - app/assets/javascripts/pageflow/events.js
1213
1245
  - app/assets/javascripts/pageflow/features.js
@@ -1230,6 +1262,9 @@ files:
1230
1262
  - app/assets/javascripts/pageflow/media_player/load_waiting.js
1231
1263
  - app/assets/javascripts/pageflow/media_player/volume_binding.js
1232
1264
  - app/assets/javascripts/pageflow/media_player/volume_fading.js
1265
+ - app/assets/javascripts/pageflow/media_player/volume_fading/interval.js
1266
+ - app/assets/javascripts/pageflow/media_player/volume_fading/noop.js
1267
+ - app/assets/javascripts/pageflow/media_player/volume_fading/web_audio.js
1233
1268
  - app/assets/javascripts/pageflow/multimedia_alert.js
1234
1269
  - app/assets/javascripts/pageflow/native_scrolling.js
1235
1270
  - app/assets/javascripts/pageflow/object.js
@@ -1289,6 +1324,7 @@ files:
1289
1324
  - app/assets/javascripts/pageflow/ui/views/inputs/url_display_view.js
1290
1325
  - app/assets/javascripts/pageflow/ui/views/inputs/url_input_view.js
1291
1326
  - app/assets/javascripts/pageflow/ui/views/mixins/input_view.js
1327
+ - app/assets/javascripts/pageflow/ui/views/mixins/input_with_placeholder_text.js
1292
1328
  - app/assets/javascripts/pageflow/ui/views/mixins/subview_container.js
1293
1329
  - app/assets/javascripts/pageflow/ui/views/mixins/tooltip_container.js
1294
1330
  - app/assets/javascripts/pageflow/ui/views/sortable_collection_view.js
@@ -1303,11 +1339,13 @@ files:
1303
1339
  - app/assets/javascripts/pageflow/ui/views/table_view.js
1304
1340
  - app/assets/javascripts/pageflow/ui/views/tabs_view.js
1305
1341
  - app/assets/javascripts/pageflow/ui/views/tooltip_view.js
1342
+ - app/assets/javascripts/pageflow/vendor.js
1306
1343
  - app/assets/javascripts/pageflow/video_player.js
1307
1344
  - app/assets/javascripts/pageflow/video_player/buffer_underrun_waiting.js
1308
1345
  - app/assets/javascripts/pageflow/video_player/cue_settings_methods.js
1309
1346
  - app/assets/javascripts/pageflow/video_player/dash.js
1310
1347
  - app/assets/javascripts/pageflow/video_player/filter_sources.js
1348
+ - app/assets/javascripts/pageflow/video_player/get_media_element_method.js
1311
1349
  - app/assets/javascripts/pageflow/video_player/lazy.js
1312
1350
  - app/assets/javascripts/pageflow/video_player/media_events.js
1313
1351
  - app/assets/javascripts/pageflow/video_player/prebuffering.js
@@ -1366,6 +1404,7 @@ files:
1366
1404
  - app/assets/stylesheets/pageflow/editor/background_positioning.scss
1367
1405
  - app/assets/stylesheets/pageflow/editor/base.scss
1368
1406
  - app/assets/stylesheets/pageflow/editor/blank_entry.scss
1407
+ - app/assets/stylesheets/pageflow/editor/change_theme.scss
1369
1408
  - app/assets/stylesheets/pageflow/editor/colors.scss
1370
1409
  - app/assets/stylesheets/pageflow/editor/confirm_encoding.scss
1371
1410
  - app/assets/stylesheets/pageflow/editor/confirm_upload.scss
@@ -1399,6 +1438,7 @@ files:
1399
1438
  - app/assets/stylesheets/pageflow/editor/publish_entry.scss
1400
1439
  - app/assets/stylesheets/pageflow/editor/quotas.scss
1401
1440
  - app/assets/stylesheets/pageflow/editor/select_button.scss
1441
+ - app/assets/stylesheets/pageflow/editor/static_thumbnails.scss
1402
1442
  - app/assets/stylesheets/pageflow/editor/storyline_picker.scss
1403
1443
  - app/assets/stylesheets/pageflow/editor/text_tracks.scss
1404
1444
  - app/assets/stylesheets/pageflow/editor/unsupported_browser_hint.scss
@@ -1457,7 +1497,6 @@ files:
1457
1497
  - app/assets/stylesheets/pageflow/skip_links.scss
1458
1498
  - app/assets/stylesheets/pageflow/slideshow.scss
1459
1499
  - app/assets/stylesheets/pageflow/subshare.scss
1460
- - app/assets/stylesheets/pageflow/text_variants.scss
1461
1500
  - app/assets/stylesheets/pageflow/themes/default.scss
1462
1501
  - app/assets/stylesheets/pageflow/themes/default/README.md
1463
1502
  - app/assets/stylesheets/pageflow/themes/default/anchors.scss
@@ -1477,6 +1516,7 @@ files:
1477
1516
  - app/assets/stylesheets/pageflow/themes/default/indicators/widget_margins.scss
1478
1517
  - app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss
1479
1518
  - app/assets/stylesheets/pageflow/themes/default/logo.scss
1519
+ - app/assets/stylesheets/pageflow/themes/default/logo/alignment.scss
1480
1520
  - app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss
1481
1521
  - app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss
1482
1522
  - app/assets/stylesheets/pageflow/themes/default/mixins/cue_margins.scss
@@ -1504,6 +1544,7 @@ files:
1504
1544
  - app/assets/stylesheets/pageflow/themes/default/overview/typography.scss
1505
1545
  - app/assets/stylesheets/pageflow/themes/default/page.scss
1506
1546
  - app/assets/stylesheets/pageflow/themes/default/page/anchors.scss
1547
+ - app/assets/stylesheets/pageflow/themes/default/page/line_lengths.scss
1507
1548
  - app/assets/stylesheets/pageflow/themes/default/player_controls.scss
1508
1549
  - app/assets/stylesheets/pageflow/themes/default/player_controls/classic.scss
1509
1550
  - app/assets/stylesheets/pageflow/themes/default/player_controls/classic/close_button.scss
@@ -1602,6 +1643,7 @@ files:
1602
1643
  - app/jobs/pageflow/poll_meta_data_from_zencoder_job.rb
1603
1644
  - app/jobs/pageflow/poll_zencoder_job.rb
1604
1645
  - app/jobs/pageflow/process_file_job.rb
1646
+ - app/jobs/pageflow/prune_auto_snapshots_job.rb
1605
1647
  - app/jobs/pageflow/request_meta_data_from_zencoder_job.rb
1606
1648
  - app/jobs/pageflow/submit_file_to_zencoder_job.rb
1607
1649
  - app/jobs/pageflow/upload_file_to_s3_job.rb
@@ -1610,12 +1652,19 @@ files:
1610
1652
  - app/models/concerns/pageflow/feature_target.rb
1611
1653
  - app/models/concerns/pageflow/hosted_file.rb
1612
1654
  - app/models/concerns/pageflow/output_source.rb
1655
+ - app/models/concerns/pageflow/serialization_blacklist.rb
1656
+ - app/models/concerns/pageflow/serialized_configuration.rb
1613
1657
  - app/models/concerns/pageflow/suspendable.rb
1658
+ - app/models/concerns/pageflow/theme_referencer.rb
1614
1659
  - app/models/concerns/pageflow/uploaded_file.rb
1615
1660
  - app/models/pageflow/account.rb
1616
1661
  - app/models/pageflow/account_member_query.rb
1662
+ - app/models/pageflow/account_role_query.rb
1663
+ - app/models/pageflow/application_query.rb
1664
+ - app/models/pageflow/application_record.rb
1617
1665
  - app/models/pageflow/audio_file.rb
1618
1666
  - app/models/pageflow/audio_file_url_templates.rb
1667
+ - app/models/pageflow/auto_snapshot_pruning.rb
1619
1668
  - app/models/pageflow/chapter.rb
1620
1669
  - app/models/pageflow/chapter_scaffold.rb
1621
1670
  - app/models/pageflow/cname_theming_request_scope.rb
@@ -1626,6 +1675,7 @@ files:
1626
1675
  - app/models/pageflow/entry_duplicate.rb
1627
1676
  - app/models/pageflow/entry_publication.rb
1628
1677
  - app/models/pageflow/entry_role_query.rb
1678
+ - app/models/pageflow/entry_title_or_account_name_query.rb
1629
1679
  - app/models/pageflow/file_reuse.rb
1630
1680
  - app/models/pageflow/file_usage.rb
1631
1681
  - app/models/pageflow/folder.rb
@@ -1634,11 +1684,13 @@ files:
1634
1684
  - app/models/pageflow/image_file_url_templates.rb
1635
1685
  - app/models/pageflow/invitation_form.rb
1636
1686
  - app/models/pageflow/invited_user.rb
1687
+ - app/models/pageflow/managed_user_query.rb
1637
1688
  - app/models/pageflow/membership.rb
1638
1689
  - app/models/pageflow/null_user.rb
1639
1690
  - app/models/pageflow/overview_button.rb
1640
1691
  - app/models/pageflow/page.rb
1641
1692
  - app/models/pageflow/positioned_file.rb
1693
+ - app/models/pageflow/potential_memberships.rb
1642
1694
  - app/models/pageflow/published_entry.rb
1643
1695
  - app/models/pageflow/revision.rb
1644
1696
  - app/models/pageflow/roles.rb
@@ -1650,6 +1702,7 @@ files:
1650
1702
  - app/models/pageflow/thumbnail_file_resolver.rb
1651
1703
  - app/models/pageflow/url_template.rb
1652
1704
  - app/models/pageflow/used_file.rb
1705
+ - app/models/pageflow/user_name_query.rb
1653
1706
  - app/models/pageflow/video_file.rb
1654
1707
  - app/models/pageflow/video_file_url_templates.rb
1655
1708
  - app/models/pageflow/widget.rb
@@ -1669,22 +1722,20 @@ files:
1669
1722
  - app/state_machines/pageflow/image_file_state_machine.rb
1670
1723
  - app/views/admin/accounts/_account_details.html.arb
1671
1724
  - app/views/admin/accounts/_form.html.erb
1725
+ - app/views/admin/accounts/_theming_defaults_inline_help.html.erb
1672
1726
  - app/views/admin/accounts/_theming_details.html.arb
1673
- - app/views/admin/accounts/_widgets_inline_help.html.erb
1674
1727
  - app/views/admin/entries/_attributes_table.html.arb
1675
1728
  - app/views/admin/entries/_links.html.arb
1676
1729
  - app/views/admin/features/_form.html.erb
1677
- - app/views/admin/memberships/_entity_account_input.html.erb
1678
- - app/views/admin/memberships/_entity_entry_input.html.erb
1679
1730
  - app/views/admin/memberships/_form.html.erb
1680
1731
  - app/views/admin/memberships/_role_hint.html.arb
1681
1732
  - app/views/admin/revisions/_form.html.erb
1682
1733
  - app/views/admin/users/_form.html.erb
1683
- - app/views/admin/users/_quota_exhausted.html.erb
1684
1734
  - app/views/admin/users/delete_me.html.erb
1685
1735
  - app/views/admin/users/invitation.html.erb
1686
1736
  - app/views/admin/users/me.html.erb
1687
- - app/views/components/pageflow/admin/add_membership_button_if_needed.rb
1737
+ - app/views/admin/users/quota_state.html.erb
1738
+ - app/views/components/pageflow/admin/add_membership_button.rb
1688
1739
  - app/views/components/pageflow/admin/custom_scopes_renderer.rb
1689
1740
  - app/views/components/pageflow/admin/embed_code_field.rb
1690
1741
  - app/views/components/pageflow/admin/embedded_index_table.rb
@@ -1707,6 +1758,8 @@ files:
1707
1758
  - app/views/layouts/pageflow/application.html.erb
1708
1759
  - app/views/pageflow/admin/users/_cannot_delete.html.erb
1709
1760
  - app/views/pageflow/admin/users/_may_delete.html.erb
1761
+ - app/views/pageflow/admin/users/_quota_exhausted.html.erb
1762
+ - app/views/pageflow/admin/users/_quota_state.html.erb
1710
1763
  - app/views/pageflow/admin/widgets/_fields.html.erb
1711
1764
  - app/views/pageflow/audio_files/_audio_file.html.erb
1712
1765
  - app/views/pageflow/audio_files/_script_tag.html.erb
@@ -1786,6 +1839,7 @@ files:
1786
1839
  - app/views/pageflow/social_share/_entry_meta_tags.html.erb
1787
1840
  - app/views/pageflow/social_share/_image_tags.html.erb
1788
1841
  - app/views/pageflow/social_share/_page_meta_tags.html.erb
1842
+ - app/views/pageflow/themes/_theme.json.jbuilder
1789
1843
  - app/views/pageflow/user_mailer/invitation.html.erb
1790
1844
  - app/views/pageflow/user_mailer/invitation.text.erb
1791
1845
  - app/views/pageflow/video_files/_script_tag.html.erb
@@ -1853,8 +1907,11 @@ files:
1853
1907
  - db/migrate/20161007144500_add_text_track_files.rb
1854
1908
  - db/migrate/20161216175734_move_configuration_from_file_to_file_usage.rb
1855
1909
  - db/migrate/20161230144429_add_processed_attachment_to_text_track_files.rb
1910
+ - db/migrate/20170201074328_add_configuration_to_widgets.rb
1856
1911
  - db/migrate/20170222124848_update_video_file_output_presences.rb
1912
+ - db/migrate/20170315130000_add_theme_name_to_revisions.rb
1857
1913
  - db/migrate/20170421112300_turn_background_video_pages_into_background_image_pages.rb
1914
+ - db/migrate/20170912165050_reset_copied_snapshot_type.rb
1858
1915
  - db/migrate/20170913105048_fix_hls_output_presences_for_legacy_video_files.rb
1859
1916
  - lib/generators/pageflow/active_admin_initializer/active_admin_initializer_generator.rb
1860
1917
  - lib/generators/pageflow/assets/assets_generator.rb
@@ -1892,12 +1949,15 @@ files:
1892
1949
  - lib/generators/pageflow/routes/routes_generator.rb
1893
1950
  - lib/generators/pageflow/seeds/seeds_generator.rb
1894
1951
  - lib/generators/pageflow/seeds/templates/seeds.rb
1952
+ - lib/generators/pageflow/theme/templates/preview.png
1953
+ - lib/generators/pageflow/theme/templates/preview_thumbnail.png
1895
1954
  - lib/generators/pageflow/theme/templates/themes/%name%.scss.tt
1896
1955
  - lib/generators/pageflow/theme/templates/themes/%name%/variables.scss.tt
1897
1956
  - lib/generators/pageflow/theme/theme_generator.rb
1898
1957
  - lib/generators/pageflow/user/user_generator.rb
1899
1958
  - lib/pageflow.rb
1900
1959
  - lib/pageflow/ability_mixin.rb
1960
+ - lib/pageflow/active_admin_can_can_fix.rb
1901
1961
  - lib/pageflow/active_admin_patches/views/attributes_table.rb
1902
1962
  - lib/pageflow/active_admin_patches/views/pages/base.rb
1903
1963
  - lib/pageflow/active_admin_patches/views/table_for.rb
@@ -1910,6 +1970,7 @@ files:
1910
1970
  - lib/pageflow/built_in_widget_type.rb
1911
1971
  - lib/pageflow/built_in_widget_types_plugin.rb
1912
1972
  - lib/pageflow/configuration.rb
1973
+ - lib/pageflow/configuration/permissions.rb
1913
1974
  - lib/pageflow/engine.rb
1914
1975
  - lib/pageflow/feature.rb
1915
1976
  - lib/pageflow/features.rb
@@ -1919,6 +1980,7 @@ files:
1919
1980
  - lib/pageflow/help_entries.rb
1920
1981
  - lib/pageflow/help_entry.rb
1921
1982
  - lib/pageflow/hooks.rb
1983
+ - lib/pageflow/images/palette.png
1922
1984
  - lib/pageflow/page_type.rb
1923
1985
  - lib/pageflow/page_type_feature.rb
1924
1986
  - lib/pageflow/page_types.rb
@@ -1989,7 +2051,8 @@ files:
1989
2051
  - vendor/assets/javascripts/videojs-dash.js
1990
2052
  - vendor/assets/javascripts/videojs.js
1991
2053
  homepage: http://www.pageflow.io
1992
- licenses: []
2054
+ licenses:
2055
+ - MIT
1993
2056
  metadata: {}
1994
2057
  post_install_message:
1995
2058
  rdoc_options: []
@@ -2007,7 +2070,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2007
2070
  version: '0'
2008
2071
  requirements: []
2009
2072
  rubyforge_project:
2010
- rubygems_version: 2.6.8
2073
+ rubygems_version: 2.7.0
2011
2074
  signing_key:
2012
2075
  specification_version: 4
2013
2076
  summary: Multimedia story telling for the web.
@@ -1,37 +0,0 @@
1
- pageflow.widgetSubject = {
2
- initialize: function() {
3
- this.widgets = pageflow.WidgetsCollection.createForSubject(this);
4
-
5
- if (this.autoSaveWidgets) {
6
- this.listenTo(this.widgets, 'change:type_name', function() {
7
- this.saveWidgets();
8
- });
9
- }
10
- },
11
-
12
- widgetsUrlRoot: function() {
13
- return '/editor/subjects/' + this.collectionName + '/' + this.id;
14
- },
15
-
16
- fetchWidgets: function() {
17
- this.widgets.fetch();
18
- },
19
-
20
- saveWidgets: function(options) {
21
- var model = this;
22
-
23
- return Backbone.sync('patch', model, _.extend(options || {}, {
24
- url: this.widgetsUrlRoot() + '/widgets/batch',
25
-
26
- attrs: {
27
- widgets: model.widgets.map(function(widget) {
28
- return widget.toJSON();
29
- })
30
- },
31
-
32
- success: function(response) {
33
- model.trigger('sync:widgets', model, response, {});
34
- }
35
- }));
36
- }
37
- };
@@ -1,9 +0,0 @@
1
- pageflow.reloadStylesheet = function(name) {
2
- var link = $('head link[data-name=' + name + ']');
3
-
4
- if (!link.data('originalHref')) {
5
- link.data('originalHref', link.attr('href'));
6
- }
7
-
8
- link.attr('href', link.data('originalHref') + '&reload=' + new Date().getTime());
9
- };