gatsby-core-theme 14.0.0 → 14.0.2
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 +19 -0
- package/package.json +1 -1
- package/src/components/molecules/toplist/default-row/index.js +13 -11
- package/src/components/organisms/toplist/list/index.js +22 -27
- package/src/components/organisms/toplist/list/list.module.scss +1 -1
- package/src/hooks/gatsby-img/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [14.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v14.0.1...v14.0.2) (2022-11-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* gatsby image placeholder ([e1e35ac](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e1e35ac28337352d653efd6b8c19390dbee7ae03))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([a356764](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a356764b488c39918be9d27580097147b747b72c))
|
|
10
|
+
|
|
11
|
+
## [14.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v14.0.0...v14.0.1) (2022-11-01)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* changed site ([6d630c8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6d630c8ddc793ca7f7b46daee26887ba1ad3feda))
|
|
17
|
+
* lightoouse metric ([3da93d0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3da93d0d8d1ce5485b1755714ea59981ca435cab))
|
|
18
|
+
* toplist ([270a368](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/270a368d4e060597e3815aa16ea26ee9d5fe42ac))
|
|
19
|
+
|
|
1
20
|
# [14.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.6...v14.0.0) (2022-11-01)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
|
@@ -13,7 +13,15 @@ import LazyImage from '~hooks/lazy-image';
|
|
|
13
13
|
|
|
14
14
|
import styles from './default-row.module.scss';
|
|
15
15
|
|
|
16
|
-
const Row = ({
|
|
16
|
+
const Row = ({
|
|
17
|
+
item,
|
|
18
|
+
oneliner = 'main',
|
|
19
|
+
layout = 'list',
|
|
20
|
+
tracker = 'main',
|
|
21
|
+
itemRefs,
|
|
22
|
+
index,
|
|
23
|
+
className,
|
|
24
|
+
}) => {
|
|
17
25
|
const prettyLink = prettyTracker(item);
|
|
18
26
|
const itemRating = item.rating;
|
|
19
27
|
const { translations } = useContext(Context) || {};
|
|
@@ -27,19 +35,13 @@ const Row = ({ item, oneliner = 'main', layout = 'list', tracker = 'main', itemR
|
|
|
27
35
|
};
|
|
28
36
|
|
|
29
37
|
return (
|
|
30
|
-
<li
|
|
38
|
+
<li
|
|
39
|
+
className={`${className} ${styles.row} ${styles[layout]}`}
|
|
40
|
+
ref={(el) => addToRefs(el, index)}
|
|
41
|
+
>
|
|
31
42
|
<div className={styles.ribbons}>
|
|
32
43
|
{item.ribbons && item.ribbons.map((ribbon) => <span>{ribbon}</span>)}
|
|
33
44
|
</div>
|
|
34
|
-
{/* <a
|
|
35
|
-
href={prettyLink}
|
|
36
|
-
className="casinos-top-list-gtm name-cta"
|
|
37
|
-
title={item.name}
|
|
38
|
-
target="_blank"
|
|
39
|
-
rel="noreferrer"
|
|
40
|
-
>
|
|
41
|
-
|
|
42
|
-
</a> */}
|
|
43
45
|
<a
|
|
44
46
|
href={prettyLink}
|
|
45
47
|
title={item.name}
|
|
@@ -42,33 +42,28 @@ export default function List({
|
|
|
42
42
|
return (
|
|
43
43
|
<>
|
|
44
44
|
<ul className={styles.list} key={keygen()}>
|
|
45
|
-
{toplist.items.map((item, index) =>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
oneliner={toplist.one_liner}
|
|
68
|
-
/>
|
|
69
|
-
)}
|
|
70
|
-
</li>
|
|
71
|
-
))}
|
|
45
|
+
{toplist.items.map((item, index) =>
|
|
46
|
+
CustomRow ? (
|
|
47
|
+
<CustomRow
|
|
48
|
+
item={item}
|
|
49
|
+
tracker={toplist.tracker}
|
|
50
|
+
oneliner={toplist.one_liner}
|
|
51
|
+
isPPC={isPPCPage}
|
|
52
|
+
index={index}
|
|
53
|
+
className={index + 1 <= initLoadItems ? styles.show : null}
|
|
54
|
+
key={keygen()}
|
|
55
|
+
itemRefs={elRefs}
|
|
56
|
+
/>
|
|
57
|
+
) : (
|
|
58
|
+
<Row
|
|
59
|
+
itemRefs={elRefs}
|
|
60
|
+
item={item}
|
|
61
|
+
tracker={toplist.tracker}
|
|
62
|
+
oneliner={toplist.one_liner}
|
|
63
|
+
className={index + 1 <= initLoadItems ? styles.show : null}
|
|
64
|
+
/>
|
|
65
|
+
)
|
|
66
|
+
)}
|
|
72
67
|
</ul>
|
|
73
68
|
{showLoadMoreButton && (
|
|
74
69
|
<div ref={loadMoreBtn} className={styles.loadMore}>
|