feat: add social network field to artiste #3

Merged
cedric merged 2 commits from feat/improve-artist-page into master 2026-06-26 17:36:33 +00:00
4 changed files with 79 additions and 0 deletions
@@ -66,6 +66,11 @@
"type": "relation",
"relation": "manyToOne",
"target": "api::parole.parole"
},
"rezoSosyal": {
"type": "component",
"repeatable": true,
"component": "social.rezo-sosyal"
}
}
}
+38
View File
@@ -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
}
}
}
+35
View File
@@ -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;
+1
View File
@@ -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;