diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-12-06 14:08:58 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-12-06 14:08:58 -0400 |
| commit | 11586658823cc5a392347193bcb27c779c5f8be8 (patch) | |
| tree | 195e63b98d0f67e68d45cbdfeab491af1cfff633 /src/data/things/homepage-layout.js | |
| parent | 722fe82043e74bdb7c10ed214a9f3006a26ff42b (diff) | |
data: concise thing(), thingList(), wikiData()
Diffstat (limited to 'src/data/things/homepage-layout.js')
| -rw-r--r-- | src/data/things/homepage-layout.js | 12 |
1 files changed, 3 insertions, 9 deletions
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 |