shed old schema
This commit is contained in:
parent
009ec42f3d
commit
2aeb142ded
24 changed files with 58 additions and 374 deletions
|
|
@ -1,41 +0,0 @@
|
|||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "abouts",
|
||||
"info": {
|
||||
"singularName": "about",
|
||||
"pluralName": "abouts",
|
||||
"displayName": "About",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"Bio": {
|
||||
"type": "text"
|
||||
},
|
||||
"Photo": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": ["images", "files", "videos", "audios"]
|
||||
},
|
||||
"Activities": {
|
||||
"displayName": "Thing I Do",
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "shared.thing-i-do",
|
||||
"max": 4,
|
||||
"min": 4
|
||||
},
|
||||
"Titles": {
|
||||
"displayName": "Title",
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "shared.title"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* about controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::about.about');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* about router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::about.about');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* about service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::about.about');
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "educations",
|
||||
"info": {
|
||||
"singularName": "education",
|
||||
"pluralName": "educations",
|
||||
"displayName": "Education"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"Institute": {
|
||||
"type": "string"
|
||||
},
|
||||
"StartDate": {
|
||||
"type": "date"
|
||||
},
|
||||
"EndDate": {
|
||||
"type": "date"
|
||||
},
|
||||
"Field": {
|
||||
"type": "string"
|
||||
},
|
||||
"Description": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* education controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::education.education');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* education router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::education.education');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* education service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::education.education');
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "experiences",
|
||||
"info": {
|
||||
"singularName": "experience",
|
||||
"pluralName": "experiences",
|
||||
"displayName": "Experience",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"Title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"Company": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true
|
||||
},
|
||||
"Description": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"StartDate": {
|
||||
"type": "date",
|
||||
"required": true
|
||||
},
|
||||
"EndDate": {
|
||||
"type": "date"
|
||||
},
|
||||
"Logo": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": ["images", "files", "videos", "audios"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* experience controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::experience.experience');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* experience router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::experience.experience');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* experience service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::experience.experience');
|
||||
27
strapi/src/api/project/content-types/project/schema.json
Normal file
27
strapi/src/api/project/content-types/project/schema.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "projects",
|
||||
"info": {
|
||||
"singularName": "project",
|
||||
"pluralName": "projects",
|
||||
"displayName": "Project"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"body": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"media": {
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
}
|
||||
}
|
||||
}
|
||||
7
strapi/src/api/project/controllers/project.ts
Normal file
7
strapi/src/api/project/controllers/project.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* project controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::project.project');
|
||||
7
strapi/src/api/project/routes/project.ts
Normal file
7
strapi/src/api/project/routes/project.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* project router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::project.project');
|
||||
7
strapi/src/api/project/services/project.ts
Normal file
7
strapi/src/api/project/services/project.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* project service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::project.project');
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "site_backgrounds",
|
||||
"info": {
|
||||
"singularName": "site-background",
|
||||
"pluralName": "site-backgrounds",
|
||||
"displayName": "Site Background"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"Background": {
|
||||
"allowedTypes": ["images", "files", "videos", "audios"],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* site-background controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::site-background.site-background');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* site-background router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::site-background.site-background');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* site-background service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::site-background.site-background');
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"collectionName": "components_shared_thing_i_dos",
|
||||
"info": {
|
||||
"displayName": "Thing I Do",
|
||||
"icon": "walk",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"Title": {
|
||||
"type": "string"
|
||||
},
|
||||
"Description": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"collectionName": "components_shared_titles",
|
||||
"info": {
|
||||
"displayName": "Title",
|
||||
"icon": "user",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue