gatsby-core-theme 17.0.5 → 17.0.7
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,33 @@
|
|
|
1
|
+
## [17.0.7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.6...v17.0.7) (2022-12-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add a checker to fix failings ([af60ad2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/af60ad25f42f3a54e3721ceea3372c61b18ee57d))
|
|
7
|
+
* add eslint disable for cammel case ([b07a2a8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b07a2a81c96af9d1d882a33753bc05fa7a3db78e))
|
|
8
|
+
* fix conflicts ([88701ba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/88701badb2204f6c51025f2b08489b8850de2aac))
|
|
9
|
+
* getPageImage ([1d8be86](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1d8be865a8ece5f232c7df2aedd92d2a8b387d10))
|
|
10
|
+
* tracker pages to use operator name only ([95e8c59](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/95e8c595ee0c45e50a0f06c63630adda27bb7df1))
|
|
11
|
+
* update operator header for testing ([42c261d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/42c261d7088d69d57bd4ba0b0238a63a530b6971))
|
|
12
|
+
* update p with span ([110a9d5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/110a9d57c143dad744edd6f934972ee3da0589d0))
|
|
13
|
+
* update processor in order to update url and email ([44730a6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/44730a6a4e15d341632cef12a8b3ade9f9760cea))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
* Merge branch 'tm-2980-using-operator-name-from-market-data-for-url-and-email' into 'master' ([19b619c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/19b619c6cb9b29098ebc5d258b802e745c01bc2c))
|
|
17
|
+
* Merge branch 'master' into 'tm-2980-using-operator-name-from-market-data-for-url-and-email' ([12bb0ed](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/12bb0edeaa473620dc0a9c3ff66dfc4815e36881))
|
|
18
|
+
* Merge branch 'tm-2980-using-operator-name-from-market-data-for-url-and-email' into 'master' ([b1dc94b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b1dc94bf5980c23b5b93d8d9e7e7cd6cd28bd692))
|
|
19
|
+
* Merge branch 'bug-getPageImage' into 'master' ([35b13e0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/35b13e0102f68979d9ef247fd8eadcea3e085adf))
|
|
20
|
+
|
|
21
|
+
## [17.0.6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.5...v17.0.6) (2022-12-21)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* validate payment data pages ([08c1afd](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/08c1afd53794b041354e9b4312436d6f0bc69fbd))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([6116b83](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6116b8306c8d75efb833fb95f8c5e6416ad03d57))
|
|
30
|
+
|
|
1
31
|
## [17.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v17.0.4...v17.0.5) (2022-12-21)
|
|
2
32
|
|
|
3
33
|
|
package/package.json
CHANGED
|
@@ -74,7 +74,11 @@ function Header({ section, content = null, backgroundImage = true, showAuthor =
|
|
|
74
74
|
</div>
|
|
75
75
|
|
|
76
76
|
{section.page.template !== 'author' && !['article', 'game'].includes(section.page.type) && (
|
|
77
|
-
<
|
|
77
|
+
<div>
|
|
78
|
+
<h1>{section.page.title}</h1>
|
|
79
|
+
<span>{section.page?.relation?.url}</span>
|
|
80
|
+
<span>{section.page?.relation?.email}</span>
|
|
81
|
+
</div>
|
|
78
82
|
)}
|
|
79
83
|
<div className={!content && styles.headerText}>{headerContent()}</div>
|
|
80
84
|
</div>
|
|
@@ -98,6 +102,10 @@ Header.propTypes = {
|
|
|
98
102
|
name: PropTypes.string,
|
|
99
103
|
profile_page_path: PropTypes.string,
|
|
100
104
|
}),
|
|
105
|
+
relation: PropTypes.shape({
|
|
106
|
+
url: PropTypes.string,
|
|
107
|
+
email: PropTypes.string,
|
|
108
|
+
}),
|
|
101
109
|
authors: PropTypes.shape([PropTypes.shape({})]),
|
|
102
110
|
sections: PropTypes.shape({
|
|
103
111
|
header: PropTypes.shape({
|
|
@@ -95,10 +95,7 @@ const Tracker = ({
|
|
|
95
95
|
<LazyImage alt="Site logo" src={logo} />
|
|
96
96
|
<p
|
|
97
97
|
className={`${styles.mainText} ${operatorLogo && styles.mainTextWithlogo}`}
|
|
98
|
-
>{`${mainText.replace(
|
|
99
|
-
'[operator_name]',
|
|
100
|
-
operator.bonus.operator_name || operator.name
|
|
101
|
-
)}`}</p>
|
|
98
|
+
>{`${mainText.replace('[operator_name]', operator.name)}`}</p>
|
|
102
99
|
{operatorLogo && (
|
|
103
100
|
<LazyImage
|
|
104
101
|
src={imagePrettyUrl(
|
|
@@ -106,7 +103,7 @@ const Tracker = ({
|
|
|
106
103
|
operatorLogoWidth,
|
|
107
104
|
operatorLogoHeight
|
|
108
105
|
)}
|
|
109
|
-
alt={getAltText(imageObject, operator.
|
|
106
|
+
alt={getAltText(imageObject, operator.name)}
|
|
110
107
|
loading="eager"
|
|
111
108
|
width={operatorLogoWidth}
|
|
112
109
|
height={operatorLogoHeight}
|
package/src/helpers/getters.js
CHANGED
|
@@ -167,8 +167,8 @@ export function getPageImage(page) {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
if (page.type === 'software_provider' && page.relation.logo) {
|
|
171
|
-
return imagePrettyUrl(page.relation.logo);
|
|
170
|
+
if (page.type === 'software_provider' && page.relation && page.relation.logo) {
|
|
171
|
+
return page.relation && imagePrettyUrl(page.relation.logo);
|
|
172
172
|
}
|
|
173
173
|
if (page.banner) {
|
|
174
174
|
return imagePrettyUrl(page.banner);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
1
2
|
/* eslint-disable no-unused-expressions */
|
|
2
3
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
4
|
/* eslint-disable no-console */
|
|
@@ -269,10 +270,21 @@ export default {
|
|
|
269
270
|
// Add path of page for payment
|
|
270
271
|
bonus.deposit_methods &&
|
|
271
272
|
bonus.deposit_methods.forEach((e) => {
|
|
272
|
-
const el =
|
|
273
|
+
const el =
|
|
274
|
+
pages.payment_method &&
|
|
275
|
+
pages.payment_method.find((el) => e.id === el.relation_id);
|
|
273
276
|
if (el) e.path = el.path;
|
|
274
277
|
});
|
|
275
278
|
|
|
279
|
+
const { operator_url, support_email, operator_name } = page.relation.bonus;
|
|
280
|
+
|
|
281
|
+
page.relation.url = operator_url || page.relation.url;
|
|
282
|
+
|
|
283
|
+
page.relation.email = support_email || page.relation.email;
|
|
284
|
+
|
|
285
|
+
page.relation.name = operator_name || page.relation.name;
|
|
286
|
+
|
|
287
|
+
// eslint-disable-next-line no-unused-expressions
|
|
276
288
|
ribbons.length > 0 &&
|
|
277
289
|
ribbons.forEach((res, index) => {
|
|
278
290
|
ribbons[index] = data.ribbons[res] ? data.ribbons[res].label : res;
|