gatsby-core-theme 1.6.1 → 1.6.5
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 +41 -0
- package/package.json +1 -1
- package/src/components/atoms/author-box/index.js +4 -1
- package/src/components/atoms/menu/items/item/index.js +3 -1
- package/src/components/organisms/archive/index.js +4 -2
- package/src/components/organisms/cards/cards.module.scss +3 -3
- package/src/helpers/processor/index.js +4 -2
- package/src/helpers/schedule.js +10 -8
- package/src/hooks/tabs/index.js +2 -0
- package/src/styles/utils/_animations.scss +1 -1
- package/tests/factories/pages/list.factory.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
## [1.6.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.4...v1.6.5) (2021-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* manu item image width and height ([799be5b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/799be5b2e2e54a21e5d5beb00c9eec7a152d7560))
|
|
7
|
+
|
|
8
|
+
## [1.6.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.3...v1.6.4) (2021-11-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* general issues ([419d8d3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/419d8d36f7bfe153e7e07d2ad2b92cd19e597aa1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Code Refactoring
|
|
17
|
+
|
|
18
|
+
* align cards on search, dropdown z-index on mobile when open, lazyload force load on tab click ([1e44fa7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1e44fa74f6e6ac63169a9bca9affa40f96a7d3cc))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
* Merge branch 'tm-2478-search' into 'master' ([26e1a6e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/26e1a6ebd7632a4b866d9e02f8edf58cca5a17f6))
|
|
22
|
+
* Merge branch 'tm-2478-search' of git.ilcd.rocks:team-floyd/themes/gatsby-themes into tm-2478-search ([725ec14](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/725ec145917d2d7eb436f90cbb87a5427300166d))
|
|
23
|
+
* Merge branch 'master' into tm-2478-search ([9be2cb8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9be2cb83d0948f9925b8e199064e075a44fc2f6d))
|
|
24
|
+
|
|
25
|
+
## [1.6.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.2...v1.6.3) (2021-11-18)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* html sitemap filters ([58892f4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/58892f4a694be085c32ea80daef50f7c59ee8d87))
|
|
31
|
+
|
|
32
|
+
## [1.6.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.1...v1.6.2) (2021-11-17)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* filter events fnc error build ([9324fdf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9324fdf9e99233b9857d9b60dd7973466f5df6ba))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
* Merge branch 'fix-showcased-event' into 'master' ([a2d4959](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a2d49594cc73321dffd5258e2094e84c255151b0))
|
|
41
|
+
|
|
1
42
|
## [1.6.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.0...v1.6.1) (2021-11-17)
|
|
2
43
|
|
|
3
44
|
|
package/package.json
CHANGED
|
@@ -78,7 +78,10 @@ export default function AuthorBox({ author }) {
|
|
|
78
78
|
</a>
|
|
79
79
|
))}
|
|
80
80
|
</p>
|
|
81
|
-
<
|
|
81
|
+
<div
|
|
82
|
+
className={styles.biography}
|
|
83
|
+
dangerouslySetInnerHTML={{ __html: author.biography }}
|
|
84
|
+
/>
|
|
82
85
|
</div>
|
|
83
86
|
{author.profile_page_path && (
|
|
84
87
|
<Link
|
|
@@ -35,7 +35,9 @@ export default function Item({
|
|
|
35
35
|
const isMobile = useIsMobile();
|
|
36
36
|
|
|
37
37
|
const ItemImage = () =>
|
|
38
|
-
item.image ?
|
|
38
|
+
item.image ? (
|
|
39
|
+
<img width="20" height="20" src={imagePrettyUrl(item.image)} alt={item.title} />
|
|
40
|
+
) : null;
|
|
39
41
|
|
|
40
42
|
return (
|
|
41
43
|
<ConditionalWrapper
|
|
@@ -15,7 +15,9 @@ const Archive = ({ module, PaginationComponent, page, loadMore, gtmClass = '' })
|
|
|
15
15
|
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
if (module.pagination_type === 'load_more') {
|
|
18
|
-
const items = module.items.filter(
|
|
18
|
+
const items = module.items.filter(
|
|
19
|
+
(item, index) => index < parseInt(loadMore ? loadMore.limit : 9)
|
|
20
|
+
);
|
|
19
21
|
setModuleItems(items);
|
|
20
22
|
}
|
|
21
23
|
}, [module, module.items, loadMore]);
|
|
@@ -24,7 +26,7 @@ const Archive = ({ module, PaginationComponent, page, loadMore, gtmClass = '' })
|
|
|
24
26
|
let items = [...module.items];
|
|
25
27
|
if (items.length > moduleItems.length) {
|
|
26
28
|
items = items.filter(
|
|
27
|
-
(item, index) => index < moduleItems.length + parseInt(loadMore.increment)
|
|
29
|
+
(item, index) => index < moduleItems.length + parseInt(loadMore ? loadMore.increment : 9)
|
|
28
30
|
);
|
|
29
31
|
setModuleItems(items);
|
|
30
32
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
display: grid;
|
|
3
3
|
|
|
4
4
|
@include min(mobile) {
|
|
5
|
-
grid-template-columns: repeat(var(--cards-mob-column), 1fr);
|
|
5
|
+
grid-template-columns: repeat(var(--cards-mob-column), minmax(0,1fr));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@include min(tablet) {
|
|
9
|
-
grid-template-columns: repeat(var(--cards-tablet-column), 1fr);
|
|
9
|
+
grid-template-columns: repeat(var(--cards-tablet-column), minmax(0,1fr));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@include min(desktop) {
|
|
13
|
-
grid-template-columns: repeat(var(--cards-desktop-column), 1fr);
|
|
13
|
+
grid-template-columns: repeat(var(--cards-desktop-column), minmax(0,1fr));
|
|
14
14
|
}
|
|
15
15
|
column-gap: 0.8rem;
|
|
16
16
|
@include min(desktop) {
|
|
@@ -39,9 +39,11 @@ export function processSitemapPages(pages, markets) {
|
|
|
39
39
|
pageListByMarket[market] = [];
|
|
40
40
|
let pageList = [];
|
|
41
41
|
Object.keys(pages[market]).forEach((pageType) => {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const filteredPages = pages[market][pageType].filter(
|
|
43
|
+
(page) => page.robot_options && page.robot_options.page_index === 1
|
|
44
44
|
);
|
|
45
|
+
|
|
46
|
+
pageList = pageList.concat(filteredPages.map((row) => pick(row, pickHTMLSitemapPageKeys)));
|
|
45
47
|
});
|
|
46
48
|
|
|
47
49
|
pageListByMarket[market] = groupBy(pageList, 'template_id');
|
package/src/helpers/schedule.js
CHANGED
|
@@ -104,15 +104,17 @@ export function filterEvents(tournamentEvents, events) {
|
|
|
104
104
|
const futureEvents = [];
|
|
105
105
|
const today = new Date().setHours(0, 0, 0, 0);
|
|
106
106
|
tournamentEvents.forEach((eventId) => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
events[eventId].date.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
if (events[eventId]) {
|
|
108
|
+
const eventDate = new Date(
|
|
109
|
+
`${events[eventId].date.year_number}-${zeroPadding(
|
|
110
|
+
events[eventId].date.month_number,
|
|
111
|
+
2
|
|
112
|
+
)}-${zeroPadding(events[eventId].date.day_number, 2)}`
|
|
113
|
+
);
|
|
113
114
|
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
if (eventDate >= today) {
|
|
116
|
+
futureEvents.push(eventId);
|
|
117
|
+
}
|
|
116
118
|
}
|
|
117
119
|
});
|
|
118
120
|
|
package/src/hooks/tabs/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { forceCheck } from 'react-lazyload';
|
|
3
4
|
import TabList from './tab/tab-list';
|
|
4
5
|
import styles from './tabs.module.scss';
|
|
5
6
|
|
|
@@ -24,6 +25,7 @@ const Tabs = ({
|
|
|
24
25
|
|
|
25
26
|
function onClickTabItem(tabId) {
|
|
26
27
|
setActiveTab(tabId);
|
|
28
|
+
forceCheck();
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
return (
|
|
@@ -13,6 +13,9 @@ export default function getPageDataList(length) {
|
|
|
13
13
|
template_id: '5',
|
|
14
14
|
name: 'Rizk Casino',
|
|
15
15
|
logo_url: '#',
|
|
16
|
+
robot_options: {
|
|
17
|
+
page_index: 1,
|
|
18
|
+
},
|
|
16
19
|
banner: '313df295c19d7c5f137ceda9d0cc5df7.jpeg',
|
|
17
20
|
meta_title: 'my meta title',
|
|
18
21
|
language: 'en',
|