musora-content-services 1.0.228 → 1.0.230
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/.github/workflows/node.js.yml +0 -0
- package/CHANGELOG.md +4 -0
- package/README.md +0 -0
- package/babel.config.js +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/scripts/collapse.js +0 -0
- package/docs/scripts/commonNav.js +0 -0
- package/docs/scripts/linenumber.js +0 -0
- package/docs/scripts/nav.js +0 -0
- package/docs/scripts/polyfill.js +0 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
- package/docs/scripts/prettify/lang-css.js +0 -0
- package/docs/scripts/prettify/prettify.js +0 -0
- package/docs/scripts/search.js +0 -0
- package/docs/styles/jsdoc.css +0 -0
- package/docs/styles/prettify.css +0 -0
- package/jest.config.js +0 -0
- package/jsdoc.json +0 -0
- package/package.json +1 -1
- package/src/contentMetaData.js +1 -1
- package/src/contentTypeConfig.js +3 -1
- package/src/services/contentLikes.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/railcontent.js +3 -2
- package/src/services/sanity.js +3 -3
- package/src/services/userPermissions.js +0 -0
- package/test/contentLikes.test.js +0 -0
- package/test/initializeTests.js +0 -0
- package/test/lastUpdated.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
- package/test/userPermissions.test.js +0 -0
- package/tools/generate-index.js +0 -0
|
File without changes
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.230](https://github.com/railroadmedia/musora-content-services/compare/v1.0.229...v1.0.230) (2024-12-10)
|
|
6
|
+
|
|
7
|
+
### [1.0.229](https://github.com/railroadmedia/musora-content-services/compare/v1.0.228...v1.0.229) (2024-12-09)
|
|
8
|
+
|
|
5
9
|
### [1.0.228](https://github.com/railroadmedia/musora-content-services/compare/v1.0.227...v1.0.228) (2024-12-09)
|
|
6
10
|
|
|
7
11
|
### [1.0.227](https://github.com/railroadmedia/musora-content-services/compare/v1.0.226...v1.0.227) (2024-12-08)
|
package/README.md
CHANGED
|
File without changes
|
package/babel.config.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/collapse.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/nav.js
CHANGED
|
File without changes
|
package/docs/scripts/polyfill.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/search.js
CHANGED
|
File without changes
|
package/docs/styles/jsdoc.css
CHANGED
|
File without changes
|
package/docs/styles/prettify.css
CHANGED
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
package/jsdoc.json
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/contentMetaData.js
CHANGED
package/src/contentTypeConfig.js
CHANGED
|
@@ -259,7 +259,7 @@ let contentTypeConfig = {
|
|
|
259
259
|
},
|
|
260
260
|
'pack': {
|
|
261
261
|
'fields': [
|
|
262
|
-
'"lesson_count":
|
|
262
|
+
'"lesson_count": coalesce(count(child[]->.child[]->), 0)',
|
|
263
263
|
'xp',
|
|
264
264
|
`"description": ${descriptionField}`,
|
|
265
265
|
'"instructors": instructor[]->name',
|
|
@@ -323,6 +323,8 @@ let contentTypeConfig = {
|
|
|
323
323
|
"type": _type,
|
|
324
324
|
"description": ${descriptionField},
|
|
325
325
|
xp,
|
|
326
|
+
web_url_path,
|
|
327
|
+
"url": web_url_path,
|
|
326
328
|
}`
|
|
327
329
|
]
|
|
328
330
|
},
|
|
File without changes
|
|
File without changes
|
|
@@ -486,8 +486,9 @@ export async function fetchChallengeUserActiveChallenges(brand = null) {
|
|
|
486
486
|
*
|
|
487
487
|
* @returns {Promise<any|null>}
|
|
488
488
|
*/
|
|
489
|
-
export async function fetchCarouselCardData() {
|
|
490
|
-
|
|
489
|
+
export async function fetchCarouselCardData(brand = null) {
|
|
490
|
+
const brandParam = brand ? `?brand=${brand}` : '';
|
|
491
|
+
let url = `/api/v1/content/carousel${brandParam}`;
|
|
491
492
|
return await fetchHandler(url, 'get');
|
|
492
493
|
}
|
|
493
494
|
|
package/src/services/sanity.js
CHANGED
|
@@ -296,7 +296,7 @@ export async function fetchNewReleases(brand, {page = 1, limit = 20, sort = "-pu
|
|
|
296
296
|
"id": railcontent_id,
|
|
297
297
|
title,
|
|
298
298
|
"image": thumbnail.asset->url,
|
|
299
|
-
|
|
299
|
+
${artistOrInstructorName()},
|
|
300
300
|
"artists": instructor[]->name,
|
|
301
301
|
difficulty,
|
|
302
302
|
difficulty_string,
|
|
@@ -344,7 +344,7 @@ export async function fetchUpcomingEvents(brand, {page = 1, limit = 10} = {}) {
|
|
|
344
344
|
"id": railcontent_id,
|
|
345
345
|
title,
|
|
346
346
|
"image": thumbnail.asset->url,
|
|
347
|
-
|
|
347
|
+
${artistOrInstructorName()},
|
|
348
348
|
"artists": instructor[]->name,
|
|
349
349
|
difficulty,
|
|
350
350
|
difficulty_string,
|
|
@@ -392,7 +392,7 @@ export async function fetchScheduledReleases(brand, {page = 1, limit = 10}) {
|
|
|
392
392
|
"id": railcontent_id,
|
|
393
393
|
title,
|
|
394
394
|
"image": thumbnail.asset->url,
|
|
395
|
-
|
|
395
|
+
${artistOrInstructorName()},
|
|
396
396
|
"artists": instructor[]->name,
|
|
397
397
|
difficulty,
|
|
398
398
|
difficulty_string,
|
|
File without changes
|
|
File without changes
|
package/test/initializeTests.js
CHANGED
|
File without changes
|
package/test/lastUpdated.test.js
CHANGED
|
File without changes
|
package/test/localStorageMock.js
CHANGED
|
File without changes
|
package/test/log.js
CHANGED
|
File without changes
|
|
File without changes
|
package/tools/generate-index.js
CHANGED
|
File without changes
|