From 22ad70389b155e27d17710c49163a1626a9d6593 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 10:21:51 +0100 Subject: [PATCH 1/7] pdf links at home #2426 #2427 #2425 #2428 --- .../advanced_email_validation.settings.yml | 2 +- config/sync/block_content.type.file_link.yml | 8 +++++ .../sync/content_as_config.block_content.yml | 26 ++++++++++++++ ...isplay.block_content.file_link.default.yml | 31 +++++++++++++++++ ...isplay.block_content.file_link.default.yml | 34 +++++++++++++++++++ ....block_content.file_link.field_fichier.yml | 27 +++++++++++++++ ...ld.storage.block_content.field_fichier.yml | 23 +++++++++++++ ...ntent_settings.block_content.file_link.yml | 11 ++++++ ...ger.page_variant.home-panels_variant-0.yml | 22 ++++++------ 9 files changed, 172 insertions(+), 12 deletions(-) create mode 100644 config/sync/block_content.type.file_link.yml create mode 100644 config/sync/core.entity_form_display.block_content.file_link.default.yml create mode 100644 config/sync/core.entity_view_display.block_content.file_link.default.yml create mode 100644 config/sync/field.field.block_content.file_link.field_fichier.yml create mode 100644 config/sync/field.storage.block_content.field_fichier.yml create mode 100644 config/sync/language.content_settings.block_content.file_link.yml diff --git a/config/sync/advanced_email_validation.settings.yml b/config/sync/advanced_email_validation.settings.yml index dc34917..6e14893 100644 --- a/config/sync/advanced_email_validation.settings.yml +++ b/config/sync/advanced_email_validation.settings.yml @@ -4,7 +4,7 @@ langcode: fr override_site_defaults: false rules: mx_lookup: mx_lookup - disposable: '0' + disposable: disposable free: '0' banned: '0' error_messages: diff --git a/config/sync/block_content.type.file_link.yml b/config/sync/block_content.type.file_link.yml new file mode 100644 index 0000000..a827bf9 --- /dev/null +++ b/config/sync/block_content.type.file_link.yml @@ -0,0 +1,8 @@ +uuid: e8b72363-6670-4430-92ad-354c6b3079ea +langcode: fr +status: true +dependencies: { } +id: file_link +label: 'File link' +revision: 0 +description: '' diff --git a/config/sync/content_as_config.block_content.yml b/config/sync/content_as_config.block_content.yml index 435a4f7..98f339a 100644 --- a/config/sync/content_as_config.block_content.yml +++ b/config/sync/content_as_config.block_content.yml @@ -84,3 +84,29 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060: uri: 'internal:/node/5' title: 'Voir la fiche candidature' options: { } +08189a6a-2ca1-42c3-a780-d7ad0c65619d: + uuid: 08189a6a-2ca1-42c3-a780-d7ad0c65619d + id: '9' + info: 'Cachier des charges' + langcode: fr + type: file_link + reusable: '1' + fields: + field_fichier: + - + target_id: '11' + display: '1' + description: 'Télécharger le cahier des charges' +259faa3e-f66e-4776-9f4e-9a3aa26e8252: + uuid: 259faa3e-f66e-4776-9f4e-9a3aa26e8252 + id: '10' + info: 'Fiche candidature' + langcode: fr + type: file_link + reusable: '1' + fields: + field_fichier: + - + target_id: '12' + display: '1' + description: 'Télécharger la fiche candidature' diff --git a/config/sync/core.entity_form_display.block_content.file_link.default.yml b/config/sync/core.entity_form_display.block_content.file_link.default.yml new file mode 100644 index 0000000..bcc6219 --- /dev/null +++ b/config/sync/core.entity_form_display.block_content.file_link.default.yml @@ -0,0 +1,31 @@ +uuid: 9f8cbd66-a0b1-416f-96fb-628eedbb495d +langcode: fr +status: true +dependencies: + config: + - block_content.type.file_link + - field.field.block_content.file_link.field_fichier + module: + - file +id: block_content.file_link.default +targetEntityType: block_content +bundle: file_link +mode: default +content: + field_fichier: + type: file_generic + weight: 1 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } + info: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + langcode: true diff --git a/config/sync/core.entity_view_display.block_content.file_link.default.yml b/config/sync/core.entity_view_display.block_content.file_link.default.yml new file mode 100644 index 0000000..14f9faf --- /dev/null +++ b/config/sync/core.entity_view_display.block_content.file_link.default.yml @@ -0,0 +1,34 @@ +uuid: 63343056-f327-4a0d-b1c6-42aae5886994 +langcode: fr +status: true +dependencies: + config: + - block_content.type.file_link + - field.field.block_content.file_link.field_fichier + module: + - formatter_suite +id: block_content.file_link.default +targetEntityType: block_content +bundle: file_link +mode: default +content: + field_fichier: + type: formatter_suite_general_file_link + label: visually_hidden + settings: + titleStyle: text_from_link + titleCustomText: '' + classes: '' + showLink: '1' + openLinkIn: download + linkTopic: any + showSize: 0 + showIcon: 0 + listStyle: span + listSeparator: ', ' + third_party_settings: { } + weight: 0 + region: content +hidden: + langcode: true + search_api_excerpt: true diff --git a/config/sync/field.field.block_content.file_link.field_fichier.yml b/config/sync/field.field.block_content.file_link.field_fichier.yml new file mode 100644 index 0000000..70c70ff --- /dev/null +++ b/config/sync/field.field.block_content.file_link.field_fichier.yml @@ -0,0 +1,27 @@ +uuid: fc85fc2d-dfde-4224-9370-b86b6564e578 +langcode: fr +status: true +dependencies: + config: + - block_content.type.file_link + - field.storage.block_content.field_fichier + module: + - file +id: block_content.file_link.field_fichier +field_name: field_fichier +entity_type: block_content +bundle: file_link +label: Fichier +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:file' + handler_settings: { } + file_directory: file_link_block + file_extensions: pdf + max_filesize: '' + description_field: true +field_type: file diff --git a/config/sync/field.storage.block_content.field_fichier.yml b/config/sync/field.storage.block_content.field_fichier.yml new file mode 100644 index 0000000..553fadb --- /dev/null +++ b/config/sync/field.storage.block_content.field_fichier.yml @@ -0,0 +1,23 @@ +uuid: 5340e8a5-3c82-4028-a88d-54f07ec21b80 +langcode: fr +status: true +dependencies: + module: + - block_content + - file +id: block_content.field_fichier +field_name: field_fichier +entity_type: block_content +type: file +settings: + target_type: file + display_field: false + display_default: false + uri_scheme: public +module: file +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/language.content_settings.block_content.file_link.yml b/config/sync/language.content_settings.block_content.file_link.yml new file mode 100644 index 0000000..2d6ba3b --- /dev/null +++ b/config/sync/language.content_settings.block_content.file_link.yml @@ -0,0 +1,11 @@ +uuid: 8418948c-e0fd-458f-8d99-15738e5ebebc +langcode: fr +status: true +dependencies: + config: + - block_content.type.file_link +id: block_content.file_link +target_entity_type_id: block_content +target_bundle: file_link +default_langcode: site_default +language_alterable: false diff --git a/config/sync/page_manager.page_variant.home-panels_variant-0.yml b/config/sync/page_manager.page_variant.home-panels_variant-0.yml index 1d935f7..2d5e6e2 100644 --- a/config/sync/page_manager.page_variant.home-panels_variant-0.yml +++ b/config/sync/page_manager.page_variant.home-panels_variant-0.yml @@ -6,8 +6,8 @@ dependencies: - page_manager.page.home - views.view.home content: - - 'block_content:node_link:1ca95211-9fa2-4ef2-a460-8184d1eaf20f' - - 'block_content:node_link:1dd151e8-8a8b-4586-9e62-8905ba0c93e0' + - 'block_content:file_link:08189a6a-2ca1-42c3-a780-d7ad0c65619d' + - 'block_content:file_link:259faa3e-f66e-4776-9f4e-9a3aa26e8252' module: - block_content - panels @@ -46,9 +46,9 @@ variant_settings: region: content weight: 2 uuid: 2335ebb2-2264-44b5-abfb-a0b7a925ff8f - 09241090-e75c-452c-b169-a7d78b57650e: - id: 'block_content:1ca95211-9fa2-4ef2-a460-8184d1eaf20f' - label: 'Cahier des charges P1' + e90f5dc4-5bd5-443b-9356-a80eb812b503: + id: 'block_content:08189a6a-2ca1-42c3-a780-d7ad0c65619d' + label: 'Cachier des charges' label_display: '0' provider: block_content status: true @@ -57,10 +57,10 @@ variant_settings: context_mapping: { } region: content weight: 0 - uuid: 09241090-e75c-452c-b169-a7d78b57650e - 366eef03-4014-46f7-9a07-988feb447ae2: - id: 'block_content:1dd151e8-8a8b-4586-9e62-8905ba0c93e0' - label: 'Fiche Candidature P1' + uuid: e90f5dc4-5bd5-443b-9356-a80eb812b503 + f8454c70-66dd-496c-b685-b2408111317e: + id: 'block_content:259faa3e-f66e-4776-9f4e-9a3aa26e8252' + label: 'Fiche candidature' label_display: '0' provider: block_content status: true @@ -68,8 +68,8 @@ variant_settings: view_mode: full context_mapping: { } region: content - weight: 1 - uuid: 366eef03-4014-46f7-9a07-988feb447ae2 + weight: 0 + uuid: f8454c70-66dd-496c-b685-b2408111317e page_title: '' layout: layout_onecol layout_settings: From 16d87d0845945c403b4033474f77c84897229d9d Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 10:42:16 +0100 Subject: [PATCH 2/7] proposer un site home link #2418 --- config/sync/block_content.type.node_link.yml | 4 ++-- .../sync/content_as_config.block_content.yml | 19 +++++++++++++++ ...isplay.block_content.node_link.default.yml | 24 +++++++++++-------- ...isplay.block_content.node_link.default.yml | 11 ++++++++- ...ck_content.node_link.field_description.yml | 24 +++++++++++++++++++ ...torage.block_content.field_description.yml | 20 ++++++++++++++++ ...nation.destination.login_to_operations.yml | 2 +- ...stination.register_to_create_operation.yml | 2 +- ...ger.page_variant.home-panels_variant-0.yml | 17 +++++++++++-- 9 files changed, 106 insertions(+), 17 deletions(-) create mode 100644 config/sync/field.field.block_content.node_link.field_description.yml create mode 100644 config/sync/field.storage.block_content.field_description.yml diff --git a/config/sync/block_content.type.node_link.yml b/config/sync/block_content.type.node_link.yml index 4f6cc69..01b7754 100644 --- a/config/sync/block_content.type.node_link.yml +++ b/config/sync/block_content.type.node_link.yml @@ -3,6 +3,6 @@ langcode: fr status: true dependencies: { } id: node_link -label: 'node link' +label: 'Internal link' revision: 0 -description: '' +description: 'with description' diff --git a/config/sync/content_as_config.block_content.yml b/config/sync/content_as_config.block_content.yml index 98f339a..49f3562 100644 --- a/config/sync/content_as_config.block_content.yml +++ b/config/sync/content_as_config.block_content.yml @@ -66,6 +66,7 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060: type: node_link reusable: '1' fields: + field_description: { } field_node_link: - uri: 'internal:/node/4' @@ -79,6 +80,7 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060: type: node_link reusable: '1' fields: + field_description: { } field_node_link: - uri: 'internal:/node/5' @@ -110,3 +112,20 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060: target_id: '12' display: '1' description: 'Télécharger la fiche candidature' +5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f: + uuid: 5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f + id: '11' + info: 'Proposer un site (anonymous)' + langcode: fr + type: node_link + reusable: '1' + fields: + field_description: + - + value: "Appel a candidatures d'opérations" + format: wysiwyg + field_node_link: + - + uri: 'internal:/user/register?destination=/node/add/operation' + title: 'Proposer un site' + options: { } diff --git a/config/sync/core.entity_form_display.block_content.node_link.default.yml b/config/sync/core.entity_form_display.block_content.node_link.default.yml index 5a80a3b..182a191 100644 --- a/config/sync/core.entity_form_display.block_content.node_link.default.yml +++ b/config/sync/core.entity_form_display.block_content.node_link.default.yml @@ -4,17 +4,27 @@ status: true dependencies: config: - block_content.type.node_link + - field.field.block_content.node_link.field_description - field.field.block_content.node_link.field_node_link module: - link + - text id: block_content.node_link.default targetEntityType: block_content bundle: node_link mode: default content: + field_description: + type: text_textfield + weight: 2 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_node_link: type: link_default - weight: 26 + weight: 1 region: content settings: placeholder_url: '' @@ -22,17 +32,11 @@ content: third_party_settings: { } info: type: string_textfield - weight: -5 + 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: { } -hidden: { } +hidden: + langcode: true diff --git a/config/sync/core.entity_view_display.block_content.node_link.default.yml b/config/sync/core.entity_view_display.block_content.node_link.default.yml index d4bf1a0..a7dcd32 100644 --- a/config/sync/core.entity_view_display.block_content.node_link.default.yml +++ b/config/sync/core.entity_view_display.block_content.node_link.default.yml @@ -4,14 +4,23 @@ status: true dependencies: config: - block_content.type.node_link + - field.field.block_content.node_link.field_description - field.field.block_content.node_link.field_node_link module: - link + - text id: block_content.node_link.default targetEntityType: block_content bundle: node_link mode: default content: + field_description: + type: text_default + label: visually_hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content field_node_link: type: link label: visually_hidden @@ -22,7 +31,7 @@ content: rel: '' target: '' third_party_settings: { } - weight: 0 + weight: 1 region: content hidden: langcode: true diff --git a/config/sync/field.field.block_content.node_link.field_description.yml b/config/sync/field.field.block_content.node_link.field_description.yml new file mode 100644 index 0000000..a8ffed2 --- /dev/null +++ b/config/sync/field.field.block_content.node_link.field_description.yml @@ -0,0 +1,24 @@ +uuid: e7451b79-988c-4f40-a2c7-6deeb010f039 +langcode: fr +status: true +dependencies: + config: + - block_content.type.node_link + - field.storage.block_content.field_description + - filter.format.wysiwyg + module: + - text +id: block_content.node_link.field_description +field_name: field_description +entity_type: block_content +bundle: node_link +label: description +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_formats: + - wysiwyg +field_type: text diff --git a/config/sync/field.storage.block_content.field_description.yml b/config/sync/field.storage.block_content.field_description.yml new file mode 100644 index 0000000..3b9178b --- /dev/null +++ b/config/sync/field.storage.block_content.field_description.yml @@ -0,0 +1,20 @@ +uuid: b029b266-612f-429c-8de0-2c5336e3371f +langcode: fr +status: true +dependencies: + module: + - block_content + - text +id: block_content.field_description +field_name: field_description +entity_type: block_content +type: text +settings: + max_length: 255 +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/login_destination.destination.login_to_operations.yml b/config/sync/login_destination.destination.login_to_operations.yml index d9c47e8..eb8f2d9 100644 --- a/config/sync/login_destination.destination.login_to_operations.yml +++ b/config/sync/login_destination.destination.login_to_operations.yml @@ -13,4 +13,4 @@ language: '' roles: authenticated: authenticated weight: 0 -enabled: true +enabled: false diff --git a/config/sync/login_destination.destination.register_to_create_operation.yml b/config/sync/login_destination.destination.register_to_create_operation.yml index 76509b4..fc1ef2c 100644 --- a/config/sync/login_destination.destination.register_to_create_operation.yml +++ b/config/sync/login_destination.destination.register_to_create_operation.yml @@ -13,4 +13,4 @@ language: '' roles: authenticated: authenticated weight: 0 -enabled: true +enabled: false diff --git a/config/sync/page_manager.page_variant.home-panels_variant-0.yml b/config/sync/page_manager.page_variant.home-panels_variant-0.yml index 2d5e6e2..8d637d0 100644 --- a/config/sync/page_manager.page_variant.home-panels_variant-0.yml +++ b/config/sync/page_manager.page_variant.home-panels_variant-0.yml @@ -8,6 +8,7 @@ dependencies: content: - 'block_content:file_link:08189a6a-2ca1-42c3-a780-d7ad0c65619d' - 'block_content:file_link:259faa3e-f66e-4776-9f4e-9a3aa26e8252' + - 'block_content:node_link:5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f' module: - block_content - panels @@ -32,7 +33,7 @@ variant_settings: items_per_page: none exposed: { } region: content - weight: -1 + weight: -2 uuid: b297a6d7-a9c6-43a6-9010-3b5cd59ae3a8 2335ebb2-2264-44b5-abfb-a0b7a925ff8f: id: 'views_block:home-block_2' @@ -68,8 +69,20 @@ variant_settings: view_mode: full context_mapping: { } region: content - weight: 0 + weight: 1 uuid: f8454c70-66dd-496c-b685-b2408111317e + 6f81f6f2-06b2-452a-ab38-ff05d6d02aaf: + id: 'block_content:5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f' + label: 'Phase 1.' + label_display: visible + provider: block_content + status: true + info: '' + view_mode: full + context_mapping: { } + region: content + weight: -1 + uuid: 6f81f6f2-06b2-452a-ab38-ff05d6d02aaf page_title: '' layout: layout_onecol layout_settings: From 230e19df9bba7612fb702a648f9876f13a20ff19 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 10:54:24 +0100 Subject: [PATCH 3/7] operation creation --- config/sync/node.type.operation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sync/node.type.operation.yml b/config/sync/node.type.operation.yml index cb2ff92..2a41cf3 100644 --- a/config/sync/node.type.operation.yml +++ b/config/sync/node.type.operation.yml @@ -13,5 +13,5 @@ type: operation description: '' help: '' new_revision: false -preview_mode: 2 +preview_mode: 0 display_submitted: true From 7e85e5761a2d142ef35121a4ca28e14716777729 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 11:14:50 +0100 Subject: [PATCH 4/7] footer blocks by regions #2420 --- composer.json | 1 + composer.lock | 53 ++++++++++++++++++- .../sync/block.block.reha_config_pages_2.yml | 4 +- .../sync/block.block.reha_config_pages_3.yml | 22 ++++++++ config/sync/block.block.reha_logoreha_2.yml | 4 +- config/sync/block.block.reha_logoreha_3.yml | 25 +++++++++ .../block.block.reha_operateurduprogramme.yml | 4 +- ...lock.block.reha_operateurduprogramme_2.yml | 25 +++++++++ config/sync/block.block.reha_pieddepage.yml | 4 +- config/sync/block.block.reha_pieddepage_2.yml | 31 +++++++++++ config/sync/core.extension.yml | 1 + web/sites/development.services.yml | 50 ----------------- web/themes/custom/reha/reha.info.yml | 6 ++- .../custom/reha/templates/page.html.twig | 10 +++- 14 files changed, 178 insertions(+), 62 deletions(-) create mode 100644 config/sync/block.block.reha_config_pages_3.yml create mode 100644 config/sync/block.block.reha_logoreha_3.yml create mode 100644 config/sync/block.block.reha_operateurduprogramme_2.yml create mode 100644 config/sync/block.block.reha_pieddepage_2.yml diff --git a/composer.json b/composer.json index 5145d16..35e13e0 100644 --- a/composer.json +++ b/composer.json @@ -29,6 +29,7 @@ "drupal/panels": "^4.7", "drupal/paragraphs": "^1.16", "drupal/phone_number": "^2.0@alpha", + "drupal/social_media_links": "^2.9", "drupal/webform": "^6.2", "wikimedia/composer-merge-plugin": "^2.1" }, diff --git a/composer.lock b/composer.lock index 9795376..e158a35 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "fe3a970f200733b71d21e9f07b783697", + "content-hash": "2ee73d5782748e4512d1f15529f70d10", "packages": [ { "name": "asm89/stack-cors", @@ -6663,6 +6663,57 @@ "issues": "https://www.drupal.org/project/issues/smtp" } }, + { + "name": "drupal/social_media_links", + "version": "2.9.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/social_media_links.git", + "reference": "8.x-2.9" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/social_media_links-8.x-2.9.zip", + "reference": "8.x-2.9", + "shasum": "d73ea6199b48e11e57fe8a2aeb2afbf3c295704a" + }, + "require": { + "drupal/core": "^8 || ^9 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-2.9", + "datestamp": "1665768361", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Neslee Canil Pinto", + "homepage": "https://www.drupal.org/u/neslee-canil-pinto", + "role": "Maintainer" + }, + { + "name": "Christian Beier", + "homepage": "https://www.drupal.org/u/cbeier", + "role": "Maintainer" + } + ], + "description": "The module provides a block that display links (icons) to your profiles on various social networking sites.", + "homepage": "https://www.drupal.org/project/social_media_links", + "support": { + "source": "https://git.drupalcode.org/project/social_media_links", + "issues": "https://www.drupal.org/project/issues/social_media_links" + } + }, { "name": "drupal/sophron", "version": "2.0.1", diff --git a/config/sync/block.block.reha_config_pages_2.yml b/config/sync/block.block.reha_config_pages_2.yml index b73029f..73012a0 100644 --- a/config/sync/block.block.reha_config_pages_2.yml +++ b/config/sync/block.block.reha_config_pages_2.yml @@ -1,6 +1,6 @@ uuid: ac51b453-f5af-4d1e-92bd-2beee0250794 langcode: fr -status: true +status: false dependencies: module: - config_pages @@ -8,7 +8,7 @@ dependencies: - reha id: reha_config_pages_2 theme: reha -region: footer +region: header weight: -1 provider: null plugin: config_pages_block diff --git a/config/sync/block.block.reha_config_pages_3.yml b/config/sync/block.block.reha_config_pages_3.yml new file mode 100644 index 0000000..93becd1 --- /dev/null +++ b/config/sync/block.block.reha_config_pages_3.yml @@ -0,0 +1,22 @@ +uuid: e667b914-a9dd-49f4-9ad6-b92a61f9dc8f +langcode: fr +status: true +dependencies: + module: + - config_pages + theme: + - reha +id: reha_config_pages_3 +theme: reha +region: footer_right +weight: 0 +provider: null +plugin: config_pages_block +settings: + id: config_pages_block + label: Partenaires + label_display: visible + provider: config_pages + config_page_type: partenaires + config_page_view_mode: full +visibility: { } diff --git a/config/sync/block.block.reha_logoreha_2.yml b/config/sync/block.block.reha_logoreha_2.yml index 141105a..5c33b3b 100644 --- a/config/sync/block.block.reha_logoreha_2.yml +++ b/config/sync/block.block.reha_logoreha_2.yml @@ -1,6 +1,6 @@ uuid: 0ea21b35-747c-42c6-bce2-e18cae5ed543 langcode: fr -status: true +status: false dependencies: content: - 'block_content:logo_link:6aedcd97-72c8-4328-b52d-f4d2a5285b96' @@ -10,7 +10,7 @@ dependencies: - reha id: reha_logoreha_2 theme: reha -region: footer +region: header weight: -4 provider: null plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' diff --git a/config/sync/block.block.reha_logoreha_3.yml b/config/sync/block.block.reha_logoreha_3.yml new file mode 100644 index 0000000..f2f0651 --- /dev/null +++ b/config/sync/block.block.reha_logoreha_3.yml @@ -0,0 +1,25 @@ +uuid: 74cf208f-3ebc-421e-94bc-b89300b25370 +langcode: fr +status: true +dependencies: + content: + - 'block_content:logo_link:6aedcd97-72c8-4328-b52d-f4d2a5285b96' + module: + - block_content + theme: + - reha +id: reha_logoreha_3 +theme: reha +region: footer_left +weight: 0 +provider: null +plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' +settings: + id: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' + label: 'Logo reha' + label_display: '0' + provider: block_content + status: true + info: '' + view_mode: full +visibility: { } diff --git a/config/sync/block.block.reha_operateurduprogramme.yml b/config/sync/block.block.reha_operateurduprogramme.yml index 8515188..6ab1770 100644 --- a/config/sync/block.block.reha_operateurduprogramme.yml +++ b/config/sync/block.block.reha_operateurduprogramme.yml @@ -1,6 +1,6 @@ uuid: 68cc1027-f227-46ae-a518-a1df0bf4d39d langcode: fr -status: true +status: false dependencies: content: - 'block_content:logo_link:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' @@ -10,7 +10,7 @@ dependencies: - reha id: reha_operateurduprogramme theme: reha -region: footer +region: header weight: -2 provider: null plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' diff --git a/config/sync/block.block.reha_operateurduprogramme_2.yml b/config/sync/block.block.reha_operateurduprogramme_2.yml new file mode 100644 index 0000000..a9e4713 --- /dev/null +++ b/config/sync/block.block.reha_operateurduprogramme_2.yml @@ -0,0 +1,25 @@ +uuid: de42215d-b319-47c6-b7df-2df7d099e10e +langcode: fr +status: true +dependencies: + content: + - 'block_content:logo_link:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' + module: + - block_content + theme: + - reha +id: reha_operateurduprogramme_2 +theme: reha +region: footer_middle +weight: 0 +provider: null +plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' +settings: + id: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' + label: 'Opérateur du programme' + label_display: visible + provider: block_content + status: true + info: '' + view_mode: full +visibility: { } diff --git a/config/sync/block.block.reha_pieddepage.yml b/config/sync/block.block.reha_pieddepage.yml index e27b161..04c64e8 100644 --- a/config/sync/block.block.reha_pieddepage.yml +++ b/config/sync/block.block.reha_pieddepage.yml @@ -1,6 +1,6 @@ uuid: 2b27b1a3-1ae4-4364-8c92-dd12c41abe70 langcode: fr -status: true +status: false dependencies: config: - system.menu.footer @@ -10,7 +10,7 @@ dependencies: - reha id: reha_pieddepage theme: reha -region: footer +region: header weight: -3 provider: null plugin: 'menu_block:footer' diff --git a/config/sync/block.block.reha_pieddepage_2.yml b/config/sync/block.block.reha_pieddepage_2.yml new file mode 100644 index 0000000..8a1a8b2 --- /dev/null +++ b/config/sync/block.block.reha_pieddepage_2.yml @@ -0,0 +1,31 @@ +uuid: 1684b22f-aecf-40ec-a93a-9371ce6dafe0 +langcode: fr +status: true +dependencies: + config: + - system.menu.footer + module: + - menu_block + theme: + - reha +id: reha_pieddepage_2 +theme: reha +region: footer_left +weight: 0 +provider: null +plugin: 'menu_block:footer' +settings: + id: 'menu_block:footer' + label: 'Pied de page' + label_display: '0' + provider: menu_block + follow: false + follow_parent: child + label_link: false + label_type: block + level: 1 + depth: 0 + expand_all_items: false + parent: 'footer:' + suggestion: footer +visibility: { } diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index a779780..48eecf9 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -96,6 +96,7 @@ module: search_api_db: 0 smart_trim: 0 smtp: 0 + social_media_links: 0 system: 0 taxonomy: 0 telephone: 0 diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml index cc931e1..d2857c6 100644 --- a/web/sites/development.services.yml +++ b/web/sites/development.services.yml @@ -3,56 +3,6 @@ # To activate this feature, follow the instructions at the top of the # 'example.settings.local.php' file, which sits next to this file. parameters: - twig.config: - # Twig debugging: - # - # When debugging is enabled: - # - The markup of each Twig template is surrounded by HTML comments that - # contain theming information, such as template file name suggestions. - # - Note that this debugging markup will cause automated tests that directly - # check rendered HTML to fail. When running automated tests, 'debug' - # should be set to FALSE. - # - The dump() function can be used in Twig templates to output information - # about template variables. - # - Twig templates are automatically recompiled whenever the source code - # changes (see auto_reload below). - # - # For more information about debugging Twig templates, see - # https://www.drupal.org/node/1906392. - # - # Not recommended in production environments - # @default false - debug: true - # Twig auto-reload: - # - # Automatically recompile Twig templates whenever the source code changes. - # If you don't provide a value for auto_reload, it will be determined - # based on the value of debug. - # - # Not recommended in production environments - # @default null - auto_reload: null - # Twig cache: - # - # By default, Twig templates will be compiled and stored in the filesystem - # to increase performance. Disabling the Twig cache will recompile the - # templates from source each time they are used. In most cases the - # auto_reload setting above should be enabled rather than disabling the - # Twig cache. - # - # Not recommended in production environments - # @default true - cache: false - # Cacheability debugging: - # - # Responses with cacheability metadata (CacheableResponseInterface instances) - # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers. - # - # For more information about debugging cacheable responses, see - # https://www.drupal.org/developing/api/8/response/cacheable-response-interface - # - # Not recommended in production environments - # @default false http.response.debug_cacheability_headers: true services: cache.backend.null: diff --git a/web/themes/custom/reha/reha.info.yml b/web/themes/custom/reha/reha.info.yml index 1ecab93..d001c68 100644 --- a/web/themes/custom/reha/reha.info.yml +++ b/web/themes/custom/reha/reha.info.yml @@ -18,4 +18,8 @@ regions: content: 'Content' sidebar_first: 'Sidebar first' sidebar_second: 'Sidebar second' - footer: 'Footer' + footer_top: 'Footer top' + footer_left: 'Footer left' + footer_middle: 'Footer middle' + footer_right: 'Footer right' + footer_bottom: 'Footer bottom' diff --git a/web/themes/custom/reha/templates/page.html.twig b/web/themes/custom/reha/templates/page.html.twig index 032b724..4b2a08e 100644 --- a/web/themes/custom/reha/templates/page.html.twig +++ b/web/themes/custom/reha/templates/page.html.twig @@ -81,9 +81,15 @@ - {% if page.footer %} + {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
- {{ page.footer }} + +
+ + + +
+
{% endif %} From 748c1d9d0a2f970a15adccd0e3d514dec99dee3d Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 11:27:03 +0100 Subject: [PATCH 5/7] footer blocks by regions #2420 --- config/sync/block.block.reha_config_pages.yml | 2 +- .../sync/block.block.reha_config_pages_2.yml | 6 ++-- .../sync/block.block.reha_config_pages_3.yml | 22 ------------- .../block.block.reha_connexionutilisateur.yml | 2 +- .../sync/block.block.reha_logoministere.yml | 2 +- config/sync/block.block.reha_logoreha.yml | 2 +- config/sync/block.block.reha_logoreha_2.yml | 25 --------------- config/sync/block.block.reha_logoreha_3.yml | 2 +- .../block.block.reha_operateurduprogramme.yml | 6 ++-- ...lock.block.reha_operateurduprogramme_2.yml | 25 --------------- config/sync/block.block.reha_pieddepage.yml | 6 ++-- config/sync/block.block.reha_pieddepage_2.yml | 31 ------------------- ...iews_block__current_user_block_block_1.yml | 2 +- 13 files changed, 15 insertions(+), 118 deletions(-) delete mode 100644 config/sync/block.block.reha_config_pages_3.yml delete mode 100644 config/sync/block.block.reha_logoreha_2.yml delete mode 100644 config/sync/block.block.reha_operateurduprogramme_2.yml delete mode 100644 config/sync/block.block.reha_pieddepage_2.yml diff --git a/config/sync/block.block.reha_config_pages.yml b/config/sync/block.block.reha_config_pages.yml index 95e0ebd..f08ee96 100644 --- a/config/sync/block.block.reha_config_pages.yml +++ b/config/sync/block.block.reha_config_pages.yml @@ -9,7 +9,7 @@ dependencies: id: reha_config_pages theme: reha region: header -weight: 2 +weight: -2 provider: null plugin: config_pages_block settings: diff --git a/config/sync/block.block.reha_config_pages_2.yml b/config/sync/block.block.reha_config_pages_2.yml index 73012a0..e19089e 100644 --- a/config/sync/block.block.reha_config_pages_2.yml +++ b/config/sync/block.block.reha_config_pages_2.yml @@ -1,6 +1,6 @@ uuid: ac51b453-f5af-4d1e-92bd-2beee0250794 langcode: fr -status: false +status: true dependencies: module: - config_pages @@ -8,8 +8,8 @@ dependencies: - reha id: reha_config_pages_2 theme: reha -region: header -weight: -1 +region: footer_right +weight: -4 provider: null plugin: config_pages_block settings: diff --git a/config/sync/block.block.reha_config_pages_3.yml b/config/sync/block.block.reha_config_pages_3.yml deleted file mode 100644 index 93becd1..0000000 --- a/config/sync/block.block.reha_config_pages_3.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: e667b914-a9dd-49f4-9ad6-b92a61f9dc8f -langcode: fr -status: true -dependencies: - module: - - config_pages - theme: - - reha -id: reha_config_pages_3 -theme: reha -region: footer_right -weight: 0 -provider: null -plugin: config_pages_block -settings: - id: config_pages_block - label: Partenaires - label_display: visible - provider: config_pages - config_page_type: partenaires - config_page_view_mode: full -visibility: { } diff --git a/config/sync/block.block.reha_connexionutilisateur.yml b/config/sync/block.block.reha_connexionutilisateur.yml index 407585e..ffc5ba7 100644 --- a/config/sync/block.block.reha_connexionutilisateur.yml +++ b/config/sync/block.block.reha_connexionutilisateur.yml @@ -9,7 +9,7 @@ dependencies: id: reha_connexionutilisateur theme: reha region: header -weight: 0 +weight: -4 provider: null plugin: user_login_block settings: diff --git a/config/sync/block.block.reha_logoministere.yml b/config/sync/block.block.reha_logoministere.yml index 0fbfca9..322bf4e 100644 --- a/config/sync/block.block.reha_logoministere.yml +++ b/config/sync/block.block.reha_logoministere.yml @@ -11,7 +11,7 @@ dependencies: id: reha_logoministere theme: reha region: header -weight: -2 +weight: -6 provider: null plugin: 'block_content:734a55bb-b11d-4498-bb55-5a6cb1924aa8' settings: diff --git a/config/sync/block.block.reha_logoreha.yml b/config/sync/block.block.reha_logoreha.yml index 8c5484b..5f1e468 100644 --- a/config/sync/block.block.reha_logoreha.yml +++ b/config/sync/block.block.reha_logoreha.yml @@ -11,7 +11,7 @@ dependencies: id: reha_logoreha theme: reha region: header -weight: -1 +weight: -5 provider: null plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' settings: diff --git a/config/sync/block.block.reha_logoreha_2.yml b/config/sync/block.block.reha_logoreha_2.yml deleted file mode 100644 index 5c33b3b..0000000 --- a/config/sync/block.block.reha_logoreha_2.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: 0ea21b35-747c-42c6-bce2-e18cae5ed543 -langcode: fr -status: false -dependencies: - content: - - 'block_content:logo_link:6aedcd97-72c8-4328-b52d-f4d2a5285b96' - module: - - block_content - theme: - - reha -id: reha_logoreha_2 -theme: reha -region: header -weight: -4 -provider: null -plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' -settings: - id: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' - label: 'Logo reha' - label_display: '0' - provider: block_content - status: true - info: '' - view_mode: full -visibility: { } diff --git a/config/sync/block.block.reha_logoreha_3.yml b/config/sync/block.block.reha_logoreha_3.yml index f2f0651..60315d1 100644 --- a/config/sync/block.block.reha_logoreha_3.yml +++ b/config/sync/block.block.reha_logoreha_3.yml @@ -11,7 +11,7 @@ dependencies: id: reha_logoreha_3 theme: reha region: footer_left -weight: 0 +weight: -5 provider: null plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96' settings: diff --git a/config/sync/block.block.reha_operateurduprogramme.yml b/config/sync/block.block.reha_operateurduprogramme.yml index 6ab1770..2cd2ec8 100644 --- a/config/sync/block.block.reha_operateurduprogramme.yml +++ b/config/sync/block.block.reha_operateurduprogramme.yml @@ -1,6 +1,6 @@ uuid: 68cc1027-f227-46ae-a518-a1df0bf4d39d langcode: fr -status: false +status: true dependencies: content: - 'block_content:logo_link:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' @@ -10,8 +10,8 @@ dependencies: - reha id: reha_operateurduprogramme theme: reha -region: header -weight: -2 +region: footer_middle +weight: -6 provider: null plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' settings: diff --git a/config/sync/block.block.reha_operateurduprogramme_2.yml b/config/sync/block.block.reha_operateurduprogramme_2.yml deleted file mode 100644 index a9e4713..0000000 --- a/config/sync/block.block.reha_operateurduprogramme_2.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: de42215d-b319-47c6-b7df-2df7d099e10e -langcode: fr -status: true -dependencies: - content: - - 'block_content:logo_link:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' - module: - - block_content - theme: - - reha -id: reha_operateurduprogramme_2 -theme: reha -region: footer_middle -weight: 0 -provider: null -plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' -settings: - id: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060' - label: 'Opérateur du programme' - label_display: visible - provider: block_content - status: true - info: '' - view_mode: full -visibility: { } diff --git a/config/sync/block.block.reha_pieddepage.yml b/config/sync/block.block.reha_pieddepage.yml index 04c64e8..4b48912 100644 --- a/config/sync/block.block.reha_pieddepage.yml +++ b/config/sync/block.block.reha_pieddepage.yml @@ -1,6 +1,6 @@ uuid: 2b27b1a3-1ae4-4364-8c92-dd12c41abe70 langcode: fr -status: false +status: true dependencies: config: - system.menu.footer @@ -10,8 +10,8 @@ dependencies: - reha id: reha_pieddepage theme: reha -region: header -weight: -3 +region: footer_left +weight: -4 provider: null plugin: 'menu_block:footer' settings: diff --git a/config/sync/block.block.reha_pieddepage_2.yml b/config/sync/block.block.reha_pieddepage_2.yml deleted file mode 100644 index 8a1a8b2..0000000 --- a/config/sync/block.block.reha_pieddepage_2.yml +++ /dev/null @@ -1,31 +0,0 @@ -uuid: 1684b22f-aecf-40ec-a93a-9371ce6dafe0 -langcode: fr -status: true -dependencies: - config: - - system.menu.footer - module: - - menu_block - theme: - - reha -id: reha_pieddepage_2 -theme: reha -region: footer_left -weight: 0 -provider: null -plugin: 'menu_block:footer' -settings: - id: 'menu_block:footer' - label: 'Pied de page' - label_display: '0' - provider: menu_block - follow: false - follow_parent: child - label_link: false - label_type: block - level: 1 - depth: 0 - expand_all_items: false - parent: 'footer:' - suggestion: footer -visibility: { } diff --git a/config/sync/block.block.reha_views_block__current_user_block_block_1.yml b/config/sync/block.block.reha_views_block__current_user_block_block_1.yml index a7ba3a9..f7ff7af 100644 --- a/config/sync/block.block.reha_views_block__current_user_block_block_1.yml +++ b/config/sync/block.block.reha_views_block__current_user_block_block_1.yml @@ -12,7 +12,7 @@ dependencies: id: reha_views_block__current_user_block_block_1 theme: reha region: header -weight: 1 +weight: -3 provider: null plugin: 'views_block:current_user_block-block_1' settings: From 1a3a15e4c077251ce2efbdec4b805af54de0c704 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 11:39:52 +0100 Subject: [PATCH 6/7] footer blocks template fixe #2420 --- web/sites/development.services.yml | 50 +++++++++++++++++++ .../reha/templates/page--home.html.twig | 11 +++- .../templates/page--user--register.html.twig | 10 +++- .../custom/reha/templates/page.html.twig | 4 +- 4 files changed, 69 insertions(+), 6 deletions(-) diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml index d2857c6..cc931e1 100644 --- a/web/sites/development.services.yml +++ b/web/sites/development.services.yml @@ -3,6 +3,56 @@ # To activate this feature, follow the instructions at the top of the # 'example.settings.local.php' file, which sits next to this file. parameters: + twig.config: + # Twig debugging: + # + # When debugging is enabled: + # - The markup of each Twig template is surrounded by HTML comments that + # contain theming information, such as template file name suggestions. + # - Note that this debugging markup will cause automated tests that directly + # check rendered HTML to fail. When running automated tests, 'debug' + # should be set to FALSE. + # - The dump() function can be used in Twig templates to output information + # about template variables. + # - Twig templates are automatically recompiled whenever the source code + # changes (see auto_reload below). + # + # For more information about debugging Twig templates, see + # https://www.drupal.org/node/1906392. + # + # Not recommended in production environments + # @default false + debug: true + # Twig auto-reload: + # + # Automatically recompile Twig templates whenever the source code changes. + # If you don't provide a value for auto_reload, it will be determined + # based on the value of debug. + # + # Not recommended in production environments + # @default null + auto_reload: null + # Twig cache: + # + # By default, Twig templates will be compiled and stored in the filesystem + # to increase performance. Disabling the Twig cache will recompile the + # templates from source each time they are used. In most cases the + # auto_reload setting above should be enabled rather than disabling the + # Twig cache. + # + # Not recommended in production environments + # @default true + cache: false + # Cacheability debugging: + # + # Responses with cacheability metadata (CacheableResponseInterface instances) + # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers. + # + # For more information about debugging cacheable responses, see + # https://www.drupal.org/developing/api/8/response/cacheable-response-interface + # + # Not recommended in production environments + # @default false http.response.debug_cacheability_headers: true services: cache.backend.null: diff --git a/web/themes/custom/reha/templates/page--home.html.twig b/web/themes/custom/reha/templates/page--home.html.twig index a715374..e1d7109 100644 --- a/web/themes/custom/reha/templates/page--home.html.twig +++ b/web/themes/custom/reha/templates/page--home.html.twig @@ -81,10 +81,17 @@ - {% if page.footer %} + {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
- {{ page.footer }} + +
+ + + +
+
{% endif %} + {# /.layout-container #} diff --git a/web/themes/custom/reha/templates/page--user--register.html.twig b/web/themes/custom/reha/templates/page--user--register.html.twig index 6cab24f..a67c294 100644 --- a/web/themes/custom/reha/templates/page--user--register.html.twig +++ b/web/themes/custom/reha/templates/page--user--register.html.twig @@ -81,9 +81,15 @@ - {% if page.footer %} +{% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
- {{ page.footer }} + +
+ + + +
+
{% endif %} diff --git a/web/themes/custom/reha/templates/page.html.twig b/web/themes/custom/reha/templates/page.html.twig index 4b2a08e..5e43332 100644 --- a/web/themes/custom/reha/templates/page.html.twig +++ b/web/themes/custom/reha/templates/page.html.twig @@ -81,7 +81,7 @@ - {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} + {# {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} #}
@@ -91,6 +91,6 @@
- {% endif %} + {# {% endif %} #} {# /.layout-container #} From 1a1232c3f1c77888d85619b1136f034d85c9d7b4 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 24 Nov 2023 12:08:15 +0100 Subject: [PATCH 7/7] rule new operation sending email --- composer.json | 2 + composer.lock | 117 +++++++++++++++++- config/sync/core.extension.yml | 3 + config/sync/filter.format.restricted_html.yml | 36 ++++++ ...reaction.new_operation_node_send_email.yml | 51 ++++++++ config/sync/rules.settings.yml | 9 ++ config/sync/user.role.anonymous.yml | 4 + web/sites/development.services.yml | 50 -------- 8 files changed, 221 insertions(+), 51 deletions(-) create mode 100644 config/sync/filter.format.restricted_html.yml create mode 100644 config/sync/rules.reaction.new_operation_node_send_email.yml create mode 100644 config/sync/rules.settings.yml diff --git a/composer.json b/composer.json index 35e13e0..8f6e619 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,9 @@ "drupal/panels": "^4.7", "drupal/paragraphs": "^1.16", "drupal/phone_number": "^2.0@alpha", + "drupal/rules": "^3.0@alpha", "drupal/social_media_links": "^2.9", + "drupal/typed_data": "^1.0@beta", "drupal/webform": "^6.2", "wikimedia/composer-merge-plugin": "^2.1" }, diff --git a/composer.lock b/composer.lock index e158a35..18630e5 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2ee73d5782748e4512d1f15529f70d10", + "content-hash": "ae52207c0580112eec7a01ad7b214aeb", "packages": [ { "name": "asm89/stack-cors", @@ -6348,6 +6348,65 @@ "source": "https://git.drupalcode.org/project/redis" } }, + { + "name": "drupal/rules", + "version": "3.0.0-alpha8", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/rules.git", + "reference": "8.x-3.0-alpha8" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/rules-8.x-3.0-alpha8.zip", + "reference": "8.x-3.0-alpha8", + "shasum": "22a44298b98000697efd86a29a8df1c0ce0bf44f" + }, + "require": { + "drupal/core": "^9.1 || ^10", + "drupal/typed_data": "^1.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-3.0-alpha8", + "datestamp": "1696376270", + "security-coverage": { + "status": "not-covered", + "message": "Alpha releases are not covered by Drupal security advisories." + } + }, + "drush": { + "services": { + "drush.services.yml": "^9 || ^10" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "fago", + "homepage": "https://www.drupal.org/user/16747" + }, + { + "name": "klausi", + "homepage": "https://www.drupal.org/user/262198" + }, + { + "name": "TR", + "homepage": "https://www.drupal.org/user/202830" + } + ], + "description": "React on events and conditionally evaluate actions.", + "homepage": "https://www.drupal.org/project/rules", + "support": { + "source": "https://git.drupalcode.org/project/rules", + "issues": "https://www.drupal.org/project/issues/rules" + } + }, { "name": "drupal/search_api", "version": "1.30.0", @@ -6947,6 +7006,60 @@ "source": "https://git.drupalcode.org/project/translation_views" } }, + { + "name": "drupal/typed_data", + "version": "1.0.0-beta2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/typed_data.git", + "reference": "8.x-1.0-beta2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/typed_data-8.x-1.0-beta2.zip", + "reference": "8.x-1.0-beta2", + "shasum": "e0aa651b129d8dcd765ca49cba8682ebe09e6e73" + }, + "require": { + "drupal/core": "^9.1 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.0-beta2", + "datestamp": "1679429196", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + }, + "drush": { + "services": { + "drush.services.yml": ">=9" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "fago", + "homepage": "https://www.drupal.org/user/16747" + }, + { + "name": "TR", + "homepage": "https://www.drupal.org/user/202830" + } + ], + "description": "Extends the core Typed Data API with new APIs and features.", + "homepage": "https://www.drupal.org/project/typed_data", + "support": { + "source": "https://git.drupalcode.org/project/typed_data", + "issues": "https://www.drupal.org/project/issues/typed_data" + } + }, { "name": "drupal/ultimate_cron", "version": "2.0.0-alpha6", @@ -12471,6 +12584,8 @@ "drupal/login_destination": 20, "drupal/page_manager": 5, "drupal/phone_number": 15, + "drupal/rules": 15, + "drupal/typed_data": 10, "drupal/advanced_text_formatter": 5, "drupal/bulkdelete": 20, "drupal/config_ignore": 5, diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 48eecf9..95be1f0 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -2,6 +2,7 @@ _core: default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc langcode: fr module: + action: 0 actions_permissions: 0 address: 0 admin_toolbar: 0 @@ -92,6 +93,7 @@ module: phone_number: 0 redis: 0 responsive_image: 0 + rules: 0 search_api: 0 search_api_db: 0 smart_trim: 0 @@ -104,6 +106,7 @@ module: token: 0 toolbar: 0 translation_views: 0 + typed_data: 0 update: 0 user: 0 video_embed_field: 0 diff --git a/config/sync/filter.format.restricted_html.yml b/config/sync/filter.format.restricted_html.yml new file mode 100644 index 0000000..3c37899 --- /dev/null +++ b/config/sync/filter.format.restricted_html.yml @@ -0,0 +1,36 @@ +uuid: fd70c6be-a93d-4df9-a4b8-79ddf2c8f36b +langcode: fr +status: true +dependencies: + enforced: + module: + - filter + - rules +_core: + default_config_hash: VrFjOQn2l2n6baaj2Z6IkYt9OdtsLjYPUVg7HgkkGLU +name: 'HTML restreint' +format: restricted_html +weight: 1 +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '
    1. ' + filter_html_help: true + filter_html_nofollow: false + filter_autop: + id: filter_autop + provider: filter + status: true + weight: 0 + settings: { } + filter_url: + id: filter_url + provider: filter + status: true + weight: 0 + settings: + filter_url_length: 72 diff --git a/config/sync/rules.reaction.new_operation_node_send_email.yml b/config/sync/rules.reaction.new_operation_node_send_email.yml new file mode 100644 index 0000000..8dd9a31 --- /dev/null +++ b/config/sync/rules.reaction.new_operation_node_send_email.yml @@ -0,0 +1,51 @@ +uuid: 4d858daa-ccb3-4f12-a54f-f9797f25aa85 +langcode: fr +status: true +dependencies: { } +id: new_operation_node_send_email +label: 'New opération node send email' +events: + - + event_name: 'rules_entity_insert:node--operation' +description: '' +tags: { } +config_version: '3' +expression: + id: rules_rule + uuid: bdb7ab88-8b7d-4b73-8736-6b81b89da83e + weight: 0 + conditions: + id: rules_and + uuid: f742b33f-3cd0-4685-84ac-4730946565f2 + weight: 0 + conditions: { } + actions: + id: rules_action_set + uuid: 52344b5b-f15b-4c76-a96d-dc7caf57f5c3 + weight: 0 + actions: + - + id: rules_action + uuid: 0c06331f-3d28-4886-a0c7-89e93f0d2989 + weight: 0 + action_id: rules_send_email + context_values: + to: + - dev@figureslibres.io + subject: '[REHA] nouvelle opération crée' + message: '@node.node_route_context:node.title' + reply: '' + language: '' + context_mapping: { } + context_processors: + to: + rules_tokens: { } + subject: + rules_tokens: { } + message: + rules_tokens: { } + reply: + rules_tokens: { } + language: + rules_tokens: { } + provides_mapping: { } diff --git a/config/sync/rules.settings.yml b/config/sync/rules.settings.yml new file mode 100644 index 0000000..7667750 --- /dev/null +++ b/config/sync/rules.settings.yml @@ -0,0 +1,9 @@ +_core: + default_config_hash: ZKaBtyYFEhfwE4xVP-khSsZabdsN3NSjwOfzaZksez0 +langcode: fr +system_log: + log_level: warning +debug_log: + enabled: false + system_debug: false + log_level: debug diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml index 51be32a..c44154f 100644 --- a/config/sync/user.role.anonymous.yml +++ b/config/sync/user.role.anonymous.yml @@ -2,9 +2,12 @@ uuid: b348c4e0-5a35-4922-86ac-f5ee0e1e08c2 langcode: fr status: true dependencies: + config: + - filter.format.restricted_html module: - config_pages - devel + - filter - system _core: default_config_hash: jyuRv_5UazPqBsQ9L4kDkcVvxtGr0WytAUoWf1LhqOk @@ -15,6 +18,7 @@ is_admin: false permissions: - 'access content' - 'access devel information' + - 'use text format restricted_html' - 'view contact config page entity' - 'view mentions_legales config page entity' - 'view partenaires config page entity' diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml index cc931e1..d2857c6 100644 --- a/web/sites/development.services.yml +++ b/web/sites/development.services.yml @@ -3,56 +3,6 @@ # To activate this feature, follow the instructions at the top of the # 'example.settings.local.php' file, which sits next to this file. parameters: - twig.config: - # Twig debugging: - # - # When debugging is enabled: - # - The markup of each Twig template is surrounded by HTML comments that - # contain theming information, such as template file name suggestions. - # - Note that this debugging markup will cause automated tests that directly - # check rendered HTML to fail. When running automated tests, 'debug' - # should be set to FALSE. - # - The dump() function can be used in Twig templates to output information - # about template variables. - # - Twig templates are automatically recompiled whenever the source code - # changes (see auto_reload below). - # - # For more information about debugging Twig templates, see - # https://www.drupal.org/node/1906392. - # - # Not recommended in production environments - # @default false - debug: true - # Twig auto-reload: - # - # Automatically recompile Twig templates whenever the source code changes. - # If you don't provide a value for auto_reload, it will be determined - # based on the value of debug. - # - # Not recommended in production environments - # @default null - auto_reload: null - # Twig cache: - # - # By default, Twig templates will be compiled and stored in the filesystem - # to increase performance. Disabling the Twig cache will recompile the - # templates from source each time they are used. In most cases the - # auto_reload setting above should be enabled rather than disabling the - # Twig cache. - # - # Not recommended in production environments - # @default true - cache: false - # Cacheability debugging: - # - # Responses with cacheability metadata (CacheableResponseInterface instances) - # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers. - # - # For more information about debugging cacheable responses, see - # https://www.drupal.org/developing/api/8/response/cacheable-response-interface - # - # Not recommended in production environments - # @default false http.response.debug_cacheability_headers: true services: cache.backend.null: