@mjhls/mjh-framework 1.0.684 → 1.0.685

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.684
2
+ # mjh-framework v. 1.0.685
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -316,7 +316,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
316
316
  ),
317
317
  showTimeDiff && article.published && React__default.createElement(
318
318
  'p',
319
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
319
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
320
320
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
321
321
  if (index > 3) {
322
322
  return null;
@@ -347,7 +347,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
347
347
  ' ',
348
348
  React__default.createElement(
349
349
  'span',
350
- { style: { fontWeight: '600', display: 'inline-block' } },
350
+ { style: { display: 'inline-block' } },
351
351
  timeDifferenceCalc(article.published)
352
352
  )
353
353
  ),
@@ -476,7 +476,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
476
476
  ),
477
477
  showTimeDiff && article.published && React__default.createElement(
478
478
  'p',
479
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
479
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
480
480
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
481
481
  if (index > 3) {
482
482
  return null;
@@ -518,7 +518,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
518
518
  ' ',
519
519
  React__default.createElement(
520
520
  'span',
521
- { style: { fontWeight: '600', display: 'inline-block' } },
521
+ { style: { display: 'inline-block' } },
522
522
  timeDifferenceCalc(article.published)
523
523
  )
524
524
  ),
@@ -652,7 +652,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
652
652
  ),
653
653
  showTimeDiff && article.published && React__default.createElement(
654
654
  'p',
655
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
655
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
656
656
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
657
657
  if (index > 3) {
658
658
  return null;
@@ -683,7 +683,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
683
683
  ' ',
684
684
  React__default.createElement(
685
685
  'span',
686
- { style: { fontWeight: '600', display: 'inline-block' } },
686
+ { style: { display: 'inline-block' } },
687
687
  timeDifferenceCalc(article.published)
688
688
  )
689
689
  ),
@@ -833,7 +833,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
833
833
  ),
834
834
  showTimeDiff && article.published && React__default.createElement(
835
835
  'p',
836
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
836
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
837
837
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
838
838
  if (index > 3) {
839
839
  return null;
@@ -864,7 +864,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
864
864
  ' ',
865
865
  React__default.createElement(
866
866
  'span',
867
- { style: { fontWeight: '600', display: 'inline-block' } },
867
+ { style: { display: 'inline-block' } },
868
868
  timeDifferenceCalc(article.published)
869
869
  )
870
870
  ),
@@ -993,7 +993,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
993
993
  ),
994
994
  showTimeDiff && article.published && React__default.createElement(
995
995
  'p',
996
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
996
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
997
997
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
998
998
  if (index > 3) {
999
999
  return null;
@@ -1024,7 +1024,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1024
1024
  ' ',
1025
1025
  React__default.createElement(
1026
1026
  'span',
1027
- { style: { fontWeight: '600', display: 'inline-block' } },
1027
+ { style: { display: 'inline-block' } },
1028
1028
  timeDifferenceCalc(article.published)
1029
1029
  )
1030
1030
  ),
@@ -1158,7 +1158,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1158
1158
  ),
