diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-05-27 18:54:05 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-05-27 18:58:17 -0300 |
commit | 8afbf95576a7a108d8e5508cc0cd7eff9e48352e (patch) | |
tree | b1f5fec763a86c6289055245e6bcdf762fa26bb3 /src/data/things | |
parent | cc3487d6ab66b82d8a3a7dc5042651185fa639ff (diff) |
data: WikiInfo.wallpaper{Style,Parts}
also tidy field order
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/album.js | 3 | ||||
-rw-r--r-- | src/data/things/wiki-info.js | 32 |
2 files changed, 30 insertions, 5 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index b1aad9fc..42b234f1 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -592,9 +592,10 @@ export class Album extends Thing { transform: parseContributors, }, - 'Wallpaper Style': {property: 'wallpaperStyle'}, 'Wallpaper File Extension': {property: 'wallpaperFileExtension'}, + 'Wallpaper Style': {property: 'wallpaperStyle'}, + 'Wallpaper Parts': { property: 'wallpaperParts', transform: parseWallpaperParts, diff --git a/src/data/things/wiki-info.js b/src/data/things/wiki-info.js index 0bea709f..f97f9027 100644 --- a/src/data/things/wiki-info.js +++ b/src/data/things/wiki-info.js @@ -2,7 +2,7 @@ export const WIKI_INFO_FILE = 'wiki-info.yaml'; import {input} from '#composite'; import Thing from '#thing'; -import {parseContributionPresets} from '#yaml'; +import {parseContributionPresets, parseWallpaperParts} from '#yaml'; import { isBoolean, @@ -14,8 +14,17 @@ import { } from '#validators'; import {exitWithoutDependency} from '#composite/control-flow'; -import {contentString, fileExtension, flag, name, referenceList, soupyFind} - from '#composite/wiki-properties'; + +import { + contentString, + fileExtension, + flag, + name, + referenceList, + simpleString, + soupyFind, + wallpaperParts, +} from '#composite/wiki-properties'; export class WikiInfo extends Thing { static [Thing.friendlyName] = `Wiki Info`; @@ -69,6 +78,8 @@ export class WikiInfo extends Thing { }, wikiWallpaperFileExtension: fileExtension('jpg'), + wikiWallpaperStyle: simpleString(), + wikiWallpaperParts: wallpaperParts(), divideTrackListsByGroups: referenceList({ class: input.value(Group), @@ -114,14 +125,25 @@ export class WikiInfo extends Thing { fields: { 'Name': {property: 'name'}, 'Short Name': {property: 'nameShort'}, + 'Color': {property: 'color'}, + 'Description': {property: 'description'}, + 'Footer Content': {property: 'footerContent'}, + 'Default Language': {property: 'defaultLanguage'}, + 'Canonical Base': {property: 'canonicalBase'}, + 'Wiki Wallpaper File Extension': {property: 'wikiWallpaperFileExtension'}, - 'Divide Track Lists By Groups': {property: 'divideTrackListsByGroups'}, + 'Wiki Wallpaper Style': {property: 'wikiWallpaperStyle'}, + + 'Wiki Wallpaper Parts': { + property: 'wikiWallpaperParts', + transform: parseWallpaperParts, + }, 'Enable Flashes & Games': {property: 'enableFlashesAndGames'}, 'Enable Listings': {property: 'enableListings'}, @@ -129,6 +151,8 @@ export class WikiInfo extends Thing { 'Enable Art Tag UI': {property: 'enableArtTagUI'}, 'Enable Group UI': {property: 'enableGroupUI'}, + 'Divide Track Lists By Groups': {property: 'divideTrackListsByGroups'}, + 'Contribution Presets': { property: 'contributionPresets', transform: parseContributionPresets, |