musora-content-services 1.0.254 → 1.0.256
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/services/contentLikes.js +0 -0
- package/src/services/lastUpdated.js +0 -0
- package/src/services/sanity.js +27 -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/live/contentProgressLive.test.js +0 -0
- package/test/live/railcontentLive.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.256](https://github.com/railroadmedia/musora-content-services/compare/v1.0.255...v1.0.256) (2025-01-02)
|
|
6
|
+
|
|
7
|
+
### [1.0.255](https://github.com/railroadmedia/musora-content-services/compare/v1.0.254...v1.0.255) (2025-01-02)
|
|
8
|
+
|
|
5
9
|
### [1.0.254](https://github.com/railroadmedia/musora-content-services/compare/v1.0.253...v1.0.254) (2024-12-20)
|
|
6
10
|
|
|
7
11
|
### [1.0.253](https://github.com/railroadmedia/musora-content-services/compare/v1.0.252...v1.0.253) (2024-12-20)
|
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
|
File without changes
|
|
File without changes
|
package/src/services/sanity.js
CHANGED
|
@@ -928,6 +928,12 @@ export async function fetchParentByRailContentId(railcontentId) {
|
|
|
928
928
|
*/
|
|
929
929
|
export async function fetchMethods(brand) {
|
|
930
930
|
const query = `*[_type == 'learning-path' && brand == '${brand}'] {
|
|
931
|
+
parent_content_data,
|
|
932
|
+
"breadcrumbs_data": parent_content_data[] {
|
|
933
|
+
"id": id,
|
|
934
|
+
"title": *[railcontent_id == ^.id][0].title,
|
|
935
|
+
"url": *[railcontent_id == ^.id][0].web_url_path
|
|
936
|
+
} | order(length(url)),
|
|
931
937
|
${getFieldsForContentType()}
|
|
932
938
|
} | order(published_on asc)`
|
|
933
939
|
return fetchSanity(query, true);
|
|
@@ -970,6 +976,12 @@ export async function fetchMethod(brand, slug) {
|
|
|
970
976
|
title,
|
|
971
977
|
video,
|
|
972
978
|
length_in_seconds,
|
|
979
|
+
parent_content_data,
|
|
980
|
+
"breadcrumbs_data": parent_content_data[] {
|
|
981
|
+
"id": id,
|
|
982
|
+
"title": *[railcontent_id == ^.id][0].title,
|
|
983
|
+
"url": *[railcontent_id == ^.id][0].web_url_path
|
|
984
|
+
} | order(length(url)),
|
|
973
985
|
"type": _type,
|
|
974
986
|
"permission_id": permission[]->railcontent_id,
|
|
975
987
|
"levels": child[]->
|
|
@@ -1007,6 +1019,12 @@ export async function fetchMethodChildren(railcontentId) {
|
|
|
1007
1019
|
title,
|
|
1008
1020
|
xp,
|
|
1009
1021
|
total_xp,
|
|
1022
|
+
parent_content_data,
|
|
1023
|
+
"breadcrumbs_data": parent_content_data[] {
|
|
1024
|
+
"id": id,
|
|
1025
|
+
"title": *[railcontent_id == ^.id][0].title,
|
|
1026
|
+
"url": *[railcontent_id == ^.id][0].web_url_path
|
|
1027
|
+
} | order(length(url)),
|
|
1010
1028
|
'children': child[]->{
|
|
1011
1029
|
${getFieldsForContentType('method')}
|
|
1012
1030
|
},
|
|
@@ -1171,7 +1189,7 @@ export async function fetchLessonContent(railContentId) {
|
|
|
1171
1189
|
brand,
|
|
1172
1190
|
status,
|
|
1173
1191
|
soundslice,
|
|
1174
|
-
instrumentless,
|
|
1192
|
+
instrumentless,
|
|
1175
1193
|
railcontent_id,
|
|
1176
1194
|
"id":railcontent_id,
|
|
1177
1195
|
slug, artist->,
|
|
@@ -1181,7 +1199,7 @@ export async function fetchLessonContent(railContentId) {
|
|
|
1181
1199
|
"description": description[0].children[0].text,
|
|
1182
1200
|
"chapters": chapter[]{
|
|
1183
1201
|
chapter_description,
|
|
1184
|
-
chapter_timecode,
|
|
1202
|
+
chapter_timecode,
|
|
1185
1203
|
"chapter_thumbnail_url": chapter_thumbnail_url.asset->url
|
|
1186
1204
|
},
|
|
1187
1205
|
"instructors":instructor[]->name,
|
|
@@ -1202,7 +1220,13 @@ export async function fetchLessonContent(railContentId) {
|
|
|
1202
1220
|
mp3_yes_drums_no_click_url,
|
|
1203
1221
|
mp3_yes_drums_yes_click_url,
|
|
1204
1222
|
"permission_id": permission[]->railcontent_id,
|
|
1205
|
-
parent_content_data
|
|
1223
|
+
"parent_content_data": parent_content_data[]{
|
|
1224
|
+
"id": id,
|
|
1225
|
+
"title": *[railcontent_id == ^.id][0].title,
|
|
1226
|
+
"web_url_path": *[railcontent_id == ^.id][0].web_url_path,
|
|
1227
|
+
"slug":*[railcontent_id == ^.id][0].slug,
|
|
1228
|
+
"type": *[railcontent_id == ^.id][0]._type,
|
|
1229
|
+
},
|
|
1206
1230
|
sort,
|
|
1207
1231
|
xp`;
|
|
1208
1232
|
const query = await buildQuery(
|
|
File without changes
|
|
File without changes
|
package/test/initializeTests.js
CHANGED
|
File without changes
|
package/test/lastUpdated.test.js
CHANGED
|
File without changes
|
|
File without changes
|
|
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
|