diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-04 13:16:50 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-04 13:26:18 -0300 |
commit | a1bfa1d0d68890ebd5811bd46455d10be4bbc17d (patch) | |
tree | 2ca419228f3d9e4d3494c84469c22f11d1f7c2ae /src/data/composite | |
parent | ccfced9e328749059262b8b4bb2671b33cccd98d (diff) |
support art tag info pages; ensure "art tag" terminology everywhere
Diffstat (limited to 'src/data/composite')
-rw-r--r-- | src/data/composite/things/art-tag/index.js | 2 | ||||
-rw-r--r-- | src/data/composite/things/art-tag/withAllDescendantArtTags.js (renamed from src/data/composite/things/art-tag/withAllDescendantTags.js) | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/data/composite/things/art-tag/index.js b/src/data/composite/things/art-tag/index.js index aedc3a0c..0c365ce2 100644 --- a/src/data/composite/things/art-tag/index.js +++ b/src/data/composite/things/art-tag/index.js @@ -1 +1 @@ -export {default as withAllDescendantTags} from './withAllDescendantTags.js'; +export {default as withAllDescendantArtTags} from './withAllDescendantArtTags.js'; diff --git a/src/data/composite/things/art-tag/withAllDescendantTags.js b/src/data/composite/things/art-tag/withAllDescendantArtTags.js index b832e529..c643cf23 100644 --- a/src/data/composite/things/art-tag/withAllDescendantTags.js +++ b/src/data/composite/things/art-tag/withAllDescendantArtTags.js @@ -1,4 +1,4 @@ -// Gets all the tags which descend from this one - that means its own direct +// Gets all the art tags which descend from this one - that means its own direct // descendants, but also all the direct and indirect desceands of each of those! // The results aren't specially sorted, but they won't contain any duplicates // (for example if two descendant tags both route deeper to end up including @@ -12,19 +12,19 @@ import {raiseOutputWithoutDependency} from '#composite/control-flow'; import {withResolvedReferenceList} from '#composite/wiki-data'; export default templateCompositeFrom({ - annotation: `withAllDescendantTags`, + annotation: `withAllDescendantArtTags`, - outputs: ['#allDescendantTags'], + outputs: ['#allDescendantArtTags'], steps: () => [ raiseOutputWithoutDependency({ - dependency: 'directDescendantTags', + dependency: 'directDescendantArtTags', mode: input.value('empty'), - output: input.value({'#allDescendantTags': []}) + output: input.value({'#allDescendantArtTags': []}) }), withResolvedReferenceList({ - list: 'directDescendantTags', + list: 'directDescendantArtTags', data: 'artTagData', find: input.value(find.artTag), }), @@ -32,12 +32,12 @@ export default templateCompositeFrom({ { dependencies: ['#resolvedReferenceList'], compute: (continuation, { - ['#resolvedReferenceList']: directDescendantTags, + ['#resolvedReferenceList']: directDescendantArtTags, }) => continuation({ - ['#allDescendantTags']: + ['#allDescendantArtTags']: unique([ - ...directDescendantTags, - ...directDescendantTags.flatMap(tag => tag.allDescendantTags), + ...directDescendantArtTags, + ...directDescendantArtTags.flatMap(artTag => artTag.allDescendantArtTags), ]), }), }, |