Added custom text property to summary templates. Added URL to summary mock-up.

This commit is contained in:
DebaucheryLibrarian 2025-11-14 03:00:10 +01:00
parent 90da4b592a
commit b9c1c9914d
2 changed files with 8 additions and 3 deletions

View File

@ -102,11 +102,12 @@ const profile = ref(pageContext.pageProps.profile);
const now = new Date();
const mockupRelease = {
id: 1,
id: 0,
title: 'Nut For Human Consumption',
url: 'https://traxxx.me/scene/0/nut-for-human-consumption',
date: now,
effectiveDate: now,
createdAt: new Date(2024, 0, 1),
createdAt: new Date(now.getFullYear(), 0, 1),
actors: [
{
name: 'Chanel Chakra',
@ -125,7 +126,7 @@ const mockupRelease = {
{ name: 'facial' },
],
movies: [{
title: 'Best Of Traxxx 23',
title: `Best Of Traxxx ${String(now.getFullYear()).slice(2)}`,
}],
channel: {
name: 'Traxxxed',

View File

@ -78,6 +78,10 @@ function traverseTemplate(chain, release, { delimit = ' ' } = {}) {
return result;
}
if (item.text) {
return result.concat(curateValue(item.text, item));
}
if (keys) {
const value = keys.split('|').reduce((acc, key) => acc
|| propProcessors[key]?.(release, typeof item === 'string' ? { key } : item)