Skip to content

Commit 9af722c

Browse files
authored
Merge pull request #343 from dataforgoodfr/feat/dynamise-suite
add informations title and donation subtitle in strapi
2 parents 8601f63 + 79d71bf commit 9af722c

File tree

4 files changed

+50
-24
lines changed

4 files changed

+50
-24
lines changed

backend/src/api/donation/content-types/donation/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"banner_title": {
2020
"type": "string"
2121
},
22+
"banner_subtitle": {
23+
"type": "string"
24+
},
2225
"banner_video": {
2326
"type": "media",
2427
"multiple": false,

backend/src/api/projects-list/content-types/projects-list/schema.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
"relation": "oneToMany",
3030
"target": "api::thematic.thematic"
3131
},
32-
"informations": {
33-
"type": "component",
34-
"component": "information.information-block",
35-
"repeatable": true
36-
},
3732
"seasons": {
3833
"type": "relation",
3934
"relation": "oneToMany",
@@ -58,6 +53,14 @@
5853
"type": "component",
5954
"component": "call-to-action.call-to-action",
6055
"repeatable": false
56+
},
57+
"informations_title": {
58+
"type": "string"
59+
},
60+
"informations": {
61+
"type": "component",
62+
"component": "information.information-block",
63+
"repeatable": true
6164
}
6265
}
6366
}

backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"name": "Apache 2.0",
1515
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
1616
},
17-
"x-generation-date": "2025-09-29T13:11:12.255Z"
17+
"x-generation-date": "2025-09-30T19:28:18.174Z"
1818
},
1919
"x-strapi-config": {
2020
"plugins": [
@@ -28088,6 +28088,9 @@
2808828088
"banner_title": {
2808928089
"type": "string"
2809028090
},
28091+
"banner_subtitle": {
28092+
"type": "string"
28093+
},
2809128094
"banner_video": {
2809228095
"oneOf": [
2809328096
{
@@ -28194,6 +28197,9 @@
2819428197
"banner_title": {
2819528198
"type": "string"
2819628199
},
28200+
"banner_subtitle": {
28201+
"type": "string"
28202+
},
2819728203
"banner_video": {
2819828204
"type": "object",
2819928205
"properties": {
@@ -28401,6 +28407,9 @@
2840128407
"banner_title": {
2840228408
"type": "string"
2840328409
},
28410+
"banner_subtitle": {
28411+
"type": "string"
28412+
},
2840428413
"banner_video": {
2840528414
"type": "object",
2840628415
"properties": {
@@ -55309,12 +55318,6 @@
5530955318
"example": "string or id"
5531055319
}
5531155320
},
55312-
"informations": {
55313-
"type": "array",
55314-
"items": {
55315-
"$ref": "#/components/schemas/InformationInformationBlockComponent"
55316-
}
55317-
},
5531855321
"seasons": {
5531955322
"type": "array",
5532055323
"items": {
@@ -55347,6 +55350,15 @@
5534755350
"join_cta": {
5534855351
"$ref": "#/components/schemas/CallToActionCallToActionComponent"
5534955352
},
55353+
"informations_title": {
55354+
"type": "string"
55355+
},
55356+
"informations": {
55357+
"type": "array",
55358+
"items": {
55359+
"$ref": "#/components/schemas/InformationInformationBlockComponent"
55360+
}
55361+
},
5535055362
"locale": {
5535155363
"type": "string"
5535255364
},
@@ -57821,12 +57833,6 @@
5782157833
}
5782257834
}
5782357835
},
57824-
"informations": {
57825-
"type": "array",
57826-
"items": {
57827-
"$ref": "#/components/schemas/InformationInformationBlockComponent"
57828-
}
57829-
},
5783057836
"seasons": {
5783157837
"type": "array",
5783257838
"items": {
@@ -57859,6 +57865,15 @@
5785957865
"join_cta": {
5786057866
"$ref": "#/components/schemas/CallToActionCallToActionComponent"
5786157867
},
57868+
"informations_title": {
57869+
"type": "string"
57870+
},
57871+
"informations": {
57872+
"type": "array",
57873+
"items": {
57874+
"$ref": "#/components/schemas/InformationInformationBlockComponent"
57875+
}
57876+
},
5786257877
"createdAt": {
5786357878
"type": "string",
5786457879
"format": "date-time"
@@ -57930,12 +57945,6 @@
5793057945
}
5793157946
}
5793257947
},
57933-
"informations": {
57934-
"type": "array",
57935-
"items": {
57936-
"$ref": "#/components/schemas/InformationInformationBlockComponent"
57937-
}
57938-
},
5793957948
"seasons": {
5794057949
"type": "array",
5794157950
"items": {
@@ -57968,6 +57977,15 @@
5796857977
"join_cta": {
5796957978
"$ref": "#/components/schemas/CallToActionCallToActionComponent"
5797057979
},
57980+
"informations_title": {
57981+
"type": "string"
57982+
},
57983+
"informations": {
57984+
"type": "array",
57985+
"items": {
57986+
"$ref": "#/components/schemas/InformationInformationBlockComponent"
57987+
}
57988+
},
5797157989
"createdAt": {
5797257990
"type": "string",
5797357991
"format": "date-time"

backend/types/generated/contentTypes.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ export interface ApiDonationDonation extends Struct.SingleTypeSchema {
670670
'call-to-action.call-to-action-with-image',
671671
true
672672
>;
673+
banner_subtitle: Schema.Attribute.String;
673674
banner_title: Schema.Attribute.String;
674675
banner_video: Schema.Attribute.Media<
675676
'images' | 'files' | 'videos' | 'audios'
@@ -1525,6 +1526,7 @@ export interface ApiProjectsListProjectsList extends Struct.SingleTypeSchema {
15251526
'information.information-block',
15261527
true
15271528
>;
1529+
informations_title: Schema.Attribute.String;
15281530
introduction: Schema.Attribute.Text;
15291531
introduction_cta: Schema.Attribute.Component<
15301532
'call-to-action.call-to-action-with-image',

0 commit comments

Comments
 (0)