Skip to content

Commit 9a2339f

Browse files
authored
Merge branch 'master' into feat(frontend)/add-overlay-scrollbar
2 parents a0778d9 + dd50e3c commit 9a2339f

File tree

7 files changed

+95
-22
lines changed

7 files changed

+95
-22
lines changed

cms-backend/src/api/annual-report/content-types/annual-report/schema.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@
1212
},
1313
"pluginOptions": {},
1414
"attributes": {
15-
"url": {
16-
"type": "string"
17-
},
1815
"year": {
1916
"type": "integer"
17+
},
18+
"file": {
19+
"allowedTypes": [
20+
"images",
21+
"files",
22+
"videos",
23+
"audios"
24+
],
25+
"type": "media",
26+
"multiple": true
2027
}
2128
}
2229
}

cms-backend/src/api/risk-report/content-types/risk-report/schema.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
},
1313
"pluginOptions": {},
1414
"attributes": {
15-
"url": {
16-
"type": "string"
17-
},
1815
"month": {
1916
"type": "enumeration",
2017
"enum": [
@@ -34,6 +31,16 @@
3431
},
3532
"year": {
3633
"type": "integer"
34+
},
35+
"file": {
36+
"allowedTypes": [
37+
"images",
38+
"files",
39+
"videos",
40+
"audios"
41+
],
42+
"type": "media",
43+
"multiple": true
3744
}
3845
}
3946
}

cms-backend/src/api/treasury-report/content-types/treasury-report/schema.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
},
1313
"pluginOptions": {},
1414
"attributes": {
15-
"url": {
16-
"type": "string"
17-
},
1815
"month": {
1916
"type": "enumeration",
2017
"enum": [
@@ -34,6 +31,16 @@
3431
},
3532
"year": {
3633
"type": "integer"
34+
},
35+
"file": {
36+
"allowedTypes": [
37+
"images",
38+
"files",
39+
"videos",
40+
"audios"
41+
],
42+
"type": "media",
43+
"multiple": true
3744
}
3845
}
3946
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"collectionName": "components_r_and_d_page_downloadable_formats",
3+
"info": {
4+
"displayName": "DownloadableFormat"
5+
},
6+
"options": {},
7+
"attributes": {
8+
"name": {
9+
"type": "string"
10+
},
11+
"file": {
12+
"allowedTypes": [
13+
"images",
14+
"files",
15+
"videos",
16+
"audios"
17+
],
18+
"type": "media",
19+
"multiple": true
20+
}
21+
}
22+
}
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"collectionName": "components_r_and_d_page_kleros_books",
33
"info": {
4-
"displayName": "KlerosBook"
4+
"displayName": "KlerosBook",
5+
"description": ""
56
},
67
"options": {},
78
"attributes": {
@@ -11,20 +12,21 @@
1112
"bookTitle": {
1213
"type": "string"
1314
},
14-
"downloadFormats": {
15-
"type": "component",
16-
"repeatable": true,
17-
"component": "content.button-link"
18-
},
1915
"bookCover": {
16+
"type": "media",
17+
"multiple": false,
18+
"required": false,
2019
"allowedTypes": [
2120
"images",
2221
"files",
2322
"videos",
2423
"audios"
25-
],
26-
"type": "media",
27-
"multiple": false
24+
]
25+
},
26+
"downloadFormats": {
27+
"type": "component",
28+
"repeatable": true,
29+
"component": "r-and-d-page.downloadable-format"
2830
}
2931
}
3032
}

cms-backend/types/generated/components.d.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,33 @@ export interface PnkTokenPageTokenStatDisplay extends Struct.ComponentSchema {
308308
};
309309
}
310310

