add more strapi shit
This commit is contained in:
parent
18bde0daca
commit
6fa049504b
24 changed files with 595 additions and 62 deletions
41
strapi/src/api/about/content-types/about/schema.json
Normal file
41
strapi/src/api/about/content-types/about/schema.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
strapi/src/api/about/controllers/about.ts
Normal file
7
strapi/src/api/about/controllers/about.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* about controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::about.about');
|
||||
7
strapi/src/api/about/routes/about.ts
Normal file
7
strapi/src/api/about/routes/about.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* about router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::about.about');
|
||||
7
strapi/src/api/about/services/about.ts
Normal file
7
strapi/src/api/about/services/about.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* about service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::about.about');
|
||||
29
strapi/src/api/education/content-types/education/schema.json
Normal file
29
strapi/src/api/education/content-types/education/schema.json
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
strapi/src/api/education/controllers/education.ts
Normal file
7
strapi/src/api/education/controllers/education.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* education controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::education.education');
|
||||
7
strapi/src/api/education/routes/education.ts
Normal file
7
strapi/src/api/education/routes/education.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* education router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::education.education');
|
||||
7
strapi/src/api/education/services/education.ts
Normal file
7
strapi/src/api/education/services/education.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* education service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::education.education');
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
7
strapi/src/api/experience/controllers/experience.ts
Normal file
7
strapi/src/api/experience/controllers/experience.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* experience controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::experience.experience');
|
||||
7
strapi/src/api/experience/routes/experience.ts
Normal file
7
strapi/src/api/experience/routes/experience.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* experience router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::experience.experience');
|
||||
7
strapi/src/api/experience/services/experience.ts
Normal file
7
strapi/src/api/experience/services/experience.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* experience service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::experience.experience');
|
||||
17
strapi/src/components/shared/thing-i-do.json
Normal file
17
strapi/src/components/shared/thing-i-do.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"collectionName": "components_shared_thing_i_dos",
|
||||
"info": {
|
||||
"displayName": "Thing I Do",
|
||||
"icon": "walk",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"Title": {
|
||||
"type": "string"
|
||||
},
|
||||
"Description": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
14
strapi/src/components/shared/title.json
Normal file
14
strapi/src/components/shared/title.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"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