gatsby-core-theme 44.13.2 → 44.13.4
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 +15 -0
- package/package.json +1 -1
- package/src/helpers/generators.mjs +2 -2
- package/src/resolver/common.mjs +1 -2
- package/src/resolver/modules.mjs +66 -61
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [44.13.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.13.3...v44.13.4) (2026-02-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add padStart zero on dates and day strings ([649bf28](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/649bf28df54b6e4b81e3bbeb47f727695ff37b15))
|
|
7
|
+
* fix error when opertor relation no exist ([0f59843](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0f5984350f681b807d27dbac59db6ea9cbad26f6))
|
|
8
|
+
|
|
9
|
+
## [44.13.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.13.2...v44.13.3) (2026-02-05)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* update limit constant ([8b863c7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8b863c7a0545e1369fddb4517e67a88864ce19f5))
|
|
15
|
+
|
|
1
16
|
## [44.13.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.13.1...v44.13.2) (2026-02-05)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -41,8 +41,8 @@ export function generateTrackerLink(operator, trackerType, provider = false) {
|
|
|
41
41
|
|
|
42
42
|
export function generatePlaceholderString(string = "", translations, data) {
|
|
43
43
|
const date = new Date();
|
|
44
|
-
const day = date.getDate();
|
|
45
|
-
const month = date.getMonth() + 1;
|
|
44
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
45
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
46
46
|
const year = date.getFullYear();
|
|
47
47
|
const regex = generatorsConstant.generatorsPlaceholderRegex;
|
|
48
48
|
|
package/src/resolver/common.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { pickPageKeys, pickRelationKeys } from '../constants/pick-keys.mjs';
|
|
|
4
4
|
import settings from '../constants/settings.mjs';
|
|
5
5
|
// eslint-disable-next-line import/no-cycle
|
|
6
6
|
import { processExtraFields } from './index.mjs';
|
|
7
|
-
import { mainSettings } from '../constants/site-settings/main.mjs';
|
|
8
7
|
|
|
9
8
|
const { pick } = loadash;
|
|
10
9
|
|
|
@@ -142,7 +141,7 @@ export function clean(object) {
|
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
export function removeUnwantedSections(obj, pageType, ribbonsData) {
|
|
145
|
-
const limit =
|
|
144
|
+
const limit = process.env.RECOMMENDED_CASINOS_NUMBER || 3;
|
|
146
145
|
const marketSection = {
|
|
147
146
|
games: ["post_main_games"],
|
|
148
147
|
operator: [
|
package/src/resolver/modules.mjs
CHANGED
|
@@ -392,17 +392,22 @@ export function processTopListModule(
|
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
listItem.items = listItem.items
|
|
395
|
-
? listItem.items
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
(operator)
|
|
399
|
-
operator
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
395
|
+
? listItem.items
|
|
396
|
+
.map((item) => {
|
|
397
|
+
const operatorRelation = cloneDeep(
|
|
398
|
+
Object.values(relations.operator).find(
|
|
399
|
+
(operator) =>
|
|
400
|
+
operator.operator_id === item.operator_id &&
|
|
401
|
+
operator.market === listItem.market &&
|
|
402
|
+
type === operator.type
|
|
403
|
+
)
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
// If we can't find a matching operator relation, skip this toplist item
|
|
407
|
+
if (!operatorRelation) {
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
404
410
|
|
|
405
|
-
if (operatorRelation) {
|
|
406
411
|
operatorRelation.ribbons =
|
|
407
412
|
item.ribbon_ids && item.ribbon_ids.length === 0
|
|
408
413
|
? operatorRelation.ribbons
|
|
@@ -412,58 +417,58 @@ export function processTopListModule(
|
|
|
412
417
|
item.selling_points && item.selling_points.length === 0
|
|
413
418
|
? operatorRelation.selling_points
|
|
414
419
|
: item.selling_points;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
operatorRelation.updated_at = item.updated_at;
|
|
418
|
-
operatorRelation.toplist_bonus = item.bonus_name;
|
|
419
|
-
operatorRelation.toplist_item_tracker_name = item.tracker_name;
|
|
420
|
-
|
|
421
|
-
const operatorPage =
|
|
422
|
-
pages && pages.operator && operatorRelation
|
|
423
|
-
? pages.operator.filter(
|
|
424
|
-
(page) =>
|
|
425
|
-
page.relation &&
|
|
426
|
-
page.relation.operator_id ===
|
|
427
|
-
operatorRelation.operator_id &&
|
|
428
|
-
page.relation.type === operatorRelation.type
|
|
429
|
-
)
|
|
430
|
-
: [];
|
|
431
|
-
|
|
432
|
-
const reviewLink =
|
|
433
|
-
process.env.DMS_REVIEW_LINKS_ENABLED === "true"
|
|
434
|
-
? stripDomainAndLeadingSlash(operatorRelation?.review_link)
|
|
435
|
-
: operatorPage[0]?.path;
|
|
436
|
-
|
|
437
|
-
const authorTitle =
|
|
438
|
-
operatorPage[0] && operatorPage[0]?.author?.author_title;
|
|
439
420
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
operatorPage[0]?.author
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
421
|
+
operatorRelation.updated_at = item.updated_at;
|
|
422
|
+
operatorRelation.toplist_bonus = item.bonus_name;
|
|
423
|
+
operatorRelation.toplist_item_tracker_name = item.tracker_name;
|
|
424
|
+
|
|
425
|
+
const operatorPage =
|
|
426
|
+
pages && pages.operator && operatorRelation
|
|
427
|
+
? pages.operator.filter(
|
|
428
|
+
(page) =>
|
|
429
|
+
page.relation &&
|
|
430
|
+
page.relation.operator_id ===
|
|
431
|
+
operatorRelation.operator_id &&
|
|
432
|
+
page.relation.type === operatorRelation.type
|
|
433
|
+
)
|
|
434
|
+
: [];
|
|
435
|
+
|
|
436
|
+
const reviewLink =
|
|
437
|
+
process.env.DMS_REVIEW_LINKS_ENABLED === "true"
|
|
438
|
+
? stripDomainAndLeadingSlash(operatorRelation?.review_link)
|
|
439
|
+
: operatorPage[0]?.path;
|
|
440
|
+
|
|
441
|
+
const authorTitle =
|
|
442
|
+
operatorPage[0] && operatorPage[0]?.author?.author_title;
|
|
443
|
+
|
|
444
|
+
const clone = sanitizeOperatorData(
|
|
445
|
+
cloneDeep(operatorRelation),
|
|
446
|
+
operatorPage,
|
|
447
|
+
data,
|
|
448
|
+
toplists && toplists[listItem.id].label
|
|
449
|
+
);
|
|
450
|
+
|
|
451
|
+
const socialAuthorLinks = [
|
|
452
|
+
"facebook_profile",
|
|
453
|
+
"twitter_profile",
|
|
454
|
+
"instagram_profile",
|
|
455
|
+
"linkedin_profile",
|
|
456
|
+
];
|
|
457
|
+
if (filterEnabled) {
|
|
458
|
+
buildToplistFilter(filters, clone);
|
|
459
|
+
}
|
|
460
|
+
return Object.assign(clone, {
|
|
461
|
+
review_link: reviewLink,
|
|
462
|
+
author_title: authorTitle,
|
|
463
|
+
author_same_as:
|
|
464
|
+
operatorPage[0] &&
|
|
465
|
+
operatorPage[0]?.author &&
|
|
466
|
+
socialAuthorLinks
|
|
467
|
+
.map((socialLink) => operatorPage[0]?.author?.[socialLink])
|
|
468
|
+
.filter((socialLink) => socialLink),
|
|
469
|
+
});
|
|
470
|
+
})
|
|
471
|
+
.filter((item) => item)
|
|
467
472
|
: [];
|
|
468
473
|
const latestItems = listItem.items
|
|
469
474
|
.map((toplist) => ({
|