@mjhls/mjh-framework 1.0.684 → 1.0.686
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
|
@@ -156,7 +156,7 @@ var checkExternalUrl = function checkExternalUrl(url) {
|
|
|
156
156
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies) {
|
|
159
|
+
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro) {
|
|
160
160
|
var numberOfItemsBeforeAd = 6;
|
|
161
161
|
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
162
162
|
return [].concat(toConsumableArray._toConsumableArray(arr.slice(0, index)), [newElement], toConsumableArray._toConsumableArray(arr.slice(index)));
|
|
@@ -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: '#
|
|
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: {
|
|
350
|
+
{ style: { display: 'inline-block' } },
|
|
351
351
|
timeDifferenceCalc(article.published)
|
|
352
352
|
)
|
|
353
353
|
),
|
|
@@ -412,7 +412,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
412
412
|
article.issue
|
|
413
413
|
)
|
|
414
414
|
),
|
|
415
|
-
article.summary && React__default.createElement(
|
|
415
|
+
showIntro && article.summary && React__default.createElement(
|
|
416
416
|
'p',
|
|
417
417
|
{ className: 'pt-2 card-text' },
|
|
418
418
|
entities.clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
521
|
+
{ style: { display: 'inline-block' } },
|
|
522
522
|
timeDifferenceCalc(article.published)
|
|
523
523
|
)
|
|
524
524
|
),
|
|
@@ -583,7 +583,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
583
583
|
article.issue
|
|
584
584
|
)
|
|
585
585
|
),
|
|
586
|
-
article.summary && React__default.createElement(
|
|
586
|
+
showIntro && article.summary && React__default.createElement(
|
|
587
587
|
'p',
|
|
588
588
|
{ className: 'pt-2 card-text' },
|
|
589
589
|
entities.clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
686
|
+
{ style: { display: 'inline-block' } },
|
|
687
687
|
timeDifferenceCalc(article.published)
|
|
688
688
|
)
|
|
689
689
|
),
|
|
@@ -752,7 +752,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
752
752
|
article.issue
|
|
753
753
|
)
|
|
754
754
|
),
|
|
755
|
-
article.summary && React__default.createElement(
|
|
755
|
+
showIntro && article.summary && React__default.createElement(
|
|
756
756
|
'p',
|
|
757
757
|
{ className: 'pt-2 card-text' },
|
|
758
758
|
entities.clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
867
|
+
{ style: { display: 'inline-block' } },
|
|
868
868
|
timeDifferenceCalc(article.published)
|
|
869
869
|
)
|
|
870
870
|
),
|
|
@@ -929,7 +929,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
929
929
|
article.issue
|
|
930
930
|
)
|
|
931
931
|
),
|
|
932
|
-
article.summary && React__default.createElement(
|
|
932
|
+
showIntro && article.summary && React__default.createElement(
|
|
933
933
|
'p',
|
|
934
934
|
{ className: 'pt-2 card-text' },
|
|
935
935
|
entities.clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
1027
|
+
{ style: { display: 'inline-block' } },
|
|
1028
1028
|
timeDifferenceCalc(article.published)
|
|
1029
1029
|
)
|
|
1030
1030
|
),
|
|
@@ -1089,7 +1089,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1089
1089
|
article.issue
|
|
1090
1090
|
)
|
|
1091
1091
|
),
|
|
1092
|
-
article.summary && React__default.createElement(
|
|
1092
|
+
showIntro && article.summary && React__default.createElement(
|
|
1093
1093
|
'p',
|
|
1094
1094
|
{ className: 'pt-2 card-text' },
|
|
1095
1095
|
entities.clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
1192
|
+
{ style: { display: 'inline-block' } },
|
|
1193
1193
|
timeDifferenceCalc(article.published)
|
|
1194
1194
|
)
|
|
1195
1195
|
),
|
|
@@ -1258,7 +1258,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1258
1258
|
article.issue
|
|
1259
1259
|
)
|
|
1260
1260
|
),
|
|
1261
|
-
article.summary && React__default.createElement(
|
|
1261
|
+
showIntro && article.summary && React__default.createElement(
|
|
1262
1262
|
'p',
|
|
1263
1263
|
{ className: 'pt-2 card-text' },
|
|
1264
1264
|
entities.clean_html_1(article.summary)
|
|
@@ -1368,6 +1368,8 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1368
1368
|
showTimeDiff = _props$showTimeDiff === undefined ? false : _props$showTimeDiff,
|
|
1369
1369
|
_props$showTaxonomies = props.showTaxonomies,
|
|
1370
1370
|
showTaxonomies = _props$showTaxonomies === undefined ? false : _props$showTaxonomies,
|
|
1371
|
+
_props$showIntro = props.showIntro,
|
|
1372
|
+
showIntro = _props$showIntro === undefined ? true : _props$showIntro,
|
|
1371
1373
|
_props$contentCategor = props.contentCategoryMapping,
|
|
1372
1374
|
contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor;
|
|
1373
1375
|
var initialCurrentPage = props.currentPage,
|
|
@@ -1486,7 +1488,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1486
1488
|
React__default.createElement(
|
|
1487
1489
|
reactBootstrap.Container,
|
|
1488
1490
|
null,
|
|
1489
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies)
|
|
1491
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1490
1492
|
)
|
|
1491
1493
|
),
|
|
1492
1494
|
React__default.createElement(
|
|
@@ -1500,7 +1502,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1500
1502
|
React__default.createElement(
|
|
1501
1503
|
reactBootstrap.Container,
|
|
1502
1504
|
null,
|
|
1503
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies)
|
|
1505
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1504
1506
|
),
|
|
1505
1507
|
React__default.createElement(
|
|
1506
1508
|
'div',
|
|
@@ -22,16 +22,14 @@ var timeDifferenceCalc = function timeDifferenceCalc(articlePublishedDate) {
|
|
|
22
22
|
diffInMilliSeconds -= minutes * 60;
|
|
23
23
|
|
|
24
24
|
var difference = '';
|
|
25
|
-
|
|
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 >
|
|
32
|
+
if (days > 0) {
|
|
35
33
|
difference = moment.moment(articlePublishedDate).format('MMMM DD, YYYY');
|
|
36
34
|
}
|
|
37
35
|
|
|
@@ -150,7 +150,7 @@ var checkExternalUrl = function checkExternalUrl(url) {
|
|
|
150
150
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies) {
|
|
153
|
+
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro) {
|
|
154
154
|
var numberOfItemsBeforeAd = 6;
|
|
155
155
|
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
156
156
|
return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
|
|
@@ -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: '#
|
|
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: {
|
|
344
|
+
{ style: { display: 'inline-block' } },
|
|
345
345
|
timeDifferenceCalc(article.published)
|
|
346
346
|
)
|
|
347
347
|
),
|
|
@@ -406,7 +406,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
406
406
|
article.issue
|
|
407
407
|
)
|
|
408
408
|
),
|
|
409
|
-
article.summary && React__default.createElement(
|
|
409
|
+
showIntro && article.summary && React__default.createElement(
|
|
410
410
|
'p',
|
|
411
411
|
{ className: 'pt-2 card-text' },
|
|
412
412
|
clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
515
|
+
{ style: { display: 'inline-block' } },
|
|
516
516
|
timeDifferenceCalc(article.published)
|
|
517
517
|
)
|
|
518
518
|
),
|
|
@@ -577,7 +577,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
577
577
|
article.issue
|
|
578
578
|
)
|
|
579
579
|
),
|
|
580
|
-
article.summary && React__default.createElement(
|
|
580
|
+
showIntro && article.summary && React__default.createElement(
|
|
581
581
|
'p',
|
|
582
582
|
{ className: 'pt-2 card-text' },
|
|
583
583
|
clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
680
|
+
{ style: { display: 'inline-block' } },
|
|
681
681
|
timeDifferenceCalc(article.published)
|
|
682
682
|
)
|
|
683
683
|
),
|
|
@@ -746,7 +746,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
746
746
|
article.issue
|
|
747
747
|
)
|
|
748
748
|
),
|
|
749
|
-
article.summary && React__default.createElement(
|
|
749
|
+
showIntro && article.summary && React__default.createElement(
|
|
750
750
|
'p',
|
|
751
751
|
{ className: 'pt-2 card-text' },
|
|
752
752
|
clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
861
|
+
{ style: { display: 'inline-block' } },
|
|
862
862
|
timeDifferenceCalc(article.published)
|
|
863
863
|
)
|
|
864
864
|
),
|
|
@@ -923,7 +923,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
923
923
|
article.issue
|
|
924
924
|
)
|
|
925
925
|
),
|
|
926
|
-
article.summary && React__default.createElement(
|
|
926
|
+
showIntro && article.summary && React__default.createElement(
|
|
927
927
|
'p',
|
|
928
928
|
{ className: 'pt-2 card-text' },
|
|
929
929
|
clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
1021
|
+
{ style: { display: 'inline-block' } },
|
|
1022
1022
|
timeDifferenceCalc(article.published)
|
|
1023
1023
|
)
|
|
1024
1024
|
),
|
|
@@ -1083,7 +1083,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1083
1083
|
article.issue
|
|
1084
1084
|
)
|
|
1085
1085
|
),
|
|
1086
|
-
article.summary && React__default.createElement(
|
|
1086
|
+
showIntro && article.summary && React__default.createElement(
|
|
1087
1087
|
'p',
|
|
1088
1088
|
{ className: 'pt-2 card-text' },
|
|
1089
1089
|
clean_html_1(article.summary)
|
|
@@ -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: '#
|
|
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: {
|
|
1186
|
+
{ style: { display: 'inline-block' } },
|
|
1187
1187
|
timeDifferenceCalc(article.published)
|
|
1188
1188
|
)
|
|
1189
1189
|
),
|
|
@@ -1252,7 +1252,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1252
1252
|
article.issue
|
|
1253
1253
|
)
|
|
1254
1254
|
),
|
|
1255
|
-
article.summary && React__default.createElement(
|
|
1255
|
+
showIntro && article.summary && React__default.createElement(
|
|
1256
1256
|
'p',
|
|
1257
1257
|
{ className: 'pt-2 card-text' },
|
|
1258
1258
|
clean_html_1(article.summary)
|
|
@@ -1362,6 +1362,8 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1362
1362
|
showTimeDiff = _props$showTimeDiff === undefined ? false : _props$showTimeDiff,
|
|
1363
1363
|
_props$showTaxonomies = props.showTaxonomies,
|
|
1364
1364
|
showTaxonomies = _props$showTaxonomies === undefined ? false : _props$showTaxonomies,
|
|
1365
|
+
_props$showIntro = props.showIntro,
|
|
1366
|
+
showIntro = _props$showIntro === undefined ? true : _props$showIntro,
|
|
1365
1367
|
_props$contentCategor = props.contentCategoryMapping,
|
|
1366
1368
|
contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor;
|
|
1367
1369
|
var initialCurrentPage = props.currentPage,
|
|
@@ -1480,7 +1482,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1480
1482
|
React__default.createElement(
|
|
1481
1483
|
Container,
|
|
1482
1484
|
null,
|
|
1483
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies)
|
|
1485
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1484
1486
|
)
|
|
1485
1487
|
),
|
|
1486
1488
|
React__default.createElement(
|
|
@@ -1494,7 +1496,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1494
1496
|
React__default.createElement(
|
|
1495
1497
|
Container,
|
|
1496
1498
|
null,
|
|
1497
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies)
|
|
1499
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping, showTimeDiff, showTaxonomies, showIntro)
|
|
1498
1500
|
),
|
|
1499
1501
|
React__default.createElement(
|
|
1500
1502
|
'div',
|
|
@@ -20,16 +20,14 @@ var timeDifferenceCalc = function timeDifferenceCalc(articlePublishedDate) {
|
|
|
20
20
|
diffInMilliSeconds -= minutes * 60;
|
|
21
21
|
|
|
22
22
|
var difference = '';
|
|
23
|
-
|
|
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 >
|
|
30
|
+
if (days > 0) {
|
|
33
31
|
difference = moment(articlePublishedDate).format('MMMM DD, YYYY');
|
|
34
32
|
}
|
|
35
33
|
|