Skip to content

Commit b347557

Browse files
committed
refactor(cms):r-and-d-types
1 parent 1bf35db commit b347557

File tree

9 files changed

+30
-66
lines changed

9 files changed

+30
-66
lines changed

cms-backend/src/api/r-and-d-page-fellowship-tab-section/content-types/r-and-d-page-fellowship-tab-section/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
},
2727
"tabName": {
2828
"type": "string"
29+
},
30+
"waitlistSection": {
31+
"type": "component",
32+
"repeatable": false,
33+
"component": "r-and-d-page.waitlist-section"
2934
}
3035
}
3136
}

cms-backend/src/api/r-and-d-page-fellowship-waitlist-section/controllers/r-and-d-page-fellowship-waitlist-section.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

cms-backend/src/api/r-and-d-page-fellowship-waitlist-section/routes/r-and-d-page-fellowship-waitlist-section.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

cms-backend/src/api/r-and-d-page-fellowship-waitlist-section/services/r-and-d-page-fellowship-waitlist-section.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

cms-backend/src/api/research/content-types/research/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"info": {
55
"singularName": "research",
66
"pluralName": "researches",
7-
"displayName": "research",
7+
"displayName": "Research",
88
"description": ""
99
},
1010
"options": {

cms-backend/src/api/third-party-publication/content-types/third-party-publication/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"pluginOptions": {},
1414
"attributes": {
15-
"Topic": {
15+
"topic": {
1616
"type": "text"
1717
},
1818
"paperLink": {
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
{
2-
"kind": "singleType",
3-
"collectionName": "r_and_d_page_fellowship_waitlist_sections",
2+
"collectionName": "components_r_and_d_page_waitlist_sections",
43
"info": {
5-
"singularName": "r-and-d-page-fellowship-waitlist-section",
6-
"pluralName": "r-and-d-page-fellowship-waitlist-sections",
7-
"displayName": "R&DPageFellowshipWaitlistSection"
4+
"displayName": "WaitlistSection"
85
},
9-
"options": {
10-
"draftAndPublish": true
11-
},
12-
"pluginOptions": {},
6+
"options": {},
137
"attributes": {
148
"header": {
159
"type": "string"

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
import type { Struct, Schema } from '@strapi/strapi';
22

3+
export interface RAndDPageWaitlistSection extends Struct.ComponentSchema {
4+
collectionName: 'components_r_and_d_page_waitlist_sections';
5+
info: {
6+
displayName: 'WaitlistSection';
7+
};
8+
attributes: {
9+
header: Schema.Attribute.String;
10+
applyButton: Schema.Attribute.Component<'content.button-link', false>;
11+
arrowLink: Schema.Attribute.Component<'content.button-link', false>;
12+
icon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
13+
};
14+
}
15+
316
export interface RAndDPageKlerosBook extends Struct.ComponentSchema {
417
collectionName: 'components_r_and_d_page_kleros_books';
518
info: {
@@ -199,6 +212,7 @@ export interface ContentButtonLink extends Struct.ComponentSchema {
199212
declare module '@strapi/strapi' {
200213
export module Public {
201214
export interface ComponentSchemas {
215+
'r-and-d-page.waitlist-section': RAndDPageWaitlistSection;
202216
'r-and-d-page.kleros-book': RAndDPageKlerosBook;
203217
'pnk-token-page.token-stat-display': PnkTokenPageTokenStatDisplay;
204218
'for-builders-page.solution-section': ForBuildersPageSolutionSection;

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

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,37 +1467,10 @@ export interface ApiRAndDPageFellowshipTabSectionRAndDPageFellowshipTabSection
14671467
testimonialsHeader: Schema.Attribute.String;
14681468
fellowsHeader: Schema.Attribute.String;
14691469
tabName: Schema.Attribute.String;
1470-
createdAt: Schema.Attribute.DateTime;
1471-
updatedAt: Schema.Attribute.DateTime;
1472-
publishedAt: Schema.Attribute.DateTime;
1473-
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
1474-
Schema.Attribute.Private;
1475-
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
1476-
Schema.Attribute.Private;
1477-
locale: Schema.Attribute.String;
1478-
localizations: Schema.Attribute.Relation<
1479-
'oneToMany',
1480-
'api::r-and-d-page-fellowship-tab-section.r-and-d-page-fellowship-tab-section'
1470+
waitlistSection: Schema.Attribute.Component<
1471+
'r-and-d-page.waitlist-section',
1472+
false
14811473
>;
1482-
};
1483-
}
1484-
1485-
export interface ApiRAndDPageFellowshipWaitlistSectionRAndDPageFellowshipWaitlistSection
1486-
extends Struct.SingleTypeSchema {
1487-
collectionName: 'r_and_d_page_fellowship_waitlist_sections';
1488-
info: {
1489-
singularName: 'r-and-d-page-fellowship-waitlist-section';
1490-
pluralName: 'r-and-d-page-fellowship-waitlist-sections';
1491-
displayName: 'R&DPageFellowshipWaitlistSection';
1492-
};
1493-
options: {
1494-
draftAndPublish: true;
1495-
};
1496-
attributes: {
1497-
header: Schema.Attribute.String;
1498-
applyButton: Schema.Attribute.Component<'content.button-link', false>;
1499-
arrowLink: Schema.Attribute.Component<'content.button-link', false>;
1500-
icon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
15011474
createdAt: Schema.Attribute.DateTime;
15021475
updatedAt: Schema.Attribute.DateTime;
15031476
publishedAt: Schema.Attribute.DateTime;
@@ -1508,7 +1481,7 @@ export interface ApiRAndDPageFellowshipWaitlistSectionRAndDPageFellowshipWaitlis
15081481
locale: Schema.Attribute.String;
15091482
localizations: Schema.Attribute.Relation<
15101483
'oneToMany',
1511-
'api::r-and-d-page-fellowship-waitlist-section.r-and-d-page-fellowship-waitlist-section'
1484+
'api::r-and-d-page-fellowship-tab-section.r-and-d-page-fellowship-tab-section'
15121485
>;
15131486
};
15141487
}
@@ -1588,7 +1561,7 @@ export interface ApiResearchResearch extends Struct.CollectionTypeSchema {
15881561
info: {
15891562
singularName: 'research';
15901563
pluralName: 'researches';
1591-
displayName: 'research';
1564+
displayName: 'Research';
15921565
description: '';
15931566
};
15941567
options: {
@@ -1792,7 +1765,7 @@ export interface ApiThirdPartyPublicationThirdPartyPublication
17921765
draftAndPublish: true;
17931766
};
17941767
attributes: {
1795-
Topic: Schema.Attribute.Text;
1768+
topic: Schema.Attribute.Text;
17961769
paperLink: Schema.Attribute.Component<'content.button-link', false>;
17971770
createdAt: Schema.Attribute.DateTime;
17981771
updatedAt: Schema.Attribute.DateTime;
@@ -2348,7 +2321,6 @@ declare module '@strapi/strapi' {
23482321
'api::pnk-token-page-need-section.pnk-token-page-need-section': ApiPnkTokenPageNeedSectionPnkTokenPageNeedSection;
23492322
'api::pnk-token-page-tokenomics-section.pnk-token-page-tokenomics-section': ApiPnkTokenPageTokenomicsSectionPnkTokenPageTokenomicsSection;
23502323
'api::r-and-d-page-fellowship-tab-section.r-and-d-page-fellowship-tab-section': ApiRAndDPageFellowshipTabSectionRAndDPageFellowshipTabSection;
2351-
'api::r-and-d-page-fellowship-waitlist-section.r-and-d-page-fellowship-waitlist-section': ApiRAndDPageFellowshipWaitlistSectionRAndDPageFellowshipWaitlistSection;
23522324
'api::r-and-d-page-hero.r-and-d-page-hero': ApiRAndDPageHeroRAndDPageHero;
23532325
'api::r-and-d-page-research-tab-section.r-and-d-page-research-tab-section': ApiRAndDPageResearchTabSectionRAndDPageResearchTabSection;
23542326
'api::research.research': ApiResearchResearch;

0 commit comments

Comments
 (0)