From da00ab91c2fa15bd7dddad356eca98de7439e6e4 Mon Sep 17 00:00:00 2001
From: Daniel Klein
Date: Tue, 17 Sep 2024 08:23:56 +0200
Subject: [PATCH] feat(listing): links icons
---
components/Card.vue | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/components/Card.vue b/components/Card.vue
index 07b8ea5..4b1ad12 100644
--- a/components/Card.vue
+++ b/components/Card.vue
@@ -8,7 +8,7 @@ const { switcher, ecosystems } = storeToRefs(useData())
const ratings: { label: string, type: string, rating: ProjectRating }[] = (props.project.ratings || []).map(rating => ({ label: rating.name, type: 'rating', rating: rating }))
const ecosystem: { label: string[], type: string } = { label: ecosystems.value.filter(e => (props.project.ecosystem || []).includes(e.id)).map(e => e.icon!), type: 'ecosystem' }
-const projectItems: { label: string | string[], type: string, rating?: ProjectRating }[] = [{ label: props.project.usecases || [], type: 'array' }, ...ratings, ecosystem, { label: ['Links'], type: 'array' }]
+const projectItems: { label: string | string[], type: string, rating?: ProjectRating }[] = [{ label: props.project.usecases || [], type: 'array' }, ...ratings, ecosystem, { label: [props.project.website || '', props.project.github || '', props.project.twitter || ''], type: 'links' }]
@@ -99,6 +99,48 @@ const projectItems: { label: string | string[], type: string, rating?: ProjectRa
>
{{ (projectItem.label as string[] || []).join(', ') }}
+
+
+
+
+
+
+
+
+
+
+