Skip to content

Commit

Permalink
Merge pull request #25 from openobserve/dev
Browse files Browse the repository at this point in the history
feat: add new faq component for the faq page and add fields in contac…
  • Loading branch information
ktx-krupa authored Feb 6, 2025
2 parents 1bd6dd3 + 0df375b commit 5673a98
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/api/faq/content-types/faq/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"section-hero.resource-hero-section",
"section-faqs.frequently-asked-question",
"section-cta.banner",
"seo.seo"
"seo.seo",
"section-faqs.fa-qs-page-section"
]
},
"seo": {
Expand Down
15 changes: 15 additions & 0 deletions src/components/section-faqs/fa-qs-page-section.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"collectionName": "components_section_faqs_fa_qs_page_sections",
"info": {
"displayName": "FAQs Page Section",
"description": ""
},
"options": {},
"attributes": {
"faqs": {
"type": "component",
"repeatable": true,
"component": "elements.faq-item"
}
}
}
8 changes: 6 additions & 2 deletions src/components/section-faqs/frequently-asked-question.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"collectionName": "components_section_faqs_frequently_asked_questions",
"info": {
"displayName": "Frequently Asked Question"
"displayName": "Frequently Asked Question",
"description": ""
},
"options": {},
"attributes": {
Expand All @@ -15,6 +16,9 @@
"repeatable": true,
"component": "elements.faq-item",
"required": true
},
"subTitle": {
"type": "string"
}
}
}
}
15 changes: 14 additions & 1 deletion src/components/section-forms/contact.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
{
"collectionName": "components_section_forms_contacts",
"info": {
"displayName": "Contact"
"displayName": "Contact",
"description": ""
},
"options": {},
"attributes": {
"heading": {
"type": "component",
"repeatable": false,
"component": "elements.heading"
},
"description": {
"type": "text",
"required": false
},
"items": {
"type": "component",
"repeatable": true,
"component": "elements.items"
},
"subTitle": {
"type": "text"
}
}
}
18 changes: 18 additions & 0 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,16 +480,29 @@ export interface SectionCtaPlainCta extends Struct.ComponentSchema {
};
}

export interface SectionFaqsFaQsPageSection extends Struct.ComponentSchema {
collectionName: 'components_section_faqs_fa_qs_page_sections';
info: {
description: '';
displayName: 'FAQs Page Section';
};
attributes: {
faqs: Schema.Attribute.Component<'elements.faq-item', true>;
};
}

export interface SectionFaqsFrequentlyAskedQuestion
extends Struct.ComponentSchema {
collectionName: 'components_section_faqs_frequently_asked_questions';
info: {
description: '';
displayName: 'Frequently Asked Question';
};
attributes: {
faqs: Schema.Attribute.Component<'elements.faq-item', true> &
Schema.Attribute.Required;
heading: Schema.Attribute.Component<'elements.heading', false>;
subTitle: Schema.Attribute.String;
};
}

Expand Down Expand Up @@ -597,10 +610,14 @@ export interface SectionFeaturesTabsFeatures extends Struct.ComponentSchema {
export interface SectionFormsContact extends Struct.ComponentSchema {
collectionName: 'components_section_forms_contacts';
info: {
description: '';
displayName: 'Contact';
};
attributes: {
description: Schema.Attribute.Text;
heading: Schema.Attribute.Component<'elements.heading', false>;
items: Schema.Attribute.Component<'elements.items', true>;
subTitle: Schema.Attribute.Text;
};
}

Expand Down Expand Up @@ -885,6 +902,7 @@ declare module '@strapi/strapi' {
'section-cta.banner': SectionCtaBanner;
'section-cta.call-to-action': SectionCtaCallToAction;
'section-cta.plain-cta': SectionCtaPlainCta;
'section-faqs.fa-qs-page-section': SectionFaqsFaQsPageSection;
'section-faqs.frequently-asked-question': SectionFaqsFrequentlyAskedQuestion;
'section-features.feature-list': SectionFeaturesFeatureList;
'section-features.feature-sub-page-top-tabs': SectionFeaturesFeatureSubPageTopTabs;
Expand Down
1 change: 1 addition & 0 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ export interface ApiFaqFaq extends Struct.SingleTypeSchema {
'section-faqs.frequently-asked-question',
'section-cta.banner',
'seo.seo',
'section-faqs.fa-qs-page-section',
]
>;
createdAt: Schema.Attribute.DateTime;
Expand Down

0 comments on commit 5673a98

Please sign in to comment.