From 99c0bb64b33858a3a4077343b6db987471cdc1f0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 26 Jun 2022 18:07:21 -0300 Subject: Changes(tm) --- src/page/album-commentary.js | 12 +++++++++--- src/page/album.js | 12 +++++++++--- src/page/artist.js | 9 +++++++-- src/page/homepage.js | 8 ++++++-- 4 files changed, 31 insertions(+), 10 deletions(-) (limited to 'src/page') 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}) { })}`, entries: `${language.countCommentaryEntries( entries.length, - {unit: true} + { + unit: true, + } )}`, })}

${ @@ -144,7 +146,9 @@ export function writeTargetless({wikiData}) { })}`, entries: `${language.countCommentaryEntries( totalEntries, - {unit: true} + { + unit: true, + } )}`, })}

${language.$('commentaryIndex.albumList.title')}

@@ -162,7 +166,9 @@ export function writeTargetless({wikiData}) { entries: language.countCommentaryEntries( entries.length, - {unit: true} + { + unit: true, + } ), } )} 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, + } ), } )}

@@ -685,7 +688,9 @@ export function write(artist, {wikiData}) { { coverArts: language.countCoverArts( artThingsGallery.length, - {unit: true} + { + unit: true, + } ), } )}

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() -- cgit 1.3.0-6-gf8a5