From 42fb439e3da15f187914c4dcc9c55b3b233e4a96 Mon Sep 17 00:00:00 2001 From: Valentin Le Moign Date: Thu, 23 Jan 2025 16:24:43 +0100 Subject: [PATCH] ajout du module images flush --- composer.json | 1 + composer.lock | 53 ++++++++++++++++++- config/sync/core.extension.yml | 1 + .../js/vuejs/components/ImageModale.vue | 2 - 4 files changed, 54 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 3aba8e8..d29b4b1 100644 --- a/composer.json +++ b/composer.json @@ -28,6 +28,7 @@ "drupal/geocoder": "^4.24", "drupal/geofield": "^1.59", "drupal/image_field_caption": "^2.0", + "drupal/imagestyleflush": "^1.0", "drupal/jsonapi_image_styles": "^3.0", "drupal/jsonapi_views": "^1.1", "drupal/leaflet": "^10.2", diff --git a/composer.lock b/composer.lock index ddfc499..f8270d6 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": "17284db796caf7967cb47bae1feb4a43", + "content-hash": "6aaebccef7482e701328a3c4349f9ac6", "packages": [ { "name": "asm89/stack-cors", @@ -5121,6 +5121,57 @@ "source": "https://git.drupalcode.org/project/imagemagick" } }, + { + "name": "drupal/imagestyleflush", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/imagestyleflush.git", + "reference": "1.0.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/imagestyleflush-1.0.0.zip", + "reference": "1.0.0", + "shasum": "6493ae4b662131f291bbd02b7dcf46f27475ff8c" + }, + "require": { + "drupal/core": "^9 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "1.0.0", + "datestamp": "1730107375", + "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": "dcimorra", + "homepage": "https://www.drupal.org/user/3623423" + }, + { + "name": "hargobind", + "homepage": "https://www.drupal.org/user/216765" + }, + { + "name": "to.stepan.kuzmin@gmail.com", + "homepage": "https://www.drupal.org/user/858626" + } + ], + "homepage": "https://www.drupal.org/project/imagestyleflush", + "support": { + "source": "https://git.drupalcode.org/project/imagestyleflush" + } + }, { "name": "drupal/inline_entity_form", "version": "1.0.0-rc17", diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 06488f8..3f52c74 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -55,6 +55,7 @@ module: file: 0 filter: 0 filter_perms: 0 + flush_single_image: 0 footnotes: 0 formatter_suite: 0 geocoder: 0 diff --git a/web/themes/custom/caravane/assets/js/vuejs/components/ImageModale.vue b/web/themes/custom/caravane/assets/js/vuejs/components/ImageModale.vue index c39a305..075eddc 100644 --- a/web/themes/custom/caravane/assets/js/vuejs/components/ImageModale.vue +++ b/web/themes/custom/caravane/assets/js/vuejs/components/ImageModale.vue @@ -121,8 +121,6 @@ const close = () => { }; function checkOutsideClick(target) { - console.log(target); - if (target.classList.contains('swiper-wrapper') || target.tagName === 'SWIPER-SLIDE' || target.tagName === 'FIGURE') {