@openeventkit/event-site 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gatsby-node.js +9 -3
- package/package.json +3 -3
- package/src/actions/update-data-actions.js +1 -1
- package/src/cms/config/collections/defaultPagesCollection/expoHallPage/index.js +39 -0
- package/src/cms/config/collections/defaultPagesCollection/expoHallPage/typeDefs.js +15 -0
- package/src/cms/config/collections/defaultPagesCollection/index.js +3 -1
- package/src/cms/config/collections/defaultPagesCollection/lobbyPage/index.js +16 -0
- package/src/cms/config/collections/defaultPagesCollection/lobbyPage/typeDefs.js +5 -0
- package/src/cms/config/collections/defaultPagesCollection/typeDefs.js +3 -1
- package/src/components/FullSchedule.js +2 -0
- package/src/components/HeroComponent.js +1 -1
- package/src/components/RegistrationLiteComponent.js +0 -2
- package/src/components/SponsorComponent.js +31 -32
- package/src/components/summit-my-orders-tickets/components/MyOrdersTickets.js +2 -5
- package/src/components/summit-my-orders-tickets/components/OrderDetails/OrderDetails.js +12 -7
- package/src/components/summit-my-orders-tickets/components/OrderList/OrderList.js +1 -3
- package/src/components/summit-my-orders-tickets/components/OrderList/OrderListItem.js +8 -5
- package/src/components/summit-my-orders-tickets/store/actions/order-actions.js +6 -1
- package/src/components/summit-my-orders-tickets/store/actions/ticket-actions.js +4 -2
- package/src/components/summit-my-orders-tickets/store/reducers/order-reducer.js +11 -0
- package/src/content/expo-hall-page/index.json +1 -0
- package/src/content/lobby-page/index.json +1 -0
- package/src/content/site-settings/index.json +1 -17
- package/src/content/sponsors.json +1 -187
- package/src/pages/a/index.js +13 -9
- package/src/pages/a/sponsors.js +76 -0
- package/src/reducers/sponsor-reducer.js +3 -6
- package/src/styles/style.scss +5 -16
- package/src/templates/event-page.js +1 -11
- package/src/templates/expo-hall-page.js +28 -27
- package/src/templates/lobby-page.js +6 -2
- package/src/utils/filePath.js +2 -0
- package/src/utils/useMarketingSettings.js +3 -2
- package/src/components/summit-my-orders-tickets/components/OrderList/OrderList.helpers.js +0 -36
- package/src/components/summit-my-orders-tickets/context/OrdersTicketsContext.js +0 -38
- package/src/content/expo-hall.json +0 -10
- package/static/admin/config.yml.template +0 -365
|
@@ -1,17 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"widgets": {
|
|
3
|
-
"chat": {
|
|
4
|
-
"showQA": false,
|
|
5
|
-
"showHelp": false,
|
|
6
|
-
"defaultScope": "page"
|
|
7
|
-
},
|
|
8
|
-
"schedule": {
|
|
9
|
-
"allowClick": true
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"favicons": {
|
|
13
|
-
"favicon180": "/img/favicon.png",
|
|
14
|
-
"favicon32": "/img/favicon.png",
|
|
15
|
-
"favicon16": "/img/favicon.png"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
{"widgets":{"chat":{"showQA":false,"showHelp":false,"defaultScope":"page"},"schedule":{"allowClick":true}},"favicons":{"favicon180":"/img/favicon.png","favicon32":"/img/favicon.png","favicon16":"/img/favicon.png"},"staticJsonFilesBuildTime":[{"file":"src/data/summit.json","build_time":1692897295415},{"file":"src/data/events.json","build_time":1692897301065},{"file":"src/data/events.idx.json","build_time":1692897301070},{"file":"src/data/speakers.json","build_time":1692897303070},{"file":"src/data/speakers.idx.json","build_time":1692897303070},{"file":"src/content/sponsors.json","build_time":1692897305837},{"file":"src/data/voteable-presentations.json","build_time":1692897306209}],"lastBuild":1692897306210}
|
|
@@ -1,187 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tierSponsors": [
|
|
3
|
-
{
|
|
4
|
-
"tier": [
|
|
5
|
-
{
|
|
6
|
-
"value": "tier-cYGYq5-ae",
|
|
7
|
-
"label": "Top-Tier"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"sponsors": [
|
|
11
|
-
{
|
|
12
|
-
"marquee": "Your text here! (150-characters max)",
|
|
13
|
-
"sponsorColor": "#414042",
|
|
14
|
-
"logo": {
|
|
15
|
-
"file": "/img/tier1-default-sponsor-logo.png"
|
|
16
|
-
},
|
|
17
|
-
"name": "Top-Tier",
|
|
18
|
-
"intro": "Sponsor Description (1000-character max) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget ipsum tempor lorem interdum volutpat eu et elit. Sed eleifend justo et semper ultrices. Fusce porta ut sapien at posuere. Donec placerat, lacus eget imperdiet maximus, nunc lectus viverra ligula, in sodales tortor justo vel sem. Vestibulum eleifend, nibh a dapibus rhoncus, tortor dui venenatis enim, ac euismod augue velit at justo. Cras porta lacus est, nec rhoncus augue luctus quis. Pellentesque justo risus, scelerisque laoreet tortor quis, TOP TIER TEXT.",
|
|
19
|
-
"headerImage": "/img/tier1-default-sponsor-headerimage-toptier.png",
|
|
20
|
-
"socialNetworks": [],
|
|
21
|
-
"sponsorId": 24,
|
|
22
|
-
"title": "Top-Tier Sponsor Test ",
|
|
23
|
-
"companyId": 22,
|
|
24
|
-
"documents": {
|
|
25
|
-
"links": [
|
|
26
|
-
{
|
|
27
|
-
"class_name": "PresentationLink",
|
|
28
|
-
"name": "Your social media links here ",
|
|
29
|
-
"order": 1,
|
|
30
|
-
"link": "https://www.facebook.com/FNTECH"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"videos": [
|
|
34
|
-
{
|
|
35
|
-
"class_name": "PresentationVideo",
|
|
36
|
-
"name": "Your external video links here ",
|
|
37
|
-
"order": 2,
|
|
38
|
-
"link": "https://www.youtube.com/channel/UC81WrqqnYmigub0fTNKT-Mw"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"columnAds": [
|
|
43
|
-
{
|
|
44
|
-
"image": "/img/tier1-default-sponsor-space1.png",
|
|
45
|
-
"link": "https://fntech.com"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"id": 24,
|
|
49
|
-
"email": "support@fntech.com",
|
|
50
|
-
"usesSponsorPage": true
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"marquee": "Your event one-stop-shop, no matter the scope or size. Production + Event Management + Creative. We have you covered. ",
|
|
54
|
-
"sponsorColor": "#0C64C8",
|
|
55
|
-
"logo": {
|
|
56
|
-
"file": "/img/logo-top-tier-fntech.png"
|
|
57
|
-
},
|
|
58
|
-
"name": "FNTECH",
|
|
59
|
-
"intro": "**WE SPEAK EVENTS: In-person, virtual, and everything in-between.**\\\nOver the past 20+ years, we’ve successfully partnered with top-tier companies like Apple, Facebook, Wells Fargo, Vans, and Volcom on events of all sizes, types and budgets. Domestic and abroad. Intimate and straightforward to extremely complex and expansive. We have two large headquarters—one in the Northern California Bay Area and another in Southern California, which includes a virtual reality lab, 3D printing hub, and robust wood/metal fabrication shop. We’re a people-first company, which to us means treating every employee, client, vendor, partner, and community member with honesty, integrity, and respect. It’s part of our corporate ethos. People power our mission and we are eternally grateful to know and work with some of the best in the business. And as always, we make sure to have a lot of fun along the way. For more FNinfo, visit us at [fntech.com](http://fntech.com/).",
|
|
60
|
-
"headerVideo": "https://fntech.sfo2.cdn.digitaloceanspaces.com/Yoco/FNTECH%20animated%20logo_Black_012021.mp4",
|
|
61
|
-
"advertiseImage": "",
|
|
62
|
-
"sponsorId": 44,
|
|
63
|
-
"title": "",
|
|
64
|
-
"companyId": 4,
|
|
65
|
-
"columnAds": [],
|
|
66
|
-
"id": 44,
|
|
67
|
-
"email": "info@fntech.com",
|
|
68
|
-
"usesSponsorPage": true
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"tier": [
|
|
74
|
-
{
|
|
75
|
-
"value": "tier-DHcI3dWGk",
|
|
76
|
-
"label": "Mid-Tier"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"sponsors": [
|
|
80
|
-
{
|
|
81
|
-
"marquee": "Your text here! (150-characters max)",
|
|
82
|
-
"sideImage": "",
|
|
83
|
-
"externalLink": "",
|
|
84
|
-
"sponsorColor": "#58595b",
|
|
85
|
-
"logo": {
|
|
86
|
-
"file": "/img/tier1-default-sponsor-logo.png"
|
|
87
|
-
},
|
|
88
|
-
"name": "Mid-Tier",
|
|
89
|
-
"intro": "Sponsor Description (1000-character max) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget ipsum tempor lorem interdum volutpat eu et elit. Sed eleifend justo et semper ultrices. Fusce porta ut sapien at posuere. Donec placerat, lacus eget imperdiet maximus, nunc lectus viverra ligula, in sodales tortor justo vel sem. Vestibulum eleifend, nibh a dapibus rhoncus, tortor dui venenatis enim, ac euismod augue velit at justo. Cras porta lacus est, nec rhoncus augue luctus quis. Pellentesque justo risus, scelerisque laoreet tortor quis, Test Text",
|
|
90
|
-
"headerVideo": "",
|
|
91
|
-
"headerImage": "/img/tier1-default-sponsor-headerimage-middletier.png",
|
|
92
|
-
"socialNetworks": [],
|
|
93
|
-
"chatLink": "",
|
|
94
|
-
"sponsorId": 25,
|
|
95
|
-
"title": "Mid-Tier Sponsor",
|
|
96
|
-
"companyId": 23,
|
|
97
|
-
"documents": {
|
|
98
|
-
"slides": [],
|
|
99
|
-
"links": [
|
|
100
|
-
{
|
|
101
|
-
"class_name": "PresentationLink",
|
|
102
|
-
"name": "Your social media links here ",
|
|
103
|
-
"order": 1,
|
|
104
|
-
"link": "https://www.facebook.com/FNTECH"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"videos": [
|
|
108
|
-
{
|
|
109
|
-
"class_name": "PresentationVideo",
|
|
110
|
-
"name": "Your external video links here ",
|
|
111
|
-
"link": "https://www.youtube.com/channel/UC81WrqqnYmigub0fTNKT-Mw",
|
|
112
|
-
"order": 2
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
"columnAds": [
|
|
117
|
-
{
|
|
118
|
-
"image": "/img/tier1-default-sponsor-space1.png",
|
|
119
|
-
"button": "",
|
|
120
|
-
"link": "https://fntech.com"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"id": 25,
|
|
124
|
-
"email": "support@fntech.com",
|
|
125
|
-
"usesSponsorPage": true
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"tier": [
|
|
131
|
-
{
|
|
132
|
-
"value": "tier-U_wEwGX8a",
|
|
133
|
-
"label": "Lower-Tier"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"sponsors": [
|
|
137
|
-
{
|
|
138
|
-
"marquee": "Your text here! (150-characters max)",
|
|
139
|
-
"sideImage": "/img/tier1-default-sponsor-sideimage.png",
|
|
140
|
-
"externalLink": "",
|
|
141
|
-
"sponsorColor": "#6d6e71",
|
|
142
|
-
"logo": {
|
|
143
|
-
"file": "/img/tier1-default-sponsor-logo.png"
|
|
144
|
-
},
|
|
145
|
-
"name": "Lower-Tier",
|
|
146
|
-
"intro": "Sponsor Description (1000-character max) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus eget ipsum tempor lorem interdum volutpat eu et elit. Sed eleifend justo et semper ultrices. Fusce porta ut sapien at posuere. Donec placerat, lacus eget imperdiet maximus, nunc lectus viverra ligula, in sodales tortor justo vel sem. Vestibulum eleifend, nibh a dapibus rhoncus, tortor dui venenatis enim, ac euismod augue velit at justo. Cras porta lacus est, nec rhoncus augue luctus quis. Pellentesque justo risus, scelerisque laoreet tortor quis, vehicula volutpat ipsum.",
|
|
147
|
-
"headerVideo": "",
|
|
148
|
-
"headerImage": "/img/tier1-default-sponsor-headerimage-lowertier.png",
|
|
149
|
-
"socialNetworks": [],
|
|
150
|
-
"chatLink": "",
|
|
151
|
-
"sponsorId": 26,
|
|
152
|
-
"title": "Lower-Tier Sponsor",
|
|
153
|
-
"companyId": 24,
|
|
154
|
-
"documents": {
|
|
155
|
-
"slides": [],
|
|
156
|
-
"links": [
|
|
157
|
-
{
|
|
158
|
-
"class_name": "PresentationLink",
|
|
159
|
-
"name": "Your social media links here ",
|
|
160
|
-
"link": "https://www.facebook.com/FNTECH",
|
|
161
|
-
"order": 1
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"videos": [
|
|
165
|
-
{
|
|
166
|
-
"class_name": "PresentationVideo",
|
|
167
|
-
"link": "https://www.youtube.com/channel/UC81WrqqnYmigub0fTNKT-Mw",
|
|
168
|
-
"order": 2,
|
|
169
|
-
"name": "Your external video links here "
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"columnAds": [
|
|
174
|
-
{
|
|
175
|
-
"image": "/img/tier1-default-sponsor-space1.png",
|
|
176
|
-
"button": "",
|
|
177
|
-
"link": "https://www.fntech.com"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"id": 26,
|
|
181
|
-
"email": "support@fntech.com",
|
|
182
|
-
"usesSponsorPage": true
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
}
|
|
1
|
+
[{"id":7,"created":1598305743,"last_edited":1598305743,"order":1,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":"","intro":"","external_link":"","video_link":"","chat_link":"","featured_event_id":0,"header_image_alt_text":"","side_image_alt_text":"","header_image_mobile_alt_text":"","carousel_advertise_image_alt_text":"","show_logo_in_event_page":true,"members":[26396,27683,6],"company":{"id":4,"created":1582745992,"last_edited":1582745992,"name":"FNTECH","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4/logos/FNTECH-BLK-logo-rgb-1-color-white-720px2.png","big_logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/4/logos/FNTECH-BLK-logo-rgb-1-color-white-720px3.png","color":"#f0f0ee","sponsorships":[749,750,745,743,744,1455,1530,1531,1532,1533,1534,1570,1571,1572,756,742,747,746,2332,732,623,626,633,616,730,625],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]},{"id":27,"created":1610063550,"last_edited":1610063550,"order":2,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":25,"created":1610060787,"last_edited":1610060787,"name":"Wherehol","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/25/logos/Logo-Middle-Tier-Wherehol.png","big_logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/25/logos/Logo-Middle-Tier-Wherehol1.png","color":"#DADADA","sponsorships":[748,749,750,745,743,744,747,746,626,633,625],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]},{"id":28,"created":1610063866,"last_edited":1610063866,"order":3,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":26,"created":1610063779,"last_edited":1610063779,"name":"Mobility","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":null,"big_logo":null,"color":"#DADADA","sponsorships":[748,749,750,745,743,744,633],"project_sponsorships":[]},"sponsorship":{"id":529,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":13,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":13,"created":1610061803,"last_edited":1610061803,"name":"Middle-Tier","label":"Middle-Tier","order":13,"size":"Medium"}},"ads":[],"materials":[],"social_networks":[]},{"id":29,"created":1610063887,"last_edited":1610063887,"order":4,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":27,"created":1610063790,"last_edited":1610063790,"name":"Treva","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":null,"big_logo":null,"color":"#DADADA","sponsorships":[748,749,750,745,743,744,633],"project_sponsorships":[]},"sponsorship":{"id":572,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":14,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":14,"created":1610061840,"last_edited":1610061840,"name":"Lower-Tier","label":"Lower-Tier","order":14,"size":"Small"}},"ads":[],"materials":[],"social_networks":[]},{"id":30,"created":1610646759,"last_edited":1610646759,"order":5,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":28,"created":1610646606,"last_edited":1610646606,"name":"DVC","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/28/logos/DVC-LOGO-968X968.png","big_logo":null,"color":"#DADADA","sponsorships":[749,750,745,743,744,633],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]},{"id":31,"created":1610649182,"last_edited":1610649182,"order":6,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":29,"created":1610649003,"last_edited":1610649003,"name":"Seeing Eye Lighting Design","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":null,"big_logo":null,"color":"#DADADA","sponsorships":[749,750,745,743,744,633],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]},{"id":32,"created":1610649204,"last_edited":1610649204,"order":7,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":30,"created":1610649028,"last_edited":1610649028,"name":"Hughston Engineering","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":null,"big_logo":null,"color":"#DADADA","sponsorships":[749,750,745,743,744,633],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]},{"id":33,"created":1610649224,"last_edited":1610649224,"order":8,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":31,"created":1610649044,"last_edited":1610649044,"name":"Curtin Convention Services","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":null,"big_logo":null,"color":"#DADADA","sponsorships":[748,749,750,745,743,744,633],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]},{"id":37,"created":1617308510,"last_edited":1617308510,"order":9,"summit_id":13,"is_published":true,"side_image":null,"header_image":null,"header_image_mobile":null,"carousel_advertise_image":null,"marquee":null,"intro":null,"external_link":null,"video_link":null,"chat_link":null,"featured_event_id":0,"header_image_alt_text":null,"side_image_alt_text":null,"header_image_mobile_alt_text":null,"carousel_advertise_image_alt_text":null,"show_logo_in_event_page":true,"members":[],"company":{"id":35,"created":1617308469,"last_edited":1617308469,"name":"Anthony Drake & Associates","url":"","display_on_site":false,"featured":false,"city":"","state":"","country":"","description":"","industry":"","contributions":"","contact_email":"","member_level":"None","admin_email":"","overview":"","products":"","commitment":"","commitment_author":"","logo":"https://summit-api-assets.sfo2.digitaloceanspaces.com/companies/35/logos/YOCO-ADA-Sponsor-Ad-Home.jpg","big_logo":null,"color":"#DADADA","sponsorships":[747,734,623,617],"project_sponsorships":[]},"sponsorship":{"id":486,"widget_title":null,"lobby_template":null,"expo_hall_template":null,"sponsor_page_template":null,"event_page_template":null,"sponsor_page_use_disqus_widget":true,"sponsor_page_use_live_event_widget":true,"sponsor_page_use_schedule_widget":true,"sponsor_page_use_banner_widget":true,"badge_image":null,"badge_image_alt_text":null,"summit_id":13,"order":12,"should_display_on_expo_hall_page":true,"should_display_on_lobby_page":true,"type":{"id":12,"created":1610061360,"last_edited":1610061360,"name":"Top-Tier","label":"Top-Tier","order":12,"size":"Large"}},"ads":[],"materials":[],"social_networks":[]}]
|
package/src/pages/a/index.js
CHANGED
|
@@ -35,6 +35,10 @@ export const lobbyPageQuery = graphql`
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
liveNowFeaturedEventId
|
|
38
|
+
sponsorsWidgetButton {
|
|
39
|
+
text
|
|
40
|
+
link
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
`;
|
|
@@ -43,15 +47,15 @@ const App = ({ data, isLoggedUser, user, summitPhase }) => {
|
|
|
43
47
|
return (
|
|
44
48
|
<Location>
|
|
45
49
|
{({ location }) => (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
<Router basepath="/a" >
|
|
51
|
+
<WithAuthRoute path="/" isLoggedIn={isLoggedUser} location={location}>
|
|
52
|
+
<WithAuthzRoute path="/" summitPhase={summitPhase} isLoggedIn={isLoggedUser} user={user} location={location}>
|
|
53
|
+
<ShowOpenRoute path="/" summitPhase={summitPhase} isLoggedIn={isLoggedUser} user={user} location={location}>
|
|
54
|
+
<LobbyPage path="/" data={data} isLoggedIn={isLoggedUser} user={user} location={location} />
|
|
55
|
+
</ShowOpenRoute>
|
|
56
|
+
</WithAuthzRoute>
|
|
57
|
+
</WithAuthRoute>
|
|
58
|
+
</Router>
|
|
55
59
|
)}
|
|
56
60
|
</Location>
|
|
57
61
|
);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { graphql } from "gatsby";
|
|
3
|
+
import { Router, Location } from "@reach/router";
|
|
4
|
+
import { connect } from "react-redux";
|
|
5
|
+
import ExpoHallPage from "../../templates/expo-hall-page";
|
|
6
|
+
import WithAuthzRoute from "../../routes/WithAuthzRoute";
|
|
7
|
+
import WithAuthRoute from "../../routes/WithAuthRoute";
|
|
8
|
+
import ShowOpenRoute from "../../routes/ShowOpenRoute";
|
|
9
|
+
import withRealTimeUpdates from "../../utils/real_time_updates/withRealTimeUpdates";
|
|
10
|
+
import withFeedsWorker from "../../utils/withFeedsWorker";
|
|
11
|
+
import Seo from "../../components/Seo";
|
|
12
|
+
|
|
13
|
+
export const expoHallPageQuery = graphql`
|
|
14
|
+
query {
|
|
15
|
+
expoHallPageJson {
|
|
16
|
+
hero {
|
|
17
|
+
title
|
|
18
|
+
subTitle
|
|
19
|
+
background {
|
|
20
|
+
src {
|
|
21
|
+
childImageSharp {
|
|
22
|
+
gatsbyImageData (
|
|
23
|
+
quality: 100
|
|
24
|
+
placeholder: BLURRED
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
alt
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
const App = ({
|
|
36
|
+
data,
|
|
37
|
+
isLoggedUser,
|
|
38
|
+
user,
|
|
39
|
+
summitPhase
|
|
40
|
+
}) => {
|
|
41
|
+
return (
|
|
42
|
+
<Location>
|
|
43
|
+
{({ location }) => (
|
|
44
|
+
<Router basepath="/a" >
|
|
45
|
+
<WithAuthRoute path="/" isLoggedIn={isLoggedUser} location={location}>
|
|
46
|
+
<WithAuthzRoute path="/" summitPhase={summitPhase} isLoggedIn={isLoggedUser} user={user} location={location}>
|
|
47
|
+
<ShowOpenRoute path="/" summitPhase={summitPhase} isLoggedIn={isLoggedUser} user={user} location={location}>
|
|
48
|
+
<ExpoHallPage path="/sponsors/" location={location} data={data}/>
|
|
49
|
+
</ShowOpenRoute>
|
|
50
|
+
</WithAuthzRoute>
|
|
51
|
+
</WithAuthRoute>
|
|
52
|
+
</Router>
|
|
53
|
+
)}
|
|
54
|
+
</Location>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const mapStateToProps = ({
|
|
59
|
+
loggedUserState,
|
|
60
|
+
userState, clockState
|
|
61
|
+
}) => ({
|
|
62
|
+
isLoggedUser: loggedUserState.isLoggedUser,
|
|
63
|
+
summitPhase: clockState.summit_phase,
|
|
64
|
+
user: userState
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export default connect(mapStateToProps, {})(withFeedsWorker(withRealTimeUpdates(App)));
|
|
68
|
+
|
|
69
|
+
export const Head = ({
|
|
70
|
+
location
|
|
71
|
+
}) => (
|
|
72
|
+
<Seo
|
|
73
|
+
title={"Expo Hall"}
|
|
74
|
+
pathname={location.pathname}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { START_LOADING, STOP_LOADING } from "openstack-uicore-foundation/lib/utils/actions";
|
|
2
2
|
import { LOGOUT_USER } from "openstack-uicore-foundation/lib/security/actions";
|
|
3
|
-
import {RESET_STATE, SYNC_DATA} from "../actions/base-actions-definitions";
|
|
3
|
+
import { RESET_STATE, SYNC_DATA } from "../actions/base-actions-definitions";
|
|
4
4
|
|
|
5
|
-
import sponsorData from "content/sponsors";
|
|
6
|
-
import expoHallData from '../content/expo-hall.json';
|
|
5
|
+
import sponsorData from "content/sponsors.json";
|
|
7
6
|
|
|
8
7
|
const DEFAULT_STATE = {
|
|
9
|
-
sponsors: sponsorData
|
|
10
|
-
imageHeader: expoHallData.imageHeader,
|
|
11
|
-
lobbyButton: expoHallData.lobbyButton
|
|
8
|
+
sponsors: sponsorData
|
|
12
9
|
};
|
|
13
10
|
|
|
14
11
|
const sponsorReducer = (state = DEFAULT_STATE, action) => {
|
package/src/styles/style.scss
CHANGED
|
@@ -236,9 +236,8 @@ h2 {
|
|
|
236
236
|
.talk {
|
|
237
237
|
&__break {
|
|
238
238
|
background-color: $color_secondary;
|
|
239
|
-
min-height: 92vh !important;
|
|
240
239
|
width: 100%;
|
|
241
|
-
|
|
240
|
+
aspect-ratio: auto 16 / 9;
|
|
242
241
|
|
|
243
242
|
h1,
|
|
244
243
|
h2 {
|
|
@@ -300,6 +299,10 @@ h2 {
|
|
|
300
299
|
align-items: flex-end;
|
|
301
300
|
}
|
|
302
301
|
|
|
302
|
+
.hero-body {
|
|
303
|
+
align-items: center;
|
|
304
|
+
display: flex;
|
|
305
|
+
}
|
|
303
306
|
}
|
|
304
307
|
|
|
305
308
|
.join-zoom-container {
|
|
@@ -495,12 +498,6 @@ div.event-feedback-container {
|
|
|
495
498
|
}
|
|
496
499
|
}
|
|
497
500
|
|
|
498
|
-
.talk {
|
|
499
|
-
&__break {
|
|
500
|
-
height: auto;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
501
|
.join-zoom-container {
|
|
505
502
|
flex-direction: column;
|
|
506
503
|
height: 100px;
|
|
@@ -554,14 +551,6 @@ div.event-feedback-container {
|
|
|
554
551
|
}
|
|
555
552
|
}
|
|
556
553
|
|
|
557
|
-
@media (min-width: 1921px) {
|
|
558
|
-
.talk {
|
|
559
|
-
&__break {
|
|
560
|
-
min-height: 100vh !important;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
|
|
565
554
|
/* extra questions */
|
|
566
555
|
[id^="chl_wrapper"] {
|
|
567
556
|
.checkboxes-div {
|
|
@@ -103,17 +103,7 @@ export const EventPageTemplate = class extends React.Component {
|
|
|
103
103
|
return (
|
|
104
104
|
<React.Fragment>
|
|
105
105
|
{/* <EventHeroComponent /> */}
|
|
106
|
-
<section
|
|
107
|
-
className="section px-0 py-0"
|
|
108
|
-
style={{
|
|
109
|
-
marginBottom:
|
|
110
|
-
event.class_name !== "Presentation" ||
|
|
111
|
-
currentPhase < PHASES.DURING ||
|
|
112
|
-
!event.streaming_url
|
|
113
|
-
? "-3rem"
|
|
114
|
-
: "",
|
|
115
|
-
}}
|
|
116
|
-
>
|
|
106
|
+
<section className="section px-0 py-0">
|
|
117
107
|
<div className="columns is-gapless">
|
|
118
108
|
{this.canRenderVideo(currentPhase) ? (
|
|
119
109
|
<div className="column is-three-quarters px-0 py-0">
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { getSrc } from "gatsby-plugin-image";
|
|
3
|
+
import Layout from "../components/Layout";
|
|
4
|
+
import SponsorComponent from "../components/SponsorComponent";
|
|
5
|
+
import AttendanceTrackerComponent from "../components/AttendanceTrackerComponent";
|
|
6
|
+
import AccessTracker from "../components/AttendeeToAttendeeWidgetComponent";
|
|
2
7
|
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import Layout from '../components/Layout'
|
|
6
|
-
import SponsorComponent from '../components/SponsorComponent'
|
|
7
|
-
import AttendanceTrackerComponent from '../components/AttendanceTrackerComponent'
|
|
8
|
-
import AccessTracker from '../components/AttendeeToAttendeeWidgetComponent'
|
|
9
|
-
import styles from '../styles/expo-hero.module.scss'
|
|
10
|
-
|
|
11
|
-
const ExpoHallPage = ({ location, imageHeader }) => {
|
|
8
|
+
import styles from "../styles/expo-hero.module.scss";
|
|
12
9
|
|
|
10
|
+
const ExpoHallPage = ({
|
|
11
|
+
data,
|
|
12
|
+
location
|
|
13
|
+
}) => {
|
|
14
|
+
const { expoHallPageJson: { hero } } = data;
|
|
15
|
+
const style = hero?.background ? { backgroundImage: `url(${getSrc(hero.background.src)})` } : {};
|
|
13
16
|
return (
|
|
14
17
|
<Layout location={location}>
|
|
15
18
|
<AttendanceTrackerComponent />
|
|
16
19
|
<AccessTracker />
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</
|
|
20
|
+
{ hero && (hero.background || hero.title || hero.subTitle) &&
|
|
21
|
+
<section className="hero is-large sponsors-header" style={style}>
|
|
22
|
+
<div className="hero-body">
|
|
23
|
+
<div className={styles.heroContainer}>
|
|
24
|
+
<h1 className={styles.title}>
|
|
25
|
+
{hero.title}
|
|
26
|
+
</h1>
|
|
27
|
+
<span className={styles.subtitle}>
|
|
28
|
+
{hero.subTitle}
|
|
29
|
+
</span>
|
|
27
30
|
</div>
|
|
28
|
-
</
|
|
31
|
+
</div>
|
|
32
|
+
</section>
|
|
33
|
+
}
|
|
29
34
|
<section className="section px-6 py-6">
|
|
30
35
|
<SponsorComponent />
|
|
31
36
|
</section>
|
|
32
37
|
</Layout>
|
|
33
38
|
)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const mapStateToProps = ({ sponsorState }) => ({
|
|
37
|
-
imageHeader: sponsorState.imageHeader
|
|
38
|
-
});
|
|
39
|
+
};
|
|
39
40
|
|
|
40
|
-
export default
|
|
41
|
+
export default ExpoHallPage;
|
|
@@ -46,7 +46,8 @@ export const LobbyPageTemplate = class extends React.Component {
|
|
|
46
46
|
lobbyPageJson: {
|
|
47
47
|
hero,
|
|
48
48
|
centerColumn,
|
|
49
|
-
liveNowFeaturedEventId
|
|
49
|
+
liveNowFeaturedEventId,
|
|
50
|
+
sponsorsWidgetButton
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
lastDataSync
|
|
@@ -65,7 +66,10 @@ export const LobbyPageTemplate = class extends React.Component {
|
|
|
65
66
|
<div className="columns">
|
|
66
67
|
<div className="column is-one-quarter">
|
|
67
68
|
<h2><b>Community</b></h2>
|
|
68
|
-
<SponsorComponent
|
|
69
|
+
<SponsorComponent
|
|
70
|
+
page="lobby"
|
|
71
|
+
linkButton={sponsorsWidgetButton}
|
|
72
|
+
/>
|
|
69
73
|
<AdvertiseComponent section="lobby" column="left"/>
|
|
70
74
|
</div>
|
|
71
75
|
<div className="column is-half">
|
package/src/utils/filePath.js
CHANGED
|
@@ -33,6 +33,7 @@ const VOTEABLE_PRESENTATIONS_FILE_PATH = `${DATA_DIR_PATH}/${VOTEABLE_PRESENTATI
|
|
|
33
33
|
const POSTERS_PAGES_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/posters-pages.json`;
|
|
34
34
|
const MARKETING_SETTINGS_FILE_PATH = `${DATA_DIR_PATH}/marketing-settings.json`;
|
|
35
35
|
const MAINTENANCE_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/maintenance.json`;
|
|
36
|
+
const EXPO_HALL_PAGE_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/expo-hall-page/index.json`;
|
|
36
37
|
const SPONSORS_FILE_NAME = "sponsors.json";
|
|
37
38
|
const SPONSORS_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/${SPONSORS_FILE_NAME}`;
|
|
38
39
|
|
|
@@ -75,4 +76,5 @@ exports.VOTEABLE_PRESENTATIONS_FILE_PATH = VOTEABLE_PRESENTATIONS_FILE_PATH;
|
|
|
75
76
|
exports.POSTERS_PAGES_FILE_PATH = POSTERS_PAGES_FILE_PATH;
|
|
76
77
|
exports.MARKETING_SETTINGS_FILE_PATH = MARKETING_SETTINGS_FILE_PATH;
|
|
77
78
|
exports.MAINTENANCE_FILE_PATH = MAINTENANCE_FILE_PATH;
|
|
79
|
+
exports.EXPO_HALL_PAGE_FILE_PATH = EXPO_HALL_PAGE_FILE_PATH;
|
|
78
80
|
exports.SPONSORS_FILE_PATH = SPONSORS_FILE_PATH;
|
|
@@ -7,10 +7,10 @@ export const MARKETING_SETTINGS_KEYS = {
|
|
|
7
7
|
disqusExcludeTracks: "disqus_exclude_tracks",
|
|
8
8
|
registrationInPersonDisclaimer: "registration_in_person_disclaimer",
|
|
9
9
|
scheduleDefaultImage: "schedule_default_image",
|
|
10
|
+
fullScheduleSummitLogoPrint: "FULL_SCHEDULE_SUMMIT_LOGO_PRINT",
|
|
10
11
|
summitDeltaStartTime: "summit_delta_start_time",
|
|
11
12
|
activityCtaText: "ACTIVITY_CTA_TEXT",
|
|
12
13
|
regLiteAllowPromoCodes: "REG_LITE_ALLOW_PROMO_CODES",
|
|
13
|
-
regLiteCompanyInputPlaceholder: "REG_LITE_COMPANY_INPUT_PLACEHOLDER",
|
|
14
14
|
regLiteCompanyDDLPlaceholder: "REG_LITE_COMPANY_DDL_PLACEHOLDER",
|
|
15
15
|
regLiteInitialOrderComplete1stParagraph: "REG_LITE_INITIAL_ORDER_COMPLETE_STEP_1ST_PARAGRAPH",
|
|
16
16
|
regLiteInitialOrderComplete2ndParagraph: "REG_LITE_INITIAL_ORDER_COMPLETE_STEP_2ND_PARAGRAPH",
|
|
@@ -21,6 +21,7 @@ export const MARKETING_SETTINGS_KEYS = {
|
|
|
21
21
|
regLiteNoAllowedTicketsMessage: "REG_LITE_NO_ALLOWED_TICKETS_MESSAGE",
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
|
|
24
25
|
const marketingSettingsQuery = graphql`
|
|
25
26
|
query {
|
|
26
27
|
allMarketingSettingsJson {
|
|
@@ -35,7 +36,7 @@ const marketingSettingsQuery = graphql`
|
|
|
35
36
|
const useMarketingSettings = () => {
|
|
36
37
|
const { allMarketingSettingsJson } = useStaticQuery(marketingSettingsQuery);
|
|
37
38
|
const getSettingByKey = (key) =>
|
|
38
|
-
|
|
39
|
+
allMarketingSettingsJson.nodes.find(setting => setting.key === key)?.value;
|
|
39
40
|
return { getSettingByKey };
|
|
40
41
|
};
|
|
41
42
|
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React, { createContext, useContext, useReducer } from "react";
|
|
2
|
-
import { createReducer } from '../../util/helpers/createReducer';
|
|
3
|
-
|
|
4
|
-
const initialState = {
|
|
5
|
-
activeOrderId: null,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const actions = ({ state, dispatch }) => ({
|
|
9
|
-
setActiveOrderId: (orderId) => dispatch({ type: 'setActiveOrderId', payload: orderId }),
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const actionHandlers = {
|
|
13
|
-
setActiveOrderId: (state, orderId) => ({ ...state, activeOrderId: orderId })
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const reducer = createReducer({ actionHandlers });
|
|
17
|
-
|
|
18
|
-
export const OrderListContext = createContext(null);
|
|
19
|
-
|
|
20
|
-
export const OrderListContextProvider = ({ children }) => {
|
|
21
|
-
const [state, dispatch] = useReducer(reducer, {}, () => initialState);
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<OrderListContext.Provider value={{ state, dispatch }}>
|
|
25
|
-
{children}
|
|
26
|
-
</OrderListContext.Provider>
|
|
27
|
-
)
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const useOrderListContext = () => {
|
|
31
|
-
const context = useContext(OrderListContext);
|
|
32
|
-
|
|
33
|
-
if (!context) throw new Error('useOrderListContext must be used within a OrderListContextProvider');
|
|
34
|
-
|
|
35
|
-
return { ...context, actions: actions(context) };
|
|
36
|
-
};
|