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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +160 -190
- data/README.md +3 -5
- data/admins/pageflow/accounts.rb +13 -35
- data/admins/pageflow/entry.rb +21 -1
- data/admins/pageflow/entry_templates.rb +140 -0
- data/admins/pageflow/membership.rb +12 -0
- data/admins/pageflow/user.rb +5 -3
- data/app/assets/javascripts/pageflow/admin/accounts.js +3 -3
- data/app/assets/javascripts/pageflow/admin/entries.js +65 -0
- data/app/assets/javascripts/pageflow/admin/users.js +1 -1
- data/app/assets/javascripts/pageflow/asset_urls.js.erb +1 -0
- data/app/assets/javascripts/pageflow/base.js +0 -12
- data/app/assets/javascripts/pageflow/components.js +2 -6
- data/app/assets/javascripts/pageflow/dist/ui.js +155 -46
- data/app/assets/javascripts/pageflow/vendor.js +12 -10
- data/app/assets/stylesheets/pageflow/base.scss +0 -7
- data/app/assets/stylesheets/pageflow/editor/base.scss +5 -2
- data/app/assets/stylesheets/pageflow/editor/composables.scss +5 -1
- data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +1 -1
- data/app/assets/stylesheets/pageflow/editor/emulation_mode_button.scss +44 -55
- data/app/assets/stylesheets/pageflow/editor/help.scss +2 -2
- data/app/assets/stylesheets/pageflow/editor/select_button.scss +1 -1
- data/app/assets/stylesheets/pageflow/editor/sidebar_footer.scss +1 -1
- data/app/assets/stylesheets/pageflow/entries.scss +1 -1
- data/app/assets/stylesheets/pageflow/loading_spinner.scss +4 -1
- data/app/assets/stylesheets/pageflow/navigation_mobile.scss +4 -4
- data/app/assets/stylesheets/pageflow/themes/default/anchors.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss +4 -0
- data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +6 -1
- data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/control_bar.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/info_box.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/shared/menu_bar.scss +2 -2
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/control_bar.scss +2 -2
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/info_box.scss +1 -1
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/quality_menu.scss +2 -2
- data/app/assets/stylesheets/pageflow/themes/default/player_controls/waveform/wave.scss +1 -1
- data/app/assets/stylesheets/pageflow/ui/forms.scss +9 -2
- data/app/assets/stylesheets/pageflow/ui/input/extended_select_input.scss +2 -2
- data/app/assets/stylesheets/pageflow/ui/tooltip.scss +17 -3
- data/app/controllers/pageflow/editor/widgets_controller.rb +1 -1
- data/app/helpers/pageflow/admin/entries_helper.rb +16 -0
- data/app/helpers/pageflow/pages_helper.rb +1 -0
- data/app/helpers/pageflow/structured_data_helper.rb +0 -2
- data/app/models/pageflow/account.rb +26 -0
- data/app/models/pageflow/account_role_query.rb +1 -1
- data/app/models/pageflow/entry.rb +16 -2
- data/app/models/pageflow/entry_duplicate.rb +1 -0
- data/app/models/pageflow/entry_template.rb +69 -0
- data/app/models/pageflow/managed_user_query.rb +1 -1
- data/app/models/pageflow/revision.rb +1 -1
- data/app/models/pageflow/theming.rb +8 -47
- data/app/policies/pageflow/account_policy.rb +10 -0
- data/app/policies/pageflow/entry_template_policy.rb +22 -0
- data/app/policies/pageflow/folder_policy.rb +2 -2
- data/app/policies/pageflow/membership_policy.rb +2 -2
- data/app/policies/pageflow/theming_policy.rb +2 -6
- data/app/policies/pageflow/user_policy.rb +1 -1
- data/app/views/admin/accounts/_configuration_label.html.erb +5 -0
- data/app/views/admin/accounts/_entry_template_details.html.arb +19 -0
- data/app/views/admin/accounts/_form.html.erb +5 -31
- data/app/views/admin/accounts/_share_providers_label.html.erb +5 -0
- data/app/views/admin/accounts/_theming_details.html.arb +0 -12
- data/app/views/admin/entries/_attributes_table.html.arb +5 -0
- data/app/views/admin/entries/_not_allowed_to_see_entry_types.json.jbuilder +2 -0
- data/app/views/admin/entries/entry_types.json.jbuilder +4 -0
- data/app/views/admin/entry_templates/_form.html.erb +58 -0
- data/app/views/admin/users/_not_allowed_to_see_user_quota.html.erb +3 -0
- data/app/views/components/pageflow/admin/entry_templates_tab.rb +48 -0
- data/app/views/pageflow/admin/users/_quota_exhausted.html.erb +1 -1
- data/app/views/pageflow/themes/_theme.json.jbuilder +1 -0
- data/app/views/pageflow/video_files/_video_file.json.jbuilder +8 -1
- data/config/initializers/admin_resource_tabs.rb +5 -0
- data/config/initializers/help_entries.rb +1 -5
- data/config/locales/de.yml +100 -162
- data/config/locales/en.yml +91 -150
- data/db/migrate/20200122115400_create_pageflow_entry_templates.rb +75 -0
- data/db/migrate/20200206134400_convert_legacy_scrolled_content_element_types.rb +48 -0
- data/db/migrate/20200515112500_add_constraints_to_entry_templates.rb +21 -0
- data/db/migrate/20200807135200_rename_pageflow_entry_template_entry_type_to_entry_type_name.rb +7 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/components.js +7 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +1541 -1357
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +9245 -0
- data/{app/assets/javascripts/pageflow → entry_types/paged/app/assets/javascripts/pageflow_paged}/dist/react-client.js +1 -1
- data/{app/assets/javascripts/pageflow → entry_types/paged/app/assets/javascripts/pageflow_paged}/dist/react-server.js +3 -3
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/frontend.js +6 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/server_rendering.js +9 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/vendor.js +9 -0
- data/entry_types/paged/app/assets/javascripts/pageflow_paged/videojs.js +6 -0
- data/entry_types/paged/app/controllers/pageflow_paged/application_controller.rb +2 -2
- data/{app/helpers/pageflow → entry_types/paged/app/helpers/pageflow_paged}/page_background_asset_helper.rb +4 -3
- data/{app/helpers/pageflow → entry_types/paged/app/helpers/pageflow_paged}/react_server_side_rendering_helper.rb +23 -2
- data/entry_types/paged/app/views/layouts/pageflow_paged/_loading_spinner_inline_script.html.erb +1 -0
- data/entry_types/paged/app/views/layouts/pageflow_paged/application.html.erb +3 -3
- data/entry_types/paged/app/views/pageflow_paged/editor/entries/_head.html.erb +4 -2
- data/entry_types/paged/app/views/pageflow_paged/entries/_entry.html.erb +1 -1
- data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/page_background_asset/_element.html.erb +0 -0
- data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/react/_widget.html.erb +0 -0
- data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/react/page.html.erb +0 -0
- data/entry_types/paged/config/initializers/features.rb +1 -1
- data/entry_types/paged/config/initializers/help_entries.rb +17 -0
- data/entry_types/paged/config/locales/new/help.de.yml +162 -0
- data/entry_types/paged/config/locales/new/help.en.yml +153 -0
- data/entry_types/paged/lib/pageflow_paged/engine.rb +13 -0
- data/entry_types/paged/lib/pageflow_paged/plugin.rb +5 -1
- data/entry_types/paged/lib/pageflow_paged/react.rb +12 -0
- data/{lib/pageflow → entry_types/paged/lib/pageflow_paged}/react/page_type.rb +2 -2
- data/{lib/pageflow → entry_types/paged/lib/pageflow_paged}/react/widget_type.rb +2 -2
- data/entry_types/paged/lib/tasks/pageflow_paged_tasks.rake +7 -0
- data/entry_types/paged/vendor/assets/javascripts/development/pageflow_paged/vendor/react-server.js +20613 -0
- data/entry_types/paged/vendor/assets/javascripts/development/pageflow_paged/vendor/react.js +21495 -0
- data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/dash.all.min.js +0 -0
- data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/videojs-dash.js +0 -0
- data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/videojs.js +0 -0
- data/entry_types/paged/vendor/assets/javascripts/production/pageflow_paged/vendor/react-server.js +24 -0
- data/entry_types/paged/vendor/assets/javascripts/production/pageflow_paged/vendor/react.js +24 -0
- data/entry_types/scrolled/app/assets/javascripts/pageflow_scrolled/legacy.js +0 -0
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/chapters_controller.rb +2 -2
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/content_elements_controller.rb +15 -4
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/sections_controller.rb +2 -2
- data/entry_types/scrolled/app/controllers/pageflow_scrolled/entries_controller.rb +10 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb +11 -1
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/entry_json_seed_helper.rb +4 -1
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/favicon_helper.rb +21 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/i18n_helper.rb +35 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/react_server_side_rendering_helper.rb +40 -0
- data/entry_types/scrolled/app/helpers/pageflow_scrolled/themes_helper.rb +8 -0
- data/entry_types/scrolled/app/models/pageflow_scrolled/content_element.rb +38 -0
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/content_elements/batch.json.jbuilder +2 -0
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb +1 -7
- data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_seed.json.jbuilder +1 -1
- data/entry_types/scrolled/app/views/pageflow_scrolled/entries/show.html.erb +36 -10
- data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +13 -1
- data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder +8 -0
- data/entry_types/scrolled/app/views/pageflow_scrolled/favicons/_entry.html.erb +10 -0
- data/entry_types/scrolled/config/initializers/help_entries.rb +16 -0
- data/entry_types/scrolled/config/locales/de.yml +655 -0
- data/entry_types/scrolled/config/locales/en.yml +522 -0
- data/entry_types/scrolled/config/routes.rb +1 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/install_generator.rb +36 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/android-chrome-192x192.png +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/android-chrome-512x512.png +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/apple-touch-icon.png +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/browserconfig.xml +9 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon-16x16.png +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon-32x32.png +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon.ico +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/mstile-150x150.png +0 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/safari-pinned-tab.svg +46 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/site.webmanifest +19 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/logoDesktop.svg +56 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/logoMobile.svg +22 -0
- data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/unmute.mp3 +0 -0
- data/entry_types/scrolled/lib/pageflow_scrolled/engine.rb +4 -0
- data/entry_types/scrolled/lib/pageflow_scrolled/plugin.rb +3 -1
- data/entry_types/scrolled/lib/pageflow_scrolled/seeds.rb +93 -28
- data/entry_types/scrolled/lib/tasks/pageflow_scrolled_tasks.rake +134 -0
- data/entry_types/scrolled/package/contentElements-editor.js +482 -0
- data/entry_types/scrolled/package/contentElements-frontend.css +1 -0
- data/entry_types/scrolled/package/contentElements-frontend.js +1112 -0
- data/entry_types/scrolled/package/editor.js +3066 -2579
- data/entry_types/scrolled/package/frontend-server.js +228 -0
- data/entry_types/scrolled/package/frontend/EditableText-43c50894.js +2161 -0
- data/entry_types/scrolled/package/frontend/Wavesurfer-b88b02e0.js +375 -0
- data/entry_types/scrolled/package/frontend/components-3ead1b4a.js +2533 -0
- data/entry_types/scrolled/package/frontend/getPrototypeOf-63c7c8e8.js +86 -0
- data/entry_types/scrolled/package/frontend/index.css +9 -0
- data/entry_types/scrolled/package/frontend/index.js +5507 -0
- data/entry_types/scrolled/package/package.json +40 -7
- data/entry_types/scrolled/spec/fixtures/audio.m4a +0 -0
- data/entry_types/scrolled/spec/fixtures/video.mp4 +0 -0
- data/lib/generators/pageflow/initializer/templates/pageflow.rb +21 -9
- data/lib/pageflow/ability_mixin.rb +15 -2
- data/lib/pageflow/configuration.rb +6 -5
- data/lib/pageflow/entry_type_configuration.rb +1 -0
- data/lib/pageflow/global_config_api.rb +5 -4
- data/lib/pageflow/react.rb +4 -2
- data/lib/pageflow/seeds.rb +0 -2
- data/lib/pageflow/theme.rb +4 -0
- data/lib/pageflow/themes.rb +9 -1
- data/lib/pageflow/version.rb +1 -1
- data/{packages/pageflow → package}/config/jest/index.js +8 -3
- data/{packages/pageflow → package}/config/jest/transformers/jst.js +1 -1
- data/{packages/pageflow → package}/config/jest/transformers/upwardBabel.js +0 -0
- data/{packages/pageflow → package}/config/webpack.js +7 -1
- data/{packages/pageflow → package}/editor.js +493 -1122
- data/package/frontend.js +2542 -0
- data/{packages/pageflow → package}/package.json +5 -1
- data/package/testHelpers.js +732 -0
- data/{packages/pageflow → package}/ui.js +155 -46
- data/spec/factories/accounts.rb +9 -1
- data/spec/factories/entry_templates.rb +9 -0
- data/spec/factories/published_entries.rb +8 -1
- data/spec/factories/themings.rb +0 -1
- metadata +94 -33
- data/app/assets/javascripts/pageflow/dist/editor.js +0 -11890
- data/app/assets/javascripts/pageflow/dist/frontend.js +0 -5798
- data/app/assets/javascripts/pageflow/videojs.js +0 -6
- data/config/initializers/entry_types.rb +0 -4
- data/entry_types/scrolled/config/locales/new/de.yml +0 -46
- data/entry_types/scrolled/config/locales/new/en.yml +0 -46
- data/entry_types/scrolled/package/frontend.js +0 -3404
- data/packages/pageflow/config/jest/transformers/cssModules.js +0 -1
- data/packages/pageflow/testHelpers.js +0 -268
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3f03a7b8a1dfb0f883c3b74dc65373ddcdda27b3dad7a469b5f0c90dd66a4e7f
|
4
|
+
data.tar.gz: 62c18d804e95fb066746cb1cb482ad1504ca6e89107d63286c2950917a371d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd94ad6911c8e9c0b0000f4eb294b3d0a06ebc108fa81692c284d0d2f89a53753665827110589979bd7e2a953f659bfd7e6707d35f89f5140821096742895251
|
7
|
+
data.tar.gz: 2ed57089f493c3d3c4773c503852c26473e50c0fe53e61acbbe0d01f2a6d383dc8460fcdaf06bfa349bcc5b17e3fe6960ad6791a629f09665283654037a0fd19
|
data/CHANGELOG.md
CHANGED
@@ -1,218 +1,188 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 15.
|
3
|
+
### Version 15.4.0
|
4
4
|
|
5
|
-
|
5
|
+
2021-01-08
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow/compare/
|
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
|
-
-
|
61
|
-
([#
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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
|
-
-
|
113
|
-
([#
|
114
|
-
-
|
115
|
-
([#
|
116
|
-
-
|
117
|
-
([#
|
118
|
-
-
|
119
|
-
([#
|
120
|
-
-
|
121
|
-
([#
|
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
|
-
-
|
130
|
-
([#
|
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
|
-
-
|
160
|
-
([#
|
161
|
-
-
|
162
|
-
([#
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
-
|
174
|
-
([#
|
175
|
-
|
176
|
-
|
177
|
-
-
|
178
|
-
([#
|
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
|
-
-
|
183
|
-
([#
|
184
|
-
-
|
185
|
-
([#
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
-
|
191
|
-
([#
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
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-
|
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://
|
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.
|
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/
|
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/)
|
data/admins/pageflow/accounts.rb
CHANGED
@@ -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
|
-
|
91
|
-
@account.
|
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
|
-
|
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
|