From 2b45b161b0b833418153a8054320187afe2c8141 Mon Sep 17 00:00:00 2001 From: Sean Geng Date: Fri, 25 Oct 2024 17:01:09 -0400 Subject: [PATCH] deprecate homepage feature --- .../homepage-feature/schema.json | 42 ------------------- .../controllers/homepage-feature.js | 9 ---- .../routes/homepage-feature.js | 9 ---- .../services/homepage-feature.js | 9 ---- types/generated/contentTypes.d.ts | 36 ---------------- 5 files changed, 105 deletions(-) delete mode 100644 src/api/homepage-feature/content-types/homepage-feature/schema.json delete mode 100644 src/api/homepage-feature/controllers/homepage-feature.js delete mode 100644 src/api/homepage-feature/routes/homepage-feature.js delete mode 100644 src/api/homepage-feature/services/homepage-feature.js diff --git a/src/api/homepage-feature/content-types/homepage-feature/schema.json b/src/api/homepage-feature/content-types/homepage-feature/schema.json deleted file mode 100644 index efe106d..0000000 --- a/src/api/homepage-feature/content-types/homepage-feature/schema.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "kind": "singleType", - "collectionName": "homepage_features", - "info": { - "singularName": "homepage-feature", - "pluralName": "homepage-features", - "displayName": "Homepage Feature", - "description": "" - }, - "options": { - "draftAndPublish": true - }, - "pluginOptions": {}, - "attributes": { - "gameId": { - "type": "uid", - "required": true - }, - "blurb": { - "type": "text" - }, - "bannerOverride": { - "type": "media", - "multiple": false, - "required": false, - "allowedTypes": [ - "images" - ] - }, - "videoOverride": { - "type": "media", - "multiple": false, - "required": false, - "allowedTypes": [ - "videos" - ] - }, - "autoplayVideo": { - "type": "boolean" - } - } -} diff --git a/src/api/homepage-feature/controllers/homepage-feature.js b/src/api/homepage-feature/controllers/homepage-feature.js deleted file mode 100644 index 43df823..0000000 --- a/src/api/homepage-feature/controllers/homepage-feature.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * homepage-feature controller - */ - -const { createCoreController } = require('@strapi/strapi').factories; - -module.exports = createCoreController('api::homepage-feature.homepage-feature'); diff --git a/src/api/homepage-feature/routes/homepage-feature.js b/src/api/homepage-feature/routes/homepage-feature.js deleted file mode 100644 index 6d8652d..0000000 --- a/src/api/homepage-feature/routes/homepage-feature.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * homepage-feature router - */ - -const { createCoreRouter } = require('@strapi/strapi').factories; - -module.exports = createCoreRouter('api::homepage-feature.homepage-feature'); diff --git a/src/api/homepage-feature/services/homepage-feature.js b/src/api/homepage-feature/services/homepage-feature.js deleted file mode 100644 index 5fe76ca..0000000 --- a/src/api/homepage-feature/services/homepage-feature.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * homepage-feature service - */ - -const { createCoreService } = require('@strapi/strapi').factories; - -module.exports = createCoreService('api::homepage-feature.homepage-feature'); diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 9be9c53..01e5424 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -1050,41 +1050,6 @@ export interface ApiGameGame extends Schema.CollectionType { }; } -export interface ApiHomepageFeatureHomepageFeature extends Schema.SingleType { - collectionName: 'homepage_features'; - info: { - singularName: 'homepage-feature'; - pluralName: 'homepage-features'; - displayName: 'Homepage Feature'; - description: ''; - }; - options: { - draftAndPublish: true; - }; - attributes: { - gameId: Attribute.UID & Attribute.Required; - blurb: Attribute.Text; - bannerOverride: Attribute.Media<'images'>; - videoOverride: Attribute.Media<'videos'>; - autoplayVideo: Attribute.Boolean; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - publishedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'api::homepage-feature.homepage-feature', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'api::homepage-feature.homepage-feature', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - }; -} - export interface ApiHomepageFeaturedCarouselHomepageFeaturedCarousel extends Schema.CollectionType { collectionName: 'homepage_featured_carousels'; @@ -1305,7 +1270,6 @@ declare module '@strapi/types' { 'api::copyright-policy.copyright-policy': ApiCopyrightPolicyCopyrightPolicy; 'api::featured-game.featured-game': ApiFeaturedGameFeaturedGame; 'api::game.game': ApiGameGame; - 'api::homepage-feature.homepage-feature': ApiHomepageFeatureHomepageFeature; 'api::homepage-featured-carousel.homepage-featured-carousel': ApiHomepageFeaturedCarouselHomepageFeaturedCarousel; 'api::news-article.news-article': ApiNewsArticleNewsArticle; 'api::privacy-policy.privacy-policy': ApiPrivacyPolicyPrivacyPolicy;