pageflow 15.5.0 → 15.7.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 (270) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +219 -87
  3. data/README.md +1 -2
  4. data/admins/pageflow/entry.rb +28 -57
  5. data/admins/pageflow/user.rb +1 -3
  6. data/app/assets/images/pageflow/admin/icons/buttons/editor.svg +2 -0
  7. data/app/assets/images/pageflow/admin/icons/buttons/preview.svg +2 -0
  8. data/app/assets/images/pageflow/admin/icons/buttons/show_public.svg +2 -0
  9. data/app/assets/images/pageflow/admin/icons/delete.svg +9 -0
  10. data/app/assets/images/pageflow/admin/icons/done.svg +6 -0
  11. data/app/assets/images/pageflow/admin/icons/edit.svg +7 -0
  12. data/app/assets/images/pageflow/admin/icons/editor.svg +2 -0
  13. data/app/assets/images/pageflow/admin/icons/folder.svg +8 -0
  14. data/app/assets/images/pageflow/admin/icons/folder_active.svg +8 -0
  15. data/app/assets/images/pageflow/admin/icons/info.svg +3 -0
  16. data/app/assets/images/pageflow/admin/icons/new.svg +5 -0
  17. data/app/assets/images/pageflow/admin/icons/preview.svg +2 -0
  18. data/app/assets/images/pageflow/admin/icons/published.svg +2 -0
  19. data/app/assets/images/pageflow/admin/icons/published_with_password.svg +2 -0
  20. data/app/assets/images/pageflow/admin/icons/show_public.svg +2 -0
  21. data/app/assets/images/pageflow/editor/blank_entry/logo.png +0 -0
  22. data/app/assets/images/pageflow/themes/default/embed_opt_in.svg +3 -0
  23. data/app/assets/images/pageflow/themes/default/embed_opt_out_info.svg +16 -0
  24. data/app/assets/javascripts/pageflow/admin/entries.js +9 -57
  25. data/app/assets/javascripts/pageflow/dist/ui.js +127 -10
  26. data/app/assets/stylesheets/pageflow/admin/active_admin_patches.scss +18 -16
  27. data/app/assets/stylesheets/pageflow/admin/badge_list.scss +25 -35
  28. data/app/assets/stylesheets/pageflow/admin/columns.scss +13 -11
  29. data/app/assets/stylesheets/pageflow/admin/embed_code.scss +1 -4
  30. data/app/assets/stylesheets/pageflow/admin/entries/folders.scss +44 -19
  31. data/app/assets/stylesheets/pageflow/admin/entries.scss +15 -31
  32. data/app/assets/stylesheets/pageflow/admin/features.scss +3 -1
  33. data/app/assets/stylesheets/pageflow/admin/forms.scss +14 -12
  34. data/app/assets/stylesheets/pageflow/admin/hint.scss +8 -14
  35. data/app/assets/stylesheets/pageflow/admin/icon_button.scss +25 -14
  36. data/app/assets/stylesheets/pageflow/admin/icon_link.scss +31 -15
  37. data/app/assets/stylesheets/pageflow/admin/publication_state_indicator.scss +14 -7
  38. data/app/assets/stylesheets/pageflow/admin/status_tags.scss +5 -4
  39. data/app/assets/stylesheets/pageflow/admin/tabs_view.scss +36 -34
  40. data/app/assets/stylesheets/pageflow/admin/tooltip_bubble.scss +15 -11
  41. data/app/assets/stylesheets/pageflow/admin.scss +12 -0
  42. data/app/assets/stylesheets/pageflow/editor/background_positioning.scss +15 -61
  43. data/app/assets/stylesheets/pageflow/editor/base.scss +28 -13
  44. data/app/assets/stylesheets/pageflow/editor/blank_entry.scss +6 -6
  45. data/app/assets/stylesheets/pageflow/editor/change_theme.scss +28 -71
  46. data/app/assets/stylesheets/pageflow/editor/composables.scss +2 -2
  47. data/app/assets/stylesheets/pageflow/editor/confirm_encoding.scss +18 -36
  48. data/app/assets/stylesheets/pageflow/editor/confirm_upload.scss +12 -39
  49. data/app/assets/stylesheets/pageflow/editor/dialogs.scss +39 -12
  50. data/app/assets/stylesheets/pageflow/editor/disabled_atmo_indicator.scss +3 -3
  51. data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +7 -10
  52. data/app/assets/stylesheets/pageflow/editor/emulation_mode_button.scss +3 -8
  53. data/app/assets/stylesheets/pageflow/editor/failures.scss +3 -3
  54. data/app/assets/stylesheets/pageflow/editor/file_import.scss +22 -38
  55. data/app/assets/stylesheets/pageflow/editor/file_meta_data.scss +3 -7
  56. data/app/assets/stylesheets/pageflow/editor/file_settings_dialog.scss +4 -24
  57. data/app/assets/stylesheets/pageflow/editor/file_stages.scss +10 -11
  58. data/app/assets/stylesheets/pageflow/editor/file_thumbnails.scss +4 -8
  59. data/app/assets/stylesheets/pageflow/editor/files.scss +7 -6
  60. data/app/assets/stylesheets/pageflow/editor/files_explorer.scss +13 -30
  61. data/app/assets/stylesheets/pageflow/editor/files_gallery.scss +15 -11
  62. data/app/assets/stylesheets/pageflow/editor/filtered_files.scss +6 -7
  63. data/app/assets/stylesheets/pageflow/editor/help.scss +19 -14
  64. data/app/assets/stylesheets/pageflow/editor/help_image.scss +1 -1
  65. data/app/assets/stylesheets/pageflow/editor/info_box.scss +19 -0
  66. data/app/assets/stylesheets/pageflow/editor/inputs/file_input.scss +7 -11
  67. data/app/assets/stylesheets/pageflow/editor/inputs/file_processing_state_display.scss +0 -2
  68. data/app/assets/stylesheets/pageflow/editor/inputs/reference.scss +7 -11
  69. data/app/assets/stylesheets/pageflow/editor/list.scss +13 -10
  70. data/app/assets/stylesheets/pageflow/editor/loading.scss +1 -1
  71. data/app/assets/stylesheets/pageflow/editor/locked.scss +9 -5
  72. data/app/assets/stylesheets/pageflow/editor/menu.scss +5 -5
  73. data/app/assets/stylesheets/pageflow/editor/notifications.scss +15 -14
  74. data/app/assets/stylesheets/pageflow/editor/other_entry_item.scss +7 -3
  75. data/app/assets/stylesheets/pageflow/editor/outline.scss +57 -19
  76. data/app/assets/stylesheets/pageflow/editor/page_links.scss +10 -8
  77. data/app/assets/stylesheets/pageflow/editor/page_selection.scss +2 -29
  78. data/app/assets/stylesheets/pageflow/editor/publish_entry.scss +5 -6
  79. data/app/assets/stylesheets/pageflow/editor/quotas.scss +2 -3
  80. data/app/assets/stylesheets/pageflow/editor/select_button.scss +12 -6
  81. data/app/assets/stylesheets/pageflow/editor/sidebar_footer.scss +1 -5
  82. data/app/assets/stylesheets/pageflow/editor/storyline_picker.scss +6 -2
  83. data/app/assets/stylesheets/pageflow/editor/text_tracks.scss +6 -22
  84. data/app/assets/stylesheets/pageflow/editor/widgets.scss +2 -2
  85. data/app/assets/stylesheets/pageflow/editor/wysihtml5.scss +35 -29
  86. data/app/assets/stylesheets/pageflow/mixins/background_icons.scss +3 -3
  87. data/app/assets/stylesheets/pageflow/mixins/buttons.scss +50 -68
  88. data/app/assets/stylesheets/pageflow/themes/default/base.scss +2 -0
  89. data/app/assets/stylesheets/pageflow/themes/default/consent/bar.scss +156 -0
  90. data/app/assets/stylesheets/pageflow/themes/default/consent/vendor_list.scss +62 -0
  91. data/app/assets/stylesheets/pageflow/themes/default/consent.scss +2 -0
  92. data/app/assets/stylesheets/pageflow/themes/default/logo/alignment.scss +7 -0
  93. data/app/assets/stylesheets/pageflow/themes/default/page/shadow.scss +44 -0
  94. data/app/assets/stylesheets/pageflow/themes/default/third_party_embed_consent.scss +103 -0
  95. data/app/assets/stylesheets/pageflow/ui/forms.scss +79 -84
  96. data/app/assets/stylesheets/pageflow/ui/functions.scss +56 -0
  97. data/app/assets/stylesheets/pageflow/ui/input/check_box_group_input.scss +2 -3
  98. data/app/assets/stylesheets/pageflow/ui/input/color_input.scss +6 -6
  99. data/app/assets/stylesheets/pageflow/ui/input/extended_select_input.scss +63 -50
  100. data/app/assets/stylesheets/pageflow/ui/normalize/forms.scss +153 -0
  101. data/app/assets/stylesheets/pageflow/ui/normalize.scss +278 -0
  102. data/app/assets/stylesheets/pageflow/ui/properties.scss +44 -0
  103. data/app/assets/stylesheets/pageflow/ui/table_cells/delete_row_table_cell.scss +1 -1
  104. data/app/assets/stylesheets/pageflow/ui/table_view.scss +14 -18
  105. data/app/assets/stylesheets/pageflow/ui/tabs_view.scss +8 -11
  106. data/app/assets/stylesheets/pageflow/ui/tooltip.scss +6 -8
  107. data/app/assets/stylesheets/pageflow/ui/validation_error_messages.scss +6 -0
  108. data/app/assets/stylesheets/pageflow/ui.scss +4 -0
  109. data/app/controllers/pageflow/edit_locks_controller.rb +3 -1
  110. data/app/helpers/pageflow/admin/entries_helper.rb +2 -12
  111. data/app/helpers/pageflow/embed_code_helper.rb +1 -1
  112. data/app/helpers/pageflow/entries_helper.rb +41 -2
  113. data/app/helpers/pageflow/file_background_images_helper.rb +1 -1
  114. data/app/helpers/pageflow/page_types_helper.rb +1 -1
  115. data/app/helpers/pageflow/themes_helper.rb +1 -1
  116. data/app/jobs/pageflow/poll_meta_data_from_zencoder_job.rb +1 -1
  117. data/app/jobs/pageflow/poll_zencoder_job.rb +1 -9
  118. data/app/models/pageflow/audio_file.rb +17 -0
  119. data/app/models/pageflow/audio_file_url_templates.rb +4 -1
  120. data/app/models/pageflow/customized_theme.rb +37 -0
  121. data/app/models/pageflow/draft_entry.rb +6 -59
  122. data/app/models/pageflow/entry_at_revision.rb +68 -0
  123. data/app/models/pageflow/entry_role_query.rb +44 -24
  124. data/app/models/pageflow/image_file_css_background_image_urls.rb +8 -2
  125. data/app/models/pageflow/published_entry.rb +9 -56
  126. data/app/models/pageflow/theme_customization.rb +46 -0
  127. data/app/models/pageflow/theme_customization_file.rb +58 -0
  128. data/app/models/pageflow/video_file.rb +11 -1
  129. data/app/models/pageflow/video_file_url_templates.rb +1 -0
  130. data/app/policies/pageflow/entry_policy.rb +4 -0
  131. data/app/state_machines/pageflow/media_encoding_state_machine.rb +23 -4
  132. data/app/views/admin/entries/_form.html.erb +50 -0
  133. data/app/views/admin/entries/entry_type_name_input.html.erb +5 -0
  134. data/app/views/admin/features/_form.html.erb +1 -1
  135. data/app/views/admin/memberships/_form.html.erb +2 -3
  136. data/app/views/admin/users/_form.html.erb +1 -1
  137. data/app/views/admin/users/invitation.html.erb +2 -2
  138. data/app/views/components/pageflow/admin/entry_user_badge_list.rb +10 -9
  139. data/app/views/components/pageflow/admin/members_tab.rb +5 -1
  140. data/app/views/components/pageflow/admin/revisions_tab.rb +13 -3
  141. data/app/views/components/pageflow/admin/timestamp.rb +20 -0
  142. data/app/views/components/pageflow/admin/user_account_badge_list.rb +5 -6
  143. data/app/views/pageflow/admin/entries/_cannot_add_user.html.erb +9 -5
  144. data/app/views/pageflow/admin/entries/_entry_type_name_input.html.erb +7 -0
  145. data/app/views/pageflow/audio_files/_audio_file.json.jbuilder +13 -0
  146. data/app/views/pageflow/editor/encoding_confirmations/_intro.html.erb +0 -0
  147. data/app/views/pageflow/editor/encoding_confirmations/check.json.jbuilder +14 -2
  148. data/config/initializers/paperclip.rb +16 -1
  149. data/config/locales/de.yml +24 -28
  150. data/config/locales/en.yml +19 -10
  151. data/db/migrate/20210528073122_create_pageflow_theme_customizations.rb +11 -0
  152. data/db/migrate/20210531090654_create_pageflow_theme_customization_files.rb +15 -0
  153. data/db/migrate/20210531102228_add_selected_file_ids_to_theme_customizations.rb +5 -0
  154. data/db/migrate/20211020085902_add_canonical_entry_url_prefix_to_themings.rb +5 -0
  155. data/db/migrate/20220503150010_add_peak_data_to_audio_files.rb +5 -0
  156. data/db/migrate/20220705084830_add_trailing_slash_in_canonical_urls_to_themings.rb +5 -0
  157. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +256 -124
  158. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +566 -167
  159. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/react-client.js +5 -5
  160. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/react-server.js +4 -4
  161. data/entry_types/paged/app/helpers/pageflow_paged/third_party_embed_consent_helper.rb +38 -0
  162. data/entry_types/paged/app/views/pageflow_paged/third_party_embed_consent/_opt_in.html.erb +12 -0
  163. data/entry_types/paged/app/views/pageflow_paged/third_party_embed_consent/_opt_out_info.html.erb +10 -0
  164. data/entry_types/paged/config/initializers/features.rb +2 -0
  165. data/entry_types/paged/config/locales/new/video_contain.de.yml +7 -0
  166. data/entry_types/paged/config/locales/new/video_contain.en.yml +7 -0
  167. data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb +3 -0
  168. data/entry_types/scrolled/app/helpers/pageflow_scrolled/entry_json_seed_helper.rb +1 -0
  169. data/entry_types/scrolled/app/helpers/pageflow_scrolled/packs_helper.rb +58 -0
  170. data/entry_types/scrolled/app/helpers/pageflow_scrolled/react_server_side_rendering_helper.rb +37 -3
  171. data/entry_types/scrolled/app/helpers/pageflow_scrolled/themes_helper.rb +92 -6
  172. data/entry_types/scrolled/app/helpers/pageflow_scrolled/webpack_public_path_helper.rb +20 -0
  173. data/entry_types/scrolled/app/models/pageflow_scrolled/content_element.rb +7 -0
  174. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb +5 -2
  175. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_seed.json.jbuilder +5 -1
  176. data/entry_types/scrolled/app/views/pageflow_scrolled/entries/show.html.erb +5 -4
  177. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +16 -0
  178. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder +13 -2
  179. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_widget.json.jbuilder +2 -0
  180. data/entry_types/scrolled/config/locales/de.yml +1 -8
  181. data/entry_types/scrolled/config/locales/en.yml +1 -9
  182. data/entry_types/scrolled/config/locales/new/before_after_slider.de.yml +8 -0
  183. data/entry_types/scrolled/config/locales/new/before_after_slider.en.yml +8 -0
  184. data/entry_types/scrolled/config/locales/new/center_ragged.de.yml +8 -0
  185. data/entry_types/scrolled/config/locales/new/center_ragged.en.yml +9 -0
  186. data/entry_types/scrolled/config/locales/new/consent.de.yml +25 -0
  187. data/entry_types/scrolled/config/locales/new/consent.en.yml +24 -0
  188. data/entry_types/scrolled/config/locales/new/content_element_categories.de.yml +39 -0
  189. data/entry_types/scrolled/config/locales/new/content_element_categories.en.yml +39 -0
  190. data/entry_types/scrolled/config/locales/new/default_transition.de.yml +14 -0
  191. data/entry_types/scrolled/config/locales/new/default_transition.en.yml +14 -0
  192. data/entry_types/scrolled/config/locales/new/header_line_breaks.de.yml +28 -0
  193. data/entry_types/scrolled/config/locales/new/header_line_breaks.en.yml +27 -0
  194. data/entry_types/scrolled/config/locales/new/header_size.de.yml +17 -0
  195. data/entry_types/scrolled/config/locales/new/header_size.en.yml +17 -0
  196. data/entry_types/scrolled/config/locales/new/iframe_embed.de.yml +39 -0
  197. data/entry_types/scrolled/config/locales/new/iframe_embed.en.yml +39 -0
  198. data/entry_types/scrolled/config/locales/new/inline_loops.de.yml +26 -0
  199. data/entry_types/scrolled/config/locales/new/inline_loops.en.yml +26 -0
  200. data/entry_types/scrolled/config/locales/new/portrait_inline_image.de.yml +9 -0
  201. data/entry_types/scrolled/config/locales/new/portrait_inline_image.en.yml +9 -0
  202. data/entry_types/scrolled/config/locales/new/section_width.de.yml +10 -0
  203. data/entry_types/scrolled/config/locales/new/section_width.en.yml +10 -0
  204. data/entry_types/scrolled/config/locales/new/typography_variants.de.yml +7 -0
  205. data/entry_types/scrolled/config/locales/new/typography_variants.en.yml +7 -0
  206. data/entry_types/scrolled/config/locales/new/video_embed_poster.de.yml +8 -0
  207. data/entry_types/scrolled/config/locales/new/video_embed_poster.en.yml +8 -0
  208. data/entry_types/scrolled/config/locales/new/waveform_styles.de.yml +11 -0
  209. data/entry_types/scrolled/config/locales/new/waveform_styles.en.yml +12 -0
  210. data/entry_types/scrolled/config/locales/new/widgets.de.yml +6 -0
  211. data/entry_types/scrolled/config/locales/new/widgets.en.yml +6 -0
  212. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/install_generator.rb +29 -5
  213. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/themes_plugin.rb.tt +8 -6
  214. data/entry_types/scrolled/lib/pageflow_scrolled/additional_packs.rb +37 -0
  215. data/entry_types/scrolled/lib/pageflow_scrolled/additional_seed_data.rb +57 -0
  216. data/entry_types/scrolled/lib/pageflow_scrolled/configuration.rb +49 -0
  217. data/entry_types/scrolled/lib/pageflow_scrolled/engine.rb +2 -0
  218. data/entry_types/scrolled/lib/pageflow_scrolled/plugin.rb +8 -0
  219. data/entry_types/scrolled/lib/pageflow_scrolled/react_widget_type.rb +42 -0
  220. data/entry_types/scrolled/lib/pageflow_scrolled.rb +17 -1
  221. data/entry_types/scrolled/lib/tasks/pageflow_scrolled/create_bundle_symlinks_for_yarn.rake +3 -2
  222. data/entry_types/scrolled/package/config/webpack.js +11 -0
  223. data/entry_types/scrolled/package/contentElements-editor.js +323 -89
  224. data/entry_types/scrolled/package/contentElements-frontend.css +1 -1
  225. data/entry_types/scrolled/package/contentElements-frontend.js +719 -529
  226. data/entry_types/scrolled/package/editor.js +459 -261
  227. data/entry_types/scrolled/package/frontend/{EditableText-7093fd0e.js → EditableInlineText.module-b9923660.js} +284 -362
  228. data/entry_types/scrolled/package/frontend/{i18n-4dc6c377.js → PhonePlatformContext-9fb97827.js} +199 -106
  229. data/entry_types/scrolled/package/frontend/{Viewer-e49e7807.js → Viewer-e2290ea0.js} +196 -79
  230. data/entry_types/scrolled/package/frontend/{Wavesurfer-0adf5667.js → Wavesurfer-7d9cf1b7.js} +16 -58
  231. data/entry_types/scrolled/package/frontend/{components-6a6793ca.js → components-6ab26015.js} +664 -671
  232. data/entry_types/scrolled/package/frontend/{getPrototypeOf-63c7c8e8.js → createSuper-d0f30da3.js} +34 -5
  233. data/entry_types/scrolled/package/frontend/index.css +1 -9
  234. data/entry_types/scrolled/package/frontend/index.js +1919 -2386
  235. data/entry_types/scrolled/package/frontend/{useBrowserFeature-91a4c29d.js → usePhonePlatform-2857c22b.js} +9 -8
  236. data/entry_types/scrolled/package/frontend-server.js +3 -6
  237. data/entry_types/scrolled/package/package.json +16 -8
  238. data/entry_types/scrolled/package/testHelpers.js +456 -0
  239. data/entry_types/scrolled/package/values/breakpoints.module.css +9 -0
  240. data/entry_types/scrolled/package/values/colors.module.css +5 -0
  241. data/entry_types/scrolled/package/widgets/defaultNavigation.css +9 -0
  242. data/entry_types/scrolled/package/widgets/defaultNavigation.js +612 -0
  243. data/entry_types/scrolled/spec/fixtures/image.svg +1 -0
  244. data/lib/pageflow/ability_mixin.rb +4 -0
  245. data/lib/pageflow/built_in_widget_type.rb +4 -0
  246. data/lib/pageflow/built_in_widget_types_plugin.rb +7 -0
  247. data/lib/pageflow/configuration.rb +34 -1
  248. data/lib/pageflow/entry_type.rb +11 -2
  249. data/lib/pageflow/entry_type_configuration.rb +2 -0
  250. data/lib/pageflow/file_type.rb +24 -0
  251. data/lib/pageflow/paperclip_processors/audio_waveform.rb +42 -0
  252. data/lib/pageflow/paperclip_processors/noop.rb +10 -0
  253. data/lib/pageflow/theme_customizations.rb +61 -0
  254. data/lib/pageflow/version.rb +1 -1
  255. data/lib/pageflow.rb +9 -0
  256. data/package/config/jest/index.js +2 -1
  257. data/package/config/postcss/scaleFunctions.js +71 -0
  258. data/package/editor.js +95 -85
  259. data/package/frontend.js +521 -161
  260. data/package/package.json +5 -3
  261. data/package/testHelpers.js +26 -5
  262. data/package/ui.js +124 -11
  263. data/spec/factories/draft_entries.rb +19 -1
  264. data/spec/factories/entries.rb +4 -0
  265. data/spec/factories/published_entries.rb +6 -0
  266. data/spec/fixtures/audio.ogg +0 -0
  267. metadata +119 -14
  268. data/app/views/admin/entries/_not_allowed_to_see_entry_types.json.jbuilder +0 -2
  269. data/app/views/admin/entries/entry_types.json.jbuilder +0 -4
  270. data/package/config/jest/transformers/upwardBabel.js +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96902980a5bb3f8dbdb7fea7c6d2ac7864cec92f72b841a32f9544d56f25ddf7
