pageflow 13.0.0 → 13.1.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pageflow might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -267
- data/admins/pageflow/accounts.rb +5 -3
- data/app/assets/javascripts/pageflow/base.js +1 -0
- data/app/assets/javascripts/pageflow/browser/video.js +6 -1
- data/app/assets/javascripts/pageflow/delayed_start.js +50 -0
- data/app/assets/javascripts/pageflow/dist/react.js +1733 -989
- data/app/assets/javascripts/pageflow/editor/models/widget.js +2 -1
- data/app/assets/javascripts/pageflow/editor/models/widget_configuration_file_selection_handler.js +16 -0
- data/app/assets/javascripts/pageflow/editor/views/entry_preview_view.js +2 -0
- data/app/assets/javascripts/pageflow/editor/views/widget_types/classic_loading_spinner.js +11 -0
- data/app/assets/javascripts/pageflow/editor/views/widget_types/title_loading_spinner.js +20 -0
- data/app/assets/javascripts/pageflow/jquery_utils.js +10 -0
- data/app/assets/javascripts/pageflow/manual_start.js +2 -20
- data/app/assets/javascripts/pageflow/ready.js +3 -1
- data/app/assets/javascripts/pageflow/slideshow.js +1 -1
- data/app/assets/javascripts/pageflow/slideshow/page_widget.js +1 -1
- data/app/assets/javascripts/pageflow/slideshow/scroll_indicator_widget.js +1 -1
- data/app/assets/javascripts/pageflow/video_player/filter_sources.js +16 -2
- data/app/assets/javascripts/pageflow/widgets.js +1 -0
- data/app/assets/javascripts/pageflow/widgets/navigation.js +1 -0
- data/app/assets/javascripts/pageflow/widgets/navigation_mobile.js +1 -0
- data/app/assets/javascripts/pageflow/widgets/overview.js +3 -1
- data/app/assets/stylesheets/pageflow/navigation_bar.scss +0 -4
- data/app/assets/stylesheets/pageflow/themes/default/loading_spinner.scss +2 -0
- data/app/assets/stylesheets/pageflow/themes/default/loading_spinner/title.scss +158 -0
- data/app/assets/stylesheets/pageflow/themes/default/logo/variant/background_image.scss +35 -30
- data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +25 -10
- data/app/helpers/pageflow/common_entry_seed_helper.rb +0 -1
- data/app/helpers/pageflow/entry_json_seed_helper.rb +7 -0
- data/app/models/pageflow/theming.rb +2 -1
- data/app/views/admin/accounts/_form.html.erb +7 -0
- data/app/views/admin/accounts/_theming_details.html.arb +3 -0
- data/app/views/pageflow/entries/_mobile_navigation.html.erb +2 -3
- data/app/views/pageflow/entries/mobile_navigation/_page.html.erb +5 -0
- data/app/views/pageflow/entries/navigation/_page.html.erb +3 -1
- data/app/views/pageflow/entries/overview/_page.html.erb +1 -1
- data/app/views/pageflow/entries/show.html.erb +0 -1
- data/app/views/pageflow/entry_json_seed/_entry.json.jbuilder +1 -0
- data/app/views/pageflow/react/_widget.html.erb +8 -1
- data/config/locales/de.yml +27 -0
- data/config/locales/en.yml +27 -0
- data/db/migrate/20190109085744_add_default_locale_to_themings.rb +6 -0
- data/lib/pageflow/built_in_widget_type.rb +14 -0
- data/lib/pageflow/built_in_widget_types_plugin.rb +12 -1
- data/lib/pageflow/react.rb +2 -2
- data/lib/pageflow/react/widget_type.rb +5 -2
- data/lib/pageflow/version.rb +1 -1
- metadata +10 -5
- data/app/assets/javascripts/pageflow/widgets/loading_spinner.js +0 -23
- data/app/views/pageflow/entries/_loading_spinner.html.erb +0 -5
@@ -21,20 +21,11 @@ $logo-watermark-variant-opacity: 0.3 !default;
|
|
21
21
|
$height,
|
22
22
|
$phone-height
|
23
23
|
) {
|
24
|
-
|
25
|
-
@extend %pageflow_widget_margin_top !optional;
|
26
|
-
display: none;
|
27
|
-
|
28
|
-
@include hide-text;
|
24
|
+
%logo {
|
29
25
|
position: absolute;
|
30
26
|
width: $width;
|
31
27
|
height: $height;
|
32
28
|
top: $top;
|
33
|
-
z-index: 1;
|
34
|
-
|
35
|
-
pointer-events: none;
|
36
|
-
opacity: $logo-watermark-variant-opacity;
|
37
|
-
@include transition(opacity 500ms);
|
38
29
|
|
39
30
|
@include phone {
|
40
31
|
width: $phone-height * $width / $height;
|
@@ -43,6 +34,30 @@ $logo-watermark-variant-opacity: 0.3 !default;
|
|
43
34
|
}
|
44
35
|
|
45
36
|
@include logo-alignment;
|
37
|
+
}
|
38
|
+
|
39
|
+
%background_logo {
|
40
|
+
@extend %logo;
|
41
|
+
background-repeat: no-repeat;
|
42
|
+
background-size: 100% auto;
|
43
|
+
background-image: image-url("pageflow/themes/#{$theme-name}/logo_header.#{$logo-image-file-extension}");
|
44
|
+
}
|
45
|
+
|
46
|
+
.header {
|
47
|
+
@extend %pageflow_widget_margin_right !optional;
|
48
|
+
position: relative;
|
49
|
+
}
|
50
|
+
|
51
|
+
.header_logo {
|
52
|
+
@extend %pageflow_widget_margin_top !optional;
|
53
|
+
@extend %logo;
|
54
|
+
@include hide-text;
|
55
|
+
|
56
|
+
display: none;
|
57
|
+
z-index: 1;
|
58
|
+
pointer-events: none;
|
59
|
+
opacity: $logo-watermark-variant-opacity;
|
60
|
+
@include transition(opacity 500ms);
|
46
61
|
|
47
62
|
.js & {
|
48
63
|
display: block;
|
@@ -37,7 +37,8 @@ module Pageflow
|
|
37
37
|
publisher: default_publisher.presence || Pageflow.config.default_publisher_meta_tag,
|
38
38
|
keywords: default_keywords.presence || Pageflow.config.default_keywords_meta_tag,
|
39
39
|
theme_name: theme_name,
|
40
|
-
home_button_enabled: home_button_enabled_by_default
|
40
|
+
home_button_enabled: home_button_enabled_by_default,
|
41
|
+
locale: default_locale
|
41
42
|
)
|
42
43
|
end
|
43
44
|
|
@@ -18,6 +18,13 @@
|
|
18
18
|
<% end %>
|
19
19
|
|
20
20
|
<%= f.inputs do %>
|
21
|
+
<%= theming.input :default_locale,
|
22
|
+
as: :select,
|
23
|
+
include_blank: false,
|
24
|
+
collection: Pageflow.config.available_public_locales.map{ |locale|
|
25
|
+
[t('pageflow.public._language', locale: locale), locale.to_s]
|
26
|
+
},
|
27
|
+
hint: t('pageflow.admin.themings.default_locale_hint') %>
|
21
28
|
<%= theming.input :default_author,
|
22
29
|
hint: t('pageflow.admin.themings.default_author_hint'),
|
23
30
|
placeholder: Pageflow.config.default_author_meta_tag %>
|
@@ -5,6 +5,9 @@ extensible_attributes_table_for(account.default_theming,
|
|
5
5
|
row :theme, class: 'theme' do
|
6
6
|
account.default_theming.theme.name
|
7
7
|
end
|
8
|
+
row :default_locale, class: 'default_locale' do
|
9
|
+
t('pageflow.public._language', locale: account.default_theming.default_locale)
|
10
|
+
end
|
8
11
|
row :default_author, class: 'default_author'
|
9
12
|
row :default_publisher, class: 'default_publisher'
|
10
13
|
row :default_keywords, class: 'default_keywords'
|
@@ -7,9 +7,8 @@
|
|
7
7
|
<span class="heading-1"><%= t('pageflow.public.overview') %></span>
|
8
8
|
<div class="wrapper">
|
9
9
|
<ul class="pages">
|
10
|
-
<%= render :partial => 'pageflow/entries/
|
11
|
-
:collection => entry_mobile_navigation_pages(entry)
|
12
|
-
:locals => {:image_style => :thumbnail_overview_mobile, :image_width => nil} %>
|
10
|
+
<%= render :partial => 'pageflow/entries/mobile_navigation/page',
|
11
|
+
:collection => entry_mobile_navigation_pages(entry) %>
|
13
12
|
</ul>
|
14
13
|
</div>
|
15
14
|
</div>
|
@@ -4,6 +4,8 @@
|
|
4
4
|
<% end %>
|
5
5
|
<div class="navigation_site_detail">
|
6
6
|
<%= page.title %>
|
7
|
-
<div class="thumbnail is_<%= page.template %>"
|
7
|
+
<div class="thumbnail is_<%= page.template %>">
|
8
|
+
<%= image_tag('', data: {src: asset_path(page.thumbnail_url(:navigation_thumbnail_large))}) %>
|
9
|
+
</div>
|
8
10
|
</div>
|
9
11
|
</li>
|
@@ -4,6 +4,6 @@
|
|
4
4
|
<%= overview_page_description(page) %>
|
5
5
|
</p>
|
6
6
|
</div>
|
7
|
-
<%= image_tag(
|
7
|
+
<%= image_tag('', data: {src: asset_path(page.thumbnail_url(:thumbnail_overview_desktop))}) %>
|
8
8
|
<div class="pictogram"></div>
|
9
9
|
<% end %>
|
@@ -18,7 +18,6 @@
|
|
18
18
|
<%= cache [@entry, :body, @widget_scope] do %>
|
19
19
|
|
20
20
|
<%= render 'pageflow/entries/ie8_hint' %>
|
21
|
-
<%= render 'pageflow/entries/loading_spinner' %>
|
22
21
|
<%= render 'pageflow/entries/multimedia_alert' %>
|
23
22
|
<%= render_widgets(@entry, scope: @widget_scope, insert_point: :before_entry) %>
|
24
23
|
<%= render @entry, :widget_scope => @widget_scope %>
|
@@ -1 +1,8 @@
|
|
1
|
-
<%= content_tag(:div, '', data: {widget: name})
|
1
|
+
<%= content_tag(:div, '', data: {widget: name}) do -%>
|
2
|
+
<% if server_rendering -%>
|
3
|
+
<% concat React::ServerRendering.render(
|
4
|
+
'pageflow.react.ServerSideWidget',
|
5
|
+
%Q'{ "resolverSeed": #{@_pageflow_react_entry_seed ||= entry_json_seed(entry)}, "widgetTypeName": "#{name}" }',
|
6
|
+
true) %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
data/config/locales/de.yml
CHANGED
@@ -263,6 +263,7 @@ de:
|
|
263
263
|
copyright_link_url: Copyright-Link URL
|
264
264
|
default_author: Standard Autor
|
265
265
|
default_keywords: Standard Schlüsselwörter
|
266
|
+
default_locale: Standard Sprache
|
266
267
|
default_publisher: Standard Herausgeber
|
267
268
|
home_button_enabled_by_default: Home-Button in neuen Beiträgen anzeigen
|
268
269
|
home_url: Redirect URL
|
@@ -837,6 +838,7 @@ de:
|
|
837
838
|
cname_hint: Wird in Share Links verwendet.
|
838
839
|
default_author_hint: Voreinstellung 'author' Meta-Feld für Eintrage
|
839
840
|
default_keywords_hint: Voreinstellung 'keywords' Meta-Feld für Eintrage
|
841
|
+
default_locale_hint: Voreinstellung Sprache für Einträge
|
840
842
|
default_publisher_hint: Voreinstellung 'publisher' Meta-Feld für Eintrage
|
841
843
|
home_url_hint: Wird einer der obigen CNAMES ohne Pfad in der URL verwendet, wird zu dieser URL umgeleitet. Standard Link Ziel des Home Buttons.
|
842
844
|
name: "%{account_name}"
|
@@ -958,6 +960,8 @@ de:
|
|
958
960
|
page_type_name: Hintergrund Bild/Video
|
959
961
|
chapter_hierachy:
|
960
962
|
feature_name: Kapitel Hierachie
|
963
|
+
classic_loading_spinner:
|
964
|
+
widget_type_name: Klassisch
|
961
965
|
common_page_attributes:
|
962
966
|
background_type:
|
963
967
|
inline_help: Im Hintergund der Seite kann entweder ein Bild oder ein Video-Loop angezeigt werden.
|
@@ -1020,6 +1024,8 @@ de:
|
|
1020
1024
|
header: Dies ist ein leerer Pageflow
|
1021
1025
|
intro: Pageflows bestehen aus Kapiteln und Seiten. In der Seitenleiste rechts findest Du die Gliederung.
|
1022
1026
|
outro: Hier siehst Du dann eine Vorschau deines Pageflows.
|
1027
|
+
classic_loading_spinner:
|
1028
|
+
widget_type_info_box_text: Dies ist eine Vorschau der klassischen Lade-Ansicht. Wird angezeigt, während der Beitrag lädt.
|
1023
1029
|
cookie_notice_bar:
|
1024
1030
|
widget_type_info_box_text: Der Hinweis wird beim ersten Öffnen von Beiträgen, die Cookies verwenden, am unteren Seitenrand angezeigt. Cookies werden gesetzt, falls ein Dienst zur Erhebnung von Nutzungsdaten (z.B. Google Analytics) verwendet wird oder wenn die Funktion 'Neue Seiten hervorheben' aktiv ist.
|
1025
1031
|
entries:
|
@@ -1305,6 +1311,8 @@ de:
|
|
1305
1311
|
srclang_missing: "(Fehlt)"
|
1306
1312
|
themes:
|
1307
1313
|
header: Themes
|
1314
|
+
title_loading_spinner:
|
1315
|
+
widget_type_info_box_text: Dies ist eine Vorschau der 'Titel und Bild'-Lade-Ansicht. Die Animation läuft ab, während der Beitrag lädt.
|
1308
1316
|
views:
|
1309
1317
|
chapter_item_view:
|
1310
1318
|
chapter: Kapitel
|
@@ -1357,6 +1365,18 @@ de:
|
|
1357
1365
|
storylines_picker_view:
|
1358
1366
|
label: Erzählstrang
|
1359
1367
|
without_parent_page: Ohne übergeordnete Seite
|
1368
|
+
widgets:
|
1369
|
+
attributes:
|
1370
|
+
title_loading_spinner:
|
1371
|
+
custom_background_image_id:
|
1372
|
+
inline_help: Standardmäßig wird das Hintergrundbild der ersten Seite verwendet.
|
1373
|
+
label: Hintegrundbild
|
1374
|
+
subtitle:
|
1375
|
+
inline_help: Untertitel, der in der Lade-Ansicht gezeigt werden soll.
|
1376
|
+
label: Untertitel
|
1377
|
+
title:
|
1378
|
+
inline_help: Titel, der in der Lade-Ansicht gezeigt werden soll. Standardmäßig wird der Beitragstitel verwendet.
|
1379
|
+
label: Titel
|
1360
1380
|
editor_emulation_mode:
|
1361
1381
|
feature_name: Editor Phone Emulationsmodus
|
1362
1382
|
entry:
|
@@ -1699,6 +1719,8 @@ de:
|
|
1699
1719
|
scroll_over_from_left: Überlagern (von links)
|
1700
1720
|
scroll_over_from_right: Überlagern (von rechts)
|
1701
1721
|
scroll_right: Scrollen (von rechts)
|
1722
|
+
phone_horizontal_slideshow_mode:
|
1723
|
+
feature_name: Horizontales Wischen auf Phones
|
1702
1724
|
quotas:
|
1703
1725
|
exhausted: Quota verbraucht.
|
1704
1726
|
selectable_themes:
|
@@ -1729,6 +1751,9 @@ de:
|
|
1729
1751
|
feature_name: Erzählstränge
|
1730
1752
|
main: Hauptstrang
|
1731
1753
|
untitled: Unbenannter Erzählstrang
|
1754
|
+
title_loading_spinner:
|
1755
|
+
feature_name: "'Titel und Bild'-Lade-Ansicht"
|
1756
|
+
widget_type_name: Titel und Bild
|
1732
1757
|
ui:
|
1733
1758
|
configuration_editor:
|
1734
1759
|
tabs:
|
@@ -1736,6 +1761,7 @@ de:
|
|
1736
1761
|
files: Dateien
|
1737
1762
|
general: Allgemein
|
1738
1763
|
links: Verweise
|
1764
|
+
loading_spinner: Lade-Ansicht
|
1739
1765
|
options: Optionen
|
1740
1766
|
phone_horizontal_slideshow_mode: Horizontales Wischen auf Phones
|
1741
1767
|
social: Social
|
@@ -1846,6 +1872,7 @@ de:
|
|
1846
1872
|
analytics: Zählpixel
|
1847
1873
|
background_media_control: Hintergrund-Media-Control
|
1848
1874
|
cookie_notice: Cookie Hinweis
|
1875
|
+
loading_spinner: Lade-Ansicht
|
1849
1876
|
mobile_navigation: Mobile Navigation
|
1850
1877
|
navigation: Navigationsleiste
|
1851
1878
|
player_controls: Player Controls
|
data/config/locales/en.yml
CHANGED
@@ -263,6 +263,7 @@ en:
|
|
263
263
|
copyright_link_url: Copyright link URL
|
264
264
|
default_author: Default author
|
265
265
|
default_keywords: Default keywords
|
266
|
+
default_locale: Default locale
|
266
267
|
default_publisher: Default publisher
|
267
268
|
home_button_enabled_by_default: "'Home'-Button enabled by default"
|
268
269
|
home_url: Redirect URL
|
@@ -837,6 +838,7 @@ en:
|
|
837
838
|
cname_hint: Used in public sharing URLs.
|
838
839
|
default_author_hint: Default 'author' meta field for entries
|
839
840
|
default_keywords_hint: Default 'keywords' meta field for entries
|
841
|
+
default_locale_hint: Default language for entries
|
840
842
|
default_publisher_hint: Default 'publisher' meta field for entries
|
841
843
|
home_url_hint: Used for requests to the root path with one of the above CNAMES. Default target location for the home button.
|
842
844
|
name: "%{account_name}"
|
@@ -956,6 +958,8 @@ en:
|
|
956
958
|
page_type_name: Background image/video
|
957
959
|
chapter_hierachy:
|
958
960
|
feature_name: Chapter Hierachy
|
961
|
+
classic_loading_spinner:
|
962
|
+
widget_type_name: Classic
|
959
963
|
common_page_attributes:
|
960
964
|
background_type:
|
961
965
|
inline_help: The page background can either display an image or a video loop.
|
@@ -1020,6 +1024,8 @@ en:
|
|
1020
1024
|
header: This is an empty Pageflow
|
1021
1025
|
intro: Each Pageflow consist of chapters and pages. The editor panel to your right shows the outline of your story.
|
1022
1026
|
outro: In this area, a live preview will be shown.
|
1027
|
+
classic_loading_spinner:
|
1028
|
+
widget_type_info_box_text: This is a preview of the classic loading spinner. It is displayed while the page is loading.
|
1023
1029
|
cookie_notice_bar:
|
1024
1030
|
widget_type_info_box_text: The notice is displayed when visiting an entry that uses Cookies. Cookies are set, if an analytics integration is active or the 'Emphasize new pages' feature has been enabled.
|
1025
1031
|
entries:
|
@@ -1305,6 +1311,8 @@ en:
|
|
1305
1311
|
srclang_missing: "(Missing)"
|
1306
1312
|
themes:
|
1307
1313
|
header: Themes
|
1314
|
+
title_loading_spinner:
|
1315
|
+
widget_type_info_box_text: This is a preview of the 'Title and Image' loading view. The animation runs while the page is loading.
|
1308
1316
|
views:
|
1309
1317
|
chapter_item_view:
|
1310
1318
|
chapter: Chapter
|
@@ -1357,6 +1365,18 @@ en:
|
|
1357
1365
|
storylines_picker_view:
|
1358
1366
|
label: Storyline
|
1359
1367
|
without_parent_page: Without parent page
|
1368
|
+
widgets:
|
1369
|
+
attributes:
|
1370
|
+
title_loading_spinner:
|
1371
|
+
custom_background_image_id:
|
1372
|
+
inline_help: By default the background image of the first page is used.
|
1373
|
+
label: Background image
|
1374
|
+
subtitle:
|
1375
|
+
inline_help: Subtitle to display in loadiner view.
|
1376
|
+
label: Subtitle
|
1377
|
+
title:
|
1378
|
+
inline_help: Title to display in loadiner view. Defaults to entry title.
|
1379
|
+
label: Title
|
1360
1380
|
editor_emulation_mode:
|
1361
1381
|
feature_name: Editor phone emulation mode
|
1362
1382
|
entry:
|
@@ -1671,6 +1691,8 @@ en:
|
|
1671
1691
|
scroll_over_from_left: Scroll over from left
|
1672
1692
|
scroll_over_from_right: Scroll over from right
|
1673
1693
|
scroll_right: Scroll right
|
1694
|
+
phone_horizontal_slideshow_mode:
|
1695
|
+
feature_name: Horizontal swipe on phone
|
1674
1696
|
quotas:
|
1675
1697
|
exhausted: Quota exhausted
|
1676
1698
|
selectable_themes:
|
@@ -1701,6 +1723,9 @@ en:
|
|
1701
1723
|
feature_name: Storylines
|
1702
1724
|
main: Main storyline
|
1703
1725
|
untitled: Unnamed storyline
|
1726
|
+
title_loading_spinner:
|
1727
|
+
feature_name: "'Title and image' loading view"
|
1728
|
+
widget_type_name: Title and Image
|
1704
1729
|
ui:
|
1705
1730
|
configuration_editor:
|
1706
1731
|
tabs:
|
@@ -1708,6 +1733,7 @@ en:
|
|
1708
1733
|
files: Files
|
1709
1734
|
general: General
|
1710
1735
|
links: Links
|
1736
|
+
loading_spinner: Loading View
|
1711
1737
|
options: Options
|
1712
1738
|
phone_horizontal_slideshow_mode: Horizontal swipe on phone
|
1713
1739
|
social: Social
|
@@ -1821,6 +1847,7 @@ en:
|
|
1821
1847
|
analytics: Tracking
|
1822
1848
|
background_media_control: Background media control
|
1823
1849
|
cookie_notice: Cookie Notice
|
1850
|
+
loading_spinner: Loading View
|
1824
1851
|
mobile_navigation: Mobile navigation
|
1825
1852
|
navigation: Navigation bar
|
1826
1853
|
player_controls: Player Controls
|
@@ -47,5 +47,19 @@ module Pageflow
|
|
47
47
|
def self.unmute_button
|
48
48
|
Pageflow::React.create_widget_type('unmute_button', 'background_media_control')
|
49
49
|
end
|
50
|
+
|
51
|
+
def self.classic_loading_spinner
|
52
|
+
Pageflow::React.create_widget_type('classic_loading_spinner',
|
53
|
+
'loading_spinner',
|
54
|
+
insert_point: :before_entry,
|
55
|
+
server_rendering: true)
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.title_loading_spinner
|
59
|
+
Pageflow::React.create_widget_type('title_loading_spinner',
|
60
|
+
'loading_spinner',
|
61
|
+
insert_point: :before_entry,
|
62
|
+
server_rendering: true)
|
63
|
+
end
|
50
64
|
end
|
51
65
|
end
|
@@ -3,7 +3,18 @@ module Pageflow
|
|
3
3
|
def configure(config)
|
4
4
|
config.widget_types.register(Pageflow::BuiltInWidgetType.default_slideshow_mode,
|
5
5
|
default: true)
|
6
|
-
|
6
|
+
|
7
|
+
config.features.register('phone_horizontal_slideshow_mode') do |feature_config|
|
8
|
+
feature_config.widget_types.register(Pageflow::BuiltInWidgetType
|
9
|
+
.phone_horizontal_slideshow_mode)
|
10
|
+
end
|
11
|
+
|
12
|
+
config.widget_types.register(Pageflow::BuiltInWidgetType.classic_loading_spinner,
|
13
|
+
default: true)
|
14
|
+
|
15
|
+
config.features.register('title_loading_spinner') do |feature_config|
|
16
|
+
feature_config.widget_types.register(Pageflow::BuiltInWidgetType.title_loading_spinner)
|
17
|
+
end
|
7
18
|
|
8
19
|
config.widget_types.register(Pageflow::BuiltInWidgetType.navigation, default: true)
|
9
20
|
config.widget_types.register(Pageflow::BuiltInWidgetType.mobile_navigation, default: true)
|
data/lib/pageflow/react.rb
CHANGED
@@ -4,8 +4,8 @@ module Pageflow
|
|
4
4
|
Pageflow::React::PageType.new(name, options)
|
5
5
|
end
|
6
6
|
|
7
|
-
def self.create_widget_type(name, role)
|
8
|
-
Pageflow::React::WidgetType.new(name, role)
|
7
|
+
def self.create_widget_type(name, role, options = {})
|
8
|
+
Pageflow::React::WidgetType.new(name, role, options)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -17,8 +17,11 @@ module Pageflow
|
|
17
17
|
@options[:insert_point] || super
|
18
18
|
end
|
19
19
|
|
20
|
-
def render(template,
|
21
|
-
template.render(File.join('pageflow', 'react', 'widget'),
|
20
|
+
def render(template, entry)
|
21
|
+
template.render(File.join('pageflow', 'react', 'widget'),
|
22
|
+
entry: entry,
|
23
|
+
name: name,
|
24
|
+
server_rendering: options[:server_rendering])
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
data/lib/pageflow/version.rb
CHANGED