refactoring , dockerizing
This commit is contained in:
37
yoga-cms/src/admin/app.example.tsx
Normal file
37
yoga-cms/src/admin/app.example.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { StrapiApp } from '@strapi/strapi/admin';
|
||||
|
||||
export default {
|
||||
config: {
|
||||
locales: [
|
||||
// 'ar',
|
||||
// 'fr',
|
||||
// 'cs',
|
||||
// 'de',
|
||||
// 'dk',
|
||||
// 'es',
|
||||
// 'he',
|
||||
// 'id',
|
||||
// 'it',
|
||||
// 'ja',
|
||||
// 'ko',
|
||||
// 'ms',
|
||||
// 'nl',
|
||||
// 'no',
|
||||
// 'pl',
|
||||
// 'pt-BR',
|
||||
// 'pt',
|
||||
// 'ru',
|
||||
// 'sk',
|
||||
// 'sv',
|
||||
// 'th',
|
||||
// 'tr',
|
||||
// 'uk',
|
||||
// 'vi',
|
||||
// 'zh-Hans',
|
||||
// 'zh',
|
||||
],
|
||||
},
|
||||
bootstrap(app: StrapiApp) {
|
||||
console.log(app);
|
||||
},
|
||||
};
|
||||
20
yoga-cms/src/admin/tsconfig.json
Normal file
20
yoga-cms/src/admin/tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||
"allowJs": false,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": ["../plugins/**/admin/src/**/*", "./"],
|
||||
"exclude": ["node_modules/", "build/", "dist/", "**/*.test.ts"]
|
||||
}
|
||||
12
yoga-cms/src/admin/vite.config.example.ts
Normal file
12
yoga-cms/src/admin/vite.config.example.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { mergeConfig, type UserConfig } from 'vite';
|
||||
|
||||
export default (config: UserConfig) => {
|
||||
// Important: always return the modified config
|
||||
return mergeConfig(config, {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/src',
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
0
yoga-cms/src/api/.gitkeep
Normal file
0
yoga-cms/src/api/.gitkeep
Normal file
33
yoga-cms/src/api/about/content-types/about/schema.json
Normal file
33
yoga-cms/src/api/about/content-types/about/schema.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "abouts",
|
||||
"info": {
|
||||
"singularName": "about",
|
||||
"pluralName": "abouts",
|
||||
"displayName": "About",
|
||||
"description": "Write about yourself and the content you create"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "blocks"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/about/controllers/about.ts
Normal file
7
yoga-cms/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
yoga-cms/src/api/about/routes/about.ts
Normal file
7
yoga-cms/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
yoga-cms/src/api/about/services/about.ts
Normal file
7
yoga-cms/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');
|
||||
49
yoga-cms/src/api/article/content-types/article/schema.json
Normal file
49
yoga-cms/src/api/article/content-types/article/schema.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "articles",
|
||||
"info": {
|
||||
"singularName": "article",
|
||||
"pluralName": "articles",
|
||||
"displayName": "Article",
|
||||
"description": "Create your blog content"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
"maxLength": 80
|
||||
},
|
||||
"slug": {
|
||||
"type": "uid",
|
||||
"targetField": "title"
|
||||
},
|
||||
"cover": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": ["images", "files", "videos"]
|
||||
},
|
||||
"author": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::author.author",
|
||||
"inversedBy": "articles"
|
||||
},
|
||||
"category": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::category.category",
|
||||
"inversedBy": "articles"
|
||||
},
|
||||
"blocks": {
|
||||
"type": "dynamiczone",
|
||||
"components": ["shared.media", "shared.quote", "shared.rich-text", "shared.slider"]
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/article/controllers/article.ts
Normal file
7
yoga-cms/src/api/article/controllers/article.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* article controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::article.article');
|
||||
7
yoga-cms/src/api/article/routes/article.ts
Normal file
7
yoga-cms/src/api/article/routes/article.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* article router.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::article.article');
|
||||
7
yoga-cms/src/api/article/services/article.ts
Normal file
7
yoga-cms/src/api/article/services/article.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* article service.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::article.article');
|
||||
34
yoga-cms/src/api/author/content-types/author/schema.json
Normal file
34
yoga-cms/src/api/author/content-types/author/schema.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "authors",
|
||||
"info": {
|
||||
"singularName": "author",
|
||||
"pluralName": "authors",
|
||||
"displayName": "Author",
|
||||
"description": "Create authors for your content"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": ["images", "files", "videos"]
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"articles": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::article.article",
|
||||
"mappedBy": "author"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/author/controllers/author.ts
Normal file
7
yoga-cms/src/api/author/controllers/author.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* author controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::author.author');
|
||||
7
yoga-cms/src/api/author/routes/author.ts
Normal file
7
yoga-cms/src/api/author/routes/author.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* author router.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::author.author');
|
||||
7
yoga-cms/src/api/author/services/author.ts
Normal file
7
yoga-cms/src/api/author/services/author.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* author service.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::author.author');
|
||||
38
yoga-cms/src/api/car/content-types/car/schema.json
Normal file
38
yoga-cms/src/api/car/content-types/car/schema.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "cars",
|
||||
"info": {
|
||||
"singularName": "car",
|
||||
"pluralName": "cars",
|
||||
"displayName": "car",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"myquote": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "shared.quote"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/car/controllers/car.ts
Normal file
7
yoga-cms/src/api/car/controllers/car.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* car controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::car.car');
|
||||
7
yoga-cms/src/api/car/routes/car.ts
Normal file
7
yoga-cms/src/api/car/routes/car.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* car router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::car.car');
|
||||
7
yoga-cms/src/api/car/services/car.ts
Normal file
7
yoga-cms/src/api/car/services/car.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* car service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::car.car');
|
||||
31
yoga-cms/src/api/category/content-types/category/schema.json
Normal file
31
yoga-cms/src/api/category/content-types/category/schema.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "categories",
|
||||
"info": {
|
||||
"singularName": "category",
|
||||
"pluralName": "categories",
|
||||
"displayName": "Category",
|
||||
"description": "Organize your content into categories"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"slug": {
|
||||
"type": "uid"
|
||||
},
|
||||
"articles": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::article.article",
|
||||
"mappedBy": "category"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/category/controllers/category.ts
Normal file
7
yoga-cms/src/api/category/controllers/category.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* category controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::category.category');
|
||||
7
yoga-cms/src/api/category/routes/category.ts
Normal file
7
yoga-cms/src/api/category/routes/category.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* category router.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::category.category');
|
||||
7
yoga-cms/src/api/category/services/category.ts
Normal file
7
yoga-cms/src/api/category/services/category.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* category service.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::category.category');
|
||||
35
yoga-cms/src/api/global/content-types/global/schema.json
Normal file
35
yoga-cms/src/api/global/content-types/global/schema.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "globals",
|
||||
"info": {
|
||||
"singularName": "global",
|
||||
"pluralName": "globals",
|
||||
"displayName": "Global",
|
||||
"description": "Define global settings"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"siteName": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"favicon": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": ["images", "files", "videos"]
|
||||
},
|
||||
"siteDescription": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"defaultSeo": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "shared.seo"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/global/controllers/global.ts
Normal file
7
yoga-cms/src/api/global/controllers/global.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* global controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::global.global');
|
||||
7
yoga-cms/src/api/global/routes/global.ts
Normal file
7
yoga-cms/src/api/global/routes/global.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* global router.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::global.global');
|
||||
7
yoga-cms/src/api/global/services/global.ts
Normal file
7
yoga-cms/src/api/global/services/global.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* global service.
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::global.global');
|
||||
33
yoga-cms/src/api/page/content-types/page/schema.json
Normal file
33
yoga-cms/src/api/page/content-types/page/schema.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "pages",
|
||||
"info": {
|
||||
"singularName": "page",
|
||||
"pluralName": "pages",
|
||||
"displayName": "Page",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"template": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"homepage"
|
||||
]
|
||||
},
|
||||
"parent": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::page.page"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/page/controllers/page.ts
Normal file
7
yoga-cms/src/api/page/controllers/page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::page.page');
|
||||
7
yoga-cms/src/api/page/routes/page.ts
Normal file
7
yoga-cms/src/api/page/routes/page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::page.page');
|
||||
7
yoga-cms/src/api/page/services/page.ts
Normal file
7
yoga-cms/src/api/page/services/page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::page.page');
|
||||
24
yoga-cms/src/api/person/content-types/person/schema.json
Normal file
24
yoga-cms/src/api/person/content-types/person/schema.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "people",
|
||||
"info": {
|
||||
"singularName": "person",
|
||||
"pluralName": "people",
|
||||
"displayName": "person"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"firstname": {
|
||||
"type": "string"
|
||||
},
|
||||
"lastname": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/person/controllers/person.ts
Normal file
7
yoga-cms/src/api/person/controllers/person.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* person controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::person.person');
|
||||
7
yoga-cms/src/api/person/routes/person.ts
Normal file
7
yoga-cms/src/api/person/routes/person.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* person router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::person.person');
|
||||
7
yoga-cms/src/api/person/services/person.ts
Normal file
7
yoga-cms/src/api/person/services/person.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* person service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::person.person');
|
||||
15
yoga-cms/src/components/shared/media.json
Normal file
15
yoga-cms/src/components/shared/media.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"collectionName": "components_shared_media",
|
||||
"info": {
|
||||
"displayName": "Media",
|
||||
"icon": "file-video"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"file": {
|
||||
"allowedTypes": ["images", "files", "videos"],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
}
|
||||
}
|
||||
}
|
||||
13
yoga-cms/src/components/shared/my-component.json
Normal file
13
yoga-cms/src/components/shared/my-component.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"collectionName": "components_shared_my_components",
|
||||
"info": {
|
||||
"displayName": "my component",
|
||||
"icon": "alien"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"testtext": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
16
yoga-cms/src/components/shared/quote.json
Normal file
16
yoga-cms/src/components/shared/quote.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"collectionName": "components_shared_quotes",
|
||||
"info": {
|
||||
"displayName": "Quote",
|
||||
"icon": "indent"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"body": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
14
yoga-cms/src/components/shared/rich-text.json
Normal file
14
yoga-cms/src/components/shared/rich-text.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"collectionName": "components_shared_rich_texts",
|
||||
"info": {
|
||||
"displayName": "Rich text",
|
||||
"icon": "align-justify",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"body": {
|
||||
"type": "richtext"
|
||||
}
|
||||
}
|
||||
}
|
||||
26
yoga-cms/src/components/shared/seo.json
Normal file
26
yoga-cms/src/components/shared/seo.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"collectionName": "components_shared_seos",
|
||||
"info": {
|
||||
"name": "Seo",
|
||||
"icon": "allergies",
|
||||
"displayName": "Seo",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"metaTitle": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"metaDescription": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"shareImage": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": ["images"]
|
||||
}
|
||||
}
|
||||
}
|
||||
17
yoga-cms/src/components/shared/slider.json
Normal file
17
yoga-cms/src/components/shared/slider.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"collectionName": "components_shared_sliders",
|
||||
"info": {
|
||||
"displayName": "Slider",
|
||||
"icon": "address-book",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"files": {
|
||||
"type": "media",
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"allowedTypes": ["images"]
|
||||
}
|
||||
}
|
||||
}
|
||||
0
yoga-cms/src/extensions/.gitkeep
Normal file
0
yoga-cms/src/extensions/.gitkeep
Normal file
20
yoga-cms/src/index.ts
Normal file
20
yoga-cms/src/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
// import type { Core } from '@strapi/strapi';
|
||||
|
||||
export default {
|
||||
/**
|
||||
* An asynchronous register function that runs before
|
||||
* your application is initialized.
|
||||
*
|
||||
* This gives you an opportunity to extend code.
|
||||
*/
|
||||
register(/* { strapi }: { strapi: Core.Strapi } */) {},
|
||||
|
||||
/**
|
||||
* An asynchronous bootstrap function that runs before
|
||||
* your application gets started.
|
||||
*
|
||||
* This gives you an opportunity to set up your data model,
|
||||
* run jobs, or perform some special logic.
|
||||
*/
|
||||
bootstrap(/* { strapi }: { strapi: Core.Strapi } */) {},
|
||||
};
|
||||
Reference in New Issue
Block a user