@mjhls/mjh-framework 1.0.893 → 1.0.894

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.893
1
+ # mjh-framework v. 1.0.894
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
@@ -234,7 +234,7 @@ VideoProgramLandingPage.getInitialData = function () {
234
234
  url: pathname
235
235
  };
236
236
 
237
- 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,\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"],\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
237
+ 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}';
238
238
  _context.next = 26;
239
239
  return client.fetch(query, params);
240
240
 
@@ -44,7 +44,7 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
44
44
  case 0:
45
45
  loadingStatus && loadingStatus(true);
46
46
  filteredList(null);
47
- query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
47
+ query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail{ ..., asset->},\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \'pageNumber\': ' + currentPage + '\n }';
48
48
  _context.next = 5;
49
49
  return client.fetch(query, params).then(function (res) {
50
50
  filteredList({ posts: res, query: query });
@@ -225,7 +225,7 @@ VideoProgramLandingPage.getInitialData = function () {
225
225
  url: pathname
226
226
  };
227
227
 
228
- 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,\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"],\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
228
+ 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}';
229
229
  _context.next = 26;
230
230
  return client.fetch(query, params);
231
231
 
@@ -38,7 +38,7 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
38
38
  case 0:
39
39
  loadingStatus && loadingStatus(true);
40
40
  filteredList(null);
41
- query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
41
+ query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail{ ..., asset->},\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \'pageNumber\': ' + currentPage + '\n }';
42
42
  _context.next = 5;
43
43
  return client.fetch(query, params).then(function (res) {
44
44
  filteredList({ posts: res, query: query });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.893",
3
+ "version": "1.0.894",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",