@mjhls/mjh-framework 1.0.904 → 1.0.905
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.905
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -399,7 +399,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
399
399
|
};
|
|
400
400
|
|
|
401
401
|
MediaSeriesLanding.getInitialData = function () {
|
|
402
|
-
var _ref5 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
402
|
+
var _ref5 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache, parameters) {
|
|
403
403
|
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQueryFilters, seriesQuerySorts, seriesQueryProjection, seriesQuery, totalSeriesCountQuery, _ref6, _ref7, seriesData, totalSeriesCount, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
404
404
|
|
|
405
405
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -408,7 +408,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
408
408
|
case 0:
|
|
409
409
|
urlQuery = ctx.query, pathname = ctx.pathname;
|
|
410
410
|
identifier = pathname.replace('/', '');
|
|
411
|
-
itemsPerPage = 30;
|
|
411
|
+
itemsPerPage = parameters && parameters.itemsPerPage ? parameters.itemsPerPage : 30;
|
|
412
412
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
413
413
|
start = (currentPage - 1) * itemsPerPage;
|
|
414
414
|
statusCode = 200;
|
|
@@ -517,7 +517,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
517
517
|
}, _callee2, _this);
|
|
518
518
|
}));
|
|
519
519
|
|
|
520
|
-
return function (_x, _x2, _x3) {
|
|
520
|
+
return function (_x, _x2, _x3, _x4) {
|
|
521
521
|
return _ref5.apply(this, arguments);
|
|
522
522
|
};
|
|
523
523
|
}();
|
|
@@ -392,7 +392,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
392
392
|
};
|
|
393
393
|
|
|
394
394
|
MediaSeriesLanding.getInitialData = function () {
|
|
395
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
395
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache, parameters) {
|
|
396
396
|
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQueryFilters, seriesQuerySorts, seriesQueryProjection, seriesQuery, totalSeriesCountQuery, _ref6, _ref7, seriesData, totalSeriesCount, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
397
397
|
|
|
398
398
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -401,7 +401,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
401
401
|
case 0:
|
|
402
402
|
urlQuery = ctx.query, pathname = ctx.pathname;
|
|
403
403
|
identifier = pathname.replace('/', '');
|
|
404
|
-
itemsPerPage = 30;
|
|
404
|
+
itemsPerPage = parameters && parameters.itemsPerPage ? parameters.itemsPerPage : 30;
|
|
405
405
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
406
406
|
start = (currentPage - 1) * itemsPerPage;
|
|
407
407
|
statusCode = 200;
|
|
@@ -510,7 +510,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
510
510
|
}, _callee2, _this);
|
|
511
511
|
}));
|
|
512
512
|
|
|
513
|
-
return function (_x, _x2, _x3) {
|
|
513
|
+
return function (_x, _x2, _x3, _x4) {
|
|
514
514
|
return _ref5.apply(this, arguments);
|
|
515
515
|
};
|
|
516
516
|
}();
|