pageflow 15.1.2 → 15.4.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 (205) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +160 -190
  3. data/README.md +3 -5
  4. data/admins/pageflow/accounts.rb +13 -35
  5. data/admins/pageflow/entry.rb +21 -1
  6. data/admins/pageflow/entry_templates.rb +140 -0
  7. data/admins/pageflow/membership.rb +12 -0
  8. data/admins/pageflow/user.rb +5 -3
  9. data/app/assets/javascripts/pageflow/admin/accounts.js +3 -3
  10. data/app/assets/javascripts/pageflow/admin/entries.js +65 -0
  11. data/app/assets/javascripts/pageflow/admin/users.js +1 -1
  12. data/app/assets/javascripts/pageflow/asset_urls.js.erb +1 -0
  13. data/app/assets/javascripts/pageflow/base.js +0 -12
  14. data/app/assets/javascripts/pageflow/components.js +2 -6
  15. data/app/assets/javascripts/pageflow/dist/ui.js +155 -46
  16. data/app/assets/javascripts/pageflow/vendor.js +12 -10
  17. data/app/assets/stylesheets/pageflow/base.scss +0 -7
  18. data/app/assets/stylesheets/pageflow/editor/base.scss +5 -2
  19. data/app/assets/stylesheets/pageflow/editor/composables.scss +5 -1
  20. data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +1 -1
  21. data/app/assets/stylesheets/pageflow/editor/emulation_mode_button.scss +44 -55
  22. data/app/assets/stylesheets/pageflow/editor/help.scss +2 -2
  23. data/app/assets/stylesheets/pageflow/editor/select_button.scss +1 -1
  24. data/app/assets/stylesheets/pageflow/editor/sidebar_footer.scss +1 -1
  25. data/app/assets/stylesheets/pageflow/entries.scss +1 -1
  26. data/app/assets/stylesheets/pageflow/loading_spinner.scss +4 -1
  27. data/app/assets/stylesheets/pageflow/navigation_mobile.scss +4 -4
  28. data/app/assets/stylesheets/pageflow/themes/default/anchors.scss +1 -1
  29. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss +4 -0
  30. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +6 -1
  31. data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +1 -1
  32. data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/control_bar.scss +1 -1
  33. data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/info_box.scss +1 -1
  34. data/app/assets/stylesheets/pageflow/themes/default/player_controls/shared/menu_bar.scss +2 -2
  35. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/control_bar.scss +2 -2
  36. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/info_box.scss +1 -1
  37. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/quality_menu.scss +2 -2
  38. data/app/assets/stylesheets/pageflow/themes/default/player_controls/waveform/wave.scss +1 -1
  39. data/app/assets/stylesheets/pageflow/ui/forms.scss +9 -2
  40. data/app/assets/stylesheets/pageflow/ui/input/extended_select_input.scss +2 -2
  41. data/app/assets/stylesheets/pageflow/ui/tooltip.scss +17 -3
  42. data/app/controllers/pageflow/editor/widgets_controller.rb +1 -1
  43. data/app/helpers/pageflow/admin/entries_helper.rb +16 -0
  44. data/app/helpers/pageflow/pages_helper.rb +1 -0
  45. data/app/helpers/pageflow/structured_data_helper.rb +0 -2
  46. data/app/models/pageflow/account.rb +26 -0
  47. data/app/models/pageflow/account_role_query.rb +1 -1
  48. data/app/models/pageflow/entry.rb +16 -2
  49. data/app/models/pageflow/entry_duplicate.rb +1 -0
  50. data/app/models/pageflow/entry_template.rb +69 -0
  51. data/app/models/pageflow/managed_user_query.rb +1 -1
  52. data/app/models/pageflow/revision.rb +1 -1
  53. data/app/models/pageflow/theming.rb +8 -47
  54. data/app/policies/pageflow/account_policy.rb +10 -0
  55. data/app/policies/pageflow/entry_template_policy.rb +22 -0
  56. data/app/policies/pageflow/folder_policy.rb +2 -2
  57. data/app/policies/pageflow/membership_policy.rb +2 -2
  58. data/app/policies/pageflow/theming_policy.rb +2 -6
  59. data/app/policies/pageflow/user_policy.rb +1 -1
  60. data/app/views/admin/accounts/_configuration_label.html.erb +5 -0
  61. data/app/views/admin/accounts/_entry_template_details.html.arb +19 -0
  62. data/app/views/admin/accounts/_form.html.erb +5 -31
  63. data/app/views/admin/accounts/_share_providers_label.html.erb +5 -0
  64. data/app/views/admin/accounts/_theming_details.html.arb +0 -12
  65. data/app/views/admin/entries/_attributes_table.html.arb +5 -0
  66. data/app/views/admin/entries/_not_allowed_to_see_entry_types.json.jbuilder +2 -0
  67. data/app/views/admin/entries/entry_types.json.jbuilder +4 -0
  68. data/app/views/admin/entry_templates/_form.html.erb +58 -0
  69. data/app/views/admin/users/_not_allowed_to_see_user_quota.html.erb +3 -0
  70. data/app/views/components/pageflow/admin/entry_templates_tab.rb +48 -0
  71. data/app/views/pageflow/admin/users/_quota_exhausted.html.erb +1 -1
  72. data/app/views/pageflow/themes/_theme.json.jbuilder +1 -0
  73. data/app/views/pageflow/video_files/_video_file.json.jbuilder +8 -1
  74. data/config/initializers/admin_resource_tabs.rb +5 -0
  75. data/config/initializers/help_entries.rb +1 -5
  76. data/config/locales/de.yml +100 -162
  77. data/config/locales/en.yml +91 -150
  78. data/db/migrate/20200122115400_create_pageflow_entry_templates.rb +75 -0
  79. data/db/migrate/20200206134400_convert_legacy_scrolled_content_element_types.rb +48 -0
  80. data/db/migrate/20200515112500_add_constraints_to_entry_templates.rb +21 -0
  81. data/db/migrate/20200807135200_rename_pageflow_entry_template_entry_type_to_entry_type_name.rb +7 -0
  82. data/entry_types/paged/app/assets/javascripts/pageflow_paged/components.js +7 -0
  83. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +1541 -1357
  84. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +9245 -0
  85. data/{app/assets/javascripts/pageflow → entry_types/paged/app/assets/javascripts/pageflow_paged}/dist/react-client.js +1 -1
  86. data/{app/assets/javascripts/pageflow → entry_types/paged/app/assets/javascripts/pageflow_paged}/dist/react-server.js +3 -3
  87. data/entry_types/paged/app/assets/javascripts/pageflow_paged/frontend.js +6 -0
  88. data/entry_types/paged/app/assets/javascripts/pageflow_paged/server_rendering.js +9 -0
  89. data/entry_types/paged/app/assets/javascripts/pageflow_paged/vendor.js +9 -0
  90. data/entry_types/paged/app/assets/javascripts/pageflow_paged/videojs.js +6 -0
  91. data/entry_types/paged/app/controllers/pageflow_paged/application_controller.rb +2 -2
  92. data/{app/helpers/pageflow → entry_types/paged/app/helpers/pageflow_paged}/page_background_asset_helper.rb +4 -3
  93. data/{app/helpers/pageflow → entry_types/paged/app/helpers/pageflow_paged}/react_server_side_rendering_helper.rb +23 -2
  94. data/entry_types/paged/app/views/layouts/pageflow_paged/_loading_spinner_inline_script.html.erb +1 -0
  95. data/entry_types/paged/app/views/layouts/pageflow_paged/application.html.erb +3 -3
  96. data/entry_types/paged/app/views/pageflow_paged/editor/entries/_head.html.erb +4 -2
  97. data/entry_types/paged/app/views/pageflow_paged/entries/_entry.html.erb +1 -1
  98. data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/page_background_asset/_element.html.erb +0 -0
  99. data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/react/_widget.html.erb +0 -0
  100. data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/react/page.html.erb +0 -0
  101. data/entry_types/paged/config/initializers/features.rb +1 -1
  102. data/entry_types/paged/config/initializers/help_entries.rb +17 -0
  103. data/entry_types/paged/config/locales/new/help.de.yml +162 -0
  104. data/entry_types/paged/config/locales/new/help.en.yml +153 -0
  105. data/entry_types/paged/lib/pageflow_paged/engine.rb +13 -0
  106. data/entry_types/paged/lib/pageflow_paged/plugin.rb +5 -1
  107. data/entry_types/paged/lib/pageflow_paged/react.rb +12 -0
  108. data/{lib/pageflow → entry_types/paged/lib/pageflow_paged}/react/page_type.rb +2 -2
  109. data/{lib/pageflow → entry_types/paged/lib/pageflow_paged}/react/widget_type.rb +2 -2
  110. data/entry_types/paged/lib/tasks/pageflow_paged_tasks.rake +7 -0
  111. data/entry_types/paged/vendor/assets/javascripts/development/pageflow_paged/vendor/react-server.js +20613 -0
  112. data/entry_types/paged/vendor/assets/javascripts/development/pageflow_paged/vendor/react.js +21495 -0
  113. data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/dash.all.min.js +0 -0
  114. data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/videojs-dash.js +0 -0
  115. data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/videojs.js +0 -0
  116. data/entry_types/paged/vendor/assets/javascripts/production/pageflow_paged/vendor/react-server.js +24 -0
  117. data/entry_types/paged/vendor/assets/javascripts/production/pageflow_paged/vendor/react.js +24 -0
  118. data/entry_types/scrolled/app/assets/javascripts/pageflow_scrolled/legacy.js +0 -0
  119. data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/chapters_controller.rb +2 -2
  120. data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/content_elements_controller.rb +15 -4
  121. data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/sections_controller.rb +2 -2
  122. data/entry_types/scrolled/app/controllers/pageflow_scrolled/entries_controller.rb +10 -0
  123. data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb +11 -1
  124. data/entry_types/scrolled/app/helpers/pageflow_scrolled/entry_json_seed_helper.rb +4 -1
  125. data/entry_types/scrolled/app/helpers/pageflow_scrolled/favicon_helper.rb +21 -0
  126. data/entry_types/scrolled/app/helpers/pageflow_scrolled/i18n_helper.rb +35 -0
  127. data/entry_types/scrolled/app/helpers/pageflow_scrolled/react_server_side_rendering_helper.rb +40 -0
  128. data/entry_types/scrolled/app/helpers/pageflow_scrolled/themes_helper.rb +8 -0
  129. data/entry_types/scrolled/app/models/pageflow_scrolled/content_element.rb +38 -0
  130. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/content_elements/batch.json.jbuilder +2 -0
  131. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb +1 -7
  132. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_seed.json.jbuilder +1 -1
  133. data/entry_types/scrolled/app/views/pageflow_scrolled/entries/show.html.erb +36 -10
  134. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +13 -1
  135. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder +8 -0
  136. data/entry_types/scrolled/app/views/pageflow_scrolled/favicons/_entry.html.erb +10 -0
  137. data/entry_types/scrolled/config/initializers/help_entries.rb +16 -0
  138. data/entry_types/scrolled/config/locales/de.yml +655 -0
  139. data/entry_types/scrolled/config/locales/en.yml +522 -0
  140. data/entry_types/scrolled/config/routes.rb +1 -0
  141. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/install_generator.rb +36 -0
  142. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/android-chrome-192x192.png +0 -0
  143. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/android-chrome-512x512.png +0 -0
  144. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/apple-touch-icon.png +0 -0
  145. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/browserconfig.xml +9 -0
  146. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon-16x16.png +0 -0
  147. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon-32x32.png +0 -0
  148. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon.ico +0 -0
  149. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/mstile-150x150.png +0 -0
  150. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/safari-pinned-tab.svg +46 -0
  151. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/site.webmanifest +19 -0
  152. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/logoDesktop.svg +56 -0
  153. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/logoMobile.svg +22 -0
  154. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/unmute.mp3 +0 -0
  155. data/entry_types/scrolled/lib/pageflow_scrolled/engine.rb +4 -0
  156. data/entry_types/scrolled/lib/pageflow_scrolled/plugin.rb +3 -1
  157. data/entry_types/scrolled/lib/pageflow_scrolled/seeds.rb +93 -28
  158. data/entry_types/scrolled/lib/tasks/pageflow_scrolled_tasks.rake +134 -0
  159. data/entry_types/scrolled/package/contentElements-editor.js +482 -0
  160. data/entry_types/scrolled/package/contentElements-frontend.css +1 -0
  161. data/entry_types/scrolled/package/contentElements-frontend.js +1112 -0
  162. data/entry_types/scrolled/package/editor.js +3066 -2579
  163. data/entry_types/scrolled/package/frontend-server.js +228 -0
  164. data/entry_types/scrolled/package/frontend/EditableText-43c50894.js +2161 -0
  165. data/entry_types/scrolled/package/frontend/Wavesurfer-b88b02e0.js +375 -0
  166. data/entry_types/scrolled/package/frontend/components-3ead1b4a.js +2533 -0
  167. data/entry_types/scrolled/package/frontend/getPrototypeOf-63c7c8e8.js +86 -0
  168. data/entry_types/scrolled/package/frontend/index.css +9 -0
  169. data/entry_types/scrolled/package/frontend/index.js +5507 -0
  170. data/entry_types/scrolled/package/package.json +40 -7
  171. data/entry_types/scrolled/spec/fixtures/audio.m4a +0 -0
  172. data/entry_types/scrolled/spec/fixtures/video.mp4 +0 -0
  173. data/lib/generators/pageflow/initializer/templates/pageflow.rb +21 -9
  174. data/lib/pageflow/ability_mixin.rb +15 -2
  175. data/lib/pageflow/configuration.rb +6 -5
  176. data/lib/pageflow/entry_type_configuration.rb +1 -0
  177. data/lib/pageflow/global_config_api.rb +5 -4
  178. data/lib/pageflow/react.rb +4 -2
  179. data/lib/pageflow/seeds.rb +0 -2
  180. data/lib/pageflow/theme.rb +4 -0
  181. data/lib/pageflow/themes.rb +9 -1
  182. data/lib/pageflow/version.rb +1 -1
  183. data/{packages/pageflow → package}/config/jest/index.js +8 -3
  184. data/{packages/pageflow → package}/config/jest/transformers/jst.js +1 -1
  185. data/{packages/pageflow → package}/config/jest/transformers/upwardBabel.js +0 -0
  186. data/{packages/pageflow → package}/config/webpack.js +7 -1
  187. data/{packages/pageflow → package}/editor.js +493 -1122
  188. data/package/frontend.js +2542 -0
  189. data/{packages/pageflow → package}/package.json +5 -1
  190. data/package/testHelpers.js +732 -0
  191. data/{packages/pageflow → package}/ui.js +155 -46
  192. data/spec/factories/accounts.rb +9 -1
  193. data/spec/factories/entry_templates.rb +9 -0
  194. data/spec/factories/published_entries.rb +8 -1
  195. data/spec/factories/themings.rb +0 -1
  196. metadata +94 -33
  197. data/app/assets/javascripts/pageflow/dist/editor.js +0 -11890
  198. data/app/assets/javascripts/pageflow/dist/frontend.js +0 -5798
  199. data/app/assets/javascripts/pageflow/videojs.js +0 -6
  200. data/config/initializers/entry_types.rb +0 -4
  201. data/entry_types/scrolled/config/locales/new/de.yml +0 -46
  202. data/entry_types/scrolled/config/locales/new/en.yml +0 -46
  203. data/entry_types/scrolled/package/frontend.js +0 -3404
  204. data/packages/pageflow/config/jest/transformers/cssModules.js +0 -1
  205. data/packages/pageflow/testHelpers.js +0 -268
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e36aad3da1e0af8d6a54b98c01e7af7d09712f38
4
- data.tar.gz: b1553c60fd5fc7b617f06f831020f16eb9522c97
2
+ SHA256:
3
+ metadata.gz: 3f03a7b8a1dfb0f883c3b74dc65373ddcdda27b3dad7a469b5f0c90dd66a4e7f
4
+ data.tar.gz: 62c18d804e95fb066746cb1cb482ad1504ca6e89107d63286c2950917a371d48
5
5
  SHA512:
