Updated the About page

This commit is contained in:
Tiago Ribeiro
2024-03-14 00:19:47 +00:00
parent 8163e89dd9
commit 5c6ed146ef
5 changed files with 77 additions and 1 deletions

View File

@@ -36,6 +36,17 @@
}
},
"component": "section.title-with-text"
},
"MissionVisionValuesSection": {
"displayName": "5 Texts",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-page.5-texts"
}
}
}

View File

@@ -0,0 +1,19 @@
{
"collectionName": "components_section_5_texts",
"info": {
"displayName": "Mission, Vision and Values",
"description": ""
},
"options": {},
"attributes": {
"Mission": {
"type": "string"
},
"Vision": {
"type": "string"
},
"Values": {
"type": "richtext"
}
}
}

View File

@@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-03-13T23:19:31.710Z"
"x-generation-date": "2024-03-14T00:18:58.238Z"
},
"x-strapi-config": {
"path": "/documentation",
@@ -98,6 +98,9 @@
"AboutSection": {
"$ref": "#/components/schemas/SectionTitleWithTextComponent"
},
"MissionVisionValuesSection": {
"$ref": "#/components/schemas/AboutPage5TextsComponent"
},
"locale": {
"type": "string"
}
@@ -118,6 +121,9 @@
"AboutSection": {
"$ref": "#/components/schemas/SectionTitleWithTextComponent"
},
"MissionVisionValuesSection": {
"$ref": "#/components/schemas/AboutPage5TextsComponent"
},
"locale": {
"type": "string"
}
@@ -248,6 +254,9 @@
"AboutSection": {
"$ref": "#/components/schemas/SectionTitleWithTextComponent"
},
"MissionVisionValuesSection": {
"$ref": "#/components/schemas/AboutPage5TextsComponent"
},
"createdAt": {
"type": "string",
"format": "date-time"
@@ -612,6 +621,23 @@
}
}
},
"AboutPage5TextsComponent": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"Mission": {
"type": "string"
},
"Vision": {
"type": "string"
},
"Values": {
"type": "string"
}
}
},
"HomeLocalizationRequest": {
"required": [
"locale"

View File

@@ -1,5 +1,18 @@
import type { Schema, Attribute } from '@strapi/strapi';
export interface AboutPage5Texts extends Schema.Component {
collectionName: 'components_section_5_texts';
info: {
displayName: 'Mission, Vision and Values';
description: '';
};
attributes: {
Mission: Attribute.String;
Vision: Attribute.String;
Values: Attribute.RichText;
};
}
export interface SectionTitleWithText extends Schema.Component {
collectionName: 'components_section_title_with_texts';
info: {
@@ -27,6 +40,7 @@ export interface TitleTitleWithTag extends Schema.Component {
declare module '@strapi/types' {
export module Shared {
export interface Components {
'about-page.5-texts': AboutPage5Texts;
'section.title-with-text': SectionTitleWithText;
'title.title-with-tag': TitleTitleWithTag;
}

View File

@@ -391,6 +391,12 @@ export interface ApiAboutAbout extends Schema.SingleType {
localized: true;
};
}>;
MissionVisionValuesSection: Attribute.Component<'about-page.5-texts'> &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;