Skip to content

Commit 7bfdbef

Browse files
committed
refactor(cms): add merge entities
1 parent 4c62266 commit 7bfdbef

File tree

15 files changed

+158
-9
lines changed

15 files changed

+158
-9
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"kind": "singleType",
3+
"collectionName": "footer_links_sections",
4+
"info": {
5+
"singularName": "footer-links-section",
6+
"pluralName": "footer-links-sections",
7+
"displayName": "FooterLinksSection"
8+
},
9+
"options": {
10+
"draftAndPublish": true
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"Section": {
15+
"type": "component",
16+
"repeatable": true,
17+
"component": "content.section"
18+
}
19+
}
20+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* footer-links-section controller
3+
*/
4+
5+
import { factories } from '@strapi/strapi'
6+
7+
export default factories.createCoreController('api::footer-links-section.footer-links-section');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* footer-links-section router
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreRouter('api::footer-links-section.footer-links-section');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* footer-links-section service
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreService('api::footer-links-section.footer-links-section');
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"kind": "singleType",
3+
"collectionName": "footer_socials_sections",
4+
"info": {
5+
"singularName": "footer-socials-section",
6+
"pluralName": "footer-socials-sections",
7+
"displayName": "FooterSocialsSection"
8+
},
9+
"options": {
10+
"draftAndPublish": true
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"socials": {
15+
"type": "relation",
16+
"relation": "oneToMany",
17+
"target": "api::social.social"
18+
}
19+
}
20+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* footer-socials-section controller
3+
*/
4+
5+
import { factories } from '@strapi/strapi'
6+
7+
export default factories.createCoreController('api::footer-socials-section.footer-socials-section');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* footer-socials-section router
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreRouter('api::footer-socials-section.footer-socials-section');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* footer-socials-section service
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreService('api::footer-socials-section.footer-socials-section');
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"kind": "collectionType",
3+
"collectionName": "links",
4+
"info": {
5+
"singularName": "link",
6+
"pluralName": "links",
7+
"displayName": "Link"
8+
},
9+
"options": {
10+
"draftAndPublish": true
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"name": {
15+
"type": "string",
16+
"required": true,
17+
"unique": true
18+
},
19+
"url": {
20+
"type": "string",
21+
"required": true
22+
}
23+
}
24+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* link controller
3+
*/
4+
5+
import { factories } from '@strapi/strapi'
6+
7+
export default factories.createCoreController('api::link.link');

0 commit comments

Comments
 (0)