4
- data.tar.gz: fb05810978adc0db7eac1901beec575d0d552c2187f95e4e4df92ab8d58801be
3
+ metadata.gz: e07646ad594c834e19ed93553b64ba592dc807d85cca57a07ce3ea392f77d4c2
4
+ data.tar.gz: 845f8fc85917afe64894bf61f05f520993e03b9c61a1eaed0d314d450aa41319
5
5
  SHA512:
6
- metadata.gz: 157deea11713fb77f374469ffcb2ed25ebe0e7401f140eea761266602099a89311b58be6b4e353980dc6bae3bd896136e2a27b7748c9e6434142816230973400
7
- data.tar.gz: 571fd3407f0e45cd0ba1bb902349da1e84ee1ffdd7cb5367ac59cc22de439ae1866b79214e96c08ecc92956b367ec1a5dd84f2a1f6fa4ff4236d6b9307643e89
6
+ metadata.gz: 0eb5bb9a53af5e48c692d603d926d591bf2a2d762a7fb5aa630959ef4e0a3a8cea236ae3fb16d9cfa302e020318d26f7f9866fd536ba9bc385078b468cb30326
7
+ data.tar.gz: c91f4e74965891b57b343f0a12eb4b8b33907a47035b7f0e3e59f36eed59b26755ca388ebe958f981be7eb1a396a69979acb7e5f1dd27ae997c84d7680395fd8
data/CHANGELOG.md CHANGED
@@ -1,116 +1,248 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 15.5.0
3
+ ### Version 15.7.0
4
4
 
