gatsby-core-theme 44.2.6 → 44.2.8
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,22 @@
|
|
|
1
|
+
## [44.2.8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.7...v44.2.8) (2025-06-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add validation ([0953152](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/09531524240dcf834cec23fd0d1538fc9a3de4cf))
|
|
7
|
+
* added bonus page type to sports data ([2ec5dac](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2ec5dac1c058d4d98aafa35a2012ff8f84a4910f))
|
|
8
|
+
|
|
9
|
+
## [44.2.7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.6...v44.2.7) (2025-06-16)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add license and map for pages that needs that path ([62ffa4b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/62ffa4babe54d969b7513fe06bbcda0368f82e9b))
|
|
15
|
+
* enable reading time in rocket theme ([01b0e50](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/01b0e5049052196fa4154a8f762e580c3e5d294d))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* Merge branch 'tm-5535-mapp-providers-license' into 'master' ([8ea899b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8ea899b2773c3a69c9f5d39cdec8acae1a6324ce))
|
|
19
|
+
|
|
1
20
|
## [44.2.6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.5...v44.2.6) (2025-06-12)
|
|
2
21
|
|
|
3
22
|
|
package/gatsby-node.mjs
CHANGED
|
@@ -49,6 +49,7 @@ let siteSettingsData = null;
|
|
|
49
49
|
let siteGeneralData = null;
|
|
50
50
|
let allMarketsData = null;
|
|
51
51
|
let providersData = null;
|
|
52
|
+
let licensesData = null;
|
|
52
53
|
let gamesData = null;
|
|
53
54
|
let sportsData = null;
|
|
54
55
|
let ribbonsData = null;
|
|
@@ -96,6 +97,7 @@ export const createPages = async (
|
|
|
96
97
|
crypto_exchanges: cryptoExchangesData,
|
|
97
98
|
crypto_brokers: cryptoBrokersData,
|
|
98
99
|
countries: countriesData,
|
|
100
|
+
operators_license: licensesData,
|
|
99
101
|
},
|
|
100
102
|
},
|
|
101
103
|
themeOptions,
|
|
@@ -374,6 +376,7 @@ export const onPreBootstrap = async () => {
|
|
|
374
376
|
cryptoExchangesData,
|
|
375
377
|
cryptoBrokersData,
|
|
376
378
|
countriesData,
|
|
379
|
+
licensesData,
|
|
377
380
|
} = await fetchSiteSettings(process.env.GATSBY_SITE_NAME));
|
|
378
381
|
};
|
|
379
382
|
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-unused-expressions */
|
|
1
2
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
3
|
import loadash from "lodash/index.js";
|
|
3
4
|
import { pickRelationKeys } from "../constants/pick-keys.mjs";
|
|
@@ -28,6 +29,26 @@ export const processRelations = (
|
|
|
28
29
|
? cloneDeep(data.relations[page.relation_type][page.relation_id])
|
|
29
30
|
: null;
|
|
30
31
|
|
|
32
|
+
|
|
33
|
+
// Add path for software and license
|
|
34
|
+
if(page.relation_type === "operator" && (process.env.ENABLE_PATH_SOFTWARE_AND_LICENSE === 'true')) {
|
|
35
|
+
// Software
|
|
36
|
+
transformedPages[market][page.relation_type][
|
|
37
|
+
index
|
|
38
|
+
]?.relation?.software?.forEach(software => {
|
|
39
|
+
const mappedSoftware = transformedPages[market]?.software_provide?.filter(pr => pr.relation_id === software.id)[0];
|
|
40
|
+
mappedSoftware && (software.path = mappedSoftware.path);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// License
|
|
44
|
+
transformedPages[market][page.relation_type][
|
|
45
|
+
index
|
|
46
|
+
]?.relation?.license_objects?.forEach(license => {
|
|
47
|
+
const mappedLicense = transformedPages[market]?.operators_license?.filter(l => l.relation_id === license.id)[0];
|
|
48
|
+
mappedLicense && (license.path = mappedLicense.path);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
31
52
|
switch (page.relation_type) {
|
|
32
53
|
// // Add path for game page from game provider
|
|
33
54
|
case "game":
|
package/src/services/api.mjs
CHANGED
|
@@ -118,6 +118,10 @@ export async function getProviders() {
|
|
|
118
118
|
return callAPIV2(`v0.1/globals/software-sorted-v2`);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
export async function getLicenses() {
|
|
122
|
+
return callAPIV2(`v0.1/operators/licenses/sorted`);
|
|
123
|
+
}
|
|
124
|
+
|
|
121
125
|
export async function getGames(params) {
|
|
122
126
|
return callAPIV2(`v0.1/games/games-sorted-v2${params ? `?${params}` : ""}`);
|
|
123
127
|
}
|
package/src/services/fetch.mjs
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
getCryptoBrokers,
|
|
20
20
|
getCryptoExchanges,
|
|
21
21
|
getCryptoWallets,
|
|
22
|
+
getLicenses,
|
|
22
23
|
} from "./api.mjs";
|
|
23
24
|
import { groupBy } from "../helpers/getters.mjs";
|
|
24
25
|
import { transformOperators } from "../resolver/operators.mjs";
|
|
@@ -35,7 +36,7 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
35
36
|
const countriesPromise = getCountries();
|
|
36
37
|
const providersPromise = getProviders();
|
|
37
38
|
const gamblingCompaniesPromise = getGamblingCompanies();
|
|
38
|
-
|
|
39
|
+
const licensesPromise = getLicenses();
|
|
39
40
|
// NOTE Crypto data
|
|
40
41
|
const cryptoBrokersPromise = getCryptoBrokers();
|
|
41
42
|
const cryptoExchangesPromise = getCryptoExchanges();
|
|
@@ -85,7 +86,8 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
85
86
|
sportsData,
|
|
86
87
|
cryptoBrokers,
|
|
87
88
|
cryptoExchanges,
|
|
88
|
-
cryptoWallets
|
|
89
|
+
cryptoWallets,
|
|
90
|
+
licensesData
|
|
89
91
|
] = await Promise.all([
|
|
90
92
|
ribbonsPromise,
|
|
91
93
|
responsableGamingPromise,
|
|
@@ -103,7 +105,8 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
103
105
|
sportsPromise,
|
|
104
106
|
cryptoBrokersPromise,
|
|
105
107
|
cryptoExchangesPromise,
|
|
106
|
-
cryptoWalletsPromise
|
|
108
|
+
cryptoWalletsPromise,
|
|
109
|
+
licensesPromise
|
|
107
110
|
]);
|
|
108
111
|
|
|
109
112
|
const allMarketPrefixes = Object.keys(allMarketsData)
|
|
@@ -179,6 +182,7 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
179
182
|
gamesData,
|
|
180
183
|
sportsData,
|
|
181
184
|
cryptoExchangesData,
|
|
182
|
-
cryptoBrokersData
|
|
185
|
+
cryptoBrokersData,
|
|
186
|
+
licensesData
|
|
183
187
|
};
|
|
184
188
|
};
|