gatsby-core-theme 30.0.13 → 30.0.15

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,22 @@
1
+ ## [30.0.15](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.14...v30.0.15) (2023-11-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add deposit method, owner value and review summery on toplist ([dae79ea](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/dae79ea1d3dd1e17b9e42b39a660f404e05fe253))
7
+ * update lists module scss ([a8a1538](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a8a153896aafaa8ab9a66a306082751c1d96c08e))
8
+
9
+
10
+ * Merge branch '3566-toplist' into 'master' ([d8dfdff](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d8dfdffdac1070764c01173917b3d7ebf25e625e))
11
+ * Merge branch 'tm-3761-p-tags-li' into 'master' ([6a906ee](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6a906eee2f44174c51e8814696b954d7be091642))
12
+
13
+ ## [30.0.14](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.13...v30.0.14) (2023-11-07)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * tracker link generation ([21e5dbf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/21e5dbf274c1253974687debd41c5adc7eb0241d))
19
+
1
20
  ## [30.0.13](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.12...v30.0.13) (2023-11-06)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "30.0.13",
3
+ "version": "30.0.15",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -9,6 +9,11 @@
9
9
  line-height: 27px;
10
10
  li {
11
11
  margin: 0 0 1.6rem 0;
12
+ position: relative;
13
+ >p {
14
+ display: inline;
15
+ }
16
+
12
17
  ul {
13
18
  li {
14
19
  margin: 1.6rem 0 0 0;
@@ -31,7 +36,7 @@
31
36
  height: 0.8rem;
32
37
  width: 0.8rem;
33
38
  display: inline-flex;
34
- position: relative;
39
+ position: absolute;
35
40
  top: -0.2rem;
36
41
  font-size: 1.4rem;
37
42
  font-weight: 500;
@@ -51,6 +56,7 @@
51
56
  li {
52
57
  counter-increment: li;
53
58
  display: list-item;
59
+ position: relative;
54
60
  }
55
61
 
56
62
  ::marker {
@@ -64,7 +70,7 @@
64
70
  height: 3.2rem;
65
71
  width: 3.2rem;
66
72
  display: inline-flex;
67
- position: relative;
73
+ position: absolute;
68
74
  top: -0.2rem;
69
75
  font-size: 1.4rem;
70
76
  font-weight: 500;
@@ -39,6 +39,7 @@ export const topListPickKeys = [
39
39
  'status',
40
40
  'founded',
41
41
  'ribbons',
42
+ 'owner'
42
43
  ];
43
44
 
44
45
  export const pickRelationKeys = {
@@ -22,6 +22,14 @@ export function generateTrackerLink(operator, trackerType, provider = false) {
22
22
  const sectionName = customSection.pop();
23
23
  return sectionName === 'tracker' ? trackerType : sectionName;
24
24
  }
25
+
26
+ if(item === 'country') {
27
+ const markets = operator.market.split('_');
28
+ if(markets.length === 2) {
29
+ return markets[0];
30
+ }
31
+ }
32
+
25
33
  return operator[item];
26
34
  });
27
35
  return `/${trackerArr.join('/')}`;
@@ -5,7 +5,7 @@ import { generatePlaceholderString } from '../generators.mjs';
5
5
  import { clonePageForCards, groupBy, removeDuplicates, removeCurrentPage } from './common.mjs';
6
6
  import settings from '../../constants/settings.mjs';
7
7
  import ModuleValue from '../../constants/module-value.mjs';
8
- import { shiftFirstOperator, getModuleTitle } from '../getters.mjs';
8
+ import { shiftFirstOperator, getModuleTitle, getExtraField } from '../getters.mjs';
9
9
 
10
10
  const pagesGroupedByTemplateId = [];
11
11
  const { cloneDeep, pick, sampleSize } = loadash;
@@ -24,11 +24,11 @@ export function processCardsModule(module, pages, pagesCloned, pagesMappedById)
24
24
  module.cards_page_type !== 'operator'
25
25
  ? pagesCloned[modelType]
26
26
  : pagesCloned[modelType].filter(
27
- (page) =>
28
- !settings.filter_cards_modules[process.env.GATSBY_SITE_NAME].includes(
29
- page.relation && page.relation.status
30
- )
31
- );
27
+ (page) =>
28
+ !settings.filter_cards_modules[process.env.GATSBY_SITE_NAME].includes(
29
+ page.relation && page.relation.status
30
+ )
31
+ );
32
32
  module.items = sampleSize(samplePages, numOfItems);
33
33
  } else {
34
34
  module.items = pagesCloned[modelType].slice(0, numOfItems);
@@ -270,12 +270,14 @@ export function processTopListModule(module, relations, pages, markets) {
270
270
  listItem.items = listItem.items.map((item) => {
271
271
  // Remove the ribbons if are empty, will be add ribbons from operator
272
272
  if (item.ribbons && item.ribbons.length === 0) delete item.ribbons;
273
-
274
273
  const clone = pick(cloneDeep(relations.operator[item.operator_id]), topListPickKeys);
275
274
  const operatorPage =
276
275
  pages && pages.operator
277
276
  ? pages.operator.filter((page) => page.relation_id === item.operator_id)
278
277
  : [];
278
+ if (operatorPage[0]?.extra_fields) {
279
+ clone.reviewSummery = getExtraField(operatorPage[0]?.extra_fields, 'operator_review_summary', null);
280
+ }
279
281
 
280
282
  if (operatorPage.length >= 1 && operatorPage[0].author) {
281
283
  clone.authorName = operatorPage[0].author.name && operatorPage[0].author.name;
@@ -300,7 +302,6 @@ export function processTopListModule(module, relations, pages, markets) {
300
302
  }
301
303
 
302
304
  delete clone.software;
303
- delete clone.bonus.deposit_methods;
304
305
  return Object.assign(clone, item);
305
306
  });
306
307
  return listItem;