gatsby-core-theme 40.0.21 → 40.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [40.0.23](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.22...v40.0.23) (2024-10-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* toplist multi market ([faacd4c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/faacd4cbadc820d679d7b455d588abc8a36c3686))
|
|
7
|
+
|
|
8
|
+
## [40.0.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.21...v40.0.22) (2024-10-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix transaltion key ([82da5f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/82da5f0c36989d71872d5c3af8e9b7277ce438dd))
|
|
14
|
+
|
|
1
15
|
## [40.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.20...v40.0.21) (2024-10-30)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ const ProsCons = ({ module = {}, pros = 'Pros', cons = 'Cons', icons }) => (
|
|
|
22
22
|
</div>
|
|
23
23
|
<div className={styles.cons || ''}>
|
|
24
24
|
{icons && <span className={styles.icon || ''}>{icons[1]}</span>}
|
|
25
|
-
<span className={styles.title || ''}>{useTranslate('
|
|
25
|
+
<span className={styles.title || ''}>{useTranslate('cons', cons)}</span>
|
|
26
26
|
<ul>
|
|
27
27
|
{module.cons?.map((con) => (
|
|
28
28
|
<li key={keygen()}>
|
|
@@ -292,7 +292,7 @@ export function processBonus(module, relations) {
|
|
|
292
292
|
const removeFields =
|
|
293
293
|
settings.remove_bonus_data[process.env.GATSBY_SITE_NAME] ||
|
|
294
294
|
settings.remove_bonus_data.default;
|
|
295
|
-
|
|
295
|
+
removeFields.forEach((res) => delete object.bonus[res]);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
module.value = pick(
|
|
@@ -331,9 +331,10 @@ export function processTopListModule(
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
if (listItem.id && toplists && toplists[listItem.id.toString()]) {
|
|
334
|
+
listItem.market = toplists[listItem.id].market?.short_code;
|
|
334
335
|
listItem.items = toplists[listItem.id].items;
|
|
335
336
|
}
|
|
336
|
-
|
|
337
|
+
|
|
337
338
|
listItem.items = listItem.items
|
|
338
339
|
? listItem.items.map((item) => {
|
|
339
340
|
// Remove the ribbons if are empty, will be add ribbons from operator
|
|
@@ -344,13 +345,16 @@ export function processTopListModule(
|
|
|
344
345
|
const operatorRelation = Object.values(relations.operator).find(
|
|
345
346
|
(operator) =>
|
|
346
347
|
operator.operator_id === item.operator_id &&
|
|
348
|
+
operator.market === listItem.market &&
|
|
347
349
|
type === operator.type
|
|
348
350
|
);
|
|
349
351
|
|
|
350
|
-
operatorRelation
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
if (operatorRelation) {
|
|
353
|
+
operatorRelation.ribbons =
|
|
354
|
+
item.ribbon_ids && item.ribbon_ids.length === 0
|
|
355
|
+
? operatorRelation.ribbons
|
|
356
|
+
: item.ribbon_ids;
|
|
357
|
+
}
|
|
354
358
|
|
|
355
359
|
const operatorPage =
|
|
356
360
|
pages && pages.operator && operatorRelation
|