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"
|
||||
}
|
||||
}
|
||||
}
|
||||
27
strapi/types/generated/components.d.ts
vendored
27
strapi/types/generated/components.d.ts
vendored
|
|
@ -61,6 +61,31 @@ export interface SharedTag extends Struct.ComponentSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface SharedThingIDo extends Struct.ComponentSchema {
|
||||
collectionName: 'components_shared_thing_i_dos';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Thing I Do';
|
||||
icon: 'walk';
|
||||
};
|
||||
attributes: {
|
||||
Description: Schema.Attribute.Text;
|
||||
Title: Schema.Attribute.String;
|
||||
};
|
||||
}
|
||||
|
||||
export interface SharedTitle extends Struct.ComponentSchema {
|
||||
collectionName: 'components_shared_titles';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Title';
|
||||
icon: 'user';
|
||||
};
|
||||
attributes: {
|
||||
value: Schema.Attribute.String;
|
||||
};
|
||||
}
|
||||
|
||||
declare module '@strapi/strapi' {
|
||||
export module Public {
|
||||
export interface ComponentSchemas {
|
||||
|
|
@ -69,6 +94,8 @@ declare module '@strapi/strapi' {
|
|||
'shared.rich-text': SharedRichText;
|
||||
'shared.seo': SharedSeo;
|
||||
'shared.tag': SharedTag;
|
||||
'shared.thing-i-do': SharedThingIDo;
|
||||
'shared.title': SharedTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
118
strapi/types/generated/contentTypes.d.ts
vendored
118
strapi/types/generated/contentTypes.d.ts
vendored
|
|
@ -336,6 +336,41 @@ export interface AdminUser extends Struct.CollectionTypeSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiAboutAbout extends Struct.SingleTypeSchema {
|
||||
collectionName: 'abouts';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'About';
|
||||
pluralName: 'abouts';
|
||||
singularName: 'about';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
Activities: Schema.Attribute.Component<'shared.thing-i-do', true> &
|
||||
Schema.Attribute.SetMinMax<
|
||||
{
|
||||
max: 4;
|
||||
min: 4;
|
||||
},
|
||||
number
|
||||
>;
|
||||
Bio: Schema.Attribute.Text;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::about.about'> &
|
||||
Schema.Attribute.Private;
|
||||
Name: Schema.Attribute.String;
|
||||
Photo: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
Titles: Schema.Attribute.Component<'shared.title', true>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiBlogBlog extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'blogs';
|
||||
info: {
|
||||
|
|
@ -363,6 +398,85 @@ export interface ApiBlogBlog extends Struct.CollectionTypeSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiEducationEducation extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'educations';
|
||||
info: {
|
||||
displayName: 'Education';
|
||||
pluralName: 'educations';
|
||||
singularName: 'education';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
Description: Schema.Attribute.Text;
|
||||
EndDate: Schema.Attribute.Date;
|
||||
Field: Schema.Attribute.String;
|
||||
Institute: Schema.Attribute.String;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::education.education'> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
StartDate: Schema.Attribute.Date;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiExperienceExperience extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'experiences';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Experience';
|
||||
pluralName: 'experiences';
|
||||
singularName: 'experience';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
Company: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
Description: Schema.Attribute.Text & Schema.Attribute.Required;
|
||||
EndDate: Schema.Attribute.Date;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::experience.experience'> &
|
||||
Schema.Attribute.Private;
|
||||
Logo: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
StartDate: Schema.Attribute.Date & Schema.Attribute.Required;
|
||||
Title: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiSiteBackgroundSiteBackground extends Struct.SingleTypeSchema {
|
||||
collectionName: 'site_backgrounds';
|
||||
info: {
|
||||
displayName: 'Site Background';
|
||||
pluralName: 'site-backgrounds';
|
||||
singularName: 'site-background';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
Background: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::site-background.site-background'> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PluginContentReleasesRelease extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'strapi_releases';
|
||||
info: {
|
||||
|
|
@ -790,7 +904,11 @@ declare module '@strapi/strapi' {
|
|||
'admin::transfer-token': AdminTransferToken;
|
||||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||
'admin::user': AdminUser;
|
||||
'api::about.about': ApiAboutAbout;
|
||||
'api::blog.blog': ApiBlogBlog;
|
||||
'api::education.education': ApiEducationEducation;
|
||||
'api::experience.experience': ApiExperienceExperience;
|
||||
'api::site-background.site-background': ApiSiteBackgroundSiteBackground;
|
||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||
'plugin::i18n.locale': PluginI18NLocale;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue