feat: album releases grid
This commit is contained in:
parent
6d5e493dbe
commit
3917434062
6 changed files with 30 additions and 35 deletions
|
@ -128,15 +128,20 @@ export default {
|
|||
url: item['url'],
|
||||
type: item.type
|
||||
}
|
||||
if (item.type === 'artists') {
|
||||
normalized['title'] = item['title']
|
||||
normalized['alt'] = `${item['plays']} plays of ${item['title']}`
|
||||
normalized['subtext'] = `${item['plays']} plays`
|
||||
}
|
||||
if (item.type === 'albums') {
|
||||
normalized['title'] = item['title']
|
||||
normalized['alt'] = `${item['title']} by ${item['artist']}`
|
||||
normalized['subtext'] = `${item['artist']}`
|
||||
}
|
||||
if (item.type === 'artists') {
|
||||
if (item.type === 'album-release') {
|
||||
normalized['title'] = item['title']
|
||||
normalized['alt'] = `${item['plays']} plays of ${item['title']}`
|
||||
normalized['subtext'] = `${item['plays']} plays`
|
||||
normalized['alt'] = `${item['title']} by ${item['artist']}`
|
||||
normalized['subtext'] = `${item['artist']} • ${item['date']}`
|
||||
}
|
||||
if (item.type === 'movie') {
|
||||
normalized['title'] = item['title']
|
||||
|
|
Reference in a new issue