From 2bc69be75f81573ab6b1de853f00fc7954ffea17 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 23 Jun 2026 16:04:57 +0200 Subject: [PATCH] capsules --- composer.json | 1 + composer.lock | 81 +- .../sync/core.entity_view_mode.media.full.yml | 13 + config/sync/core.extension.yml | 2 + config/sync/editor.editor.footnote.yml | 28 + config/sync/editor.editor.wysiwyg.yml | 6 + config/sync/filter.format.footnote.yml | 32 + config/sync/filter.format.wysiwyg.yml | 24 +- config/sync/media.settings.yml | 6 + .../system.action.media_delete_action.yml | 13 + .../sync/system.action.media_edit_action.yml | 14 + .../system.action.media_publish_action.yml | 13 + .../sync/system.action.media_save_action.yml | 13 + .../system.action.media_unpublish_action.yml | 13 + config/sync/user.role.admin.yml | 3 + config/sync/user.role.anonymous.yml | 2 + config/sync/user.role.authenticated.yml | 2 + config/sync/user.role.editeur.yml | 2 + config/sync/views.view.media.yml | 920 ++++++++++++++++++ .../custom/mathallo/assets/dist/main.css | 2 +- .../custom/mathallo/assets/dist/main.js | 10 +- .../themes/custom/mathallo/assets/js/main.js | 135 ++- .../custom/mathallo/assets/scss/main.scss | 37 + .../templates/footnote-link.html.twig | 7 + .../templates/footnote-links.html.twig | 13 + 25 files changed, 1351 insertions(+), 41 deletions(-) create mode 100644 config/sync/core.entity_view_mode.media.full.yml create mode 100644 config/sync/editor.editor.footnote.yml create mode 100644 config/sync/filter.format.footnote.yml create mode 100644 config/sync/media.settings.yml create mode 100644 config/sync/system.action.media_delete_action.yml create mode 100644 config/sync/system.action.media_edit_action.yml create mode 100644 config/sync/system.action.media_publish_action.yml create mode 100644 config/sync/system.action.media_save_action.yml create mode 100644 config/sync/system.action.media_unpublish_action.yml create mode 100644 config/sync/views.view.media.yml create mode 100644 web_main/themes/custom/mathallo/templates/footnote-link.html.twig create mode 100644 web_main/themes/custom/mathallo/templates/footnote-links.html.twig diff --git a/composer.json b/composer.json index 01d9efb..4dbbae0 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,7 @@ "drupal/core-project-message": "^10.4", "drupal/core-recommended": "^10.4", "drupal/entity_block": "^2.0", + "drupal/footnotes": "^4.0@RC", "drupal/page_manager": "^4.0@RC", "drupal/paragraphs": "^1.20", "drupal/redirect": "^1.12", diff --git a/composer.lock b/composer.lock index 42ce1d5..f3faa8a 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": "262ce40a93ec66896b34a5e1196ff80b", + "content-hash": "6bf176d658d431efd6ddb4df31aa6bc4", "packages": [ { "name": "asm89/stack-cors", @@ -4343,6 +4343,84 @@ "issues": "https://www.drupal.org/project/issues/filter_perms?categories=All" } }, + { + "name": "drupal/footnotes", + "version": "4.0.0-rc2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/footnotes.git", + "reference": "4.0.0-rc2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/footnotes-4.0.0-rc2.zip", + "reference": "4.0.0-rc2", + "shasum": "7cffeea7f3bc05f3a65ced67231cbb157660b6e0" + }, + "require": { + "drupal/core": ">=10.0" + }, + "require-dev": { + "drupal/metatag": "^2.0", + "drupal/search_api": "*" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "4.0.0-rc2", + "datestamp": "1779606276", + "security-coverage": { + "status": "not-covered", + "message": "RC releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Andrii Aleksandrov (id.aleks)", + "homepage": "https://www.drupal.org/u/idaleks", + "role": "Maintainer" + }, + { + "name": "Oleksandr Dekhteruk (pifagor)", + "homepage": "https://www.drupal.org/u/pifagor", + "role": "Maintainer" + }, + { + "name": "Fernando Conceição (yukare)", + "homepage": "https://www.drupal.org/u/yukare", + "role": "Maintainer" + }, + { + "name": "Henrik Ingo (hingo)", + "homepage": "https://www.drupal.org/u/hingo", + "role": "Maintainer" + }, + { + "name": "Scott Euser (scott_euser)", + "homepage": "https://www.drupal.org/u/scott_euser", + "role": "Maintainer" + }, + { + "name": "smulvih2", + "homepage": "https://www.drupal.org/user/795442" + }, + { + "name": "yukare", + "homepage": "https://www.drupal.org/user/889254" + } + ], + "description": "Add automatically numbered footnotes to your posts.", + "homepage": "https://drupal.org/project/footnotes", + "support": { + "source": "https://cgit.drupalcode.org/footnotes", + "issues": "https://drupal.org/project/issues/footnotes" + } + }, { "name": "drupal/formatter_suite", "version": "2.1.0", @@ -12335,6 +12413,7 @@ "drupal/entity_clone": 20, "drupal/field_group": 20, "drupal/filter_perms": 20, + "drupal/footnotes": 5, "drupal/inline_entity_form": 5, "drupal/login_destination": 20, "drupal/maillog": 20, diff --git a/config/sync/core.entity_view_mode.media.full.yml b/config/sync/core.entity_view_mode.media.full.yml new file mode 100644 index 0000000..d8c2792 --- /dev/null +++ b/config/sync/core.entity_view_mode.media.full.yml @@ -0,0 +1,13 @@ +uuid: 975423d5-16c6-4c27-b801-bf1950bf5c71 +langcode: en +status: false +dependencies: + module: + - media +_core: + default_config_hash: dTfAUHooYV0uOVPO3saGpgv-c5PppJXDwxvwRTJOycM +id: media.full +label: 'Full content' +description: '' +targetEntityType: media +cache: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 79799e8..5151dd8 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -51,6 +51,7 @@ module: file: 0 filter: 0 filter_perms: 0 + footnotes: 0 formatter_suite: 0 help: 0 honeypot: 0 @@ -66,6 +67,7 @@ module: maillog: 0 mathallomod: 0 maxlength: 0 + media: 0 menu_block: 0 menu_link_content: 0 menu_ui: 0 diff --git a/config/sync/editor.editor.footnote.yml b/config/sync/editor.editor.footnote.yml new file mode 100644 index 0000000..63c292b --- /dev/null +++ b/config/sync/editor.editor.footnote.yml @@ -0,0 +1,28 @@ +uuid: 71a5dbbb-c29e-41b5-9ec0-97cdc449b1e8 +langcode: en +status: true +dependencies: + config: + - filter.format.footnote + module: + - ckeditor5 +_core: + default_config_hash: SyHxfjreOgdyYXaIXOlKvLazJjPl6X-6ywdJeSruOzg +format: footnote +editor: ckeditor5 +settings: + toolbar: + items: + - bold + - italic + - underline + - link + - bulletedList + plugins: + ckeditor5_list: + properties: + reversed: false + startIndex: false + multiBlock: false +image_upload: + status: false diff --git a/config/sync/editor.editor.wysiwyg.yml b/config/sync/editor.editor.wysiwyg.yml index dddde2b..089787d 100644 --- a/config/sync/editor.editor.wysiwyg.yml +++ b/config/sync/editor.editor.wysiwyg.yml @@ -13,6 +13,8 @@ editor: ckeditor5 settings: toolbar: items: + - undo + - redo - heading - bold - italic @@ -22,7 +24,9 @@ settings: - blockQuote - indent - outdent + - footnotes - showBlocks + - sourceEditing plugins: ckeditor5_heading: enabled_headings: @@ -36,5 +40,7 @@ settings: reversed: true startIndex: true multiBlock: true + ckeditor5_sourceEditing: + allowed_tags: { } image_upload: status: false diff --git a/config/sync/filter.format.footnote.yml b/config/sync/filter.format.footnote.yml new file mode 100644 index 0000000..f021cea --- /dev/null +++ b/config/sync/filter.format.footnote.yml @@ -0,0 +1,32 @@ +uuid: 35cc332e-bda2-4b22-9b11-f4a047e349ed +langcode: en +status: true +dependencies: + module: + - pathologic +_core: + default_config_hash: SYAah-i4HbJnc3ZnKC9NmY4M0UAFYpfobYzxg0eMunM +name: Footnote +format: footnote +weight: 0 +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '