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 1/2] 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 + } + } +} From fcd1e737abfa88ac7d93402b3abe47a0ee329ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 26 Jun 2026 12:23:41 +0400 Subject: [PATCH 2/2] chore: regenerate types after rezoSosyal field --- types/generated/components.d.ts | 35 +++++++++++++++++++++++++++++++ types/generated/contentTypes.d.ts | 1 + 2 files changed, 36 insertions(+) diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 9465972..e06e519 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -25,6 +25,40 @@ export interface DifferenceParolesDiff extends Struct.ComponentSchema { }; } +export interface SocialRezoSosyal extends Struct.ComponentSchema { + collectionName: 'components_social_rezo_sosyal'; + info: { + description: ''; + displayName: 'R\u00E9zo Sosyal'; + icon: 'earth'; + }; + attributes: { + plateforme: Schema.Attribute.Enumeration< + [ + 'Mastodon', + 'Peertube', + 'Pixelfed', + 'Funkwhale', + 'Bluesky', + 'Instagram', + 'Youtube', + 'Tiktok', + 'Spotify', + 'Deezer', + 'Applemusic', + 'Bandcamp', + 'Soundcloud', + 'Facebook', + 'Twitter', + 'Linktree', + 'SiteWeb', + ] + > & + Schema.Attribute.Required; + url: Schema.Attribute.String & Schema.Attribute.Required; + }; +} + export interface StoreAlbum extends Struct.ComponentSchema { collectionName: 'components_store_albums'; info: { @@ -84,6 +118,7 @@ declare module '@strapi/strapi' { export module Public { export interface ComponentSchemas { 'difference.paroles-diff': DifferenceParolesDiff; + 'social.rezo-sosyal': SocialRezoSosyal; 'store.album': StoreAlbum; 'trad.traductions': TradTraductions; 'url.liens': UrlLiens; diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index c5ea3af..fe1979b 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -462,6 +462,7 @@ export interface ApiArtisteArtiste extends Struct.CollectionTypeSchema { photo: Schema.Attribute.Media<'images'>; prenom: Schema.Attribute.String; publishedAt: Schema.Attribute.DateTime; + rezoSosyal: Schema.Attribute.Component<'social.rezo-sosyal', true>; slug: Schema.Attribute.String; titrePhare: Schema.Attribute.Relation<'manyToOne', 'api::parole.parole'>; updatedAt: Schema.Attribute.DateTime;