diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-12-06 13:25:28 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-12-06 13:25:28 -0400 |
| commit | c7cc130f97c2a0f390ba0e07e3aa048395636817 (patch) | |
| tree | 91e4e4b5b1d5c70b364dc7e530b424ea3e422b09 /src/data/things/group.js | |
| parent | f2161a3fe8ff9b574f53156d08ca7853427be8e4 (diff) | |
data: concise-retouch remaining toplevel property descriptors
Diffstat (limited to 'src/data/things/group.js')
| -rw-r--r-- | src/data/things/group.js | 28 |
1 files changed, 6 insertions, 22 deletions
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] = { |