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"
|
||||
}
|
||||
}
|
||||
}
|
||||
27
strapi/types/generated/components.d.ts
vendored
27
strapi/types/generated/components.d.ts
vendored
|
|
@ -61,31 +61,6 @@ 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 {
|
||||
|
|
@ -94,8 +69,6 @@ declare module '@strapi/strapi' {
|
|||
'shared.rich-text': SharedRichText;
|
||||
'shared.seo': SharedSeo;
|
||||
'shared.tag': SharedTag;
|
||||
'shared.thing-i-do': SharedThingIDo;
|
||||
'shared.title': SharedTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
112
strapi/types/generated/contentTypes.d.ts
vendored
112
strapi/types/generated/contentTypes.d.ts
vendored
|
|
@ -336,41 +336,6 @@ 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: {
|
||||
|
|
@ -398,80 +363,26 @@ export interface ApiBlogBlog extends Struct.CollectionTypeSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiEducationEducation extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'educations';
|
||||
export interface ApiProjectProject extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'projects';
|
||||
info: {
|
||||
displayName: 'Education';
|
||||
pluralName: 'educations';
|
||||
singularName: 'education';
|
||||
displayName: 'Project';
|
||||
pluralName: 'projects';
|
||||
singularName: 'project';
|
||||
};
|
||||
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'>;
|
||||
body: Schema.Attribute.RichText;
|
||||
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'> &
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::project.project'> &
|
||||
Schema.Attribute.Private;
|
||||
media: Schema.Attribute.Media<'images'>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
title: Schema.Attribute.String;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
||||
};
|
||||
|
|
@ -904,11 +815,8 @@ 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;
|
||||
'api::project.project': ApiProjectProject;
|
||||
'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