-
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.
Merge pull request #21 from incubateur-ademe/feat/add-fields-rex-diag
feat: add the image with caption component for rex diag
- Loading branch information
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"collectionName": "components_common_image_with_captions", | ||
"info": { | ||
"displayName": "image_with_caption" | ||
}, | ||
"options": {}, | ||
"attributes": { | ||
"caption": { | ||
"type": "string" | ||
}, | ||
"image": { | ||
"allowedTypes": [ | ||
"images", | ||
"files", | ||
"videos", | ||
"audios" | ||
], | ||
"type": "media", | ||
"multiple": false, | ||
"required": true | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Interface automatically generated by schemas-to-ts | ||
|
||
import { Media } from '../../common/Media'; | ||
import { Media_Plain } from '../../common/Media'; | ||
|
||
export interface ImageWithCaption { | ||
caption?: string; | ||
image: { data: Media }; | ||
} | ||
export interface ImageWithCaption_Plain { | ||
caption?: string; | ||
image: Media_Plain; | ||
} | ||
|
||
export interface ImageWithCaption_NoRelations { | ||
caption?: string; | ||
image: number; | ||
} | ||
|
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