From a10d854ee8e8033dc2857b84538881412af4ec6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 26 Jun 2026 12:23:29 +0400 Subject: [PATCH] feat: add social network component and artiste field --- .../artiste/content-types/artiste/schema.json | 5 +++ src/components/social/rezo-sosyal.json | 38 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src/components/social/rezo-sosyal.json diff --git a/src/api/artiste/content-types/artiste/schema.json b/src/api/artiste/content-types/artiste/schema.json index f5fd683..5e3de17 100644 --- a/src/api/artiste/content-types/artiste/schema.json +++ b/src/api/artiste/content-types/artiste/schema.json @@ -66,6 +66,11 @@ "type": "relation", "relation": "manyToOne", "target": "api::parole.parole" + }, + "rezoSosyal": { + "type": "component", + "repeatable": true, + "component": "social.rezo-sosyal" } } } diff --git a/src/components/social/rezo-sosyal.json b/src/components/social/rezo-sosyal.json new file mode 100644 index 0000000..6ac0e21 --- /dev/null +++ b/src/components/social/rezo-sosyal.json @@ -0,0 +1,38 @@ +{ + "collectionName": "components_social_rezo_sosyal", + "info": { + "displayName": "Rézo Sosyal", + "icon": "earth", + "description": "" + }, + "options": {}, + "attributes": { + "plateforme": { + "type": "enumeration", + "enum": [ + "Mastodon", + "Peertube", + "Pixelfed", + "Funkwhale", + "Bluesky", + "Instagram", + "Youtube", + "Tiktok", + "Spotify", + "Deezer", + "Applemusic", + "Bandcamp", + "Soundcloud", + "Facebook", + "Twitter", + "Linktree", + "SiteWeb" + ], + "required": true + }, + "url": { + "type": "string", + "required": true + } + } +}