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 /src/page | |
parent | c75b029160248b6935e5c0f5156cc7a870311e82 (diff) |
Changes(tm)
Diffstat (limited to 'src/page')
-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 |
4 files changed, 31 insertions, 10 deletions
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() |