diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-05-25 08:54:29 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-05-25 08:54:29 -0300 |
commit | bd0741dcf0c23489bf710249ab8fd9ba647db843 (patch) | |
tree | 644a7cacb30aed48d49dfc44f7a91ecb14339c28 /src/content/contracts | |
parent | b11cd3418188b8c4e4c8346577f9f7577736f807 (diff) |
Revert "contracts: initial commit"
This reverts commit 4280c6240b88dadc8e5ea187b78c10aca9dfc163.
Diffstat (limited to 'src/content/contracts')
-rw-r--r-- | src/content/contracts/adjacentAlbumsInGroup.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/content/contracts/adjacentAlbumsInGroup.js b/src/content/contracts/adjacentAlbumsInGroup.js deleted file mode 100644 index e982fa5b..00000000 --- a/src/content/contracts/adjacentAlbumsInGroup.js +++ /dev/null @@ -1,17 +0,0 @@ -export default { - hook(contract, [album, group]) { - contract.provide({ - group, - album, - albums: contract.selectProperty(group, 'albums'), - }); - }, - - compute({group, album, albums}) { - const datedAlbums = albums.filter(album => album.date); - const index = datedAlbums.indexOf(album); - const previousAlbum = (index > 0) && datedAlbums[index - 1]; - const nextAlbum = (index < datedAlbums.length - 1) && datedAlbums[index + 1]; - return {previousAlbum, nextAlbum}; - }, -}; |