From ebfd6037093b7bb28418b3f56b888df2f95692a3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Feb 2022 22:31:36 -0400 Subject: update old wikiInfo.features.X style accesses --- src/upd8.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/upd8.js') diff --git a/src/upd8.js b/src/upd8.js index ff32590..8a15ab2 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 -- cgit 1.3.0-6-gf8a5