Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve Thunder's menu GQLS for better accessibility and SEO #702

Open
wants to merge 27 commits into
base: 7.3.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
263e05f
News article
dbosen Mar 27, 2023
10c1236
Add reference field to ParagraphVideo type
chrfritsch Mar 30, 2023
77f21f8
Allow multiple media types in entity browser view
chrfritsch Mar 30, 2023
8b73dbf
Add xymatic integration
chrfritsch Mar 30, 2023
a937d00
Release 6.5.4
chrfritsch Mar 30, 2023
778cccf
feat: improve Thunder's menu GQLS for better accessibility and SEO
IT-Cru Apr 18, 2023
1b7d8a9
Add configurable quick links to ThunderParagraphsTestTrait
IT-Cru Apr 19, 2023
d024ad4
feat(thunder_xymatic): add default and paragraph_preview entity view …
chrfritsch Apr 26, 2023
411fe0d
Merge branch '6.5.x' into feature/improve-thunder-menu-gqls
dbosen Apr 27, 2023
e3e6302
Fix code style issues
dbosen May 4, 2023
862e85b
Disable gpu and shared memory for webdriver
chrfritsch May 16, 2023
f62a615
Add description to xymatic
chrfritsch May 16, 2023
4a0a560
Add video and xymatic type
chrfritsch May 16, 2023
4031ad6
fix: tests are indicating a success, but never ran
chrfritsch May 17, 2023
8ec2be6
Issue #3361796: Release Thunder 6.5.5
dbosen May 25, 2023
37b013b
Use drupalci chromedriver for testing.
ol0lll May 30, 2023
c9a99db
Fix tests
dbosen Jun 7, 2023
ba11d73
Fix order of use statements.
dbosen Jun 12, 2023
80102d9
Add decorated type resolver
dbosen Jun 14, 2023
931be43
Issue #3366947 by chr.fritsch: Release Thunder 6.5.6
dbosen Jun 15, 2023
0f80c3b
Composer project version 3.x
dbosen Jun 22, 2023
20f8120
Release 6.5.7
ol0lll Aug 3, 2023
615608f
Merge branch '6.5.x' into feature/improve-thunder-menu-gqls
dbosen Apr 29, 2024
92157e2
Merge remote-tracking branch 'origin/7.2.x' into feature/improve-thun…
dbosen Apr 29, 2024
7a214b8
cleanup
dbosen Apr 29, 2024
31af1f2
Merge branch '7.2.x' into feature/improve-thunder-menu-gqls
dbosen Aug 21, 2024
9ac317e
Merge remote-tracking branch 'origin/7.3.x' into feature/improve-thun…
dbosen Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add xymatic integration
* feat(composer.json): add drupal/xymatic dependency
feat(thunder_xymatic): add core.entity_form_display.media.xymatic.bulk_edit.yml configuration file

feat(thunder_xymatic): add default entity form display for media bundle xymatic

feat(thunder_xymatic): add media form display and field for xymatic bundle

feat(thunder_xymatic): add media type and field storage for Xymatic integration

* Add install hook

* Fix cs

* Rm

---------

Co-authored-by: Christian Fritsch <[email protected]>
  • Loading branch information
chrfritsch and Christian Fritsch authored Mar 30, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 8b73dbfb94c58ad3d46f808418284e8878b48c39
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -115,6 +115,7 @@
"drupal/views_bulk_edit": "^2.5",
"drupal/views_bulk_operations": "^4.0",
"drupal/vgwort": "^2.0@beta",
"drupal/xymatic": "^1.0@beta",
"npm-asset/dropzone": "^5.5.1",
"npm-asset/exif-js": "^2.3.0",
"npm-asset/blazy": "^1.8",
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.bulk_edit
- field.field.media.xymatic.field_media_xymatic
- media.type.xymatic
module:
- path
id: media.xymatic.bulk_edit
targetEntityType: media
bundle: xymatic
mode: bulk_edit
content:
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
region: content
settings:
display_label: true
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden:
field_media_xymatic: true
publish_on: true
publish_state: true
scheduler_settings: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
langcode: en
status: true
dependencies:
config:
- field.field.media.xymatic.field_media_xymatic
- media.type.xymatic
module:
- path
id: media.xymatic.default
targetEntityType: media
bundle: xymatic
mode: default
content:
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
field_media_xymatic:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
region: content
settings:
display_label: true
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden:
name: true
publish_on: true
publish_state: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
langcode: en
status: true
dependencies:
config:
- core.entity_form_mode.media.inline
- field.field.media.xymatic.field_media_xymatic
- media.type.xymatic
module:
- path
id: media.xymatic.inline
targetEntityType: media
bundle: xymatic
mode: inline
content:
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 100
region: content
settings:
display_label: true
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
hidden:
field_media_xymatic: true
publish_on: true
publish_state: true
scheduler_settings: true
unpublish_on: true
unpublish_state: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_media_xymatic
- media.type.xymatic
id: media.xymatic.field_media_xymatic
field_name: field_media_xymatic
entity_type: media
bundle: xymatic
label: Xymatic
description: ''
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
langcode: en
status: true
dependencies:
module:
- media
id: media.field_media_xymatic
field_name: field_media_xymatic
entity_type: media
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
39 changes: 39 additions & 0 deletions modules/thunder_xymatic/config/install/media.type.xymatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
langcode: en
status: true
dependencies:
module:
- crop
- media_expire
- scheduler
- xymatic
third_party_settings:
scheduler:
expand_fieldset: when_required
fields_display_mode: vertical_tab
publish_enable: false
publish_past_date: error
publish_past_date_created: false
publish_required: false
publish_revision: false
publish_touch: false
show_message_after_update: true
unpublish_enable: false
unpublish_required: false
unpublish_revision: false
crop:
image_field: null
media_expire:
expire_field: null
enable_expiring: null
id: xymatic
label: Xymatic
description: ''
source: xymatic
queue_thumbnail_downloads: false
new_revision: false
source_configuration:
source_field: field_media_xymatic
thumbnails_directory: 'public://xymatic_thumbnails/[date:custom:Y-m]'
field_map:
default_name: name
enabled: status
7 changes: 7 additions & 0 deletions modules/thunder_xymatic/thunder_xymatic.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Thunder Xymatic integration
type: module
description: 'Xymatic integration for the Thunder distribution.'
core_version_requirement: ^9
package: Thunder Optional
dependencies:
- xymatic:xymatic
26 changes: 26 additions & 0 deletions modules/thunder_xymatic/thunder_xymatic.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/**
* @file
* The install file.
*/

/**
* Implements hook_install().
*/
function thunder_xymatic_install(bool $is_syncing): void {

if ($is_syncing) {
return;
}

// Load field.field.paragraph.video.field_video field config and add xymatic
// to the target_bundles.
if ($field_config = \Drupal::entityTypeManager()->getStorage('field_config')->load('paragraph.video.field_video')) {
$handler_settings = $field_config->getSetting('handler_settings');
$handler_settings['target_bundles']['xymatic'] = 'xymatic';
$field_config->setSetting('handler_settings', $handler_settings);
$field_config->save();
}

}