1159
1159
  showTimeDiff && article.published && React__default.createElement(
1160
1160
  'p',
1161
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
1161
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
1162
1162
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
1163
1163
  if (index > 3) {
1164
1164
  return null;
@@ -1189,7 +1189,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1189
1189
  ' ',
1190
1190
  React__default.createElement(
1191
1191
  'span',
1192
- { style: { fontWeight: '600', display: 'inline-block' } },
1192
+ { style: { display: 'inline-block' } },
1193
1193
  timeDifferenceCalc(article.published)
1194
1194
  )
1195
1195
  ),
@@ -22,16 +22,14 @@ var timeDifferenceCalc = function timeDifferenceCalc(articlePublishedDate) {
22
22
  diffInMilliSeconds -= minutes * 60;
23
23
 
24
24
  var difference = '';
25
- if (days > 0 && days < 8) {
26
- difference = days === 1 ? days + ' day ago ' : days + ' days ago';
27
- }
25
+
28
26
  if (days == 0 && hours > 0) {
29
27
  difference = hours === 0 || hours === 1 ? hours + ' hour ago ' : hours + ' hours ago';
30
28
  }
31
29
  if (days == 0 && hours == 0 && minutes > 0) {
32
30
  difference = minutes === 0 || hours === 1 ? minutes + ' minute ago' : minutes + ' minutes ago';
33
31
  }
34
- if (days > 7) {
32
+ if (days > 0) {
35
33
  difference = moment.moment(articlePublishedDate).format('MMMM DD, YYYY');
36
34
  }
37
35
 
@@ -310,7 +310,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
310
310
  ),
311
311
  showTimeDiff && article.published && React__default.createElement(
312
312
  'p',
313
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
313
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
314
314
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
315
315
  if (index > 3) {
316
316
  return null;
@@ -341,7 +341,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
341
341
  ' ',
342
342
  React__default.createElement(
343
343
  'span',
344
- { style: { fontWeight: '600', display: 'inline-block' } },
344
+ { style: { display: 'inline-block' } },
345
345
  timeDifferenceCalc(article.published)
346
346
  )
347
347
  ),
@@ -470,7 +470,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
470
470
  ),
471
471
  showTimeDiff && article.published && React__default.createElement(
472
472
  'p',
473
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
473
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
474
474
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
475
475
  if (index > 3) {
476
476
  return null;
@@ -512,7 +512,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
512
512
  ' ',
513
513
  React__default.createElement(
514
514
  'span',
515
- { style: { fontWeight: '600', display: 'inline-block' } },
515
+ { style: { display: 'inline-block' } },
516
516
  timeDifferenceCalc(article.published)
517
517
  )
518
518
  ),
@@ -646,7 +646,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
646
646
  ),
647
647
  showTimeDiff && article.published && React__default.createElement(
648
648
  'p',
649
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
649
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
650
650
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
651
651
  if (index > 3) {
652
652
  return null;
@@ -677,7 +677,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
677
677
  ' ',
678
678
  React__default.createElement(
679
679
  'span',
680
- { style: { fontWeight: '600', display: 'inline-block' } },
680
+ { style: { display: 'inline-block' } },
681
681
  timeDifferenceCalc(article.published)
682
682
  )
683
683
  ),
@@ -827,7 +827,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
827
827
  ),
828
828
  showTimeDiff && article.published && React__default.createElement(
829
829
  'p',
830
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
830
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
831
831
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
832
832
  if (index > 3) {
833
833
  return null;
@@ -858,7 +858,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
858
858
  ' ',
859
859
  React__default.createElement(
860
860
  'span',
861
- { style: { fontWeight: '600', display: 'inline-block' } },
861
+ { style: { display: 'inline-block' } },
862
862
  timeDifferenceCalc(article.published)
863
863
  )
864
864
  ),
@@ -987,7 +987,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
987
987
  ),
988
988
  showTimeDiff && article.published && React__default.createElement(
989
989
  'p',
990
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
990
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
991
991
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
992
992
  if (index > 3) {
993
993
  return null;
@@ -1018,7 +1018,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1018
1018
  ' ',
1019
1019
  React__default.createElement(
1020
1020
  'span',
1021
- { style: { fontWeight: '600', display: 'inline-block' } },
1021
+ { style: { display: 'inline-block' } },
1022
1022
  timeDifferenceCalc(article.published)
1023
1023
  )
1024
1024
  ),
@@ -1152,7 +1152,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1152
1152
  ),
1153
1153
  showTimeDiff && article.published && React__default.createElement(
1154
1154
  'p',
1155
- { className: 'card-text', style: { color: '#767674', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
1155
+ { className: 'card-text', style: { color: '#464644', lineHeight: '1.25', fontSize: '.875rem', margin: '.25rem 0' } },
1156
1156
  showTaxonomies && article.taxonomyMapping && article.taxonomyMapping.map(function (taxonomy, index) {
1157
1157
  if (index > 3) {
1158
1158
  return null;
@@ -1183,7 +1183,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1183
1183
  ' ',
1184
1184
  React__default.createElement(
1185
1185
  'span',
1186
- { style: { fontWeight: '600', display: 'inline-block' } },
1186
+ { style: { display: 'inline-block' } },
1187
1187
  timeDifferenceCalc(article.published)
1188
1188
  )
1189
1189
  ),
@@ -20,16 +20,14 @@ var timeDifferenceCalc = function timeDifferenceCalc(articlePublishedDate) {
20
20
  diffInMilliSeconds -= minutes * 60;
21
21
 
22
22
  var difference = '';
23
- if (days > 0 && days < 8) {
24
- difference = days === 1 ? days + ' day ago ' : days + ' days ago';
25
- }
23
+
26
24
  if (days == 0 && hours > 0) {
27
25
  difference = hours === 0 || hours === 1 ? hours + ' hour ago ' : hours + ' hours ago';
28
26
  }
29
27
  if (days == 0 && hours == 0 && minutes > 0) {
30
28
  difference = minutes === 0 || hours === 1 ? minutes + ' minute ago' : minutes + ' minutes ago';
31
29
  }
32
- if (days > 7) {
30
+ if (days > 0) {
33
31
  difference = moment(articlePublishedDate).format('MMMM DD, YYYY');
34
32
  }
35
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.684",
3
+ "version": "1.0.685",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",