diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-09-03 17:24:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-09-03 17:24:21 -0300 |
commit | 402e792e28a2fd872e7581c8e005ebb35a3eab36 (patch) | |
tree | 0557eb38620ae65df3ed6b913684ba6e16d7ae6b /src/data/things | |
parent | c7f6383e34c30b63e0e0b86f320f42f2c9a0bdb7 (diff) |
data: WikiInfo.canonicalMediaBase
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/wiki-info.js | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/data/things/wiki-info.js b/src/data/things/wiki-info.js index b6057735..7fb6a350 100644 --- a/src/data/things/wiki-info.js +++ b/src/data/things/wiki-info.js @@ -10,12 +10,12 @@ import { isContributionPresetList, isLanguageCode, isName, - isURL, } from '#validators'; import {exitWithoutDependency, exposeConstant} from '#composite/control-flow'; import { + canonicalBase, contentString, fileExtension, flag, @@ -64,18 +64,8 @@ export class WikiInfo extends Thing { update: {validate: isLanguageCode}, }, - canonicalBase: { - flags: {update: true, expose: true}, - update: {validate: isURL}, - expose: { - transform: (value) => - (value === null - ? null - : value.endsWith('/') - ? value - : value + '/'), - }, - }, + canonicalBase: canonicalBase(), + canonicalMediaBase: canonicalBase(), wikiWallpaperFileExtension: fileExtension('jpg'), wikiWallpaperStyle: simpleString(), @@ -143,6 +133,7 @@ export class WikiInfo extends Thing { 'Default Language': {property: 'defaultLanguage'}, 'Canonical Base': {property: 'canonicalBase'}, + 'Canonical Media Base': {property: 'canonicalMediaBase'}, 'Wiki Wallpaper File Extension': {property: 'wikiWallpaperFileExtension'}, |