@mjhls/mjh-framework 1.0.796 → 1.0.798
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 +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -2
- package/dist/cjs/View.js +7 -11
- package/dist/esm/MediaSeriesLanding.js +6 -2
- package/dist/esm/View.js +7 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
# mjh-framework v. 1.0.
|
|
2
|
+
# mjh-framework v. 1.0.798
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
@@ -9666,7 +9666,7 @@ var Filter = function Filter(_ref) {
|
|
|
9666
9666
|
);
|
|
9667
9667
|
})
|
|
9668
9668
|
),
|
|
9669
|
-
childData && React__default['default'].createElement(
|
|
9669
|
+
childData && childData.data && childData.data.length > 0 && React__default['default'].createElement(
|
|
9670
9670
|
DropdownButton,
|
|
9671
9671
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9672
9672
|
React__default['default'].createElement(
|
|
@@ -9687,7 +9687,7 @@ var Filter = function Filter(_ref) {
|
|
|
9687
9687
|
);
|
|
9688
9688
|
})
|
|
9689
9689
|
),
|
|
9690
|
-
grandChildData && React__default['default'].createElement(
|
|
9690
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default['default'].createElement(
|
|
9691
9691
|
DropdownButton,
|
|
9692
9692
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9693
9693
|
React__default['default'].createElement(
|
|
@@ -9928,6 +9928,10 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9928
9928
|
child.name = null;
|
|
9929
9929
|
}
|
|
9930
9930
|
});
|
|
9931
|
+
|
|
9932
|
+
topic.children = topic.children.filter(function (child) {
|
|
9933
|
+
return child._id !== null;
|
|
9934
|
+
});
|
|
9931
9935
|
}
|
|
9932
9936
|
});
|
|
9933
9937
|
|
package/dist/cjs/View.js
CHANGED
|
@@ -1123,16 +1123,6 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1123
1123
|
summary
|
|
1124
1124
|
)
|
|
1125
1125
|
),
|
|
1126
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default['default'].createElement(
|
|
1127
|
-
'div',
|
|
1128
|
-
null,
|
|
1129
|
-
thumbnail && React__default['default'].createElement(
|
|
1130
|
-
'div',
|
|
1131
|
-
{ style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
1132
|
-
React__default['default'].createElement('img', { style: { maxWidth: '100%', maxHeight: '300px' }, src: urlFor(props.client, thumbnail) })
|
|
1133
|
-
),
|
|
1134
|
-
React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1135
|
-
),
|
|
1136
1126
|
React__default['default'].createElement(
|
|
1137
1127
|
'div',
|
|
1138
1128
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
@@ -1189,6 +1179,12 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1189
1179
|
)
|
|
1190
1180
|
),
|
|
1191
1181
|
React__default['default'].createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1182
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default['default'].createElement(
|
|
1183
|
+
'div',
|
|
1184
|
+
null,
|
|
1185
|
+
false ,
|
|
1186
|
+
React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1187
|
+
),
|
|
1192
1188
|
showRelatedArticles && !showIsi && React__default['default'].createElement(RelatedContent, null),
|
|
1193
1189
|
disqusConfig && showDisqus && React__default['default'].createElement(
|
|
1194
1190
|
'div',
|
|
@@ -1723,7 +1719,7 @@ View.returnGetInitialProps = function () {
|
|
|
1723
1719
|
}
|
|
1724
1720
|
|
|
1725
1721
|
_context.next = 11;
|
|
1726
|
-
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && is_visible == true\n &&
|
|
1722
|
+
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }');
|
|
1727
1723
|
|
|
1728
1724
|
case 11:
|
|
1729
1725
|
sliderArticles = _context.sent;
|
|
@@ -9657,7 +9657,7 @@ var Filter = function Filter(_ref) {
|
|
|
9657
9657
|
);
|
|
9658
9658
|
})
|
|
9659
9659
|
),
|
|
9660
|
-
childData && React__default.createElement(
|
|
9660
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9661
9661
|
DropdownButton,
|
|
9662
9662
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9663
9663
|
React__default.createElement(
|
|
@@ -9678,7 +9678,7 @@ var Filter = function Filter(_ref) {
|
|
|
9678
9678
|
);
|
|
9679
9679
|
})
|
|
9680
9680
|
),
|
|
9681
|
-
grandChildData && React__default.createElement(
|
|
9681
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9682
9682
|
DropdownButton,
|
|
9683
9683
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9684
9684
|
React__default.createElement(
|
|
@@ -9919,6 +9919,10 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9919
9919
|
child.name = null;
|
|
9920
9920
|
}
|
|
9921
9921
|
});
|
|
9922
|
+
|
|
9923
|
+
topic.children = topic.children.filter(function (child) {
|
|
9924
|
+
return child._id !== null;
|
|
9925
|
+
});
|
|
9922
9926
|
}
|
|
9923
9927
|
});
|
|
9924
9928
|
|
package/dist/esm/View.js
CHANGED
|
@@ -1113,16 +1113,6 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1113
1113
|
summary
|
|
1114
1114
|
)
|
|
1115
1115
|
),
|
|
1116
|
-
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1117
|
-
'div',
|
|
1118
|
-
null,
|
|
1119
|
-
thumbnail && React__default.createElement(
|
|
1120
|
-
'div',
|
|
1121
|
-
{ style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
1122
|
-
React__default.createElement('img', { style: { maxWidth: '100%', maxHeight: '300px' }, src: urlFor(props.client, thumbnail) })
|
|
1123
|
-
),
|
|
1124
|
-
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1125
|
-
),
|
|
1126
1116
|
React__default.createElement(
|
|
1127
1117
|
'div',
|
|
1128
1118
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
@@ -1179,6 +1169,12 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1179
1169
|
)
|
|
1180
1170
|
),
|
|
1181
1171
|
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
1172
|
+
article.documentGroup && article.documentGroup.isSeries && props.sliderData && !seriesInfo.hasVideo && React__default.createElement(
|
|
1173
|
+
'div',
|
|
1174
|
+
null,
|
|
1175
|
+
false ,
|
|
1176
|
+
React__default.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true })
|
|
1177
|
+
),
|
|
1182
1178
|
showRelatedArticles && !showIsi && React__default.createElement(RelatedContent, null),
|
|
1183
1179
|
disqusConfig && showDisqus && React__default.createElement(
|
|
1184
1180
|
'div',
|
|
@@ -1713,7 +1709,7 @@ View.returnGetInitialProps = function () {
|
|
|
1713
1709
|
}
|
|
1714
1710
|
|
|
1715
1711
|
_context.next = 11;
|
|
1716
|
-
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && is_visible == true\n &&
|
|
1712
|
+
return client.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\'' + article.documentGroup._id + '\')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }');
|
|
1717
1713
|
|
|
1718
1714
|
case 11:
|
|
1719
1715
|
sliderArticles = _context.sent;
|