Skip to content

Commit

Permalink
chore(#17): improve link checker and linkit, configure asymmetric tra…
Browse files Browse the repository at this point in the history
…nslation

…ion for paragraphs
  • Loading branch information
BrianGilbert committed Jun 28, 2022
1 parent 95dc79d commit d99adce
Show file tree
Hide file tree
Showing 37 changed files with 498 additions and 104 deletions.
11 changes: 11 additions & 0 deletions drupal/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"drupal/memcache": "2.3.0",
"drupal/node_edit_protection": "1.0.0",
"drupal/oembed_providers": "2.0.4",
"drupal/paragraphs_asymmetric_translation_widgets": "^1.0",
"drupal/paragraphs_ee": "2.0.3",
"drupal/pathauto": "1.10.0",
"drupal/permissions_filter": "1.2.0",
Expand Down Expand Up @@ -203,11 +204,21 @@
"https://www.drupal.org/projectc/layout_paragraphs/issues/3214406#comment-14425196": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/70.diff",
"https://www.drupal.org/project/layout_paragraphs/issues/3265794": "https://git.drupalcode.org/project/layout_paragraphs/-/merge_requests/84.diff"
},
"drupal/linkit": {
"https://www.drupal.org/project/linkit/issues/3022261#comment-14257900": "https://www.drupal.org/files/issues/2021-10-15/3022261_linkit_add-better-support-for-linking-to-anchors_22.patch"
},
"drupal/metatag": {
"https://www.drupal.org/project/metatag/issues/2945817#comment-14420231": "https://www.drupal.org/files/issues/2022-02-21/metatag-n2945817-143.patch"
},
"drupal/node_edit_protection": {
"Triggers if button used instead of input https://www.drupal.org/project/node_edit_protection/issues/3208719": "./patch/3208719.diff"
},
"drupal/paragraphs": {
"https://www.drupal.org/project/paragraphs/issues/2904705#comment-13918715": "https://www.drupal.org/files/issues/2020-11-27/paragraphs_support_asym_translations-2904705-122.patch"
},
"drupal/paragraphs_asymmetric_translation_widgets": {
"https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets/issues/3175491#comment-13891174": "https://www.drupal.org/files/issues/2020-11-03/3175491-2.patch",
"https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets/issues/3180118#comment-14188544": "https://www.drupal.org/files/issues/2021-08-12/3180118-7.patch"
}
}
}
Expand Down
63 changes: 62 additions & 1 deletion drupal/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ content:
settings:
display_label: true
third_party_settings: { }
translation:
weight: 10
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
translation:
weight: 10
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ content:
settings:
display_label: true
third_party_settings: { }
translation:
weight: 10
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
translation:
weight: 10
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
langcode: true
Expand Down
1 change: 1 addition & 0 deletions drupal/config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module:
oembed_providers: 0
options: 0
page_cache: 0
paragraphs_asymmetric_translation_widgets: 0
paragraphs_features: 0
paragraphs_library: 0
paragraphs_type_permissions: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bundle: image
label: Caption
description: "Alt text is a description of what an image shows, eg. 'Small dog'. \r\nThe caption should convey information as to why you have placed the image, it usually include image title and credits, who is shown in the photo, etc. eg. 'Rufus the Corgi as a puppy. Photo taken by Brian Gilbert'"
required: true
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: image
label: 'Content owner'
description: 'Enter the person or role that is primary contact regarding this image.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: image
label: Copyright
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: image
label: Description
description: 'Enter a very short description to help editors find relevant media.'
required: true
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: image
label: 'Usage Terms & Conditions'
description: 'Please describe any limitations in usage of this image.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: video
label: 'Remote video URL'
description: ''
required: true
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bundle: article
label: Content
description: 'Items added will display in the primary content region of the page.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
Expand Down Expand Up @@ -52,9 +52,6 @@ settings:
jumbotron:
weight: -17
enabled: true
layout:
weight: 17
enabled: false
link:
weight: -16
enabled: true
Expand Down
3 changes: 0 additions & 3 deletions drupal/config/sync/field.field.node.event.field_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ settings:
jumbotron:
weight: -18
enabled: true
layout:
weight: 17
enabled: false
link:
weight: -17
enabled: true
Expand Down
5 changes: 1 addition & 4 deletions drupal/config/sync/field.field.node.page.field_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bundle: page
label: Content
description: 'Items added will display in the primary content region of the page.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
Expand Down Expand Up @@ -54,9 +54,6 @@ settings:
jumbotron:
weight: -18
enabled: true
layout:
weight: 17
enabled: false
link:
weight: -17
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions drupal/config/sync/field.field.paragraph.card.field_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,7 @@ settings:
oauth2_scope:
handler: 'default:oauth2_scope'
handler_settings: { }
linkit_profile:
handler: 'default:linkit_profile'
handler_settings: { }
field_type: dynamic_entity_reference
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bundle: card
label: Description
description: "<ul>\r\n<li>50–160 characters</li>\r\n<li>entice reader</li>\r\n<li>use active voice</li>\r\n<li>include a call to action</li>\r\n<li>use focus keyword</li>\r\n</ul>"
required: true
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: card
label: 'Card title'
description: ''
required: false
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: entity_reference
label: 'Title override'
description: 'Override the title used for the link.'
required: false
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bundle: jumbotron
label: Content
description: ''
required: false
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
Expand Down
3 changes: 3 additions & 0 deletions drupal/config/sync/field.field.paragraph.link.field_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,7 @@ settings:
oauth2_scope:
handler: 'default:oauth2_scope'
handler_settings: { }
linkit_profile:
handler: 'default:linkit_profile'
handler_settings: { }
field_type: dynamic_entity_reference
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bundle: media
label: Media
description: ''
required: true
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundle: section
label: 'Section title'
description: '<p>If populated this will be displayed as a H2 above the section. <br />It will also be used to generate in page contents listing.</p>'
required: false
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ status: true
dependencies:
config:
- media.type.document
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: media.document
target_entity_type_id: media
target_bundle: document
default_langcode: site_default
language_alterable: false
language_alterable: true
9 changes: 8 additions & 1 deletion drupal/config/sync/language.content_settings.media.image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ status: true
dependencies:
config:
- media.type.image
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: media.image
target_entity_type_id: media
target_bundle: image
default_langcode: site_default
language_alterable: false
language_alterable: true
7 changes: 7 additions & 0 deletions drupal/config/sync/language.content_settings.media.video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ status: true
dependencies:
config:
- media.type.video
module:
- content_translation
third_party_settings:
content_translation:
enabled: false
bundle_settings:
untranslatable_fields_hide: '0'
id: media.video
target_entity_type_id: media
target_bundle: video
Expand Down
Loading

0 comments on commit d99adce

Please sign in to comment.