311+
export interface RAndDPageDownloadableFormat extends Struct.ComponentSchema {
312+
collectionName: 'components_r_and_d_page_downloadable_formats';
313+
info: {
314+
displayName: 'DownloadableFormat';
315+
};
316+
attributes: {
317+
file: Schema.Attribute.Media<
318+
'images' | 'files' | 'videos' | 'audios',
319+
true
320+
>;
321+
name: Schema.Attribute.String;
322+
};
323+
}
324+
311325
export interface RAndDPageKlerosBook extends Struct.ComponentSchema {
312326
collectionName: 'components_r_and_d_page_kleros_books';
313327
info: {
328+
description: '';
314329
displayName: 'KlerosBook';
315330
};
316331
attributes: {
317332
bookCover: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
318333
bookTitle: Schema.Attribute.String;
319-
downloadFormats: Schema.Attribute.Component<'content.button-link', true>;
334+
downloadFormats: Schema.Attribute.Component<
335+
'r-and-d-page.downloadable-format',
336+
true
337+
>;
320338
subtitle: Schema.Attribute.String;
321339
};
322340
}
@@ -402,6 +420,7 @@ declare module '@strapi/strapi' {
402420
'home.cta': HomeCta;
403421
'home.introduction': HomeIntroduction;
404422
'pnk-token-page.token-stat-display': PnkTokenPageTokenStatDisplay;
423+
'r-and-d-page.downloadable-format': RAndDPageDownloadableFormat;
405424
'r-and-d-page.kleros-book': RAndDPageKlerosBook;
406425
'r-and-d-page.waitlist-section': RAndDPageWaitlistSection;
407426
'table.table': TableTable;

cms-backend/types/generated/contentTypes.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ export interface ApiAnnualReportAnnualReport
385385
createdAt: Schema.Attribute.DateTime;
386386
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
387387
Schema.Attribute.Private;
388+
file: Schema.Attribute.Media<
389+
'images' | 'files' | 'videos' | 'audios',
390+
true
391+
>;
388392
locale: Schema.Attribute.String & Schema.Attribute.Private;
389393
localizations: Schema.Attribute.Relation<
390394
'oneToMany',
@@ -395,7 +399,6 @@ export interface ApiAnnualReportAnnualReport
395399
updatedAt: Schema.Attribute.DateTime;
396400
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
397401
Schema.Attribute.Private;
398-
url: Schema.Attribute.String;
399402
year: Schema.Attribute.Integer;
400403
};
401404
}
@@ -2330,6 +2333,10 @@ export interface ApiRiskReportRiskReport extends Struct.CollectionTypeSchema {
23302333
createdAt: Schema.Attribute.DateTime;
23312334
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
23322335
Schema.Attribute.Private;
2336+
file: Schema.Attribute.Media<
2337+
'images' | 'files' | 'videos' | 'audios',
2338+
true
2339+
>;
23332340
locale: Schema.Attribute.String & Schema.Attribute.Private;
23342341
localizations: Schema.Attribute.Relation<
23352342
'oneToMany',
@@ -2356,7 +2363,6 @@ export interface ApiRiskReportRiskReport extends Struct.CollectionTypeSchema {
23562363
updatedAt: Schema.Attribute.DateTime;
23572364
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
23582365
Schema.Attribute.Private;
2359-
url: Schema.Attribute.String;
23602366
year: Schema.Attribute.Integer;
23612367
};
23622368
}
@@ -2598,6 +2604,10 @@ export interface ApiTreasuryReportTreasuryReport
25982604
createdAt: Schema.Attribute.DateTime;
25992605
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
26002606
Schema.Attribute.Private;
2607+
file: Schema.Attribute.Media<
2608+
'images' | 'files' | 'videos' | 'audios',
2609+
true
2610+
>;
26012611
locale: Schema.Attribute.String & Schema.Attribute.Private;
26022612
localizations: Schema.Attribute.Relation<
26032613
'oneToMany',
@@ -2624,7 +2634,6 @@ export interface ApiTreasuryReportTreasuryReport
26242634
updatedAt: Schema.Attribute.DateTime;
26252635
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
26262636
Schema.Attribute.Private;
2627-
url: Schema.Attribute.String;
26282637
year: Schema.Attribute.Integer;
26292638
};
26302639
}

0 commit comments

Comments
 (0)