From c7cc130f97c2a0f390ba0e07e3aa048395636817 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Dec 2025 13:25:28 -0400 Subject: data: concise-retouch remaining toplevel property descriptors --- src/data/things/group.js | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'src/data/things/group.js') diff --git a/src/data/things/group.js b/src/data/things/group.js index 076f0c8f..20a74fa1 100644 --- a/src/data/things/group.js +++ b/src/data/things/group.js @@ -3,7 +3,7 @@ export const GROUP_DATA_FILE = 'groups.yaml'; import {inspect} from 'node:util'; import {colors} from '#cli'; -import {input} from '#composite'; +import {input, V} from '#composite'; import Thing from '#thing'; import {is, isBoolean} from '#validators'; import {parseAnnotatedReferences, parseSerieses} from '#yaml'; @@ -53,18 +53,10 @@ export class Group extends Thing { '#uniqueReferencingThing': '#category', }), - withPropertyFromObject({ - object: '#category', - property: input.value('excludeGroupsFromGalleryTabs'), - }), - - exposeDependencyOrContinue({ - dependency: '#category.excludeGroupsFromGalleryTabs', - }), + withPropertyFromObject('#category', V('excludeGroupsFromGalleryTabs')), + exposeDependencyOrContinue('#category.excludeGroupsFromGalleryTabs'), - exposeConstant({ - value: input.value(false), - }), + exposeConstant(V(false)), ], divideAlbumsByStyle: flag(false), @@ -97,11 +89,7 @@ export class Group extends Thing { // Expose only - isGroup: [ - exposeConstant({ - value: input.value(true), - }), - ], + isGroup: exposeConstant(V(true)), descriptionShort: { flags: {expose: true}, @@ -276,11 +264,7 @@ export class GroupCategory extends Thing { // Expose only - isGroupCategory: [ - exposeConstant({ - value: input.value(true), - }), - ], + isGroupCategory: exposeConstant(V(true)), }); static [Thing.reverseSpecs] = { -- cgit 1.3.0-6-gf8a5