diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 17:49:33 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 17:49:33 -0400 |
| commit | df244f21af6078f9456d8281da3a19e7c1e1a2f3 (patch) | |
| tree | e54b9000c85266d3bfbfaa69526285c8d5ac71b1 /src/data/composite/things/contribution/hasAnnotationFront.js | |
| parent | 4f9adf7339e0c646ff732ee1b6d164f32e352103 (diff) | |
data: Contribution.annotationFront, is{Featuring,EditsForWiki}Credit
Diffstat (limited to 'src/data/composite/things/contribution/hasAnnotationFront.js')
| -rw-r--r-- | src/data/composite/things/contribution/hasAnnotationFront.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/data/composite/things/contribution/hasAnnotationFront.js b/src/data/composite/things/contribution/hasAnnotationFront.js new file mode 100644 index 00000000..6969268b --- /dev/null +++ b/src/data/composite/things/contribution/hasAnnotationFront.js @@ -0,0 +1,29 @@ +import {input, templateCompositeFrom} from '#composite'; + +import {exitWithoutDependency} from '#composite/control-flow'; + +export default templateCompositeFrom({ + annotation: `hasAnnotationFront`, + + inputs: { + front: input({type: 'string'}), + }, + + compose: false, + + steps: () => [ + exitWithoutDependency({ + dependency: 'annotationFront', + value: input.value(false), + }), + + { + dependencies: ['annotationFront', input('front')], + compute: ({ + ['annotationFront']: present, + [input('front')]: expected, + }) => + present === expected, + }, + ], +}); |