gatsby-core-theme 40.0.39 → 40.0.40
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [40.0.40](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.39...v40.0.40) (2024-11-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* tests ([23c7cbf](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/23c7cbf08c64550142ab8b48c3e230beb9da732d))
|
|
7
|
+
* tests ([e8b7a7a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e8b7a7a779c1b91cfe2b9bbfb90004aad69de557))
|
|
8
|
+
* updated template name ([9966737](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9966737fb66efb127af0f37119d55b32e0b52f46))
|
|
9
|
+
|
|
1
10
|
## [40.0.39](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.38...v40.0.39) (2024-11-22)
|
|
2
11
|
|
|
3
12
|
|
package/package.json
CHANGED
|
@@ -150,7 +150,7 @@ export function addSportsDataToPage(sportsData, page, themeType) {
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
if (pageType === '
|
|
153
|
+
if (pageType === 'league' && page.relation_id) {
|
|
154
154
|
relation.tournaments = findTournaments(sportsData.tournaments, page.relation_id);
|
|
155
155
|
relation.schedule = filterScheduleByTournaments(
|
|
156
156
|
cloneDeep(sportsData.schedule.soccer),
|
|
@@ -172,7 +172,7 @@ export function addSportsDataToPage(sportsData, page, themeType) {
|
|
|
172
172
|
relation.tournament.id
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
|
-
if (pageType === 'team' || pageType === '
|
|
175
|
+
if (pageType === 'team' || pageType === 'league' || pageType === 'event') {
|
|
176
176
|
const mainProviders = providersArray.filter(
|
|
177
177
|
(provider) => provider.sports_data.soccer !== null && provider.main === 1
|
|
178
178
|
);
|
|
@@ -224,7 +224,7 @@ describe('Add Sports Data', () => {
|
|
|
224
224
|
test('rage-seo tournament data', () => {
|
|
225
225
|
const seoTournamentPages = pages.filter(
|
|
226
226
|
(page) =>
|
|
227
|
-
page.template === '
|
|
227
|
+
page.template === 'league' &&
|
|
228
228
|
page.relation_id &&
|
|
229
229
|
sportsData.tournaments[page.relation_id]
|
|
230
230
|
);
|
|
@@ -249,7 +249,7 @@ describe('Add Sports Data', () => {
|
|
|
249
249
|
test('rage-seo team/tournament/event data', () => {
|
|
250
250
|
const seoTeamTournamentEventPages = pages.filter(
|
|
251
251
|
(page) =>
|
|
252
|
-
page.template === 'team' || page.template === '
|
|
252
|
+
page.template === 'team' || page.template === 'league' || page.template === 'event'
|
|
253
253
|
);
|
|
254
254
|
|
|
255
255
|
relation = addSportsDataToPage(sportsData, seoTeamTournamentEventPages[0], 'rage_seo');
|
|
@@ -278,6 +278,7 @@ describe('Add Extra fields to showcase events', () => {
|
|
|
278
278
|
const eventPages = pages.filter((page) => page.template === 'event' && page.relation_id);
|
|
279
279
|
|
|
280
280
|
const events = addExtraFieldsToShowcaseEvents(eventPages, Object.values(sportsData.events));
|
|
281
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
281
282
|
events.forEach((event) => expect(event.extra_fields).toBeTruthy());
|
|
282
283
|
});
|
|
283
284
|
});
|
|
@@ -34,7 +34,7 @@ export default function getSportsDataPagesList() {
|
|
|
34
34
|
{ id: 42, relation_id: 1, name: 'sport' },
|
|
35
35
|
{ id: 43, relation_id: null, name: 'live_stream' },
|
|
36
36
|
{ id: 45, relation_id: null, name: 'provider_reviews' },
|
|
37
|
-
{ id: 58, relation_id: [324], name: '
|
|
37
|
+
{ id: 58, relation_id: [324], name: 'league' },
|
|
38
38
|
{ id: 62, relation_id: null, name: 'leagues_list' },
|
|
39
39
|
];
|
|
40
40
|
|