Skip to content

Commit

Permalink
Update Home component and services
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard committed Nov 19, 2024
1 parent 03201df commit 02b014f
Show file tree
Hide file tree
Showing 16 changed files with 810 additions and 695 deletions.
13 changes: 9 additions & 4 deletions cms/src/api/home/content-types/home/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "home",
"pluralName": "homes",
"displayName": "Home"
"displayName": "Home",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -17,9 +18,6 @@
"Description": {
"type": "text"
},
"About": {
"type": "richtext"
},
"Mining_blocks": {
"type": "component",
"repeatable": true,
Expand All @@ -29,6 +27,13 @@
"type": "component",
"repeatable": true,
"component": "page.feature-block"
},
"About": {
"type": "customField",
"options": {
"preset": "toolbar"
},
"customField": "plugin::ckeditor5.CKEditor"
}
}
}
116 changes: 58 additions & 58 deletions cms/types/generated/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,124 +1,124 @@
import type { Schema, Attribute } from '@strapi/strapi';
import type { Attribute, Schema } from '@strapi/strapi';

export interface PageScrollButton extends Schema.Component {
collectionName: 'components_page_scroll_buttons';
export interface ComponentsFooterLink extends Schema.Component {
collectionName: 'components_components_footer_links';
info: {
displayName: 'Scroll Button';
description: '';
displayName: 'FooterLink';
};
attributes: {
Text: Attribute.String;
Section_id: Attribute.String;
Link_name: Attribute.String;
Page: Attribute.Relation<
'components.footer-link',
'oneToOne',
'api::page.page'
>;
};
}

export interface PageFeatureBlock extends Schema.Component {
collectionName: 'components_page_feature_blocks';
export interface ComponentsInternalLink extends Schema.Component {
collectionName: 'components_components_internal_links';
info: {
displayName: 'Feature Block';
icon: 'grid';
description: '';
displayName: 'internalLink';
};
attributes: {
Title: Attribute.String;
Description: Attribute.String;
page: Attribute.Relation<
'page.feature-block',
Description: Attribute.Text;
Link: Attribute.Relation<
'components.internal-link',
'oneToOne',
'api::page.page'
>;
Link_heading: Attribute.String;
};
}

export interface LayoutHeader extends Schema.Component {
collectionName: 'components_layout_headers';
export interface ComponentsLink extends Schema.Component {
collectionName: 'components_components_links';
info: {
displayName: 'NavLinks';
description: '';
displayName: 'externalLink';
};
attributes: {
Nav_heading: Attribute.String;
Footer_link: Attribute.Component<'components.footer-link', true>;
url: Attribute.String;
Url_name: Attribute.String;
};
}

export interface LayoutFooterBar extends Schema.Component {
collectionName: 'components_layout_footer_bars';
export interface ComponentsSocialLink extends Schema.Component {
collectionName: 'components_components_social_links';
info: {
displayName: 'footer_bar';
description: '';
displayName: 'SocialLink';
};
attributes: {
External_link: Attribute.Component<'components.link', true>;
Image: Attribute.Media<'images' | 'files' | 'videos' | 'audios', true>;
Url: Attribute.String;
};
}

export interface ComponentsSocialLink extends Schema.Component {
collectionName: 'components_components_social_links';
export interface LayoutFooterBar extends Schema.Component {
collectionName: 'components_layout_footer_bars';
info: {
displayName: 'SocialLink';
description: '';
displayName: 'footer_bar';
};
attributes: {
Image: Attribute.Media<'images' | 'files' | 'videos' | 'audios', true>;
Url: Attribute.String;
External_link: Attribute.Component<'components.link', true>;
};
}

export interface ComponentsLink extends Schema.Component {
collectionName: 'components_components_links';
export interface LayoutHeader extends Schema.Component {
collectionName: 'components_layout_headers';
info: {
displayName: 'externalLink';
description: '';
displayName: 'NavLinks';
};
attributes: {
Url_name: Attribute.String;
url: Attribute.String;
Footer_link: Attribute.Component<'components.footer-link', true>;
Nav_heading: Attribute.String;
};
}

export interface ComponentsInternalLink extends Schema.Component {
collectionName: 'components_components_internal_links';
export interface PageFeatureBlock extends Schema.Component {
collectionName: 'components_page_feature_blocks';
info: {
displayName: 'internalLink';
description: '';
displayName: 'Feature Block';
icon: 'grid';
};
attributes: {
Link_heading: Attribute.String;
Link: Attribute.Relation<
'components.internal-link',
Description: Attribute.String;
page: Attribute.Relation<
'page.feature-block',
'oneToOne',
'api::page.page'
>;
Description: Attribute.Text;
Title: Attribute.String;
};
}

export interface ComponentsFooterLink extends Schema.Component {
collectionName: 'components_components_footer_links';
export interface PageScrollButton extends Schema.Component {
collectionName: 'components_page_scroll_buttons';
info: {
displayName: 'FooterLink';
description: '';
displayName: 'Scroll Button';
};
attributes: {
Link_name: Attribute.String;
Page: Attribute.Relation<
'components.footer-link',
'oneToOne',
'api::page.page'
>;
Section_id: Attribute.String;
Text: Attribute.String;
};
}

declare module '@strapi/types' {
export module Shared {
export interface Components {
'page.scroll-button': PageScrollButton;
'page.feature-block': PageFeatureBlock;
'layout.header': LayoutHeader;
'layout.footer-bar': LayoutFooterBar;
'components.social-link': ComponentsSocialLink;
'components.link': ComponentsLink;
'components.internal-link': ComponentsInternalLink;
'components.footer-link': ComponentsFooterLink;
'components.internal-link': ComponentsInternalLink;
'components.link': ComponentsLink;
'components.social-link': ComponentsSocialLink;
'layout.footer-bar': LayoutFooterBar;
'layout.header': LayoutHeader;
'page.feature-block': PageFeatureBlock;
'page.scroll-button': PageScrollButton;
}
}
}
Loading

0 comments on commit 02b014f

Please sign in to comment.