« get me outta code hell

Revert "contracts: initial commit" - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/contracts
diff options
context:
space:
mode:
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
commitbd0741dcf0c23489bf710249ab8fd9ba647db843 (patch)
tree644a7cacb30aed48d49dfc44f7a91ecb14339c28 /src/content/contracts
parentb11cd3418188b8c4e4c8346577f9f7577736f807 (diff)
Revert "contracts: initial commit"
This reverts commit 4280c6240b88dadc8e5ea187b78c10aca9dfc163.
Diffstat (limited to 'src/content/contracts')
-rw-r--r--src/content/contracts/adjacentAlbumsInGroup.js17
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};
-  },
-};