From 5057b24b53f3866cf9f34a6fdfa0d1345c0d8be0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 24 Feb 2022 22:59:04 -0400 Subject: error-free basic full build --- src/page/artist.js | 8 ++------ src/page/flash.js | 17 +++++------------ src/page/group.js | 2 +- src/page/homepage.js | 34 ++++++++++++++++------------------ src/page/news.js | 6 +++--- 5 files changed, 27 insertions(+), 40 deletions(-) (limited to 'src/page') diff --git a/src/page/artist.js b/src/page/artist.js index b89107fc..d0128050 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -32,11 +32,7 @@ export function targets({wikiData}) { export function write(artist, {wikiData}) { const { groupData, wikiInfo } = wikiData; - const { - name, - urls = [], - note = '' - } = artist; + const { name, urls, note } = artist; const artThingsAll = sortByDate(unique([ ...artist.albumsAsCoverArtist ?? [], @@ -305,7 +301,7 @@ export function write(artist, {wikiData}) {
`} - ${urls.length && `

${strings('releaseInfo.visitOn', { + ${urls?.length && `

${strings('releaseInfo.visitOn', { links: strings.list.or(urls.map(url => fancifyURL(url, {strings}))) })}

`} ${hasGallery && `

${strings('artistPage.viewArtGallery', { diff --git a/src/page/flash.js b/src/page/flash.js index 9d88bc79..8f6e4f85 100644 --- a/src/page/flash.js +++ b/src/page/flash.js @@ -49,13 +49,13 @@ export function write(flash, {wikiData}) { alt: strings('misc.alt.flashArt') })}

${strings('releaseInfo.released', {date: strings.count.date(flash.date)})}

- ${(flash.page || flash.urls.length) && `

${strings('releaseInfo.playOn', { + ${(flash.page || flash.urls?.length) && `

${strings('releaseInfo.playOn', { links: strings.list.or([ flash.page && getFlashLink(flash), - ...flash.urls + ...flash.urls ?? [] ].map(url => fancifyFlashURL(url, flash))) })}

`} - ${flash.tracks.length && fixWS` + ${flash.tracks?.length && fixWS`

Tracks featured in ${flash.name.replace(/\.$/, '')}:

`} - ${flash.contributors.textContent && fixWS` -

- ${strings('releaseInfo.contributors')} -
- ${transformInline(flash.contributors.textContent)} -

- `} - ${flash.contributors.length && fixWS` + ${flash.contributorContribs.length && fixWS`

${strings('releaseInfo.contributors')}