« get me outta code hell

data: concise thing(), thingList(), wikiData() - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/homepage-layout.js
diff options
context:
space:
mode:
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
commit11586658823cc5a392347193bcb27c779c5f8be8 (patch)
tree195e63b98d0f67e68d45cbdfeab491af1cfff633 /src/data/things/homepage-layout.js
parent722fe82043e74bdb7c10ed214a9f3006a26ff42b (diff)
data: concise thing(), thingList(), wikiData()
Diffstat (limited to 'src/data/things/homepage-layout.js')
-rw-r--r--src/data/things/homepage-layout.js12
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