« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateAlbumInfoPage.js6
-rw-r--r--src/content/dependencies/generateFlashInfoPage.js4
-rw-r--r--src/content/dependencies/generatePageLayout.js2
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js6
-rw-r--r--src/data/checks.js8
-rw-r--r--src/data/things/album.js10
-rw-r--r--src/data/things/flash.js8
-rw-r--r--src/data/things/track.js6
-rw-r--r--src/strings-default.yaml6
9 files changed, 28 insertions, 28 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js
index ed19bf75..d196fc59 100644
--- a/src/content/dependencies/generateAlbumInfoPage.js
+++ b/src/content/dependencies/generateAlbumInfoPage.js
@@ -79,7 +79,7 @@ export default {
         .map(entry => relation('generateCommentaryEntry', entry)),
 
     creditSourceEntries:
-      album.creditSources
+      album.creditingSources
         .map(entry => relation('generateCommentaryEntry', entry)),
   }),
 
@@ -157,7 +157,7 @@ export default {
                 : html.blank()),
 
               !html.isBlank(relations.creditSourceEntries) &&
-                language.encapsulate(capsule, 'readCreditSources', capsule =>
+                language.encapsulate(capsule, 'readCreditingSources', capsule =>
                   language.$(capsule, {
                     link:
                       html.tag('a',
@@ -204,7 +204,7 @@ export default {
             relations.contentHeading.clone()
               .slots({
                 attributes: {id: 'credit-sources'},
-                title: language.$('misc.creditSources'),
+                title: language.$('misc.creditingSources'),
               }),
 
             relations.creditSourceEntries,
diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js
index 095e43c4..69dd5bdb 100644
--- a/src/content/dependencies/generateFlashInfoPage.js
+++ b/src/content/dependencies/generateFlashInfoPage.js
@@ -133,7 +133,7 @@ export default {
                   })),
 
               !html.isBlank(relations.creditSourceEntries) &&
-                language.encapsulate(capsule, 'readCreditSources', capsule =>
+                language.encapsulate(capsule, 'readCreditingSources', capsule =>
                   language.$(capsule, {
                     link:
                       html.tag('a',
@@ -181,7 +181,7 @@ export default {
             relations.contentHeading.clone()
               .slots({
                 attributes: {id: 'credit-sources'},
-                title: language.$('misc.creditSources'),
+                title: language.$('misc.creditingSources'),
               }),
 
             relations.creditSourceEntries,
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 89fefb23..fdce6487 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -581,7 +581,7 @@ export default {
               {id: 'additional-files', string: 'additionalFiles'},
               {id: 'commentary', string: 'commentary'},
               {id: 'artist-commentary', string: 'artistCommentary'},
-              {id: 'credit-sources', string: 'creditSources'},
+              {id: 'credit-sources', string: 'creditingSources'},
             ])),
         ]);
 
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index ab6ea1cb..d296f98d 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -107,7 +107,7 @@ export default {
       relation('generateTrackArtistCommentarySection', track),
 
     creditSourceEntries:
-      track.creditSources
+      track.creditingSources
         .map(entry => relation('generateCommentaryEntry', entry)),
   }),
 
@@ -182,7 +182,7 @@ export default {
                   })),
 
               !html.isBlank(relations.creditSourceEntries) &&
-                language.encapsulate(capsule, 'readCreditSources', capsule =>
+                language.encapsulate(capsule, 'readCreditingSources', capsule =>
                   language.$(capsule, {
                     link:
                       html.tag('a',
@@ -341,7 +341,7 @@ export default {
             relations.contentHeading.clone()
               .slots({
                 attributes: {id: 'credit-sources'},
-                title: language.$('misc.creditSources'),
+                title: language.$('misc.creditingSources'),
               }),
 
             relations.creditSourceEntries,
diff --git a/src/data/checks.js b/src/data/checks.js
index 075f929f..9a8e9349 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -185,7 +185,7 @@ export function filterReferenceErrors(wikiData, {
       artTags: '_artTag',
       referencedArtworks: '_artwork',
       commentary: '_content',
-      creditSources: '_content',
+      creditingSources: '_content',
     }],
 
     ['artTagData', {
@@ -194,7 +194,7 @@ export function filterReferenceErrors(wikiData, {
 
     ['flashData', {
       commentary: '_content',
-      creditSources: '_content',
+      creditingSources: '_content',
     }],
 
     ['groupCategoryData', {
@@ -235,7 +235,7 @@ export function filterReferenceErrors(wikiData, {
       referencedArtworks: '_artwork',
       mainReleaseTrack: '_trackMainReleasesOnly',
       commentary: '_content',
-      creditSources: '_content',
+      creditingSources: '_content',
       lyrics: '_content',
     }],
 
@@ -609,7 +609,7 @@ export function reportContentTextErrors(wikiData, {
     ['trackData', {
       additionalFiles: additionalFileShape,
       commentary: commentaryShape,
-      creditSources: commentaryShape,
+      creditingSources: commentaryShape,
       lyrics: lyricsShape,
       midiProjectFiles: additionalFileShape,
       sheetMusicFiles: additionalFileShape,
diff --git a/src/data/things/album.js b/src/data/things/album.js
index a4c2f6a5..dc31bb10 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -214,7 +214,7 @@ export class Album extends Thing {
       class: input.value(CommentaryEntry),
     }),
 
-    creditSources: thingList({
+    creditingSources: thingList({
       class: input.value(CreditingSourcesEntry),
     }),
 
@@ -618,8 +618,8 @@ export class Album extends Thing {
         transform: parseCommentary,
       },
 
-      'Credit Sources': {
-        property: 'creditSources',
+      'Crediting Sources': {
+        property: 'creditingSources',
         transform: parseCreditingSources,
       },
 
@@ -744,7 +744,7 @@ export class Album extends Thing {
 
           artworkData.push(...entry.trackArtworks);
           commentaryData.push(...entry.commentary);
-          creditingSourceData.push(...entry.creditSources);
+          creditingSourceData.push(...entry.creditingSources);
 
           // TODO: As exposed, Track.lyrics tries to inherit from the main
           // release, which is impossible before the data's been linked.
@@ -767,7 +767,7 @@ export class Album extends Thing {
         }
 
         commentaryData.push(...album.commentary);
-        creditingSourceData.push(...album.creditSources);
+        creditingSourceData.push(...album.creditingSources);
 
         album.trackSections = trackSections;
       }
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 11b19ebc..da243b7d 100644
--- a/src/data/things/flash.js
+++ b/src/data/things/flash.js
@@ -135,7 +135,7 @@ export class Flash extends Thing {
       class: input.value(CommentaryEntry),
     }),
 
-    creditSources: thingList({
+    creditingSources: thingList({
       class: input.value(CreditingSourcesEntry),
     }),
 
@@ -257,8 +257,8 @@ export class Flash extends Thing {
         transform: parseCommentary,
       },
 
-      'Credit Sources': {
-        property: 'creditSources',
+      'Crediting Sources': {
+        property: 'creditingSources',
         transform: parseCreditingSources,
       },
 
@@ -461,7 +461,7 @@ export class FlashSide extends Thing {
 
       const artworkData = flashData.map(flash => flash.coverArtwork);
       const commentaryData = flashData.flatMap(flash => flash.commentary);
-      const creditingSourceData = flashData.flatMap(flash => flash.creditSources);
+      const creditingSourceData = flashData.flatMap(flash => flash.creditingSources);
 
       return {
         flashData,
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 557ba2a7..5da1e00a 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -227,7 +227,7 @@ export class Track extends Thing {
       class: input.value(CommentaryEntry),
     }),
 
-    creditSources: thingList({
+    creditingSources: thingList({
       class: input.value(CreditingSourcesEntry),
     }),
 
@@ -517,8 +517,8 @@ export class Track extends Thing {
         transform: parseCommentary,
       },
 
-      'Credit Sources': {
-        property: 'creditSources',
+      'Crediting Sources': {
+        property: 'creditingSources',
         transform: parseCreditingSources,
       },
 
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 74b05b74..002bdb72 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -370,7 +370,7 @@ releaseInfo:
     _: "Read {LINK}."
     link: "artist commentary"
 
-  readCreditSources:
+  readCreditingSources:
     _: "Read {LINK}."
     link: "crediting sources"
 
@@ -618,7 +618,7 @@ misc:
       trackArt: "{INDEX} track art by {ARTIST}"
       onlyIndex: "Only"
 
-  creditSources:
+  creditingSources:
     _: "Crediting sources:"
 
   # external:
@@ -865,7 +865,7 @@ misc:
     # Displayed on various info pages.
 
     artistCommentary: "Artist commentary"
-    creditSources: "Crediting sources"
+    creditingSources: "Crediting sources"
 
     # Displayed on artist info page.