From 9d99dafca9dc4e16b867b707746314040a8d9ba5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 00:11:37 -0400 Subject: data: use soupyFind everywhere also notes where remaining directly-provided wikiData() props are used --- src/data/things/flash.js | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'src/data/things/flash.js') diff --git a/src/data/things/flash.js b/src/data/things/flash.js index bd995035..a681e013 100644 --- a/src/data/things/flash.js +++ b/src/data/things/flash.js @@ -106,8 +106,7 @@ export class Flash extends Thing { featuredTracks: referenceList({ class: input.value(Track), - find: input.value(find.track), - data: 'trackData', + find: soupyFind.input('track'), }), urls: urls(), @@ -119,18 +118,12 @@ export class Flash extends Thing { find: soupyFind(), - artistData: wikiData({ - class: input.value(Artist), - }), - - trackData: wikiData({ - class: input.value(Track), - }), - + // used for withFlashAct (reverse) flashActData: wikiData({ class: input.value(FlashAct), }), + // used for withMatchingContributionPresets (indirectly by Contribution) wikiInfo: thing({ class: input.value(WikiInfo), }), @@ -245,18 +238,14 @@ export class FlashAct extends Thing { flashes: referenceList({ class: input.value(Flash), - find: input.value(find.flash), - data: 'flashData', + find: soupyFind.input('flash'), }), // Update only find: soupyFind(), - flashData: wikiData({ - class: input.value(Flash), - }), - + // used for withFlashSide flashSideData: wikiData({ class: input.value(FlashSide), }), @@ -303,17 +292,12 @@ export class FlashSide extends Thing { acts: referenceList({ class: input.value(FlashAct), - find: input.value(find.flashAct), - data: 'flashActData', + find: soupyFind.input('flashAct'), }), // Update only find: soupyFind(), - - flashActData: wikiData({ - class: input.value(FlashAct), - }), }); static [Thing.yamlDocumentSpec] = { -- cgit 1.3.0-6-gf8a5