musora-content-services 2.21.2 → 2.21.4
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/CHANGELOG.md +15 -0
- package/link_mcs.sh +0 -0
- package/package.json +1 -1
- package/src/contentTypeConfig.js +10 -0
- package/src/services/forum.js +38 -16
- package/src/services/gamification/awards.js +1 -519
- package/src/services/imageSRCVerify.js +0 -0
- package/src/services/sanity.js +9 -7
- package/src/services/userActivity.js +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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
|
+
### [2.21.4](https://github.com/railroadmedia/musora-content-services/compare/v2.21.3...v2.21.4) (2025-07-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **gc-pin:** patch unpin and pin actions from merge conflict ([#345](https://github.com/railroadmedia/musora-content-services/issues/345)) ([a9ed0f1](https://github.com/railroadmedia/musora-content-services/commit/a9ed0f15bf2a61b259d250e24c5b6a74fcade404))
|
|
11
|
+
|
|
12
|
+
### [2.21.3](https://github.com/railroadmedia/musora-content-services/compare/v2.21.1...v2.21.3) (2025-07-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* MU2-787 Leaving Soon and Returning should only be set in the future ([4bb48c9](https://github.com/railroadmedia/musora-content-services/commit/4bb48c93afa7b2167d94c306830a4db3e7dab810))
|
|
18
|
+
* **systest:** patch contentAggregator ([#342](https://github.com/railroadmedia/musora-content-services/issues/342)) ([4a1906e](https://github.com/railroadmedia/musora-content-services/commit/4a1906ed8e5cfc3cebf3e044d4eb35213d18ebe1))
|
|
19
|
+
|
|
5
20
|
### [2.21.2](https://github.com/railroadmedia/musora-content-services/compare/v2.21.1...v2.21.2) (2025-07-14)
|
|
6
21
|
|
|
7
22
|
|
package/link_mcs.sh
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/contentTypeConfig.js
CHANGED
|
@@ -444,6 +444,10 @@ export let contentTypeConfig = {
|
|
|
444
444
|
`"children": child[]->{
|
|
445
445
|
"description": ${descriptionField},
|
|
446
446
|
"lesson_count": child_count,
|
|
447
|
+
"instructors": select(
|
|
448
|
+
instructor != null => instructor[]->name,
|
|
449
|
+
^.instructor[]->name
|
|
450
|
+
),
|
|
447
451
|
"children": child[]->{
|
|
448
452
|
"description": ${descriptionField},
|
|
449
453
|
${getFieldsForContentType()}
|
|
@@ -571,6 +575,12 @@ export let contentTypeConfig = {
|
|
|
571
575
|
`quarter_published`,
|
|
572
576
|
'"thumbnail": thumbnail.asset->url',
|
|
573
577
|
]
|
|
578
|
+
},
|
|
579
|
+
leaving: {
|
|
580
|
+
fields: [
|
|
581
|
+
`quarter_removed`,
|
|
582
|
+
'"thumbnail": thumbnail.asset->url',
|
|
583
|
+
]
|
|
574
584
|
}
|
|
575
585
|
}
|
|
576
586
|
|
package/src/services/forum.js
CHANGED
|
@@ -10,45 +10,67 @@ export async function getActiveDiscussions(brand, { page = 1, limit = 10 } = {})
|
|
|
10
10
|
{
|
|
11
11
|
id: 11,
|
|
12
12
|
url: 'https://forum.example.com/post/11',
|
|
13
|
-
title: '
|
|
14
|
-
post: "
|
|
13
|
+
title: 'How to Progress',
|
|
14
|
+
post: "I use the 20-80 formula. 20% of the time on rudiments, skill, technique. 80% of the time working on songs or just playing along to the radio. Since it's a percentage, it fits any amount of time whether it's ten minutes or two hours. My neighbors would be p*ssed if I played two hours a day broken up over the whole day. They prefer I get my practice done in one shot. An hour a day works well for me.",
|
|
15
15
|
author: {
|
|
16
16
|
id: 123,
|
|
17
|
-
name: '
|
|
18
|
-
avatar: 'https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/
|
|
17
|
+
name: 'Zucconi',
|
|
18
|
+
avatar: 'https://www.musora.com/cdn-cgi/image/quality=75,width=250,height=250,metadata=none/https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/BE9F40FC-61C8-48FB-BC79-6E5A7100638F-1710514476-612136.jpg'
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
id: 12,
|
|
23
23
|
url: 'https://forum.example.com/post/12',
|
|
24
|
-
title: '
|
|
25
|
-
post: "I
|
|
24
|
+
title: 'Laptop Stand Suggestions?',
|
|
25
|
+
post: "I got a cheap one from Amazon (39.43 Australian Dollars), very simple but I have had no problems with it. This is how I'm watching my Drumeo lessons :) It has some little holes in 2 corners so you could mount a phone holder to it also.",
|
|
26
26
|
author: {
|
|
27
27
|
id: 124,
|
|
28
|
-
name: '
|
|
29
|
-
avatar: 'https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/
|
|
28
|
+
name: 'Abyssic Wizard',
|
|
29
|
+
avatar: 'https://www.musora.com/cdn-cgi/image/quality=75,width=250,height=250,metadata=none/https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/32F50623-BC25-429A-B480-B4A6A0E037D7-1748730048-844311.jpg'
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: 13,
|
|
34
34
|
url: 'https://forum.example.com/post/13',
|
|
35
|
-
title: '
|
|
36
|
-
post: "
|
|
35
|
+
title: 'Introduce yourself to the Drumeo Community',
|
|
36
|
+
post: "Hi drummer forum 1. I'm 67 and retired plus an adjunct professor at community college currently 2. Enjoying an Alesis with Nitro Max practice drum set and on 9th day going through Domino Santantonio's 30 day challenge. Domino is wonderful and energetic. 3. I like any kind of alt-rock, rock, old gaelic style drumming, and jazz drumming",
|
|
37
37
|
author: {
|
|
38
38
|
id: 125,
|
|
39
|
-
name: '
|
|
40
|
-
avatar: 'https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/
|
|
39
|
+
name: 'Rwogie',
|
|
40
|
+
avatar: 'https://www.musora.com/cdn-cgi/image/quality=75,width=250,height=250,metadata=none/https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/user-profile-picture-1752520294-843602.jpg'
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: 14,
|
|
45
45
|
url: 'https://forum.example.com/post/14',
|
|
46
|
-
title: '
|
|
47
|
-
post: "
|
|
46
|
+
title: 'Musora Cross Collaboration June 2025',
|
|
47
|
+
post: "Hey everyone! 🎉 Awesome news! We’ve officially extended the deadline to submit your “Hold The Line” video. You now have until July 1st, 2025 to send it in! We cannot wait to see you all crush this track. Seriously, this is going to be such a fun project, and we’re beyond stoked to showcase your playing. If you’ve got any questions (or just want to say hi), feel free to reach out at <a href=\"mailto:mentors@musora.com\">mentors@musora.com</a>. Let’s make this epic!",
|
|
48
48
|
author: {
|
|
49
49
|
id: 126,
|
|
50
|
-
name: '
|
|
51
|
-
avatar: 'https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/
|
|
50
|
+
name: 'Ale',
|
|
51
|
+
avatar: 'https://www.musora.com/cdn-cgi/image/quality=75,width=250,height=250,metadata=none/https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/user-profile-picture-1728402676-577074.jpg'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 15,
|
|
56
|
+
url: 'https://forum.example.com/post/15',
|
|
57
|
+
title: 'Drum Recording & Mixing Questions',
|
|
58
|
+
post: "Hi, thanks for welcoming me to Drumeo! I've seen a lot of great acoustic drum performances in your videos – the sound quality is amazing. I'm curious: How do you record your drums to get such a professional sound?",
|
|
59
|
+
author: {
|
|
60
|
+
id: 127,
|
|
61
|
+
name: 'Peter Neumann',
|
|
62
|
+
avatar: 'https://www.musora.com/cdn-cgi/image/quality=75,width=250,height=250,metadata=none/https://d3fzm1tzeyr5n3.cloudfront.net/profile_picture_url/user-profile-picture-1725633212-597725.jpg'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 16,
|
|
67
|
+
url: 'https://forum.example.com/post/16',
|
|
68
|
+
title: 'Play Along or Background Music',
|
|
69
|
+
post: "Hey Aali, you can use the play along tracks (in the sidebar menu) or the songs in the song section to practice with. You can also use your own music via your phone etc to play along with. When I started playing we never had online lessons so I used to practice with CDs etc. Youtube is another option as others have said. From the lessons, many have tracks you can practice along to in the \"Resources\" tab to download",
|
|
70
|
+
author: {
|
|
71
|
+
id: 128,
|
|
72
|
+
name: 'Stidger (Musora Mod)',
|
|
73
|
+
avatar: 'https://www.musora.com/cdn-cgi/image/quality=75,width=250,height=250,metadata=none/https://dzryyo1we6bm3.cloudfront.net/avatars/6A09AFCB-B242-4278-A8B3-0013A650206A-1644690552-495979.jpg'
|
|
52
74
|
}
|
|
53
75
|
}
|
|
54
76
|
]
|