@mjhls/mjh-framework 1.0.939-nojs-pagination-v1 → 1.0.939-nojs-pagination-v2
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/dist/cjs/ArticleProgramLandingPage.js +2 -1
- package/dist/cjs/ArticleSeriesLandingPage.js +2 -1
- package/dist/cjs/MediaSeriesLanding.js +2 -1
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -1
- package/dist/cjs/VideoProgramLandingPage.js +2 -1
- package/dist/esm/ArticleProgramLandingPage.js +2 -1
- package/dist/esm/ArticleSeriesLandingPage.js +2 -1
- package/dist/esm/MediaSeriesLanding.js +2 -1
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -1
- package/package.json +1 -1
|
@@ -141,7 +141,8 @@ ArticleProgramLandingPage.getInitialData = function () {
|
|
|
141
141
|
start = (currentPage - 1) * itemsPerPage;
|
|
142
142
|
params = {
|
|
143
143
|
from: start,
|
|
144
|
-
to: start + itemsPerPage
|
|
144
|
+
to: start + itemsPerPage,
|
|
145
|
+
itemsPerPage: itemsPerPage
|
|
145
146
|
};
|
|
146
147
|
query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && references(\'' + taxonomyId + '\')\n && is_visible == true\n && passwordLock != true \n && defined(published)\n && dateTime(published) <= dateTime(now())] | order(published desc)[$from...$to]{\n title,\n published,\n thumbnail,\n url,\n taxonomy,\n body[_type == "articleSeries"]{\n ...\n },\n \'pageNumber\': ' + currentPage + '\n }';
|
|
147
148
|
postsPromise = client.fetch(query, params);
|
|
@@ -118,7 +118,8 @@ ArticleSeriesLandingPage.getInitialData = function () {
|
|
|
118
118
|
start = (currentPage - 1) * itemsPerPage;
|
|
119
119
|
params = {
|
|
120
120
|
from: start,
|
|
121
|
-
to: start + itemsPerPage
|
|
121
|
+
to: start + itemsPerPage,
|
|
122
|
+
itemsPerPage: itemsPerPage
|
|
122
123
|
};
|
|
123
124
|
query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && references(\'' + taxonomyId + '\')\n && url.current == \'' + seriesName + '\'\n && is_visible == true\n && passwordLock != true \n && defined(published)\n && dateTime(published) <= dateTime(now())] | order(published desc)[$from...$to]{\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n body[_type == "articleSeries"]{\n ...\n },\n }';
|
|
124
125
|
_context.next = 9;
|
|
@@ -396,7 +396,8 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
396
396
|
count: itemsPerPage,
|
|
397
397
|
from: start,
|
|
398
398
|
to: start + itemsPerPage,
|
|
399
|
-
url: pathname
|
|
399
|
+
url: pathname,
|
|
400
|
+
itemsPerPage: itemsPerPage
|
|
400
401
|
};
|
|
401
402
|
_context2.next = 9;
|
|
402
403
|
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
|
|
@@ -418,7 +418,8 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
418
418
|
count: itemsPerPage,
|
|
419
419
|
from: start,
|
|
420
420
|
to: start + itemsPerPage,
|
|
421
|
-
url: pathname
|
|
421
|
+
url: pathname,
|
|
422
|
+
itemsPerPage: itemsPerPage
|
|
422
423
|
};
|
|
423
424
|
_context2.next = 9;
|
|
424
425
|
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
|
|
@@ -233,7 +233,8 @@ VideoProgramLandingPage.getInitialData = function () {
|
|
|
233
233
|
params = {
|
|
234
234
|
from: start,
|
|
235
235
|
to: start + itemsPerPage,
|
|
236
|
-
url: pathname
|
|
236
|
+
url: pathname,
|
|
237
|
+
itemsPerPage: itemsPerPage
|
|
237
238
|
};
|
|
238
239
|
|
|
239
240
|
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail{ ..., asset->},\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|
|
@@ -135,7 +135,8 @@ ArticleProgramLandingPage.getInitialData = function () {
|
|
|
135
135
|
start = (currentPage - 1) * itemsPerPage;
|
|
136
136
|
params = {
|
|
137
137
|
from: start,
|
|
138
|
-
to: start + itemsPerPage
|
|
138
|
+
to: start + itemsPerPage,
|
|
139
|
+
itemsPerPage: itemsPerPage
|
|
139
140
|
};
|
|
140
141
|
query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && references(\'' + taxonomyId + '\')\n && is_visible == true\n && passwordLock != true \n && defined(published)\n && dateTime(published) <= dateTime(now())] | order(published desc)[$from...$to]{\n title,\n published,\n thumbnail,\n url,\n taxonomy,\n body[_type == "articleSeries"]{\n ...\n },\n \'pageNumber\': ' + currentPage + '\n }';
|
|
141
142
|
postsPromise = client.fetch(query, params);
|
|
@@ -112,7 +112,8 @@ ArticleSeriesLandingPage.getInitialData = function () {
|
|
|
112
112
|
start = (currentPage - 1) * itemsPerPage;
|
|
113
113
|
params = {
|
|
114
114
|
from: start,
|
|
115
|
-
to: start + itemsPerPage
|
|
115
|
+
to: start + itemsPerPage,
|
|
116
|
+
itemsPerPage: itemsPerPage
|
|
116
117
|
};
|
|
117
118
|
query = '*[\n _type == \'article\' \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && references(\'' + taxonomyId + '\')\n && url.current == \'' + seriesName + '\'\n && is_visible == true\n && passwordLock != true \n && defined(published)\n && dateTime(published) <= dateTime(now())] | order(published desc)[$from...$to]{\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n body[_type == "articleSeries"]{\n ...\n },\n }';
|
|
118
119
|
_context.next = 9;
|
|
@@ -389,7 +389,8 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
389
389
|
count: itemsPerPage,
|
|
390
390
|
from: start,
|
|
391
391
|
to: start + itemsPerPage,
|
|
392
|
-
url: pathname
|
|
392
|
+
url: pathname,
|
|
393
|
+
itemsPerPage: itemsPerPage
|
|
393
394
|
};
|
|
394
395
|
_context2.next = 9;
|
|
395
396
|
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
|
|
@@ -411,7 +411,8 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
411
411
|
count: itemsPerPage,
|
|
412
412
|
from: start,
|
|
413
413
|
to: start + itemsPerPage,
|
|
414
|
-
url: pathname
|
|
414
|
+
url: pathname,
|
|
415
|
+
itemsPerPage: itemsPerPage
|
|
415
416
|
};
|
|
416
417
|
_context2.next = 9;
|
|
417
418
|
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name,\n description\n }');
|
|
@@ -224,7 +224,8 @@ VideoProgramLandingPage.getInitialData = function () {
|
|
|
224
224
|
params = {
|
|
225
225
|
from: start,
|
|
226
226
|
to: start + itemsPerPage,
|
|
227
|
-
url: pathname
|
|
227
|
+
url: pathname,
|
|
228
|
+
itemsPerPage: itemsPerPage
|
|
228
229
|
};
|
|
229
230
|
|
|
230
231
|
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail{ ..., asset->},\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|