5
- 2021-05-07
5
+ 2022-07-18
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow/compare/15-4-stable...v15.5.0)
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/15-6-stable...v15.7.0)
8
8
 
9
9
  #### Core
10
10
 
11
- ##### Manual Update Step
12
-
13
- - Upgrade Webpack config
14
-
15
- Disable Babel compilation of `node_modules` directory to prevent
16
- error of the form "_typeof is not defined" in Video.js HTTP
17
- streaming service worker that is registered when DASH sources are
18
- used. Add the following lines to the host application's
19
- `config/webpack/environment.js` file:
20
-
21
- ```
22
- environment.config.merge(require('pageflow-scrolled/config/webpack'))
11
+ ##### Rails Engine
23
12
 
24
- // Opt into future default behavior of Webpacker [1] to work around
25
- // problems with Video.js DASH service worker.
26
- //
27
- // [1] https://github.com/rails/webpacker/pull/2624
28
- environment.loaders.delete('nodeModules')
13
+ - Allow skipping encoding confirmation
14
+ ([#1824](https://github.com/codevise/pageflow/pull/1824))
15
+ - Allow disabling taking snapshots when acquiring an editor lock
16
+ ([#1819](https://github.com/codevise/pageflow/pull/1819))
17
+ - Theme customization
18
+ ([#1713](https://github.com/codevise/pageflow/pull/1713),
19
+ [#1771](https://github.com/codevise/pageflow/pull/1771))
20
+ - Fix compatibility with JBuilder 2.11.3
21
+ ([#1757](https://github.com/codevise/pageflow/pull/1757))
22
+ - Prevent exception when reusing file from deleted entry
23
+ ([#1834](https://github.com/codevise/pageflow/pull/1834))
29
24
 
30
- ```
25
+ ##### Admin
31
26
 
