-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backend): 🐛 change recentImage to single type and rename to f… (#…
…270) * fix(backend): 🐛 change recentImage to single type and rename to featured image * feat(backend): 🐛 fix duplicate lines in graphql.ts * fix(backend): 🐛 fix contentTypes and graphql * fix(frontend): 🐛 dont show "taken by" when no image is fetched * fix(frontend): 🐛 replace image with ouiimage when featured image does not fetch anything
- Loading branch information
Mats
authored and
GitHub
committed
Apr 15, 2024
1 parent
56f3375
commit 1e123b8
Showing
15 changed files
with
220 additions
and
279 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
backend/src/api/featured-image/content-types/featured-image/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "kind": "singleType", | ||
| "collectionName": "featured_images", | ||
| "info": { | ||
| "singularName": "featured-image", | ||
| "pluralName": "featured-images", | ||
| "displayName": "featuredImage" | ||
| }, | ||
| "options": { | ||
| "draftAndPublish": true | ||
| }, | ||
| "pluginOptions": {}, | ||
| "attributes": { | ||
| "featuredImage": { | ||
| "allowedTypes": [ | ||
| "images", | ||
| "files", | ||
| "videos", | ||
| "audios" | ||
| ], | ||
| "type": "media", | ||
| "multiple": false, | ||
| "required": true | ||
| }, | ||
| "satellite": { | ||
| "type": "relation", | ||
| "relation": "oneToOne", | ||
| "target": "api::satellite.satellite" | ||
| } | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| 'use strict'; | ||
|
|
||
| /** | ||
| * featured-image controller | ||
| */ | ||
|
|
||
| const { createCoreController } = require('@strapi/strapi').factories; | ||
|
|
||
| module.exports = createCoreController('api::featured-image.featured-image'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| 'use strict'; | ||
|
|
||
| /** | ||
| * featured-image router | ||
| */ | ||
|
|
||
| const { createCoreRouter } = require('@strapi/strapi').factories; | ||
|
|
||
| module.exports = createCoreRouter('api::featured-image.featured-image'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| 'use strict'; | ||
|
|
||
| /** | ||
| * featured-image service | ||
| */ | ||
|
|
||
| const { createCoreService } = require('@strapi/strapi').factories; | ||
|
|
||
| module.exports = createCoreService('api::featured-image.featured-image'); |
29 changes: 0 additions & 29 deletions
29
backend/src/api/most-recent-image/content-types/most-recent-image/schema.json
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
backend/src/api/most-recent-image/controllers/most-recent-image.js
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
backend/src/api/most-recent-image/routes/most-recent-image.js
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
backend/src/api/most-recent-image/services/most-recent-image.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.