From c33ea6064e4f9112dd0f8473cd3c76fb2482bf25 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Fri, 7 Jun 2024 05:20:13 +0200 Subject: [PATCH] Added descriptions to actor profile page, using profiles for secondary photos. --- components/actors/bio.vue | 17 +++++++++----- pages/actors/@actorId/+Page.vue | 13 +++++------ src/actors.js | 40 +++++++++++++-------------------- src/media.js | 1 + src/scenes.js | 19 +--------------- 5 files changed, 35 insertions(+), 55 deletions(-) diff --git a/components/actors/bio.vue b/components/actors/bio.vue index 052635c..5ba1dcb 100644 --- a/components/actors/bio.vue +++ b/components/actors/bio.vue @@ -244,25 +244,25 @@

{{ description.text }} @@ -325,6 +325,13 @@ const showExpand = [ 'waist', 'weight', ].some((attribute) => !!props.actor[attribute]); + +const descriptions = Object.values(Object.fromEntries(props.actor.profiles + .filter((profile) => !!profile.description) + .map((profile) => [profile.descriptionHash, { + text: profile.description, + entity: profile.entity, + }])));