diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-06-26 18:07:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-06-26 18:07:21 -0300 |
commit | 99c0bb64b33858a3a4077343b6db987471cdc1f0 (patch) | |
tree | ce3b3e693052b099156871d8786627368ce2a560 | |
parent | c75b029160248b6935e5c0f5156cc7a870311e82 (diff) |
Changes(tm)
-rw-r--r-- | src/data/things.js | 4 | ||||
-rw-r--r-- | src/data/yaml.js | 4 | ||||
-rw-r--r-- | src/listing-spec.js | 8 | ||||
-rw-r--r-- | src/misc-templates.js | 5 | ||||
-rw-r--r-- | src/page/album-commentary.js | 12 | ||||
-rw-r--r-- | src/page/album.js | 12 | ||||
-rw-r--r-- | src/page/artist.js | 9 | ||||
-rw-r--r-- | src/page/homepage.js | 8 | ||||
-rwxr-xr-x | src/upd8.js | 12 |
9 files changed, 56 insertions, 18 deletions
diff --git a/src/data/things.js b/src/data/things.js index e2bbfd70..fa7a8d54 100644 --- a/src/data/things.js +++ b/src/data/things.js @@ -1798,7 +1798,9 @@ Object.assign(Language.prototype, { this.assertIntlAvailable('intl_pluralOrdinal'); return this.formatString( 'count.index.' + this.intl_pluralOrdinal.select(value), - {index: value} + { + index: value, + } ); }, diff --git a/src/data/yaml.js b/src/data/yaml.js index a4255764..367876be 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -1391,7 +1391,9 @@ export function filterReferenceErrors(wikiData) { const original = find.artist( alias.aliasedArtistRef, wikiData.artistData, - {mode: 'quiet'} + { + mode: 'quiet', + } ); throw new Error( `Reference ${color.red( diff --git a/src/listing-spec.js b/src/listing-spec.js index d5341a57..e08fd639 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -205,7 +205,9 @@ const listingSpec = [ artist: link.artist(artist), contributions: language.countContributions( contributions, - {unit: true} + { + unit: true, + } ), } ) @@ -230,7 +232,9 @@ const listingSpec = [ artist: link.artist(artist), contributions: language.countContributions( contributions, - {unit: true} + { + unit: true, + } ), } ) diff --git a/src/misc-templates.js b/src/misc-templates.js index 27f70187..0ff4c429 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -62,7 +62,10 @@ export function generateAdditionalFilesList( description ? language.$( 'releaseInfo.additionalFiles.entry.withDescription', - {title, description} + { + title, + description, + } ) : language.$('releaseInfo.additionalFiles.entry', {title}) }</dt> diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js index 719bd65a..8a5ba069 100644 --- a/src/page/album-commentary.js +++ b/src/page/album-commentary.js @@ -54,7 +54,9 @@ export function write(album, {wikiData}) { })}</b>`, entries: `<b>${language.countCommentaryEntries( entries.length, - {unit: true} + { + unit: true, + } )}</b>`, })}</p> ${ @@ -144,7 +146,9 @@ export function writeTargetless({wikiData}) { })}</b>`, entries: `<b>${language.countCommentaryEntries( totalEntries, - {unit: true} + { + unit: true, + } )}</b>`, })}</p> <p>${language.$('commentaryIndex.albumList.title')}</p> @@ -162,7 +166,9 @@ export function writeTargetless({wikiData}) { entries: language.countCommentaryEntries( entries.length, - {unit: true} + { + unit: true, + } ), } )}</li> diff --git a/src/page/album.js b/src/page/album.js index 6c8bb844..5b7bc975 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -210,7 +210,9 @@ export function write(album, {wikiData}) { language.$('releaseInfo.duration', { duration: language.formatDuration( albumDuration, - {approximate: album.tracks.length > 1} + { + approximate: album.tracks.length > 1, + } ), }), ] @@ -224,7 +226,9 @@ export function write(album, {wikiData}) { hasAdditionalFiles && generateAdditionalFilesShortcut( album.additionalFiles, - {language} + { + language, + } ), hasCommentaryEntries && language.$('releaseInfo.viewCommentary', { @@ -267,7 +271,9 @@ export function write(album, {wikiData}) { { duration: language.formatDuration( getTotalDuration(tracks), - {approximate: tracks.length > 1} + { + approximate: tracks.length > 1, + } ), section: name, } diff --git a/src/page/artist.js b/src/page/artist.js index 6b26b0f9..eb57f5cf 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -444,7 +444,10 @@ export function write(artist, {wikiData}) { artist: artist.name, duration: language.formatDuration( totalDuration, - {approximate: true, unit: true} + { + approximate: true, + unit: true, + } ), } )}</p> @@ -685,7 +688,9 @@ export function write(artist, {wikiData}) { { coverArts: language.countCoverArts( artThingsGallery.length, - {unit: true} + { + unit: true, + } ), } )}</p> diff --git a/src/page/homepage.js b/src/page/homepage.js index 7701a73c..1356aaf5 100644 --- a/src/page/homepage.js +++ b/src/page/homepage.js @@ -54,13 +54,17 @@ export function writeTargetless({wikiData}) { 'new-releases' ? getNewReleases( row.countAlbumsFromGroup, - {wikiData} + { + wikiData, + } ) : row.sourceGroupByRef === 'new-additions' ? getNewAdditions( row.countAlbumsFromGroup, - {wikiData} + { + wikiData, + } ) : (row.sourceGroup?.albums ?? []) .slice() diff --git a/src/upd8.js b/src/upd8.js index 8a5a2873..72708efa 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1198,15 +1198,21 @@ writePage.html = ( <h1 class="info-card-name"><a></a></h1> <p class="info-card-album">${language.$( 'releaseInfo.from', - {album: '<a></a>'} + { + album: '<a></a>', + } )}</p> <p class="info-card-artists">${language.$( 'releaseInfo.by', - {artists: '<span></span>'} + { + artists: '<span></span>', + } )}</p> <p class="info-card-cover-artists">${language.$( 'releaseInfo.coverArtBy', - {artists: '<span></span>'} + { + artists: '<span></span>', + } )}</p> </div> </div> |