Build base types

This commit is contained in:
nicwands
2026-05-27 14:44:08 -04:00
parent 35cf8eddbc
commit d8ab5deedb
10 changed files with 2023 additions and 259 deletions

View File

@@ -0,0 +1,23 @@
{
"kind": "singleType",
"collectionName": "globals",
"info": {
"singularName": "global",
"pluralName": "globals",
"displayName": "Global"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"content": {
"type": "blocks"
},
"SEO": {
"type": "component",
"component": "global.seo",
"repeatable": false
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* global controller
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreController('api::global.global');

View File

@@ -0,0 +1,7 @@
/**
* global router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::global.global');

View File

@@ -0,0 +1,7 @@
/**
* global service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::global.global');

View File

@@ -0,0 +1,24 @@
{
"collectionName": "components_global_seos",
"info": {
"displayName": "SEO",
"icon": "stack"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"image": {
"type": "media",
"multiple": false,
"allowedTypes": [
"images"
]
}
},
"config": {}
}