gatsby-core-theme 18.0.21 → 18.0.23
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/.ci.yml +3 -3
- package/CHANGELOG.md +45 -0
- package/package.json +1 -1
- package/src/components/molecules/link-list/index.js +5 -1
- package/src/components/molecules/toplist/default-row/index.js +7 -9
- package/src/constants/pick-keys.js +2 -0
- package/src/helpers/generators.js +1 -0
- package/src/helpers/generators.test.js +1 -1
- package/src/helpers/getters.test.js +1 -1
- package/src/helpers/processor/common.js +5 -1
- package/src/helpers/processor/relations.test.js +3 -1
- package/src/styles/utils/_mixins.scss +19 -0
- package/storybook/.ci.yml +2 -2
package/.ci.yml
CHANGED
|
@@ -4,7 +4,7 @@ Theme Tests:
|
|
|
4
4
|
image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
|
|
5
5
|
stage: test
|
|
6
6
|
tags:
|
|
7
|
-
-
|
|
7
|
+
- gatsby-runner-dev-1
|
|
8
8
|
script:
|
|
9
9
|
- yarn config set cache-folder .yarn
|
|
10
10
|
- yarn
|
|
@@ -22,7 +22,7 @@ Theme Publish:
|
|
|
22
22
|
image: node:18.0.0
|
|
23
23
|
stage: publish
|
|
24
24
|
tags:
|
|
25
|
-
-
|
|
25
|
+
- gatsby-runner-dev-1
|
|
26
26
|
before_script:
|
|
27
27
|
- git config --global http.sslverify false
|
|
28
28
|
- git config --global user.email "floyd@gig.com"
|
|
@@ -44,7 +44,7 @@ Theme Beta Publish:
|
|
|
44
44
|
image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
|
|
45
45
|
stage: publish-beta
|
|
46
46
|
tags:
|
|
47
|
-
-
|
|
47
|
+
- gatsby-runner-dev-1
|
|
48
48
|
before_script:
|
|
49
49
|
- git config --global http.sslverify false
|
|
50
50
|
- git config --global user.email "floyd@gig.com"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
## [18.0.23](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.22...v18.0.23) (2023-03-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add module as prop on cards and update pick keys ([132aeb4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/132aeb4485e33efe6f231f18f9f591c0bfd29d5f))
|
|
7
|
+
* added mixin ([fdb9341](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fdb934116189acc230c499809d0714c9b2f21335))
|
|
8
|
+
* added mixin ([290c3aa](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/290c3aa73998f42f05be9ca1ffda9255d89e0024))
|
|
9
|
+
* added mixin ([fb67dd6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fb67dd662ca05beb2589177d3ec9773c948129be))
|
|
10
|
+
* added settings for cards ([8c6c93a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8c6c93adfd25e1ed8da406fee6cf5ab11f0f9591))
|
|
11
|
+
* added settings for cards ([da88330](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da88330b7f87bc903d5fd83a3b5c23016c26c766))
|
|
12
|
+
* lighthouse pipeline ([8631d06](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8631d0617b7c50cb71d1e8a909c8d02af8c8dd34))
|
|
13
|
+
* remove the change for desktop columns ([f297d16](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f297d16cf1776220b3a3039ad52ced728bcaa96e))
|
|
14
|
+
* remove the unecessary props ([3ba8011](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3ba8011ee60326541006f3bcb3c1c59394ced6d9))
|
|
15
|
+
* remove type ([3a9bcaa](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3a9bcaa40f9d1f2c44e63eee4a5c4d680f7d9782))
|
|
16
|
+
* test ([e532e0a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e532e0ab40b0b910fb6c5d6399bcaf80090ab075))
|
|
17
|
+
* test ([2095554](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/209555461c5d8ac32db733332f031bf6c0dc5873))
|
|
18
|
+
* update desktop columns grid for cards ([62d6bae](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/62d6baee68aa2979e78c0b82fdb40d3cd7e71ad4))
|
|
19
|
+
* update desktopColumn at 3 ([0980247](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/098024743d0b3cd4dac1199dcd3956d391d9ba2c))
|
|
20
|
+
* update props for organisms cards ([17b23ba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/17b23baff4ea05f9941a6ac00081061f7a9fe59c))
|
|
21
|
+
* update tests ([b9a7e0e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b9a7e0e3fe2372d7c609b9b961f6968ffeea4c5e))
|
|
22
|
+
* updated git runners ([30ce707](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/30ce707efbf325f2e9d96c34696bc629f7efbd34))
|
|
23
|
+
* updated git runners ([ebb42d2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ebb42d2910123402825b8aac5981fe9cf8c0eb56))
|
|
24
|
+
* updated git runners ([d2d0df5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d2d0df5c7f10eac80cefe62180a95a2c5d43bb8f))
|
|
25
|
+
* updated git runners ([9707276](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9707276d1b9d3f562b30d8895a861c5c51bf50e5))
|
|
26
|
+
* updated git runners ([8f762ea](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8f762ea45f0f885a1244527db3093a31f59e1ddd))
|
|
27
|
+
* updated git runners ([087fd83](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/087fd83f71ea35cf22d5478fb26437bcae9f5a74))
|
|
28
|
+
* updated git runners ([da06858](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da068588de237fab352e5a42a7de5750c674323c))
|
|
29
|
+
* updated git runners ([d912358](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d912358c0fdc5ea342a30fad5247c0b06a74137c))
|
|
30
|
+
* updated git runners ([558368a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/558368a8e8e629c4cc9ce38ff3c39399a1560b9b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
* Merge branch 'tm-3313-payment-method' into 'master' ([76f7bdc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/76f7bdcd491a3f98e96877c7ce76e1f7999dc874))
|
|
34
|
+
* Merge branch 'tm-3379-remove-type' into 'master' ([3a41709](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3a41709e35b0c2538e0f61ecbdea4ada506cd8f8))
|
|
35
|
+
|
|
36
|
+
## [18.0.22](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.21...v18.0.22) (2023-03-13)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* link list images size ([909cbd1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/909cbd1b56a9124c927c53ad7f1f902da6d9b8ee))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([f3f412a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f3f412a812c284cadcb25d309cc5f3a987ed39ec))
|
|
45
|
+
|
|
1
46
|
## [18.0.21](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v18.0.20...v18.0.21) (2023-03-08)
|
|
2
47
|
|
|
3
48
|
|
package/package.json
CHANGED
|
@@ -28,7 +28,11 @@ const LinkList = ({
|
|
|
28
28
|
|
|
29
29
|
const LinkImage = () => (
|
|
30
30
|
<LazyImage
|
|
31
|
-
src={imagePrettyUrl(
|
|
31
|
+
src={imagePrettyUrl(
|
|
32
|
+
item.image,
|
|
33
|
+
width || item?.image_object?.width,
|
|
34
|
+
height || item?.image_object?.height
|
|
35
|
+
)}
|
|
32
36
|
alt={getAltText(item?.image_object, item.title)}
|
|
33
37
|
width={width || item?.image_object?.width}
|
|
34
38
|
height={height || item?.image_object?.height}
|
|
@@ -65,7 +65,7 @@ const Row = ({
|
|
|
65
65
|
>
|
|
66
66
|
<Bonus item={item} tracker={oneliner} />
|
|
67
67
|
</a>
|
|
68
|
-
<StarRating numOfStars={5} rating={itemRating} showLabel />
|
|
68
|
+
{/* <StarRating numOfStars={5} rating={itemRating} showLabel /> */}
|
|
69
69
|
<SellingPoints sellingPoints={item.selling_points} />
|
|
70
70
|
<ReviewLink
|
|
71
71
|
className={`${styles.reviewLink} toplist-variant-one-gtm`}
|
|
@@ -73,14 +73,12 @@ const Row = ({
|
|
|
73
73
|
operatorName={item.name}
|
|
74
74
|
reviewPath={reviewPath}
|
|
75
75
|
/>
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
76
|
+
<OperatorCta
|
|
77
|
+
operator={item}
|
|
78
|
+
tracker={tracker}
|
|
79
|
+
gtmClass="toplist-operator-cta-gtm"
|
|
80
|
+
pageTemplate={pageTemplate}
|
|
81
|
+
/>
|
|
84
82
|
</li>
|
|
85
83
|
);
|
|
86
84
|
};
|
|
@@ -9,6 +9,7 @@ export const pickPageKeys = [
|
|
|
9
9
|
'created_at',
|
|
10
10
|
'banner',
|
|
11
11
|
'sections',
|
|
12
|
+
'description',
|
|
12
13
|
];
|
|
13
14
|
|
|
14
15
|
export const topListPickKeys = [
|
|
@@ -84,6 +85,7 @@ export const pickRelationKeys = {
|
|
|
84
85
|
'name',
|
|
85
86
|
'rating',
|
|
86
87
|
'standardised_logo_filename_object',
|
|
88
|
+
'selling_points',
|
|
87
89
|
],
|
|
88
90
|
};
|
|
89
91
|
|
|
@@ -11,6 +11,7 @@ export function generateTrackerLink(operator, trackerType, provider = false) {
|
|
|
11
11
|
if (defaultTrackerFormat && trackerFormat) {
|
|
12
12
|
if (operator.type === 'casino') {
|
|
13
13
|
defaultTrackerFormat = defaultTrackerFormat.replace('type,', '');
|
|
14
|
+
trackerFormat = trackerFormat.replace('type,', '');
|
|
14
15
|
}
|
|
15
16
|
const linkFormatArray =
|
|
16
17
|
trackerType === 'main' ? defaultTrackerFormat.split(',') : trackerFormat.split(',');
|
|
@@ -12,7 +12,7 @@ describe('Generate Tracker Link Helper', () => {
|
|
|
12
12
|
const trackerLink = generateTrackerLink({ type: 'casino', short_name: 'bet365' }, 'non_main');
|
|
13
13
|
expect(trackerLink).toBeTruthy();
|
|
14
14
|
expect(typeof trackerLink).toEqual('string');
|
|
15
|
-
expect(trackerLink).toEqual('/no/visit/bet365/
|
|
15
|
+
expect(trackerLink).toEqual('/no/visit/bet365/non_main');
|
|
16
16
|
});
|
|
17
17
|
test('generateTrackerLink no tracker format', () => {
|
|
18
18
|
const trackerLink = generateTrackerLink({ type: 'casino', short_name: 'bet365' }, 'main');
|
|
@@ -68,7 +68,11 @@ export function clonePageForCards(item, style) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
const object = pick(item, pickPageKeys);
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
object.relation = pickRelationKeys[item.type]
|
|
73
|
+
? pick(item.relation, pickRelationKeys[item.type])
|
|
74
|
+
: item.relation;
|
|
75
|
+
|
|
72
76
|
if (item.type === 'operator' && style !== 'comparison_table' && object.relation.bonus) {
|
|
73
77
|
delete object.relation.bonus.deposit_methods;
|
|
74
78
|
}
|
|
@@ -61,7 +61,9 @@ describe('Processor Relations', () => {
|
|
|
61
61
|
const market = 'ie_en';
|
|
62
62
|
const data = getData({ template: type });
|
|
63
63
|
const pages = {
|
|
64
|
-
[market]: {
|
|
64
|
+
[market]: {
|
|
65
|
+
[type]: getPageList({ template: type, count: 1, relation_id: 5, type: 'default' }),
|
|
66
|
+
},
|
|
65
67
|
};
|
|
66
68
|
|
|
67
69
|
pages[market][type].forEach((page, index) => {
|
|
@@ -125,3 +125,22 @@
|
|
|
125
125
|
left: 0;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
@mixin border-gradient($color-1, $color-2, $bgcolor) {
|
|
131
|
+
background: $bgcolor;
|
|
132
|
+
&:before {
|
|
133
|
+
content: '';
|
|
134
|
+
position: absolute;
|
|
135
|
+
top: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
right: 0;
|
|
138
|
+
bottom: 0;
|
|
139
|
+
border-radius: 8px;
|
|
140
|
+
border: 2px solid transparent;
|
|
141
|
+
background: $color-1, $color-2 border-box;
|
|
142
|
+
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
143
|
+
-webkit-mask-composite: destination-out;
|
|
144
|
+
mask-composite: exclude;
|
|
145
|
+
}
|
|
146
|
+
}
|
package/storybook/.ci.yml
CHANGED
|
@@ -6,7 +6,7 @@ Storybook Build:
|
|
|
6
6
|
image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
|
|
7
7
|
stage: build
|
|
8
8
|
tags:
|
|
9
|
-
-
|
|
9
|
+
- gatsby-runner-dev-1
|
|
10
10
|
script:
|
|
11
11
|
- yarn config set cache-folder .yarn
|
|
12
12
|
- npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
|
|
@@ -28,7 +28,7 @@ Storybook Deploy:
|
|
|
28
28
|
name: storybook
|
|
29
29
|
url: http://storybook-gatsby.gigmedia.com/
|
|
30
30
|
tags:
|
|
31
|
-
-
|
|
31
|
+
- gatsby-runner-dev-1
|
|
32
32
|
script:
|
|
33
33
|
- mkdir -p ~/.ssh
|
|
34
34
|
- ssh-keyscan -H storybook >> ~/.ssh/known_hosts
|