From df244f21af6078f9456d8281da3a19e7c1e1a2f3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 26 Jan 2026 17:49:33 -0400 Subject: data: Contribution.annotationFront, is{Featuring,EditsForWiki}Credit --- .../things/contribution/hasAnnotationFront.js | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/data/composite/things/contribution/hasAnnotationFront.js (limited to 'src/data/composite/things/contribution/hasAnnotationFront.js') 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, + }, + ], +}); -- cgit 1.3.0-6-gf8a5