Skip to content

Commit 3749770

Browse files
committed
chore: add more test content
1 parent 90e2be5 commit 3749770

File tree

7 files changed

+1269
-0
lines changed

7 files changed

+1269
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"kind": "singleType",
3+
"collectionName": "homes",
4+
"info": {
5+
"singularName": "home",
6+
"pluralName": "homes",
7+
"displayName": "Home"
8+
},
9+
"options": {
10+
"draftAndPublish": true
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"title": {
15+
"type": "string"
16+
}
17+
}
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* home controller
3+
*/
4+
5+
import { factories } from '@strapi/strapi'
6+
7+
export default factories.createCoreController('api::home.home');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* home router
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreRouter('api::home.home');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* home service
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreService('api::home.home');
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"collectionName": "components_core_headers",
3+
"info": {
4+
"displayName": "header"
5+
},
6+
"options": {},
7+
"attributes": {
8+
"title": {
9+
"type": "string"
10+
}
11+
}
12+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { Schema, Struct } from '@strapi/strapi';
2+
3+
export interface CoreHeader extends Struct.ComponentSchema {
4+
collectionName: 'components_core_headers';
5+
info: {
6+
displayName: 'header';
7+
};
8+
attributes: {
9+
title: Schema.Attribute.String;
10+
};
11+
}
12+
13+
declare module '@strapi/strapi' {
14+
export module Public {
15+
export interface ComponentSchemas {
16+
'core.header': CoreHeader;
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)