From 11586658823cc5a392347193bcb27c779c5f8be8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Dec 2025 14:08:58 -0400 Subject: data: concise thing(), thingList(), wikiData() --- src/data/things/homepage-layout.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/data/things/homepage-layout.js') diff --git a/src/data/things/homepage-layout.js b/src/data/things/homepage-layout.js index c0a2aea1..c4dc2812 100644 --- a/src/data/things/homepage-layout.js +++ b/src/data/things/homepage-layout.js @@ -46,9 +46,7 @@ export class HomepageLayout extends Thing { expose: {transform: value => value ?? []}, }, - sections: thingList({ - class: input.value(HomepageLayoutSection), - }), + sections: thingList(V(HomepageLayoutSection)), // Expose only @@ -157,9 +155,7 @@ export class HomepageLayoutSection extends Thing { color: color(), - rows: thingList({ - class: input.value(HomepageLayoutRow), - }), + rows: thingList(V(HomepageLayoutRow)), // Expose only @@ -180,9 +176,7 @@ export class HomepageLayoutRow extends Thing { static [Thing.getPropertyDescriptors] = ({HomepageLayoutSection}) => ({ // Update & expose - section: thing({ - class: input.value(HomepageLayoutSection), - }), + section: thing(V(HomepageLayoutSection)), // Update only -- cgit 1.3.0-6-gf8a5