gatsby-core-theme 40.0.20 → 40.0.21
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 +8 -0
- package/package.json +1 -1
- package/src/constants/pick-keys.mjs +126 -116
- package/src/helpers/processor/operators.mjs +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [40.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.20...v40.0.21) (2024-10-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* operator data ([ac862fa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ac862fa2c379d472356bd12ebaced0f8163a2d42))
|
|
7
|
+
* operator data ([5856a93](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5856a93897c5e83c51fd72202cd56d93a796c903))
|
|
8
|
+
|
|
1
9
|
## [40.0.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.19...v40.0.20) (2024-10-29)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -1,136 +1,146 @@
|
|
|
1
1
|
export const pickPageKeys = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"id",
|
|
3
|
+
"title",
|
|
4
|
+
"path",
|
|
5
|
+
"relation",
|
|
6
|
+
"type",
|
|
7
|
+
"author",
|
|
8
|
+
"updated_at",
|
|
9
|
+
"created_at",
|
|
10
|
+
"banner",
|
|
11
|
+
"market",
|
|
12
|
+
"sections",
|
|
13
|
+
"description",
|
|
14
|
+
"true_votes",
|
|
15
|
+
"false_votes",
|
|
16
|
+
"reading_time",
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
export const topListPickKeys = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
20
|
+
"logo",
|
|
21
|
+
"one_liner",
|
|
22
|
+
"one_liners",
|
|
23
|
+
"market",
|
|
24
|
+
"bonus",
|
|
25
|
+
"links",
|
|
26
|
+
"type",
|
|
27
|
+
"name",
|
|
28
|
+
"url_fallback",
|
|
29
|
+
"email_fallback",
|
|
30
|
+
"name_fallback",
|
|
31
|
+
"rating",
|
|
32
|
+
"rating_casino",
|
|
33
|
+
"rating_games",
|
|
34
|
+
"rating_bonuses",
|
|
35
|
+
"rating_customer",
|
|
36
|
+
"path",
|
|
37
|
+
"extra_fields",
|
|
38
|
+
"selling_points",
|
|
39
|
+
"payout_time",
|
|
40
|
+
"short_name",
|
|
41
|
+
"status",
|
|
42
|
+
"founded",
|
|
43
|
+
"ribbons",
|
|
44
|
+
"owner",
|
|
45
|
+
"support_types",
|
|
46
|
+
"authorName",
|
|
47
|
+
"authorPath",
|
|
48
|
+
"authorImage",
|
|
49
|
+
"updatedAt",
|
|
47
50
|
];
|
|
48
51
|
|
|
49
52
|
export const pickTrackerOperatorKeys = [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
]
|
|
53
|
+
"name",
|
|
54
|
+
"logo",
|
|
55
|
+
"links",
|
|
56
|
+
"market",
|
|
57
|
+
"short_name",
|
|
58
|
+
"type",
|
|
59
|
+
];
|
|
57
60
|
|
|
58
61
|
export const pickRelationKeys = {
|
|
59
|
-
event: [
|
|
60
|
-
tournament: [
|
|
62
|
+
event: ["event"],
|
|
63
|
+
tournament: ["tournaments"],
|
|
61
64
|
operator: [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
65
|
+
"software",
|
|
66
|
+
"market",
|
|
67
|
+
"logo",
|
|
68
|
+
"one_liner",
|
|
69
|
+
"operator_id",
|
|
70
|
+
"one_liners",
|
|
71
|
+
"bonus",
|
|
72
|
+
"selling_points",
|
|
73
|
+
"founded",
|
|
74
|
+
"name",
|
|
75
|
+
"rating",
|
|
76
|
+
"rating_casino",
|
|
77
|
+
"rating_games",
|
|
78
|
+
"rating_bonuses",
|
|
79
|
+
"rating_customer",
|
|
80
|
+
"rating_payout",
|
|
81
|
+
"type",
|
|
82
|
+
"types",
|
|
83
|
+
"path",
|
|
84
|
+
"short_name",
|
|
85
|
+
"links",
|
|
86
|
+
"extra_fields",
|
|
87
|
+
"status",
|
|
88
|
+
"ribbons",
|
|
89
|
+
"email",
|
|
90
|
+
"url",
|
|
91
|
+
"games_amount",
|
|
92
|
+
"review_link",
|
|
93
|
+
"payout_time",
|
|
94
|
+
"support_types",
|
|
95
|
+
"url_fallback",
|
|
96
|
+
"email_fallback",
|
|
97
|
+
"name_fallback",
|
|
92
98
|
],
|
|
93
99
|
game: [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
100
|
+
"id",
|
|
101
|
+
"game_provider",
|
|
102
|
+
"first_rating",
|
|
103
|
+
"second_rating",
|
|
104
|
+
"third_rating",
|
|
105
|
+
"fourth_rating",
|
|
106
|
+
"standardised_logo_filename_object",
|
|
107
|
+
"thumbnail_filename",
|
|
108
|
+
"thumbnail_filename_object",
|
|
109
|
+
"name",
|
|
110
|
+
"iframe",
|
|
111
|
+
"average_rating",
|
|
112
|
+
"maximum_bet",
|
|
113
|
+
"volatility",
|
|
114
|
+
"rtp",
|
|
115
|
+
"freespins",
|
|
116
|
+
"number_of_reels",
|
|
117
|
+
"winning_lines",
|
|
118
|
+
"affiliate_games",
|
|
119
|
+
"minimum_bet",
|
|
120
|
+
"jackpots",
|
|
121
|
+
"launch_date",
|
|
116
122
|
],
|
|
117
123
|
software_provider: [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
"logo_filename_object",
|
|
125
|
+
"logo_filename",
|
|
126
|
+
"games_count",
|
|
127
|
+
"name",
|
|
128
|
+
"standardised_logo_filename_object",
|
|
123
129
|
],
|
|
124
130
|
payment_method: [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
"logo_filename_object",
|
|
132
|
+
"logo_filename",
|
|
133
|
+
"name",
|
|
134
|
+
"rating",
|
|
135
|
+
"standardised_logo_filename_object",
|
|
136
|
+
"selling_points",
|
|
131
137
|
],
|
|
132
138
|
};
|
|
133
139
|
|
|
134
|
-
export const pickHTMLSitemapPageKeys = [
|
|
140
|
+
export const pickHTMLSitemapPageKeys = ["title", "path", "template_id"];
|
|
135
141
|
|
|
136
|
-
export const pickAuthorsPageKeys = [
|
|
142
|
+
export const pickAuthorsPageKeys = [
|
|
143
|
+
"name",
|
|
144
|
+
"email_address",
|
|
145
|
+
"profile_page_path",
|
|
146
|
+
];
|
|
@@ -19,9 +19,10 @@ export function sanitizeOperatorData(
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
// Set Fallbacks
|
|
22
|
-
clone.
|
|
22
|
+
clone.url_fallback = operator?.bonus?.operator_url || operator.url;
|
|
23
|
+
clone.email_fallback = operator?.bonus?.support_email || operator.email;
|
|
23
24
|
clone.email = operator?.bonus?.support_email || operator.email;
|
|
24
|
-
clone.
|
|
25
|
+
clone.name_fallback = operator?.bonus?.operator_name || operator.name;
|
|
25
26
|
|
|
26
27
|
// Set Ribbons
|
|
27
28
|
if (ribbons && ribbons.length && data && data.ribbons) {
|
|
@@ -93,7 +94,7 @@ export function sanitizeOperatorData(
|
|
|
93
94
|
operatorClone.standardised_logo_url_object ||
|
|
94
95
|
operatorClone.default_logo_url_object;
|
|
95
96
|
|
|
96
|
-
return Object.assign(
|
|
97
|
+
return Object.assign(clone, operator);
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
// NOTE: To add tests once we start using it
|