Skip to content

Commit

Permalink
Merge pull request #56 from epam/strapi-updates
Browse files Browse the repository at this point in the history
strapi improvements
  • Loading branch information
souljja authored Sep 30, 2024
2 parents 4fd2086 + 8c781bc commit bd29fbb
Show file tree
Hide file tree
Showing 6 changed files with 718 additions and 735 deletions.
12 changes: 8 additions & 4 deletions src/api/button/content-types/button/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "button",
"pluralName": "buttons",
"displayName": "Button"
"displayName": "Button",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -31,9 +32,12 @@
"maxLength": 256
},
"theme": {
"type": "relation",
"relation": "oneToOne",
"target": "api::theme.theme"
"type": "enumeration",
"enum": [
"primary",
"secondary",
"tertiary"
]
}
}
}
12 changes: 4 additions & 8 deletions src/api/social-media/content-types/social-media/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "social-media",
"pluralName": "social-medias",
"displayName": "SocialMedia"
"displayName": "SocialMedia",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -15,17 +16,12 @@
"type": "string",
"maxLength": 256
},
"text": {
"url": {
"type": "string",
"required": true
},
"type": {
"iconType": {
"type": "string"
},
"theme": {
"type": "relation",
"relation": "oneToOne",
"target": "api::theme.theme"
}
}
}
2 changes: 1 addition & 1 deletion src/components/sections/rich-text.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"options": {},
"attributes": {
"content": {
"type": "richtext"
"type": "blocks"
}
}
}
5 changes: 0 additions & 5 deletions src/components/shared/image-card.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@
"linkNewTab": {
"type": "boolean"
},
"the": {
"type": "relation",
"relation": "oneToOne",
"target": "api::article.article"
},
"theme": {
"type": "relation",
"relation": "oneToOne",
Expand Down
Loading

0 comments on commit bd29fbb

Please sign in to comment.