Added custom text property to summary templates. Added URL to summary mock-up.
This commit is contained in:
parent
90da4b592a
commit
b9c1c9914d
|
|
@ -102,11 +102,12 @@ const profile = ref(pageContext.pageProps.profile);
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
|
||||||
const mockupRelease = {
|
const mockupRelease = {
|
||||||
id: 1,
|
id: 0,
|
||||||
title: 'Nut For Human Consumption',
|
title: 'Nut For Human Consumption',
|
||||||
|
url: 'https://traxxx.me/scene/0/nut-for-human-consumption',
|
||||||
date: now,
|
date: now,
|
||||||
effectiveDate: now,
|
effectiveDate: now,
|
||||||
createdAt: new Date(2024, 0, 1),
|
createdAt: new Date(now.getFullYear(), 0, 1),
|
||||||
actors: [
|
actors: [
|
||||||
{
|
{
|
||||||
name: 'Chanel Chakra',
|
name: 'Chanel Chakra',
|
||||||
|
|
@ -125,7 +126,7 @@ const mockupRelease = {
|
||||||
{ name: 'facial' },
|
{ name: 'facial' },
|
||||||
],
|
],
|
||||||
movies: [{
|
movies: [{
|
||||||
title: 'Best Of Traxxx 23',
|
title: `Best Of Traxxx ${String(now.getFullYear()).slice(2)}`,
|
||||||
}],
|
}],
|
||||||
channel: {
|
channel: {
|
||||||
name: 'Traxxxed',
|
name: 'Traxxxed',
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,10 @@ function traverseTemplate(chain, release, { delimit = ' ' } = {}) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.text) {
|
||||||
|
return result.concat(curateValue(item.text, item));
|
||||||
|
}
|
||||||
|
|
||||||
if (keys) {
|
if (keys) {
|
||||||
const value = keys.split('|').reduce((acc, key) => acc
|
const value = keys.split('|').reduce((acc, key) => acc
|
||||||
|| propProcessors[key]?.(release, typeof item === 'string' ? { key } : item)
|
|| propProcessors[key]?.(release, typeof item === 'string' ? { key } : item)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue