gatsby-core-theme 2.0.9 → 2.0.13
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 +40 -0
- package/gatsby-node.esm.js +11 -0
- package/package.json +1 -1
- package/src/components/atoms/author-box/author-box.module.scss +1 -0
- package/src/components/atoms/author-box/index.js +9 -6
- package/src/helpers/events.js +1 -1
- package/tests/factories/modules/card.factory.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
## [2.0.13](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.12...v2.0.13) (2022-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* author box logo fix ([5b74a2b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5b74a2bac4f8dd9efbcc0d29b2b79d640fa26978))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([5c6735b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5c6735b01212e5e414afebacfdf70d359d34ca84))
|
|
10
|
+
|
|
11
|
+
## [2.0.12](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.11...v2.0.12) (2022-01-04)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* ppc tournaments data ([d9e66e9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d9e66e953da58a4c31885edd305e75d8f4c5fa18))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([9ef964b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9ef964bbe20b037026abfcbb3e0289703f81d501))
|
|
20
|
+
|
|
21
|
+
## [2.0.11](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.10...v2.0.11) (2022-01-04)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* sports tracker pages ([d241b52](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d241b5268c9c0451e9d05ad3db44ce2138a84b06))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([9481c20](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9481c20dd68a400cf8d58d6f0165724a452f60b5))
|
|
30
|
+
|
|
31
|
+
## [2.0.10](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.9...v2.0.10) (2022-01-03)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* added sample data ([9adb171](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9adb1717b3a1060abc2e943991e371a3a3155843))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([104b2c9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/104b2c9c657e0f77d0b00b85bb6265da7c0fe3fd))
|
|
40
|
+
|
|
1
41
|
## [2.0.9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.8...v2.0.9) (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;
|
|
@@ -165,6 +165,7 @@ export function getSampleOperatorCards(type) {
|
|
|
165
165
|
items: [
|
|
166
166
|
{
|
|
167
167
|
path: '/rizk',
|
|
168
|
+
title: 'rizk',
|
|
168
169
|
relation: {
|
|
169
170
|
name: 'Rizk',
|
|
170
171
|
rating: '5',
|
|
@@ -216,6 +217,7 @@ export function getSampleOperatorCards(type) {
|
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
219
|
path: '/captain-spins',
|
|
220
|
+
title: 'captain spins',
|
|
219
221
|
relation: {
|
|
220
222
|
name: 'Captain Spins',
|
|
221
223
|
logo_url: 'captain-spins-logopng07b24ceb59-original.png',
|
|
@@ -254,6 +256,7 @@ export function getSampleOperatorCards(type) {
|
|
|
254
256
|
},
|
|
255
257
|
{
|
|
256
258
|
path: '/casoola',
|
|
259
|
+
title: 'casoola',
|
|
257
260
|
relation: {
|
|
258
261
|
name: 'Casoola',
|
|
259
262
|
logo_url: 'casoola-logopng381ab5c04f-original.png',
|