« get me outta code hell

update old wikiInfo.features.X style accesses - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-16 22:31:36 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-16 22:31:36 -0400
commitebfd6037093b7bb28418b3f56b888df2f95692a3 (patch)
treeb274813359a45b0a2d06d4481176348107bd1330 /src/upd8.js
parentb3695dbb8cfdd819a82c6d0eed32b5f94a0c1e51 (diff)
update old wikiInfo.features.X style accesses
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/upd8.js b/src/upd8.js
index ff32590e..8a15ab23 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1992,13 +1992,13 @@ function writeSharedFilesAndPages({strings, wikiData}) {
         groupData?.some(group => group.directory === 'official') &&
         redirect('Official - Gallery', 'albums/official', 'localized.groupGallery', 'official'),
 
-        wikiInfo.features.listings &&
+        wikiInfo.enableListings &&
         redirect('Album Commentary', 'list/all-commentary', 'localized.commentaryIndex', ''),
 
         writeFile(path.join(outputPath, 'data.json'), fixWS`
             {
                 "albumData": ${stringifyAlbumData({wikiData})},
-                ${wikiInfo.features.flashesAndGames && `"flashData": ${stringifyFlashData({wikiData})},`}
+                ${wikiInfo.enableFlashesAndGames && `"flashData": ${stringifyFlashData({wikiData})},`}
                 "artistData": ${stringifyArtistData({wikiData})}
             }
         `)
@@ -2423,7 +2423,7 @@ async function main() {
             }
         },
 
-        // TODO: WD.wikiInfo.features.flashesAndGames &&
+        // TODO: WD.wikiInfo.enableFlashesAndGames &&
         {
             title: `Process flashes file`,
             files: [path.join(dataPath, FLASH_DATA_FILE)],
@@ -2525,7 +2525,7 @@ async function main() {
             }
         },
 
-        // TODO: WD.wikiInfo.features.news &&
+        // TODO: WD.wikiInfo.enableNews &&
         {
             title: `Process news data file`,
             files: [path.join(dataPath, NEWS_DATA_FILE)],
@@ -2993,7 +2993,7 @@ async function main() {
         tag.things = albumAndTrackDataSortedByArtDateMan.filter(thing => thing.artTags.includes(tag));
     }
 
-    if (WD.wikiInfo.features.flashesAndGames) {
+    if (WD.wikiInfo.enableFlashesAndGames) {
         for (const flash of WD.flashData) {
             flash.act = WD.flashActData.find(act => act.name === flash.act);
             mapAndFilter(flash, 'tracks', {map: bound.findTrack});
@@ -3027,7 +3027,7 @@ async function main() {
             asWallpaperArtist: filterProp(WD.albumData, 'wallpaperArtists'),
             asBannerArtist: filterProp(WD.albumData, 'bannerArtists')
         };
-        if (WD.wikiInfo.features.flashesAndGames) {
+        if (WD.wikiInfo.enableFlashesAndGames) {
             artist.flashes = {
                 asContributor: filterProp(WD.flashData, 'contributors')
             };
@@ -3038,7 +3038,6 @@ async function main() {
     WD.officialAlbumData = WD.albumData.filter(album => album.groups.some(group => group.directory === OFFICIAL_GROUP_DIRECTORY));
     WD.fandomAlbumData = WD.albumData.filter(album => album.groups.every(group => group.directory !== OFFICIAL_GROUP_DIRECTORY));
 
-    console.log(WD.officialAlbumData.length, WD.fandomAlbumData.length);
     return;
 
     // Makes writing a little nicer on CPU theoretically, 8ut also costs in