@mjhls/mjh-framework 1.0.1026 → 1.0.1028-noindex-test
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,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.1028
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
package/dist/cjs/MasterDeck.js
CHANGED
|
@@ -61,7 +61,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
61
61
|
args[_key] = arguments[_key];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
return _ret = (_temp = (_this = inherits._possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || inherits._Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.client = _this.props.client, _this.state = {
|
|
64
|
+
return _ret = (_temp = (_this = inherits._possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || inherits._Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.client = _this.props.client, _this.disableEpisodeNumber = _this.props.disableEpisodeNumber ? _this.props.disableEpisodeNumber : false, _this.state = {
|
|
65
65
|
data: _this.data,
|
|
66
66
|
dataKeptToCompareNewDatarecord: _this.data,
|
|
67
67
|
per: _this.params ? _this.params.to : 2,
|
|
@@ -357,7 +357,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
357
357
|
React__default["default"].createElement(
|
|
358
358
|
React__default["default"].Fragment,
|
|
359
359
|
{ key: index },
|
|
360
|
-
React__default["default"].createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
360
|
+
React__default["default"].createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding, disableEpisodeNumber: _this.disableEpisodeNumber }),
|
|
361
361
|
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default["default"].createElement(
|
|
362
362
|
'div',
|
|
363
363
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
@@ -382,7 +382,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
382
382
|
React__default["default"].createElement(
|
|
383
383
|
React__default["default"].Fragment,
|
|
384
384
|
{ key: index },
|
|
385
|
-
React__default["default"].createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
385
|
+
React__default["default"].createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding, disableEpisodeNumber: _this.disableEpisodeNumber })
|
|
386
386
|
)
|
|
387
387
|
);
|
|
388
388
|
}
|
|
@@ -164,7 +164,7 @@ TaxonomyDescription.getDescription = function () {
|
|
|
164
164
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2() {
|
|
165
165
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
166
166
|
var client = arguments[1];
|
|
167
|
-
var ref_query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
167
|
+
var ref_query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
168
168
|
var query, summary, taxonomyData;
|
|
169
169
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
170
170
|
while (1) {
|
package/dist/cjs/View.js
CHANGED
|
@@ -2490,7 +2490,7 @@ var View = function View(props) {
|
|
|
2490
2490
|
),
|
|
2491
2491
|
metaDescriptionSanity ? React__default["default"].createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default["default"].createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
2492
2492
|
React__default["default"].createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
2493
|
-
passwordLock && React__default["default"].createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2493
|
+
(passwordLock || article.applyNoIndexTag) && React__default["default"].createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2494
2494
|
React__default["default"].createElement('meta', {
|
|
2495
2495
|
property: 'og:url',
|
|
2496
2496
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2636,6 +2636,7 @@ View.returnGetInitialProps = function () {
|
|
|
2636
2636
|
});
|
|
2637
2637
|
}
|
|
2638
2638
|
sponsoredFlag = false;
|
|
2639
|
+
|
|
2639
2640
|
// check for disableAds flag on each taxonomoy
|
|
2640
2641
|
|
|
2641
2642
|
if (article && article.content_placement) {
|
|
@@ -2643,6 +2644,9 @@ View.returnGetInitialProps = function () {
|
|
|
2643
2644
|
if (x.disableAds) {
|
|
2644
2645
|
sponsoredFlag = true;
|
|
2645
2646
|
}
|
|
2647
|
+
if (x.applyNoIndexTag) {
|
|
2648
|
+
article.applyNoIndexTag = true;
|
|
2649
|
+
}
|
|
2646
2650
|
});
|
|
2647
2651
|
}
|
|
2648
2652
|
// check for disableAds flag on content category
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -54,7 +54,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
54
54
|
args[_key] = arguments[_key];
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || _Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.client = _this.props.client, _this.state = {
|
|
57
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || _Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.client = _this.props.client, _this.disableEpisodeNumber = _this.props.disableEpisodeNumber ? _this.props.disableEpisodeNumber : false, _this.state = {
|
|
58
58
|
data: _this.data,
|
|
59
59
|
dataKeptToCompareNewDatarecord: _this.data,
|
|
60
60
|
per: _this.params ? _this.params.to : 2,
|
|
@@ -350,7 +350,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
350
350
|
React__default.createElement(
|
|
351
351
|
React__default.Fragment,
|
|
352
352
|
{ key: index },
|
|
353
|
-
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
353
|
+
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding, disableEpisodeNumber: _this.disableEpisodeNumber }),
|
|
354
354
|
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
355
355
|
'div',
|
|
356
356
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
@@ -375,7 +375,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
375
375
|
React__default.createElement(
|
|
376
376
|
React__default.Fragment,
|
|
377
377
|
{ key: index },
|
|
378
|
-
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
378
|
+
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding, disableEpisodeNumber: _this.disableEpisodeNumber })
|
|
379
379
|
)
|
|
380
380
|
);
|
|
381
381
|
}
|
|
@@ -157,7 +157,7 @@ TaxonomyDescription.getDescription = function () {
|
|
|
157
157
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
158
158
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
159
159
|
var client = arguments[1];
|
|
160
|
-
var ref_query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
160
|
+
var ref_query = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
161
161
|
var query, summary, taxonomyData;
|
|
162
162
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
163
163
|
while (1) {
|
package/dist/esm/View.js
CHANGED
|
@@ -2480,7 +2480,7 @@ var View = function View(props) {
|
|
|
2480
2480
|
),
|
|
2481
2481
|
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
2482
2482
|
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
2483
|
-
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2483
|
+
(passwordLock || article.applyNoIndexTag) && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2484
2484
|
React__default.createElement('meta', {
|
|
2485
2485
|
property: 'og:url',
|
|
2486
2486
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2626,6 +2626,7 @@ View.returnGetInitialProps = function () {
|
|
|
2626
2626
|
});
|
|
2627
2627
|
}
|
|
2628
2628
|
sponsoredFlag = false;
|
|
2629
|
+
|
|
2629
2630
|
// check for disableAds flag on each taxonomoy
|
|
2630
2631
|
|
|
2631
2632
|
if (article && article.content_placement) {
|
|
@@ -2633,6 +2634,9 @@ View.returnGetInitialProps = function () {
|
|
|
2633
2634
|
if (x.disableAds) {
|
|
2634
2635
|
sponsoredFlag = true;
|
|
2635
2636
|
}
|
|
2637
|
+
if (x.applyNoIndexTag) {
|
|
2638
|
+
article.applyNoIndexTag = true;
|
|
2639
|
+
}
|
|
2636
2640
|
});
|
|
2637
2641
|
}
|
|
2638
2642
|
// check for disableAds flag on content category
|