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/data/things.js | 4 +++-
src/data/yaml.js | 4 +++-
src/listing-spec.js | 8 ++++++--
src/misc-templates.js | 5 ++++-
src/page/album-commentary.js | 12 +++++++++---
src/page/album.js | 12 +++++++++---
src/page/artist.js | 9 +++++++--
src/page/homepage.js | 8 ++++++--
src/upd8.js | 12 +++++++++---
9 files changed, 56 insertions(+), 18 deletions(-)
(limited to 'src')
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})
}
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()
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 = (
${language.$(
'releaseInfo.from',
- {album: ''}
+ {
+ album: '',
+ }
)}
${language.$(
'releaseInfo.by',
- {artists: ''}
+ {
+ artists: '',
+ }
)}
${language.$(
'releaseInfo.coverArtBy',
- {artists: ''}
+ {
+ artists: '',
+ }
)}
--
cgit 1.3.0-6-gf8a5