Skip to content

Commit

Permalink
Add SVG image and bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
almunnings committed Oct 22, 2023
1 parent db3940a commit 75eaac1
Show file tree
Hide file tree
Showing 11 changed files with 269 additions and 88 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"drupal/pathauto": "^1.11",
"drupal/redirect": "^1.8",
"drupal/shield": "^1.7",
"drupal/svg_image": "^3.0",
"drupal/symfony_mailer": "^1.4@beta",
"drupal/tablefield": "^2.4",
"drupal/typed_data": "^1.0@beta",
Expand Down
300 changes: 229 additions & 71 deletions composer.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.audio.field_media_audio_file
- image.style.thumbnail
- image.style.media_library
- media.type.audio
module:
- image
- svg_image
_core:
default_config_hash: tcAUW1Xzq5Tjw5jomR6XKGSgfiXO7QiRAHJBF-n0akg
id: media.audio.media_library
Expand All @@ -21,9 +21,13 @@ content:
label: hidden
settings:
image_link: ''
image_style: thumbnail
image_style: media_library
image_loading:
attribute: lazy
svg_attributes:
width: 220
height: 220
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.document.field_media_document
- image.style.thumbnail
- image.style.media_library
- media.type.document
module:
- image
- svg_image
_core:
default_config_hash: YcWqjhIlo-2RZUM5ogvRsrKB7M3voF2XB3lVLwgOlLU
id: media.document.media_library
Expand All @@ -21,9 +21,13 @@ content:
label: hidden
settings:
image_link: ''
image_style: thumbnail
image_style: media_library
image_loading:
attribute: lazy
svg_attributes:
width: 220
height: 220
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.image.field_media_image
- image.style.medium
- image.style.media_library
- media.type.image
module:
- image
- svg_image
_core:
default_config_hash: ILLWu5KFvbsX6J7sh2Itd4w8-lBBRhR_H8ZrmQiN2yo
id: media.image.media_library
Expand All @@ -21,9 +21,13 @@ content:
label: hidden
settings:
image_link: ''
image_style: medium
image_style: media_library
image_loading:
attribute: lazy
svg_attributes:
width: 220
height: 220
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.remote_video.field_media_oembed_video
- image.style.medium
- image.style.media_library
- media.type.remote_video
module:
- image
- svg_image
_core:
default_config_hash: PGGoP-hVkXe_S-GiJRAub4PHDu0KhMExylclrqjdJb4
id: media.remote_video.media_library
Expand All @@ -21,9 +21,13 @@ content:
label: hidden
settings:
image_link: ''
image_style: medium
image_style: media_library
image_loading:
attribute: lazy
svg_attributes:
width: 220
height: 220
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.video.field_media_video_file
- image.style.thumbnail
- image.style.media_library
- media.type.video
module:
- image
- svg_image
_core:
default_config_hash: _fnkUKwQYHkXO1Ngmq9nE6FqWUNAmkddOxAH1h5aiKg
id: media.video.media_library
Expand All @@ -21,9 +21,13 @@ content:
label: hidden
settings:
image_link: ''
image_style: thumbnail
image_style: media_library
image_loading:
attribute: lazy
svg_attributes:
width: 220
height: 220
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
Expand Down
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module:
redirect: 0
responsive_image: 0
shield: 0
svg_image: 0
symfony_mailer: 0
system: 0
tablefield: 0
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.field.media.image.field_media_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ settings:
handler: 'default:file'
handler_settings: { }
file_directory: 'media/image/[random:hash:sha256]'
file_extensions: 'png gif jpg jpeg'
file_extensions: 'png gif jpg jpeg svg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.field.user.user.user_picture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ settings:
handler: 'default:file'
handler_settings: { }
file_directory: 'pictures/[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
file_extensions: 'png gif jpg jpeg svg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
Expand Down
1 change: 1 addition & 0 deletions config/sync/graphql_compose.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,6 @@ settings:
site_front: true
svg_image: false
svg_filesize: 100
inflector_langcode: en
custom: { }
edge_max_limit: 20

0 comments on commit 75eaac1

Please sign in to comment.