32
- No longer precompiling `node_modules` means that some ES6 syntax
33
- included in some of the packages will end up in the
34
- bundle. `therubyracer` gem then causes "Use of const in strict mode"
35
- error during SSR. Upgrading the host application to use `mini_racer`
36
- instead fixes the problem.
37
- ([#1655](https://github.com/codevise/pageflow/pull/1655))
27
+ - Improve entry new form
28
+ ([#1822](https://github.com/codevise/pageflow/pull/1822))
29
+ - Improve admin styles
30
+ ([#1816](https://github.com/codevise/pageflow/pull/1816))
31
+ - Remove scrolling attribute from embed iframe snippet
32
+ ([#1759](https://github.com/codevise/pageflow/pull/1759))
33
+ - Let admin filters entry admin by entry type
34
+ ([#1756](https://github.com/codevise/pageflow/pull/1756))
38
35
 
39
- ##### Rails Engine
36
+ ##### Editor
40
37
 
41
- - Allow registering entry type specific file importers
42
- ([#1684](https://github.com/codevise/pageflow/pull/1684))
43
- - Nested revision components
44
- ([#1654](https://github.com/codevise/pageflow/pull/1654))
45
- - Nested revision components
46
- ([#1654](https://github.com/codevise/pageflow/pull/1654))
47
- - Upgrade to Devise 4.7
48
- ([#1657](https://github.com/codevise/pageflow/pull/1657))
38
+ - Rebrush editor UI
39
+ ([#1809](https://github.com/codevise/pageflow/pull/1809))
40
+ - Improve supported host handling in url input
41
+ ([#1741](https://github.com/codevise/pageflow/pull/1741))
49
42
 
50
- ##### Admin
43
+ ##### Published Entry
51
44
 
52
- - Validate user locale
53
- ([#1658](https://github.com/codevise/pageflow/pull/1658))
45
+ - Use canonical entry url prefix in pretty urls
46
+ ([#1752](https://github.com/codevise/pageflow/pull/1752))
47
+ - Support adding trailing slash to canonical entry urls
48
+ ([#1833](https://github.com/codevise/pageflow/pull/1833))
49
+ - Support csmil HLS playlists
50
+ ([#1817](https://github.com/codevise/pageflow/pull/1817))
51
+ - Load DASH on Android if hls-playlist host contains an underscore
52
+ ([#1791](https://github.com/codevise/pageflow/pull/1791))
53
+ - Consent
54
+ ([#1705](https://github.com/codevise/pageflow/pull/1705),
55
+ [#1735](https://github.com/codevise/pageflow/pull/1735),
56
+ [#1712](https://github.com/codevise/pageflow/pull/1712))
57
+
58
+ ##### Internal
59
+
60
+ - Prevent full table scan in EntryRoleQuery::Scope
61
+ ([#1758](https://github.com/codevise/pageflow/pull/1758))
62
+ - Upgrade Jest and Testing Library
63
+ ([#1721](https://github.com/codevise/pageflow/pull/1721))
54
64
 
55
65
  #### Paged Entry Type
56
66
 
57
- - Add theme option for content text phone typography
58
- ([#1670](https://github.com/codevise/pageflow/pull/1670))
59
- - Bug fix: Wait until listener is ready before requesting cookie notice
60
- ([#1650](https://github.com/codevise/pageflow/pull/1650))
67
+ ##### Published Entry
68
+
69
+ - Add feature flag to use ultra image variant for paged backgrounds
70
+ ([#1815](https://github.com/codevise/pageflow/pull/1815))
71
+ - Allow deactivating smart contain for video pages
72
+ ([#1812](https://github.com/codevise/pageflow/pull/1812))
73
+ - Use large image variant for non-blurred media loading spinner
74
+ ([#1769](https://github.com/codevise/pageflow/pull/1769))
75
+ - Consent and embed opt-in
76
+ ([#1716](https://github.com/codevise/pageflow/pull/1716),
77
+ [#1715](https://github.com/codevise/pageflow/pull/1715),
78
+ [#1714](https://github.com/codevise/pageflow/pull/1714),
79
+ [#1710](https://github.com/codevise/pageflow/pull/1710))
80
+
81
+ ##### Themes
82
+
83
+ - Add theme option to display image on page shadow
84
+ ([#1704](https://github.com/codevise/pageflow/pull/1704),
85
+ [#1706](https://github.com/codevise/pageflow/pull/1706))
86
+ - Add theme option to change left position of logo
87
+ ([#1707](https://github.com/codevise/pageflow/pull/1707))
61
88
 
62
89
  #### Scrolled Entry Type
63
90
 
64
91
  ##### Rails Engine
65
92
 
66
- - Color/font options for scrolled themes
67
- ([#1673](https://github.com/codevise/pageflow/pull/1673))
68
- - Improve scrolled install generator
69
- ([#1682](https://github.com/codevise/pageflow/pull/1682))
93
+ - Additional frontend seed data
94
+ ([#1799](https://github.com/codevise/pageflow/pull/1799),
95
+ [#1801](https://github.com/codevise/pageflow/pull/1801))
96
+ - Improve guides for Pageflow Scrolled
97
+ ([#1793](https://github.com/codevise/pageflow/pull/1793))
98
+ - Move guides for Pageflow Pageflow to entry type directory
99
+ ([#1792](https://github.com/codevise/pageflow/pull/1792))
100
+ - Allow registering additional frontend/editor packs
101
+ ([#1772](https://github.com/codevise/pageflow/pull/1772))
102
+ - Make Webpack load chunks via asset host
103
+ ([#1753](https://github.com/codevise/pageflow/pull/1753),
104
+ [#1754](https://github.com/codevise/pageflow/pull/1754))
105
+ - Allow transforming theme customizations
106
+ ([#1746](https://github.com/codevise/pageflow/pull/1746))
107
+ - Allow passing traits to create_used_file
108
+ ([#1742](https://github.com/codevise/pageflow/pull/1742))
70
109
 
71
- ##### Published Entry
110
+ ##### Editor
72
111
 
73
- - Add 360 image content element based on @egjs/view360
74
- ([#1675](https://github.com/codevise/pageflow/pull/1675),
75
- [#1676](https://github.com/codevise/pageflow/pull/1676))
76
- - Add position wide for heading content elements
77
- ([#1678](https://github.com/codevise/pageflow/pull/1678))
78
- - Remove chapter number from chapter box
79
- ([#1679](https://github.com/codevise/pageflow/pull/1679))
80
- - Fix embed video opt in text color in inverted section
81
- ([#1671](https://github.com/codevise/pageflow/pull/1671))
82
- - Handle player unallocated by empty pool
83
- ([#1668](https://github.com/codevise/pageflow/pull/1668))
84
- - Horizontal scroller for desktop navigation bar
85
- ([#1669](https://github.com/codevise/pageflow/pull/1669))
86
- - Improve file rights
87
- ([#1665](https://github.com/codevise/pageflow/pull/1665))
88
- - Allow non latin characters in video embed caption
89
- ([#1664](https://github.com/codevise/pageflow/pull/1664))
90
- - Hyphenate long text block headers
91
- ([#1662](https://github.com/codevise/pageflow/pull/1662))
92
- - Upgrade Scrolled to Video.js 7
93
- ([#1655](https://github.com/codevise/pageflow/pull/1655))
94
- - Improve before/after wiggle animation
95
- ([#1659](https://github.com/codevise/pageflow/pull/1659))
96
- - Display notices for unsupported browser or non-js
97
- ([#1653](https://github.com/codevise/pageflow/pull/1653))
98
- - Basic styles for print layout of scrolled entries
99
- ([#1652](https://github.com/codevise/pageflow/pull/1652))
100
- - Bug fix: Hide frame around inline video on iOS 12
101
- ([#1680](https://github.com/codevise/pageflow/pull/1680))
112
+ - Make default section configurable and change default to fade
113
+ ([#1760](https://github.com/codevise/pageflow/pull/1760),
114
+ [#1761](https://github.com/codevise/pageflow/pull/1761))
115
+ - Always allow inserting all content element types
116
+ ([#1740](https://github.com/codevise/pageflow/pull/1740))
117
+ - Allow moving text block ranges
118
+ ([#1739](https://github.com/codevise/pageflow/pull/1739))
119
+ - Render fade transition check box in Firefox
120
+ ([#1728](https://github.com/codevise/pageflow/pull/1728))
102
121
 
103
- ##### Editor
122
+ ##### Published Entry
104
123
 
105
- - Prevent concurrent save requests for embed urls
106
- ([#1672](https://github.com/codevise/pageflow/pull/1672))
107
- - Do not trigger multiple save requests for backdrop updates
108
- ([#1666](https://github.com/codevise/pageflow/pull/1666))
109
- - Fix lazy loading in editor for Safari
110
- ([#1660](https://github.com/codevise/pageflow/pull/1660))
111
- - Bug fix: Cascade model removal through ForeignKeySubsetCollection
112
- ([#1651](https://github.com/codevise/pageflow/pull/1651))
124
+ - Add centerRagged layout variant
125
+ ([#1787](https://github.com/codevise/pageflow/pull/1787))
126
+ - Prevent shadow flickering while scrolling on iOS 14
127
+ ([#1755](https://github.com/codevise/pageflow/pull/1755))
128
+ - Consent for scrolled entries
129
+ ([#1722](https://github.com/codevise/pageflow/pull/1722))
130
+ - Transliterate German Umlauts in entry slugs
131
+ ([#1720](https://github.com/codevise/pageflow/pull/1720))
132
+
133
+ ##### Widgets
134
+
135
+ - Scrolled widget types
136
+ ([#1749](https://github.com/codevise/pageflow/pull/1749))
137
+ - Do not convert SVG files uploaded as scrolled logo
138
+ ([#1835](https://github.com/codevise/pageflow/pull/1835))
139
+ - Update highlighted chapter in navigation when scrolling
140
+ ([#1836](https://github.com/codevise/pageflow/pull/1836))
141
+ - Allow placing widget in default navigation bar credit box
142
+ ([#1828](https://github.com/codevise/pageflow/pull/1828))
143
+ - Do not pause loops when audio focus is lost
144
+ ([#1827](https://github.com/codevise/pageflow/pull/1827))
145
+ - Fix unmute icon color in Safari
146
+ ([#1808](https://github.com/codevise/pageflow/pull/1808))
147
+ - Ensure last item of mobile menu is visible on Android
148
+ ([#1807](https://github.com/codevise/pageflow/pull/1807))
149
+ - Do not collapse navigation bar after iOS scroll bouncing
150
+ ([#1806](https://github.com/codevise/pageflow/pull/1806))
151
+ - Align navigation breakpoints with theme breakpoints
152
+ ([#1770](https://github.com/codevise/pageflow/pull/1770))
153
+
154
+ ##### Content Elements
155
+
156
+ - Allow more position options for content elements
157
+ ([#1745](https://github.com/codevise/pageflow/pull/1745))
158
+ - Add portrait image option to inline image
159
+ ([#1744](https://github.com/codevise/pageflow/pull/1744))
160
+ - Allow defining custom poster for video embeds
161
+ ([#1743](https://github.com/codevise/pageflow/pull/1743))
162
+ - Make external link id generation more robust
163
+ ([#1802](https://github.com/codevise/pageflow/pull/1802))
164
+ - Server generated peak data for waveforms
165
+ ([#1814](https://github.com/codevise/pageflow/pull/1814))
166
+ - Inline video loops and improved unmute options
167
+ ([#1810](https://github.com/codevise/pageflow/pull/1810))
168
+ - Prevent displaying black lines at the side of FitViewport elements
169
+ ([#1825](https://github.com/codevise/pageflow/pull/1825))
170
+ - Allow sorting items in external links content element
171
+ ([#1800](https://github.com/codevise/pageflow/pull/1800))
172
+ - Apply consist max-width to wide elements
173
+ ([#1798](https://github.com/codevise/pageflow/pull/1798))
174
+ - Add iframe embed content element
175
+ ([#1762](https://github.com/codevise/pageflow/pull/1762),
176
+ [#1765](https://github.com/codevise/pageflow/pull/1765))
177
+ - Display subtitles at the bottom of the media element
178
+ ([#1764](https://github.com/codevise/pageflow/pull/1764))
179
+ - Add line break and manual hyphenation support for headings
180
+ ([#1751](https://github.com/codevise/pageflow/pull/1751))
181
+ - Add feature flag to disable scrolled chart opt-in
182
+ ([#1732](https://github.com/codevise/pageflow/pull/1732))
183
+ - Prevent interpreting external links as relative
184
+ ([#1727](https://github.com/codevise/pageflow/pull/1727))
185
+ - Use lazy opt-in consent paradigm for scrolled embeds
186
+ ([#1726](https://github.com/codevise/pageflow/pull/1726))
187
+ - Make heading text size configurable
188
+ ([#1725](https://github.com/codevise/pageflow/pull/1725))
189
+ - Make it easier to recognize 360° images
190
+ ([#1724](https://github.com/codevise/pageflow/pull/1724))
191
+ - Ensure contrast of text in embed opt-in
192
+ ([#1723](https://github.com/codevise/pageflow/pull/1723))
193
+ - Remove option hide before/after handles
194
+ ([#1719](https://github.com/codevise/pageflow/pull/1719))
195
+ - Fit viewport without displaying pillar boxes
196
+ ([#1718](https://github.com/codevise/pageflow/pull/1718))
197
+ - Add missing translation for VR content element
198
+ ([#1711](https://github.com/codevise/pageflow/pull/1711))
199
+
200
+ ##### Themes
201
+
202
+ - Render typography CSS rules based on scrolled theme options
203
+ ([#1750](https://github.com/codevise/pageflow/pull/1750))
204
+ - Allow rendering content elements with rounded corners.
205
+ ([#1804](https://github.com/codevise/pageflow/pull/1804),
206
+ [#1805](https://github.com/codevise/pageflow/pull/1805))
207
+ - Add content surface color properties
208
+ ([#1803](https://github.com/codevise/pageflow/pull/1803))
209
+ - Restore spacing but make it theme configurable
210
+ - Allow configuring section widths in theme
211
+ ([#1786](https://github.com/codevise/pageflow/pull/1786),
212
+ [#1795](https://github.com/codevise/pageflow/pull/1795),
213
+ [#1796](https://github.com/codevise/pageflow/pull/1796))
214
+ - Allow targeting different heading sizes via theme typography rules
215
+ ([#1789](https://github.com/codevise/pageflow/pull/1789))
216
+ - Text variants
217
+ ([#1788](https://github.com/codevise/pageflow/pull/1788))
218
+ - Allow changing content text color via theme options
219
+ ([#1785](https://github.com/codevise/pageflow/pull/1785))
220
+ - Allow overriding text block heading margins in typography rules
221
+ ([#1784](https://github.com/codevise/pageflow/pull/1784))
222
+ - Let themes customize navigation bar icons
223
+ ([#1775](https://github.com/codevise/pageflow/pull/1775),
224
+ [#1776](https://github.com/codevise/pageflow/pull/1776))
225
+ - More theme options for scrolled default navigation
226
+ ([#1768](https://github.com/codevise/pageflow/pull/1768))
227
+
228
+ ##### JavaScript API
229
+
230
+ - Make scrolled rendering test helpers available outside package
231
+ ([#1818](https://github.com/codevise/pageflow/pull/1818))
232
+
233
+ ##### Internal
234
+
235
+ - Fix storybook
236
+ ([#1826](https://github.com/codevise/pageflow/pull/1826))
237
+ - Upgrade React minor version used in development
238
+ ([#1773](https://github.com/codevise/pageflow/pull/1773))
239
+ - Transpile pageflow package in scrolled storybook
240
+ ([#1717](https://github.com/codevise/pageflow/pull/1717))
241
+ - Update Video.js for SSR fix
242
+ ([#1701](https://github.com/codevise/pageflow/pull/1701))
243
+ - Do not use import/export keywords in vendored deps
244
+ ([#1700](https://github.com/codevise/pageflow/pull/1700))
113
245
 
114
246
  See
115
- [15-4-stable branch](https://github.com/codevise/pageflow/blob/15-4-stable/CHANGELOG.md)
247
+ [15-6-stable branch](https://github.com/codevise/pageflow/blob/15-6-stable/CHANGELOG.md)
116
248
  for previous changes.
data/README.md CHANGED
@@ -14,8 +14,6 @@ For a high level introduction and example Pageflow stories see
14
14
  * [Getting Started](https://github.com/codevise/pageflow/wiki/Getting-Started)
15
15
  * [Guides](https://github.com/codevise/pageflow/blob/master/doc/index.md)
16
16
  * [JavaScript API Reference of `pageflow` package](http://codevise.github.io/pageflow-docs/js/master/index.html)
17
- * [JavaScript API Reference of `pageflow-scrolled` package](http://codevise.github.io/pageflow-docs/scrolled/js/master/index.html)
18
- * [Theme API Reference](http://codevise.github.io/pageflow-docs/theme/master/index.html)
19
17
  * [List of Plugins](https://github.com/codevise/pageflow/wiki/List-of-Plugins)
20
18
 
21
19
  ## Updating
@@ -58,6 +56,7 @@ Pageflow runs in environments with:
58
56
  * Redis server (for Resque)
59
57
  * A database server supported by Active Record (tested with MySQL)
60
58
  * ImageMagick
59
+ * [Audio Waveform Image Generator](https://github.com/bbc/audiowaveform#installation)
61
60
 
62
61
  Accounts of the following cloud services have to be registered:
63
62
 
@@ -25,9 +25,15 @@ module Pageflow
25
25
  end
26
26
  end
27
27
  end
28
- column :created_at
29
- column :edited_at
30
- column :published_at, sortable: 'pageflow_revisions.published_at'
28
+ column :created_at do |entry|
29
+ timestamp(entry.created_at)
30
+ end
31
+ column :edited_at do |entry|
32
+ timestamp(entry.edited_at)
33
+ end
34
+ column :published_at, sortable: 'pageflow_revisions.published_at' do |entry|
35
+ timestamp(entry.published_at)
36
+ end
31
37
 
32
38
  column class: 'buttons' do |entry|
33
39
  if authorized?(:edit, entry)
@@ -61,6 +67,10 @@ module Pageflow
61
67
  as: :searchable_select,
62
68
  ajax: true,
63
69
  if: ->(_) { authorized?(:index, :accounts) }
70
+ filter :type_name,
71
+ as: :select,
72
+ collection: -> { entry_type_collection },
73
+ if: ->(_) { authorized?(:filter_by_type, :entries) }
64
74
  filter :created_at
65
75
  filter :edited_at
66
76
  filter :first_published_at
@@ -101,56 +111,9 @@ module Pageflow
101
111
  scope.ransack(account_name_cont: term).result
102
112
  end)
103
113
 
104
- form do |f|
105
- f.inputs do
106
- f.input :title, hint: I18n.t('pageflow.admin.entries.title_hint')
107
-
108
- if authorized?(:update_account_on, resource)
109
- f.input(:account,
110
- as: :searchable_select,
111
- include_blank: false,
112
- ajax: {
113
- resource: Entry,
114
- collection_name: :eligible_accounts
115
- },
116
- input_html: {class: 'entry_account_input', style: 'width: 200px'})
117
- end
118
-
119
- if authorized?(:update_theming_on, resource) && !f.object.new_record?
120
- f.input(:theming,
121
- as: :searchable_select,
122
- ajax: {
123
- resource: Entry,
124
- collection_name: :eligible_themings,
125
- params: {
126
- entry_id: resource.id
127
- }
128
- },
129
- include_blank: false,
130
- input_html: {style: 'width: 200px'})
131
- end
132
-
133
- if f.object.new_record?
134
- f.input :type_name,
135
- as: :select,
136
- include_blank: false,
137
- collection: entry_type_collection,
138
- wrapper_html: {style: 'display: none'}
139
- end
114
+ form(partial: 'form')
140
115
 
141
- if authorized?(:configure_folder_for, resource)
142
- folder_collection = collection_for_folders(resource.account, resource.folder)
143
- f.input(:folder,
144
- collection: folder_collection,
145
- include_blank: true) unless folder_collection.empty?
146
- end
147
-
148
- Pageflow.config_for(f.object).admin_form_inputs.build(:entry, f)
149
- end
150
- f.actions
151
- end
152
-
153
- action_item(:depublish, only: :show) do
116
+ action_item(:depublish, only: :show, priority: 6) do
154
117
  if authorized?(:publish, entry) && entry.published?
155
118
  button_to(I18n.t('pageflow.admin.entries.depublish'),
156
119
  pageflow.current_entry_revisions_path(entry),
@@ -163,7 +126,7 @@ module Pageflow
163
126
  end
164
127
  end
165
128
 
166
- action_item(:duplicate, only: :show) do
129
+ action_item(:duplicate, only: :show, priority: 5) do
167
130
  if authorized?(:duplicate, entry)
168
131
  button_to(I18n.t('pageflow.admin.entries.duplicate'),
169
132
  duplicate_admin_entry_path(entry),
@@ -176,15 +139,15 @@ module Pageflow
176
139
  end
177
140
  end
178
141
 
179
- collection_action :entry_types do
142
+ collection_action :entry_type_name_input do
180
143
  account = Pageflow::Account.find(params[:account_id])
144
+ @entry = Pageflow::Entry.new(account: account,
145
+ type_name: params[:entry_type_name])
181
146
 
182
147
  if authorized?(:see_entry_types, account)
183
- @entry_types = helpers.entry_type_collection_for_account(account)
184
-
185
148
  render(layout: false)
186
149
  else
187
- render(partial: 'not_allowed_to_see_entry_types', status: 403)
150
+ head :forbidden
188
151
  end
189
152
  end
190
153
 
@@ -228,9 +191,17 @@ module Pageflow
228
191
  helper Admin::MembershipsHelper
229
192
  helper Admin::RevisionsHelper
230
193
 
194
+ helper_method :account_policy_scope
195
+
231
196
  after_build do |entry|
232
197
  entry.account ||= account_policy_scope.entry_creatable.first || Account.first
233
198
  entry.theming ||= entry.account.default_theming
199
+
200
+ if action_name == 'new' &&
201
+ (default_entry_type = Pageflow.config.default_entry_type&.call(entry.account))
202
+
203
+ entry.type_name = default_entry_type.name
204
+ end
234
205
  end
235
206
 
236
207
  before_update do |entry|
@@ -15,8 +15,6 @@ module Pageflow
15
15
  column I18n.t('pageflow.admin.users.accounts'), class: 'col-accounts' do |user|
16
16
  user_account_badge_list(user)
17
17
  end
18
- column :last_sign_in_at
19
- column :sign_in_count
20
18
  boolean_status_tag_column :suspended?
21
19
  end
22
20
 
@@ -77,7 +75,7 @@ module Pageflow
77
75
  end
78
76
  end
79
77
 
80
- action_item(:toggle_suspended, only: :show) do
78
+ action_item(:toggle_suspended, priority: 5, only: :show) do
81
79
  if user != current_user && authorized?(:suspend, resource)
82
80
  if user.suspended?
83
81
  link_to I18n.t('pageflow.admin.users.unsuspend'),
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/></svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" fill="#fff" xmlns="http://www.w3.org/2000/svg"><path d="M1408 928v320q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h704q14 0 23 9t9 23v64q0 14-9 23t-23 9h-704q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-320q0-14 9-23t23-9h64q14 0 23 9t9 23zm384-864v512q0 26-19 45t-45 19-45-19l-176-176-652 652q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l652-652-176-176q-19-19-19-45t19-45 45-19h512q26 0 45 19t19 45z"/></svg>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 20 20">
3
+ <path fill="#444" d="M3.389,7.113L4.49,18.021C4.551,18.482,6.777,19.998,10,20c3.225-0.002,5.451-1.518,5.511-1.979
4
+ l1.102-10.908C14.929,8.055,12.412,8.5,10,8.5C7.59,8.5,5.072,8.055,3.389,7.113z M13.168,1.51l-0.859-0.951
5
+ C11.977,0.086,11.617,0,10.916,0H9.085c-0.7,0-1.061,0.086-1.392,0.559L6.834,1.51C4.264,1.959,2.4,3.15,2.4,4.029v0.17
6
+ C2.4,5.746,5.803,7,10,7c4.198,0,7.601-1.254,7.601-2.801v-0.17C17.601,3.15,15.738,1.959,13.168,1.51z M12.07,4.34L11,3H9
7
+ L7.932,4.34h-1.7c0,0,1.862-2.221,2.111-2.522C8.533,1.588,8.727,1.5,8.979,1.5h2.043c0.253,0,0.447,0.088,0.637,0.318
8
+ C11.907,2.119,13.77,4.34,13.77,4.34H12.07z"/>
9
+ </svg>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 20 20">
3
+ <path fill="#444" d="M8.294,16.998c-0.435,0-0.847-0.203-1.111-0.553L3.61,11.724c-0.465-0.613-0.344-1.486,0.27-1.951
4
+ c0.615-0.467,1.488-0.344,1.953,0.27l2.351,3.104l5.911-9.492c0.407-0.652,1.267-0.852,1.921-0.445
5
+ c0.653,0.406,0.854,1.266,0.446,1.92L9.478,16.34c-0.242,0.391-0.661,0.635-1.12,0.656C8.336,16.998,8.316,16.998,8.294,16.998z"/>
6
+ </svg>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 20 20">
3
+ <path fill="#444" d="M17.561,2.439c-1.442-1.443-2.525-1.227-2.525-1.227L8.984,7.264L2.21,14.037L1.2,18.799l4.763-1.01
4
+ l6.774-6.771l6.052-6.052C18.788,4.966,19.005,3.883,17.561,2.439z M5.68,17.217l-1.624,0.35c-0.156-0.293-0.345-0.586-0.69-0.932
5
+ c-0.346-0.346-0.639-0.533-0.932-0.691l0.35-1.623l0.47-0.469c0,0,0.883,0.018,1.881,1.016c0.997,0.996,1.016,1.881,1.016,1.881
6
+ L5.68,17.217z"/>
7
+ </svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
3
+ viewBox="0 0 20 20" >
4
+ <path fill="#000" d="M18.405,4.799C18.294,4.359,17.75,4,17.195,4h-6.814c-0.554,0-1.33-0.318-1.722-0.707L8.063,2.705
5
+ C7.671,2.316,6.896,2,6.342,2H3.087c-0.555,0-1.059,0.447-1.12,0.994L1.675,6h16.931L18.405,4.799z M19.412,7H0.588
6
+ c-0.342,0-0.61,0.294-0.577,0.635l0.923,9.669C0.971,17.698,1.303,18,1.7,18h16.6c0.397,0,0.728-0.302,0.766-0.696l0.923-9.669
7
+ C20.022,7.294,19.754,7,19.412,7z"/>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
3
+ viewBox="0 0 20 20" >
4
+ <path fill="#eee" d="M18.405,4.799C18.294,4.359,17.75,4,17.195,4h-6.814c-0.554,0-1.33-0.318-1.722-0.707L8.063,2.705
5
+ C7.671,2.316,6.896,2,6.342,2H3.087c-0.555,0-1.059,0.447-1.12,0.994L1.675,6h16.931L18.405,4.799z M19.412,7H0.588
6
+ c-0.342,0-0.61,0.294-0.577,0.635l0.923,9.669C0.971,17.698,1.303,18,1.7,18h16.6c0.397,0,0.728-0.302,0.766-0.696l0.923-9.669
7
+ C20.022,7.294,19.754,7,19.412,7z"/>
8
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="#8aa5da" stroke-width="2">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 20 20">
3
+ <path fill="#444" d="M10,1.6c-4.639,0-8.4,3.761-8.4,8.4s3.761,8.4,8.4,8.4s8.4-3.761,8.4-8.4S14.639,1.6,10,1.6z M15,11h-4v4H9
4
+ v-4H5V9h4V5h2v4h4V11z"/>
5
+ </svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/></svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" fill="#5d5d5d" xmlns="http://www.w3.org/2000/svg"><path d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5-103 385.5-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103zm274 521q-2 1-9.5 9.5t-13.5 9.5q2 0 4.5-5t5-11 3.5-7q6-7 22-15 14-6 52-12 34-8 51 11-2-2 9.5-13t14.5-12q3-2 15-4.5t15-7.5l2-22q-12 1-17.5-7t-6.5-21q0 2-6 8 0-7-4.5-8t-11.5 1-9 1q-10-3-15-7.5t-8-16.5-4-15q-2-5-9.5-11t-9.5-10q-1-2-2.5-5.5t-3-6.5-4-5.5-5.5-2.5-7 5-7.5 10-4.5 5q-3-2-6-1.5t-4.5 1-4.5 3-5 3.5q-3 2-8.5 3t-8.5 2q15-5-1-11-10-4-16-3 9-4 7.5-12t-8.5-14h5q-1-4-8.5-8.5t-17.5-8.5-13-6q-8-5-34-9.5t-33-.5q-5 6-4.5 10.5t4 14 3.5 12.5q1 6-5.5 13t-6.5 12q0 7 14 15.5t10 21.5q-3 8-16 16t-16 12q-5 8-1.5 18.5t10.5 16.5q2 2 1.5 4t-3.5 4.5-5.5 4-6.5 3.5l-3 2q-11 5-20.5-6t-13.5-26q-7-25-16-30-23-8-29 1-5-13-41-26-25-9-58-4 6-1 0-15-7-15-19-12 3-6 4-17.5t1-13.5q3-13 12-23 1-1 7-8.5t9.5-13.5.5-6q35 4 50-11 5-5 11.5-17t10.5-17q9-6 14-5.5t14.5 5.5 14.5 5q14 1 15.5-11t-7.5-20q12 1 3-17-4-7-8-9-12-4-27 5-8 4 2 8-1-1-9.5 10.5t-16.5 17.5-16-5q-1-1-5.5-13.5t-9.5-13.5q-8 0-16 15 3-8-11-15t-24-8q19-12-8-27-7-4-20.5-5t-19.5 4q-5 7-5.5 11.5t5 8 10.5 5.5 11.5 4 8.5 3q14 10 8 14-2 1-8.5 3.5t-11.5 4.5-6 4q-3 4 0 14t-2 14q-5-5-9-17.5t-7-16.5q7 9-25 6l-10-1q-4 0-16 2t-20.5 1-13.5-8q-4-8 0-20 1-4 4-2-4-3-11-9.5t-10-8.5q-46 15-94 41 6 1 12-1 5-2 13-6.5t10-5.5q34-14 42-7l5-5q14 16 20 25-7-4-30-1-20 6-22 12 7 12 5 18-4-3-11.5-10t-14.5-11-15-5q-16 0-22 1-146 80-235 222 7 7 12 8 4 1 5 9t2.5 11 11.5-3q9 8 3 19 1-1 44 27 19 17 21 21 3 11-10 18-1-2-9-9t-9-4q-3 5 .5 18.5t10.5 12.5q-7 0-9.5 16t-2.5 35.5-1 23.5l2 1q-3 12 5.5 34.5t21.5 19.5q-13 3 20 43 6 8 8 9 3 2 12 7.5t15 10 10 10.5q4 5 10 22.5t14 23.5q-2 6 9.5 20t10.5 23q-1 0-2.5 1t-2.5 1q3 7 15.5 14t15.5 13q1 3 2 10t3 11 8 2q2-20-24-62-15-25-17-29-3-5-5.5-15.5t-4.5-14.5q2 0 6 1.5t8.5 3.5 7.5 4 2 3q-3 7 2 17.5t12 18.5 17 19 12 13q6 6 14 19.5t0 13.5q9 0 20 10.5t17 19.5q5 8 8 26t5 24q2 7 8.5 13.5t12.5 9.5l16 8 13 7q5 2 18.5 10.5t21.5 11.5q10 4 16 4t14.5-2.5 13.5-3.5q15-2 29 15t21 21q36 19 55 11-2 1 .5 7.5t8 15.5 9 14.5 5.5 8.5q5 6 18 15t18 15q6-4 7-9-3 8 7 20t18 10q14-3 14-32-31 15-49-18 0-1-2.5-5.5t-4-8.5-2.5-8.5 0-7.5 5-3q9 0 10-3.5t-2-12.5-4-13q-1-8-11-20t-12-15q-5 9-16 8t-16-9q0 1-1.5 5.5t-1.5 6.5q-13 0-15-1 1-3 2.5-17.5t3.5-22.5q1-4 5.5-12t7.5-14.5 4-12.5-4.5-9.5-17.5-2.5q-19 1-26 20-1 3-3 10.5t-5 11.5-9 7q-7 3-24 2t-24-5q-13-8-22.5-29t-9.5-37q0-10 2.5-26.5t3-25-5.5-24.5q3-2 9-9.5t10-10.5q2-1 4.5-1.5t4.5 0 4-1.5 3-6q-1-1-4-3-3-3-4-3 7 3 28.5-1.5t27.5 1.5q15 11 22-2 0-1-2.5-9.5t-.5-13.5q5 27 29 9 3 3 15.5 5t17.5 5q3 2 7 5.5t5.5 4.5 5-.5 8.5-6.5q10 14 12 24 11 40 19 44 7 3 11 2t4.5-9.5 0-14-1.5-12.5l-1-8v-18l-1-8q-15-3-18.5-12t1.5-18.5 15-18.5q1-1 8-3.5t15.5-6.5 12.5-8q21-19 15-35 7 0 11-9-1 0-5-3t-7.5-5-4.5-2q9-5 2-16 5-3 7.5-11t7.5-10q9 12 21 2 8-8 1-16 5-7 20.5-10.5t18.5-9.5q7 2 8-2t1-12 3-12q4-5 15-9t13-5l17-11q3-4 0-4 18 2 31-11 10-11-6-20 3-6-3-9.5t-15-5.5q3-1 11.5-.5t10.5-1.5q15-10-7-16-17-5-43 12zm-163 877q206-36 351-189-3-3-12.5-4.5t-12.5-3.5q-18-7-24-8 1-7-2.5-13t-8-9-12.5-8-11-7q-2-2-7-6t-7-5.5-7.5-4.5-8.5-2-10 1l-3 1q-3 1-5.5 2.5t-5.5 3-4 3 0 2.5q-21-17-36-22-5-1-11-5.5t-10.5-7-10-1.5-11.5 7q-5 5-6 15t-2 13q-7-5 0-17.5t2-18.5q-3-6-10.5-4.5t-12 4.5-11.5 8.5-9 6.5-8.5 5.5-8.5 7.5q-3 4-6 12t-5 11q-2-4-11.5-6.5t-9.5-5.5q2 10 4 35t5 38q7 31-12 48-27 25-29 40-4 22 12 26 0 7-8 20.5t-7 21.5q0 6 2 16z"/></svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" fill="#5d5d5d" xmlns="http://www.w3.org/2000/svg"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1408 928v320q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h704q14 0 23 9t9 23v64q0 14-9 23t-23 9h-704q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-320q0-14 9-23t23-9h64q14 0 23 9t9 23zm384-864v512q0 26-19 45t-45 19-45-19l-176-176-652 652q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l652-652-176-176q-19-19-19-45t19-45 45-19h512q26 0 45 19t19 45z"/></svg>