gatsby-core-theme 2.0.10 → 2.0.14
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,43 @@
|
|
|
1
|
+
## [2.0.14](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.13...v2.0.14) (2022-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* lazy image no script tag ([3b47ad0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3b47ad093423a1ef58cd0b9dfedee22f83367552))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([a60dbce](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a60dbce4848d3446f115001b5fea0c4269c1a233))
|
|
10
|
+
|
|
11
|
+
## [2.0.13](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.12...v2.0.13) (2022-01-05)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* author box logo fix ([5b74a2b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5b74a2bac4f8dd9efbcc0d29b2b79d640fa26978))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([5c6735b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5c6735b01212e5e414afebacfdf70d359d34ca84))
|
|
20
|
+
|
|
21
|
+
## [2.0.12](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.11...v2.0.12) (2022-01-04)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* ppc tournaments data ([d9e66e9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d9e66e953da58a4c31885edd305e75d8f4c5fa18))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([9ef964b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9ef964bbe20b037026abfcbb3e0289703f81d501))
|
|
30
|
+
|
|
31
|
+
## [2.0.11](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.10...v2.0.11) (2022-01-04)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* sports tracker pages ([d241b52](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d241b5268c9c0451e9d05ad3db44ce2138a84b06))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([9481c20](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9481c20dd68a400cf8d58d6f0165724a452f60b5))
|
|
40
|
+
|
|
1
41
|
## [2.0.10](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.9...v2.0.10) (2022-01-03)
|
|
2
42
|
|
|
3
43
|
|
package/gatsby-node.esm.js
CHANGED
|
@@ -303,11 +303,22 @@ exports.createPages = async ({ actions: { createPage } }, themeOptions) => {
|
|
|
303
303
|
return { tracker, providerObject };
|
|
304
304
|
});
|
|
305
305
|
providerData.forEach((provider) => {
|
|
306
|
+
const trackerPageObject = {
|
|
307
|
+
meta_title: 'Tracker',
|
|
308
|
+
template: 'tracker',
|
|
309
|
+
title: 'Tracker',
|
|
310
|
+
type: 'page',
|
|
311
|
+
language: languageKey,
|
|
312
|
+
path: provider.tracker,
|
|
313
|
+
meta_robots: ['noindex', 'nofollow'],
|
|
314
|
+
};
|
|
306
315
|
createPage({
|
|
307
316
|
path: provider.tracker,
|
|
308
317
|
component: require.resolve('./src/components/app.js'),
|
|
309
318
|
context: {
|
|
319
|
+
page: trackerPageObject,
|
|
310
320
|
provider: provider.providerObject,
|
|
321
|
+
isTracker: true,
|
|
311
322
|
},
|
|
312
323
|
});
|
|
313
324
|
});
|
package/package.json
CHANGED
|
@@ -19,12 +19,15 @@ export default function AuthorBox({ author }) {
|
|
|
19
19
|
<div className={styles.container}>
|
|
20
20
|
<div className={styles.innerContainer}>
|
|
21
21
|
<div className={styles.information}>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
<div>
|
|
23
|
+
{' '}
|
|
24
|
+
<LazyImage
|
|
25
|
+
src={author.image_object?.url}
|
|
26
|
+
alt={author.image_alt}
|
|
27
|
+
width={author.image_object?.width}
|
|
28
|
+
height={author.image_object?.height}
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
28
31
|
<span className={styles.name}>{author.name}</span>
|
|
29
32
|
<p className={styles.title}>{author.author_title}</p>
|
|
30
33
|
</div>
|
package/src/helpers/events.js
CHANGED
|
@@ -55,7 +55,7 @@ function updateSchedule(schedule) {
|
|
|
55
55
|
|
|
56
56
|
return Object.keys(schedule).reduce((acc, key) => {
|
|
57
57
|
const { tournaments } = schedule[key] || {};
|
|
58
|
-
if (!tournaments && ['soccer', 'handball', 'tennis', 'cricket'].includes(key)) {
|
|
58
|
+
if (!tournaments && ['soccer', 'handball', 'tennis', 'cricket', 'darts'].includes(key)) {
|
|
59
59
|
const value = updateSchedule(schedule[key]);
|
|
60
60
|
acc[key] = value;
|
|
61
61
|
return acc;
|
|
@@ -23,21 +23,33 @@ export default function LazyImage({
|
|
|
23
23
|
if (!isNativeImageLazyLoadingSupported()) {
|
|
24
24
|
const LazyLoad = loadable(() => import(`react-lazyload`));
|
|
25
25
|
return (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
26
|
+
<>
|
|
27
|
+
<LazyLoad
|
|
28
|
+
height={height ? `${height}px` : null}
|
|
29
|
+
width={width ? `${width}px` : null}
|
|
30
|
+
placeholder={<span className="lazyload-placeholder" />}
|
|
31
|
+
debounce={0}
|
|
32
|
+
>
|
|
33
|
+
<img
|
|
34
|
+
src={src}
|
|
35
|
+
className={className}
|
|
36
|
+
height={height}
|
|
37
|
+
width={width}
|
|
38
|
+
alt={alt}
|
|
39
|
+
style={style}
|
|
40
|
+
/>
|
|
41
|
+
</LazyLoad>
|
|
42
|
+
<noscript>
|
|
43
|
+
<img
|
|
44
|
+
src={src}
|
|
45
|
+
className={className}
|
|
46
|
+
height={height}
|
|
47
|
+
width={width}
|
|
48
|
+
alt={alt}
|
|
49
|
+
style={style}
|
|
50
|
+
/>
|
|
51
|
+
</noscript>
|
|
52
|
+
</>
|
|
41
53
|
);
|
|
42
54
|
}
|
|
43
55
|
|