Skip to content

Commit

Permalink
Merge pull request #50 from epam/getInTouch
Browse files Browse the repository at this point in the history
Get in touch
  • Loading branch information
kelbitskaya authored Aug 4, 2024
2 parents 9b6d705 + ee8da67 commit 21b5b2b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 17 deletions.
3 changes: 2 additions & 1 deletion src/api/page/content-types/page/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"sections.chart",
"sections.testimonials",
"sections.timeline",
"sections.two-columns"
"sections.two-columns",
"sections.get-in-touch-form"
]
}
}
Expand Down
26 changes: 26 additions & 0 deletions src/components/sections/get-in-touch-form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"collectionName": "components_sections_get_in_touch_forms",
"info": {
"displayName": "GetInTouchForm",
"description": ""
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"text": {
"type": "text"
},
"url": {
"type": "string",
"regex": "\\bhttps?:\\/\\/[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)",
"unique": false
},
"showWave": {
"type": "boolean",
"default": false,
"required": true
}
}
}
47 changes: 32 additions & 15 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,20 +720,6 @@ export interface SharedArticleCategoryTab extends Schema.Component {
};
}

export interface MetaMetadata extends Schema.Component {
collectionName: 'components_meta_metadata';
info: {
name: 'Metadata';
displayName: 'Metadata';
icon: 'robot';
description: '';
};
attributes: {
metaTitle: Attribute.String & Attribute.Required;
metaDescription: Attribute.Text & Attribute.Required;
};
}

export interface SectionsWaveBanner extends Schema.Component {
collectionName: 'components_sections_wave_banners';
info: {
Expand Down Expand Up @@ -956,6 +942,22 @@ export interface SectionsHeroBanner extends Schema.Component {
};
}

export interface SectionsGetInTouchForm extends Schema.Component {
collectionName: 'components_sections_get_in_touch_forms';
info: {
displayName: 'GetInTouchForm';
description: '';
};
attributes: {
title: Attribute.String;
text: Attribute.Text;
url: Attribute.String;
showWave: Attribute.Boolean &
Attribute.Required &
Attribute.DefaultTo<false>;
};
}

export interface SectionsEmailForm extends Schema.Component {
collectionName: 'components_sections_email_forms';
info: {
Expand Down Expand Up @@ -1068,6 +1070,20 @@ export interface SectionsBlocksGrid extends Schema.Component {
};
}

export interface MetaMetadata extends Schema.Component {
collectionName: 'components_meta_metadata';
info: {
name: 'Metadata';
displayName: 'Metadata';
icon: 'robot';
description: '';
};
attributes: {
metaTitle: Attribute.String & Attribute.Required;
metaDescription: Attribute.Text & Attribute.Required;
};
}

declare module '@strapi/types' {
export module Shared {
export interface Components {
Expand All @@ -1091,7 +1107,6 @@ declare module '@strapi/types' {
'shared.color': SharedColor;
'shared.button': SharedButton;
'shared.article-category-tab': SharedArticleCategoryTab;
'meta.metadata': MetaMetadata;
'sections.wave-banner': SectionsWaveBanner;
'sections.two-columns': SectionsTwoColumns;
'sections.top-stripe': SectionsTopStripe;
Expand All @@ -1104,13 +1119,15 @@ declare module '@strapi/types' {
'sections.info-cards-type-a': SectionsInfoCardsTypeA;
'sections.image-banner': SectionsImageBanner;
'sections.hero-banner': SectionsHeroBanner;
'sections.get-in-touch-form': SectionsGetInTouchForm;
'sections.email-form': SectionsEmailForm;
'sections.contact-banner': SectionsContactBanner;
'sections.columns': SectionsColumns;
'sections.columns-with-tabs': SectionsColumnsWithTabs;
'sections.chart': SectionsChart;
'sections.carousel': SectionsCarousel;
'sections.blocks-grid': SectionsBlocksGrid;
'meta.metadata': MetaMetadata;
}
}
}
3 changes: 2 additions & 1 deletion types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,8 @@ export interface ApiPagePage extends Schema.CollectionType {
'sections.chart',
'sections.testimonials',
'sections.timeline',
'sections.two-columns'
'sections.two-columns',
'sections.get-in-touch-form'
]
> &
Attribute.SetPluginOptions<{
Expand Down

0 comments on commit 21b5b2b

Please sign in to comment.