diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-02 16:59:30 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-02 17:32:06 -0300 |
commit | 9694750ef41c420b0fd419b230d79d5ed1149a76 (patch) | |
tree | fb4bc3c9d1e512f0f10342c5e31ae2b1a092a6a7 /src/data/things | |
parent | 97d9a13846654b8fa5b7520254f0f5ebc575305b (diff) |
data: draft art tags Two
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/art-tag.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/data/things/art-tag.js b/src/data/things/art-tag.js index 1266a4e0..f6798214 100644 --- a/src/data/things/art-tag.js +++ b/src/data/things/art-tag.js @@ -1,6 +1,7 @@ import {input} from '#composite'; -import {sortAlbumsTracksChronologically} from '#wiki-data'; +import find from '#find'; import {isName} from '#validators'; +import {sortAlbumsTracksChronologically} from '#wiki-data'; import {exposeUpdateValueOrContinue} from '#composite/control-flow'; @@ -8,6 +9,8 @@ import { color, directory, flag, + referenceList, + reverseReferenceList, name, wikiData, } from '#composite/wiki-properties'; @@ -37,9 +40,16 @@ export class ArtTag extends Thing { }, ], + directDescendantTags: referenceList({ + class: input.value(ArtTag), + find: input.value(find.artTag), + data: 'artTagData', + }), + // Update only albumData: wikiData(Album), + artTagData: wikiData(ArtTag), trackData: wikiData(Track), // Expose only @@ -56,5 +66,10 @@ export class ArtTag extends Thing { {getDate: o => o.coverArtDate}), }, }, + + directAncestorTags: reverseReferenceList({ + data: 'artTagData', + list: input.value('directDescendantTags'), + }), }); } |