Skip to content

Commit 80093da

Browse files
authored
Merge pull request #144 from openobserve/dev
feat: add Testimonial2 component schema and integrate into landing pa…
2 parents dcb7eea + 15478b2 commit 80093da

4 files changed

Lines changed: 47 additions & 2 deletions

File tree

src/api/landing-page/content-types/landing-page/schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
"landing-page-component.architecture-section",
4242
"landing-page-component.social-proof-section",
4343
"section-hero.homepage-hero",
44-
"section-features.home-marketecture-section"
44+
"section-features.home-marketecture-section",
45+
"landing-page-component.testimonial2"
4546
]
4647
}
4748
}
48-
}
49+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"collectionName": "components_landing_page_component_testimonial2s",
3+
"info": {
4+
"displayName": "Testimonial2"
5+
},
6+
"options": {},
7+
"attributes": {
8+
"name": {
9+
"type": "string"
10+
},
11+
"role": {
12+
"type": "string"
13+
},
14+
"quote": {
15+
"type": "text"
16+
},
17+
"image": {
18+
"allowedTypes": [
19+
"images",
20+
"files",
21+
"videos",
22+
"audios"
23+
],
24+
"type": "media",
25+
"multiple": false
26+
}
27+
}
28+
}

types/generated/components.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,20 @@ export interface LandingPageComponentTestimonialSection
11111111
};
11121112
}
11131113

1114+
export interface LandingPageComponentTestimonial2
1115+
extends Struct.ComponentSchema {
1116+
collectionName: 'components_landing_page_component_testimonial2s';
1117+
info: {
1118+
displayName: 'Testimonial2';
1119+
};
1120+
attributes: {
1121+
image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
1122+
name: Schema.Attribute.String;
1123+
quote: Schema.Attribute.Text;
1124+
role: Schema.Attribute.String;
1125+
};
1126+
}
1127+
11141128
export interface SectionCardsAdditionalResources
11151129
extends Struct.ComponentSchema {
11161130
collectionName: 'components_section_cards_additional_resources';
@@ -2077,6 +2091,7 @@ declare module '@strapi/strapi' {
20772091
'landing-page-component.social-proof-section': LandingPageComponentSocialProofSection;
20782092
'landing-page-component.terms-and-conditions': LandingPageComponentTermsAndConditions;
20792093
'landing-page-component.testimonial-section': LandingPageComponentTestimonialSection;
2094+
'landing-page-component.testimonial2': LandingPageComponentTestimonial2;
20802095
'section-cards.additional-resources': SectionCardsAdditionalResources;
20812096
'section-cards.articles': SectionCardsArticles;
20822097
'section-cards.blog': SectionCardsBlog;

types/generated/contentTypes.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ export interface ApiLandingPageLandingPage extends Struct.CollectionTypeSchema {
12641264
'landing-page-component.social-proof-section',
12651265
'section-hero.homepage-hero',
12661266
'section-features.home-marketecture-section',
1267+
'landing-page-component.testimonial2',
12671268
]
12681269
>;
12691270
createdAt: Schema.Attribute.DateTime;

0 commit comments

Comments
 (0)