From 0f1b403dec75758eefeec3ed6f725d8e0ce107c8 Mon Sep 17 00:00:00 2001 From: Lukas Achenbach Date: Sun, 5 Jan 2025 01:15:57 +0100 Subject: [PATCH] wip --- src/api/blog/content-types/blog/schema.json | 32 --------------------- src/api/blog/controllers/blog.js | 9 ------ src/api/blog/routes/blog.js | 9 ------ src/api/blog/services/blog.js | 9 ------ types/generated/contentTypes.d.ts | 32 --------------------- 5 files changed, 91 deletions(-) delete mode 100644 src/api/blog/content-types/blog/schema.json delete mode 100644 src/api/blog/controllers/blog.js delete mode 100644 src/api/blog/routes/blog.js delete mode 100644 src/api/blog/services/blog.js diff --git a/src/api/blog/content-types/blog/schema.json b/src/api/blog/content-types/blog/schema.json deleted file mode 100644 index 433ce87..0000000 --- a/src/api/blog/content-types/blog/schema.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "kind": "collectionType", - "collectionName": "blogs", - "info": { - "singularName": "blog", - "pluralName": "blogs", - "displayName": "Blog post", - "description": "" - }, - "options": { - "draftAndPublish": true - }, - "pluginOptions": {}, - "attributes": { - "Title": { - "type": "string" - }, - "Body": { - "type": "blocks" - }, - "Image": { - "allowedTypes": [ - "images", - "files", - "videos", - "audios" - ], - "type": "media", - "multiple": true - } - } -} diff --git a/src/api/blog/controllers/blog.js b/src/api/blog/controllers/blog.js deleted file mode 100644 index 21a34f1..0000000 --- a/src/api/blog/controllers/blog.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * blog controller - */ - -const { createCoreController } = require('@strapi/strapi').factories; - -module.exports = createCoreController('api::blog.blog'); diff --git a/src/api/blog/routes/blog.js b/src/api/blog/routes/blog.js deleted file mode 100644 index 6e70769..0000000 --- a/src/api/blog/routes/blog.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * blog router - */ - -const { createCoreRouter } = require('@strapi/strapi').factories; - -module.exports = createCoreRouter('api::blog.blog'); diff --git a/src/api/blog/services/blog.js b/src/api/blog/services/blog.js deleted file mode 100644 index 7f6aa54..0000000 --- a/src/api/blog/services/blog.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * blog service - */ - -const { createCoreService } = require('@strapi/strapi').factories; - -module.exports = createCoreService('api::blog.blog'); diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index a5e5bce..7a9c82f 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -369,37 +369,6 @@ export interface AdminUser extends Struct.CollectionTypeSchema { }; } -export interface ApiBlogBlog extends Struct.CollectionTypeSchema { - collectionName: 'blogs'; - info: { - description: ''; - displayName: 'Blog post'; - pluralName: 'blogs'; - singularName: 'blog'; - }; - options: { - draftAndPublish: true; - }; - attributes: { - Body: Schema.Attribute.Blocks; - createdAt: Schema.Attribute.DateTime; - createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & - Schema.Attribute.Private; - Image: Schema.Attribute.Media< - 'images' | 'files' | 'videos' | 'audios', - true - >; - locale: Schema.Attribute.String & Schema.Attribute.Private; - localizations: Schema.Attribute.Relation<'oneToMany', 'api::blog.blog'> & - Schema.Attribute.Private; - publishedAt: Schema.Attribute.DateTime; - Title: Schema.Attribute.String; - updatedAt: Schema.Attribute.DateTime; - updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & - Schema.Attribute.Private; - }; -} - export interface ApiComedianComedian extends Struct.CollectionTypeSchema { collectionName: 'comedians'; info: { @@ -986,7 +955,6 @@ declare module '@strapi/strapi' { 'admin::transfer-token': AdminTransferToken; 'admin::transfer-token-permission': AdminTransferTokenPermission; 'admin::user': AdminUser; - 'api::blog.blog': ApiBlogBlog; 'api::comedian.comedian': ApiComedianComedian; 'api::event.event': ApiEventEvent; 'plugin::content-releases.release': PluginContentReleasesRelease;