6
- metadata.gz: a00637112da27485532da857f43aaa9664aa0f7c533492fbd10cf7da92912cfd091282f873dab6d577f6fc5d4b4d7cdd6f25a798775a908f837fdcc96f9044d7
7
- data.tar.gz: b4cdb7118d5d89ebb3b2e1f228475a1ba17ce4249619059f2995f3aa3738558939f1071b53c2325ce7234212c62712cd1469bde28519408721cadcf0623f393b
6
+ metadata.gz: cd94ad6911c8e9c0b0000f4eb294b3d0a06ebc108fa81692c284d0d2f89a53753665827110589979bd7e2a953f659bfd7e6707d35f89f5140821096742895251
7
+ data.tar.gz: 2ed57089f493c3d3c4773c503852c26473e50c0fe53e61acbbe0d01f2a6d383dc8460fcdaf06bfa349bcc5b17e3fe6960ad6791a629f09665283654037a0fd19
@@ -1,218 +1,188 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 15.1.2
3
+ ### Version 15.4.0
4
4
 
5
- 2020-04-01
5
+ 2021-01-08
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow/compare/v15.1.1...v15.1.2)
8
-
9
- - Bug fix: Make multimedia alert and new pages box display again for
10
- new paged entries
11
- ([#1368](https://github.com/codevise/pageflow/pull/1368))
12
-
13
- ### Version 15.1.1
14
-
15
- 2020-02-12
16
-
17
- [Compare changes](https://github.com/codevise/pageflow/compare/v15.1.0...v15.1.1)
18
-
19
- - Re-add entry.configuration in editor for backwards compatibility
20
- ([#1332](https://github.com/codevise/pageflow/pull/1332))
21
-
22
- ### Version 15.1.0
23
-
24
- 2020-02-05
25
-
26
- [Compare changes](https://github.com/codevise/pageflow/compare/15-0-stable...v15.1.0)
27
-
28
- See
29
- [changes grouped by pre releases](https://github.com/codevise/pageflow/blob/v15.1.0.rc0/CHANGELOG.md).
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/15-3-stable...v15.4.0)
30
8
 
31
9
  #### Core
32
10
 
33
- ##### Host Application
34
-
35
- - Updated Active Admin to 2.5.0
36
- ([#1280](https://github.com/codevise/pageflow/pull/1280))
37
-
38
- Starting with Active Admin 2.0, using `unshift` (or any other
39
- mutating method) to add load paths no longer work reliably (see
40
- [activeadmin/activeadmin#5995](https://github.com/activeadmin/activeadmin/issues/5995).
41
- Apply the following change to your host application's
42
- `active_admin.rb` initializer:
43
-
44
- ```diff
45
- - ActiveAdmin.application.unshift(Pageflow.active_admin_load_path)
46
- + ActiveAdmin.application.load_paths += [Pageflow.active_admin_load_path]
47
- ```
48
-
49
- - Improve support for Webpack setup in host appplication
50
- ([#1276](https://github.com/codevise/pageflow/pull/1276),
51
- [#1279](https://github.com/codevise/pageflow/pull/1279))
52
-
53
- ##### Admin
54
-
55
- - Improve add member button
56
- ([#1195](https://github.com/codevise/pageflow/pull/1195))
57
-
58
11
  ##### Editor
59
12
 
60
- - Bug fix: Prevent including pageflow/ui in pageflow/editor
61
- ([#1309](https://github.com/codevise/pageflow/pull/1309))
62
-
63
- ##### Engine Config
64
-
65
- - Add entry type concept
66
- ([#1249](https://github.com/codevise/pageflow/pull/1249))
67
- - Render entry type specific editor seed data
68
- ([#1265](https://github.com/codevise/pageflow/pull/1265))
69
- - Entry type specific editor views
70
- ([#1262](https://github.com/codevise/pageflow/pull/1262))
71
- - Entry type specific editor assets
72
- ([#1257](https://github.com/codevise/pageflow/pull/1257))
73
- - Let entry types provide frontend apps to render entries
74
- ([#1254](https://github.com/codevise/pageflow/pull/1254),
75
- [#1255](https://github.com/codevise/pageflow/pull/1255))
76
- - Extend config DSL for entry types
77
- ([#1267](https://github.com/codevise/pageflow/pull/1267))
78
- - Allow scoping file types and widget types by entry types
79
- ([#1283](https://github.com/codevise/pageflow/pull/1283))
80
- - Decouple revision components and file types from page types
81
- ([#1256](https://github.com/codevise/pageflow/pull/1256),
82
- [#1259](https://github.com/codevise/pageflow/pull/1259))
83
- - Consider feature flags for file types available in editor
84
- ([#1275](https://github.com/codevise/pageflow/pull/1275))
85
- - Extract part of appearance options into paged entry type
86
- ([#1304](https://github.com/codevise/pageflow/pull/1304),
87
- [#1321](https://github.com/codevise/pageflow/pull/1321))
88
- - Scope existing built ins to paged entry type
89
- ([#1296](https://github.com/codevise/pageflow/pull/1296))
90
- - Integrate entry type specific config with feature flags
91
- ([#1295](https://github.com/codevise/pageflow/pull/1295))
92
- - Decouple editor layout
93
- ([#1284](https://github.com/codevise/pageflow/pull/1284))
94
- - Let entry types define editor controllers
95
- ([#1271](https://github.com/codevise/pageflow/pull/1271))
96
- - Add authentication provider
97
- ([#1236](https://github.com/codevise/pageflow/pull/1236))
98
- - Bug fix: Change revision#locale to always return string
99
- ([#1239](https://github.com/codevise/pageflow/pull/1239))
100
-
101
- ##### File Importers
102
-
103
- - Introduce file importer API
104
- ([#1250](https://github.com/codevise/pageflow/pull/1250),
105
- [#1266](https://github.com/codevise/pageflow/pull/1266),
106
- [#1258](https://github.com/codevise/pageflow/pull/1258),
107
- [#1269](https://github.com/codevise/pageflow/pull/1269),
108
- [#1323](https://github.com/codevise/pageflow/pull/1323))
13
+ - Improve editor styles
14
+ ([#1629](https://github.com/codevise/pageflow/pull/1629))
15
+ - Bug fix: Wait for feature detection before booting editor
16
+ ([#1573](https://github.com/codevise/pageflow/pull/1573))
17
+ - Bug fix: Work around Minicolors problem with updating swatches
18
+ ([#1583](https://github.com/codevise/pageflow/pull/1583))
109
19
 
110
20
  ##### Internal
111
21
 
112
- - Add configuration to revisions
113
- ([#1306](https://github.com/codevise/pageflow/pull/1306))
114
- - Add entry type engines
115
- ([#1247](https://github.com/codevise/pageflow/pull/1247))
116
- - Migrate legacy JavaScript to Rollup/Jest
117
- ([#1241](https://github.com/codevise/pageflow/pull/1241))
118
- - Update pageflow-react build stack
119
- ([#1240](https://github.com/codevise/pageflow/pull/1240))
120
- - Modernize editor JavaScript build stack
121
- ([#1238](https://github.com/codevise/pageflow/pull/1238))
122
- - Replace chromedriver-helper by webdrivers
123
- ([#1251](https://github.com/codevise/pageflow/pull/1251))
22
+ - String literals in SQL should only be enclosed by single quotes
23
+ ([#1576](https://github.com/codevise/pageflow/pull/1576))
24
+ - Stub Paperclip by default in specs
25
+ ([#1609](https://github.com/codevise/pageflow/pull/1609))
26
+ - Retry js specs of pageflow engine
27
+ ([#1608](https://github.com/codevise/pageflow/pull/1608))
28
+ - Migrate Travis jobs to GitHub actions
29
+ ([#1607](https://github.com/codevise/pageflow/pull/1607))
30
+ - Fix CI and abort when dummy app generation fails
31
+ ([#1604](https://github.com/codevise/pageflow/pull/1604))
124
32
 
125
33
  #### Paged Entry Type
126
34
 
127
35
  ##### Editor
128
36
 
129
- - Bug fix: Fix page selection view
130
- ([#1281](https://github.com/codevise/pageflow/pull/1281))
131
-
132
- ##### Published Entry
133
-
134
- - Add width/height to social share images to make Facebook display
135
- them faster.
136
- ([#1223](https://github.com/codevise/pageflow/pull/1223))
137
- - Add translations for some text track languages
138
- ([#1237](https://github.com/codevise/pageflow/pull/1237))
139
- - Add meta charset tag in application layout of paged entries
140
- ([#1322](https://github.com/codevise/pageflow/pull/1322))
141
- - Bug fix: Invalidate page partial cache on locale change
142
- ([#1311](https://github.com/codevise/pageflow/pull/1311))
143
- - Bug fix: Do not prefix partial paths with pageflow_paged
144
- ([#1320](https://github.com/codevise/pageflow/pull/1320))
145
- - Bug fix: Fix `link_to home_button` raises URLGenerationError
146
- ([#1310](https://github.com/codevise/pageflow/pull/1310))
147
-
148
- ##### Internal
149
-
150
- - Move PagedEntriesController to paged entry type engine
151
- ([#1285](https://github.com/codevise/pageflow/pull/1285))
152
- - Move editor actions into editor controller
153
- ([#1282](https://github.com/codevise/pageflow/pull/1282))
37
+ - Fix classic loading spinner preview in editor
38
+ ([#1649](https://github.com/codevise/pageflow/pull/1649))
154
39
 
155
40
  #### Scrolled Entry Type
156
41
 
157
42
  ##### Published Entry
158
43
 
159
- - Import scrolled entry type React app
160
- ([#1264](https://github.com/codevise/pageflow/pull/1264))
161
- - Use seed data in scrolled entries
162
- ([#1248](https://github.com/codevise/pageflow/pull/1248),
163
- [#1270](https://github.com/codevise/pageflow/pull/1270),
164
- [#1278](https://github.com/codevise/pageflow/pull/1278),
165
- [#1286](https://github.com/codevise/pageflow/pull/1286),
166
- [#1314](https://github.com/codevise/pageflow/pull/1314),
167
- [#1242](https://github.com/codevise/pageflow/pull/1242))
168
- - Fix section index and references to adjacent chapters
169
- ([#1316](https://github.com/codevise/pageflow/pull/1316))
170
- - Render uploaded images in scrolled entries
171
- ([#1299](https://github.com/codevise/pageflow/pull/1299),
172
- [#1303](https://github.com/codevise/pageflow/pull/1303))
173
- - Use chapters from db in navigaition bar
174
- ([#1298](https://github.com/codevise/pageflow/pull/1298),
175
- [#1300](https://github.com/codevise/pageflow/pull/1300),
176
- [#1308](https://github.com/codevise/pageflow/pull/1308))
177
- - Sharing, imprint, privacy in navigation
178
- ([#1319](https://github.com/codevise/pageflow/pull/1319))
44
+ - Chapter deep linking
45
+ ([#1637](https://github.com/codevise/pageflow/pull/1637))
46
+ - Lazy load DASH code for Scrolled
47
+ ([#1635](https://github.com/codevise/pageflow/pull/1635))
48
+ - Deduplicate core-js in yarn.lock
49
+ ([#1634](https://github.com/codevise/pageflow/pull/1634))
50
+ - Do not move backdrop when navigation is scrolled out of view
51
+ ([#1632](https://github.com/codevise/pageflow/pull/1632))
52
+ - Navigation bar improvements
53
+ ([#1631](https://github.com/codevise/pageflow/pull/1631))
54
+ - Do not fall back to file default motif area
55
+ ([#1628](https://github.com/codevise/pageflow/pull/1628))
56
+ - Improve poster rendering
57
+ ([#1621](https://github.com/codevise/pageflow/pull/1621))
58
+ - Optimize frontend rendering
59
+ ([#1620](https://github.com/codevise/pageflow/pull/1620))
60
+ - Do not show scroll position based backdrop shadow initially
61
+ ([#1619](https://github.com/codevise/pageflow/pull/1619))
62
+ - Prevent state update on unmounted component
63
+ ([#1618](https://github.com/codevise/pageflow/pull/1618))
64
+ - Do not keep navigation open when focus is within
65
+ ([#1617](https://github.com/codevise/pageflow/pull/1617))
66
+ - Improve unmute sequence
67
+ ([#1615](https://github.com/codevise/pageflow/pull/1615))
68
+ - Show logo focus outline
69
+ ([#1613](https://github.com/codevise/pageflow/pull/1613))
70
+ - Open logo link in new tab
71
+ ([#1612](https://github.com/codevise/pageflow/pull/1612))
72
+ - Improve handling of untitled chapters
73
+ ([#1610](https://github.com/codevise/pageflow/pull/1610))
74
+ - Logo link through theme option
75
+ ([#1603](https://github.com/codevise/pageflow/pull/1603))
76
+ - Improve player controls
77
+ ([#1602](https://github.com/codevise/pageflow/pull/1602),
78
+ [#1586](https://github.com/codevise/pageflow/pull/1586))
79
+ - change Email to Mail
80
+ ([#1601](https://github.com/codevise/pageflow/pull/1601))
81
+ - Prevent parallel playback of media elements
82
+ ([#1599](https://github.com/codevise/pageflow/pull/1599))
83
+ - Improve navigation tooltips
84
+ ([#1597](https://github.com/codevise/pageflow/pull/1597))
85
+ - Give backdrops default background color
86
+ ([#1594](https://github.com/codevise/pageflow/pull/1594))
87
+ - Replace hard coded title and meta tags
88
+ ([#1593](https://github.com/codevise/pageflow/pull/1593))
89
+ - Prevent resuming atmo of other section
90
+ ([#1591](https://github.com/codevise/pageflow/pull/1591))
91
+ - Add toggle mute button to navigation
92
+ ([#1589](https://github.com/codevise/pageflow/pull/1589))
93
+ - Implements skip link for navigation
94
+ ([#1585](https://github.com/codevise/pageflow/pull/1585))
95
+ - Position backdrop image/video according to motif area
96
+ ([#1582](https://github.com/codevise/pageflow/pull/1582))
97
+ - Add motif area support for background videos
98
+ ([#1580](https://github.com/codevise/pageflow/pull/1580))
99
+ - Require user to opt in to see external embeds
100
+ ([#1577](https://github.com/codevise/pageflow/pull/1577))
101
+ - Renders alt text for media
102
+ ([#1574](https://github.com/codevise/pageflow/pull/1574))
103
+ - Use theme specific favicons
104
+ ([#1569](https://github.com/codevise/pageflow/pull/1569))
105
+ - Bug fix: Don't remove media tag when unallocating player in IE 11
106
+ ([#1648](https://github.com/codevise/pageflow/pull/1648))
107
+ - Allow disabling video or dash via browser feature flag
108
+ ([#1647](https://github.com/codevise/pageflow/pull/1647))
109
+ - Bug fix: Ensure muted inline media pauses on deactivation
110
+ ([#1646](https://github.com/codevise/pageflow/pull/1646))
111
+ - Bug fix: Fix for unstable navigation bar on Safari
112
+ ([#1642](https://github.com/codevise/pageflow/pull/1642))
113
+ - Bug fix: Invisible share links should not be clickable
114
+ ([#1641](https://github.com/codevise/pageflow/pull/1641))
115
+ - Bug fix: Play unmute sound on iOS
116
+ ([#1640](https://github.com/codevise/pageflow/pull/1640))
117
+ - Bug fix: Fix scroll flickering on Android Chrome
118
+ ([#1639](https://github.com/codevise/pageflow/pull/1639))
119
+ - Bug fix: Do not request new player when object position changes
120
+ ([#1638](https://github.com/codevise/pageflow/pull/1638))
121
+ - Bug fix: Fix "SourceBuffer removed from parent media source" error
122
+ ([#1636](https://github.com/codevise/pageflow/pull/1636))
123
+ - Bug fix: Prevent overlapping floated elements in centered layout
124
+ ([#1590](https://github.com/codevise/pageflow/pull/1590))
125
+ - Bug fix: Fix progress indicator in scrolled navigation bar
126
+ ([#1571](https://github.com/codevise/pageflow/pull/1571))
127
+
128
+ ##### Content Elements
129
+
130
+ - Fix external links layout narrow screen sizes
131
+ ([#1598](https://github.com/codevise/pageflow/pull/1598))
132
+ - Improve Datawrapper chart display
133
+ ([#1611](https://github.com/codevise/pageflow/pull/1611))
134
+ - Never hide audio controls
135
+ ([#1616](https://github.com/codevise/pageflow/pull/1616))
136
+ - Fixed before after height issue
137
+ ([#1606](https://github.com/codevise/pageflow/pull/1606))
138
+ - Heading word-wrap and hyphen css
139
+ ([#1605](https://github.com/codevise/pageflow/pull/1605))
140
+ - Fade out audio element when deactivating
141
+ ([#1592](https://github.com/codevise/pageflow/pull/1592))
142
+ - Add caption and position options to chart element
143
+ ([#1587](https://github.com/codevise/pageflow/pull/1587))
144
+ - Bug fix: BeforeAfter safari animation fix
145
+ ([#1623](https://github.com/codevise/pageflow/pull/1623))
179
146
 
180
147
  ##### Editor
181
148
 
182
- - Render demo in editor
183
- ([#1268](https://github.com/codevise/pageflow/pull/1268))
184
- - Use data from Backbone collections in scrolled editor preview
185
- ([#1288](https://github.com/codevise/pageflow/pull/1288),
186
- [#1293](https://github.com/codevise/pageflow/pull/1293),
187
- [#1292](https://github.com/codevise/pageflow/pull/1292),
188
- [#1294](https://github.com/codevise/pageflow/pull/1294),
189
- [#1305](https://github.com/codevise/pageflow/pull/1305))
190
- - Outline editing for scrolled entries
191
- ([#1318](https://github.com/codevise/pageflow/pull/1318))
192
-
193
- ##### Internal
194
-
195
- - Pass scrolled entry to watchCollections in tests
196
- ([#1317](https://github.com/codevise/pageflow/pull/1317))
197
- - Setup Capybara for scrolled engine
198
- ([#1289](https://github.com/codevise/pageflow/pull/1289))
199
- - Set PAGEFLOW_EDITOR global in scrolled editor
200
- ([#1287](https://github.com/codevise/pageflow/pull/1287))
201
-
202
- #### Development Setup
203
-
204
- - DB seed data for scrolled entries
205
- ([#1274](https://github.com/codevise/pageflow/pull/1274),
206
- [#1302](https://github.com/codevise/pageflow/pull/1302))
207
- - Split Travis run into multiple jobs
208
- ([#1261](https://github.com/codevise/pageflow/pull/1261))
209
- - Generate JSDoc and SassDoc in GitHub workflow
210
- ([#1307](https://github.com/codevise/pageflow/pull/1307))
211
- - Add needed command to node package development docs
212
- ([#1290](https://github.com/codevise/pageflow/pull/1290))
213
- - Improve Capybara Chrome setup
214
- ([#1291](https://github.com/codevise/pageflow/pull/1291))
149
+ - Ordering content elements
150
+ ([#1596](https://github.com/codevise/pageflow/pull/1596))
151
+ - Preserve scroll position when toggling phone preview
152
+ ([#1614](https://github.com/codevise/pageflow/pull/1614))
153
+ - Show section settings directly when section is selected
154
+ ([#1626](https://github.com/codevise/pageflow/pull/1626))
155
+ - Make motif area selection snap to grid
156
+ ([#1578](https://github.com/codevise/pageflow/pull/1578))
157
+ - Extend german help texts
158
+ ([#1625](https://github.com/codevise/pageflow/pull/1625))
159
+ - Add options for gradient opacity/motif area exposure
160
+ ([#1624](https://github.com/codevise/pageflow/pull/1624))
161
+ - Add missing translation
162
+ ([#1600](https://github.com/codevise/pageflow/pull/1600))
163
+ - Bug fix: Apply default configuration when adding to end of section
164
+ ([#1630](https://github.com/codevise/pageflow/pull/1630))
165
+ - Bug fix: Fix error when merging empty text blocks
166
+ ([#1588](https://github.com/codevise/pageflow/pull/1588))
167
+
168
+ ###### JavaScript API
169
+
170
+ - Split isPrepared state into shouldLoad and shouldPrepare
171
+ ([#1622](https://github.com/codevise/pageflow/pull/1622))
172
+
173
+ ###### Internal
174
+
175
+ - Fix Jest warnings caused by Backbone XHR
176
+ ([#1579](https://github.com/codevise/pageflow/pull/1579))
177
+ - Remove renderer memoization in development
178
+ ([#1584](https://github.com/codevise/pageflow/pull/1584))
179
+ - Import scrolled translations into LocaleApp
180
+ ([#1627](https://github.com/codevise/pageflow/pull/1627))
181
+ - Navigation bar Storybook story
182
+ ([#1557](https://github.com/codevise/pageflow/pull/1557))
183
+ - Fix storybook documentation
184
+ ([#1540](https://github.com/codevise/pageflow/pull/1540))
215
185
 
216
186
  See
217
- [15-0-stable branch](https://github.com/codevise/pageflow/blob/15-0-stable/CHANGELOG.md)
187
+ [15-3-stable branch](https://github.com/codevise/pageflow/blob/15-3-stable/CHANGELOG.md)
218
188
  for previous changes.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Pageflow
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/pageflow.svg)](http://badge.fury.io/rb/pageflow)
4
- [![Build Status](https://travis-ci.org/codevise/pageflow.svg?branch=master)](https://travis-ci.org/codevise/pageflow)
4
+ [![Build Status](https://github.com/codevise/pageflow/workflows/tests/badge.svg)](https://github.com/codevise/pageflow/actions)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/codevise/pageflow/badge.svg?branch=master)](https://coveralls.io/github/codevise/pageflow?branch=master)
6
6
  [![Code Climate](https://codeclimate.com/github/codevise/pageflow/badges/gpa.svg)](https://codeclimate.com/github/codevise/pageflow)
7
7
  [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
@@ -53,7 +53,7 @@ Pageflow assumes the following choice of libraries:
53
53
  Pageflow runs in environments with:
54
54
 
55
55
  * Ruby >= 2.1 (see `.travis.yml` for supported versions)
56
- * Node >= 10.0
56
+ * Node >= 10.18
57
57
  * Rails 4.2
58
58
  * Redis server (for Resque)
59
59
  * A database server supported by Active Record (tested with MySQL)
@@ -168,8 +168,7 @@ is only available for admins.
168
168
 
169
169
  ## Troubleshooting
170
170
 
171
- If you run into problems during the installation of Pageflow, please refer to the [Troubleshooting](https://github.com/codevise/pageflow/wiki/Troubleshooting) wiki
172
- page. If that doesn't help, consider [filing an issue](https://github.com/codevise/pageflow/issues?state=open).
171
+ If you run into problems during the installation of Pageflow, please refer to the [Troubleshooting](doc/troubleshooting.md) docs. If that doesn't help, consider [filing an issue](https://github.com/codevise/pageflow/issues?state=open).
173
172
 
174
173
  ## Security Policy
175
174
 
@@ -213,4 +212,3 @@ We would like to express our special thanks to the following services
213
212
  for supporting Pageflow through free open source plans:
214
213
 
215
214
  [![BrowserStack](doc/supporter_logos/browser_stack.png)](https://browserstack.com)
216
- [![Travis CI](doc/supporter_logos/travis_ci.png)](https://travis-ci.com/)
@@ -30,9 +30,6 @@ module Pageflow
30
30
  membership_role_with_tooltip(own_role, scope: 'own_account_role')
31
31
  end
32
32
  end
33
- column :default_theming do |account|
34
- account.default_theming.theme_name if authorized?(:read, account)
35
- end
36
33
  end
37
34
 
38
35
  csv do
@@ -75,49 +72,31 @@ module Pageflow
75
72
  helper Pageflow::Admin::FormHelper
76
73
  helper Pageflow::Admin::LocalesHelper
77
74
  helper Pageflow::Admin::MembershipsHelper
78
- helper Pageflow::Admin::WidgetsHelper
79
75
  helper ThemesHelper
80
76
 
81
77
  def new
82
78
  @account = Account.new
83
- @account.build_default_theming(
84
- default_locale: current_user.locale,
85
- share_providers: Pageflow.config.default_share_providers
86
- )
79
+ @account.build_default_theming
87
80
  end
88
81
 
89
82
  def create
90
- @account = Account.new(permitted_params[:account])
91
- @account.build_default_theming(permitted_params.fetch(:account, {})[:default_theming_attributes])
83
+ account_params = permitted_params[:account] || {}
84
+ @account = Account.new(account_params)
85
+ @account.build_default_theming(permitted_params.fetch(:account, {})[
86
+ :default_theming_attributes])
92
87
  super
93
- update_widgets
94
88
  end
95
89
 
96
90
  def update
97
91
  update! do |success, failure|
98
92
  success.html { redirect_to(admin_account_path(resource, params.permit(:tab))) }
99
93
  end
100
- update_widgets
101
- end
102
-
103
- def update_widgets
104
- @account.default_theming.widgets.batch_update!(widgets_params) if @account.valid?
105
- end
106
-
107
- def widgets_params
108
- (params[:widgets].try(:permit!).to_h || {}).map do |role, type_name|
109
- {role: role, type_name: type_name}
110
- end
111
94
  end
112
95
 
113
96
  def permitted_params
114
97
  result = params.permit(account: permitted_account_attributes)
115
98
 
116
- if result[:account]
117
- permit_feature_states(result[:account])
118
- end
119
-
120
- result
99
+ with_permitted_feature_states(result)
121
100
  end
122
101
 
123
102
  def scoped_collection
@@ -126,6 +105,12 @@ module Pageflow
126
105
 
127
106
  private
128
107
 
108
+ def with_permitted_feature_states(result)
109
+ result[:account] && permit_feature_states(result[:account])
110
+
111
+ result
112
+ end
113
+
129
114
  def permitted_account_attributes
130
115
  [
131
116
  :name,
@@ -139,19 +124,12 @@ module Pageflow
139
124
  [
140
125
  :cname,
141
126
  :additional_cnames,
142
- :theme_name,
143
127
  :imprint_link_url,
144
128
  :imprint_link_label,
145
129
  :copyright_link_url,
146
130
  :copyright_link_label,
147
131
  :privacy_link_url,
148
- :home_url,
149
- :home_button_enabled_by_default,
150
- :default_author,
151
- :default_publisher,
152
- :default_keywords,
153
- :default_locale,
154
- share_providers: []
132
+ :home_url
155
133
  ] +
156
134
  permitted_attributes_for(:theming)
157
135
  end