ressources views filters done
This commit is contained in:
		@@ -38,6 +38,7 @@
 | 
			
		||||
        "drupal/simple_sitemap": "^4.1",
 | 
			
		||||
        "drupal/social_media_links": "^2.9",
 | 
			
		||||
        "drupal/structure_sync": "^2.0",
 | 
			
		||||
        "drupal/verf": "^2.1",
 | 
			
		||||
        "drupal/views_autocomplete_filters": "^2.0",
 | 
			
		||||
        "drupal/views_block_area": "^1.0@beta",
 | 
			
		||||
        "drupal/viewsreference": "^2.0@beta",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										58
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										58
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							@@ -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": "a834c486480c36ee6cb474b733b8b034",
 | 
			
		||||
    "content-hash": "1bbd67872d9de1d8d9dfb0ad3321a350",
 | 
			
		||||
    "packages": [
 | 
			
		||||
        {
 | 
			
		||||
            "name": "asm89/stack-cors",
 | 
			
		||||
@@ -7580,6 +7580,58 @@
 | 
			
		||||
                "source": "https://git.drupalcode.org/project/ultimate_cron"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "drupal/verf",
 | 
			
		||||
            "version": "2.1.0",
 | 
			
		||||
            "source": {
 | 
			
		||||
                "type": "git",
 | 
			
		||||
                "url": "https://git.drupalcode.org/project/verf.git",
 | 
			
		||||
                "reference": "2.1.0"
 | 
			
		||||
            },
 | 
			
		||||
            "dist": {
 | 
			
		||||
                "type": "zip",
 | 
			
		||||
                "url": "https://ftp.drupal.org/files/projects/verf-2.1.0.zip",
 | 
			
		||||
                "reference": "2.1.0",
 | 
			
		||||
                "shasum": "46e528f0c805580a6c43431fb3400085030294a0"
 | 
			
		||||
            },
 | 
			
		||||
            "require": {
 | 
			
		||||
                "drupal/core": "^10 || ^11"
 | 
			
		||||
            },
 | 
			
		||||
            "type": "drupal-module",
 | 
			
		||||
            "extra": {
 | 
			
		||||
                "drupal": {
 | 
			
		||||
                    "version": "2.1.0",
 | 
			
		||||
                    "datestamp": "1738325526",
 | 
			
		||||
                    "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": "legolasbo",
 | 
			
		||||
                    "homepage": "https://www.drupal.org/user/2480548"
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "peelas02",
 | 
			
		||||
                    "homepage": "https://www.drupal.org/user/3836090"
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "name": "podarok",
 | 
			
		||||
                    "homepage": "https://www.drupal.org/user/116002"
 | 
			
		||||
                }
 | 
			
		||||
            ],
 | 
			
		||||
            "description": "Provides Views filters for entity reference fields.",
 | 
			
		||||
            "homepage": "https://www.drupal.org/project/verf",
 | 
			
		||||
            "support": {
 | 
			
		||||
                "source": "https://git.drupalcode.org/project/verf"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "drupal/video_embed_field",
 | 
			
		||||
            "version": "2.5.0",
 | 
			
		||||
@@ -13121,7 +13173,7 @@
 | 
			
		||||
    },
 | 
			
		||||
    "prefer-stable": true,
 | 
			
		||||
    "prefer-lowest": false,
 | 
			
		||||
    "platform": [],
 | 
			
		||||
    "platform-dev": [],
 | 
			
		||||
    "platform": {},
 | 
			
		||||
    "platform-dev": {},
 | 
			
		||||
    "plugin-api-version": "2.6.0"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -828,7 +828,7 @@ $(document).ready(function () {
 | 
			
		||||
          let typeName = typeClass ? typeClass.replace("type-", "").replace(/-/g, " ") : "contenu"; // Nettoyer le nom
 | 
			
		||||
 | 
			
		||||
          // Ajuster le nombre d'éléments visibles en fonction du type
 | 
			
		||||
          if (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo") {
 | 
			
		||||
          if (typeClass && (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo")) {
 | 
			
		||||
              visibleCount = 2; // Pour Podcast et Vidéo
 | 
			
		||||
          } else if (typeClass === "type-kit-de-communication") {
 | 
			
		||||
              visibleCount = 1; // Pour Kit de Communication
 | 
			
		||||
@@ -864,7 +864,22 @@ $(document).ready(function () {
 | 
			
		||||
              }
 | 
			
		||||
          });
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    // slimselect
 | 
			
		||||
    var type_select = new SlimSelect({
 | 
			
		||||
      select: '#edit-field-type-de-ressource-target-id--2'
 | 
			
		||||
    })
 | 
			
		||||
    var motscles_select = new SlimSelect({
 | 
			
		||||
      select: '#edit-field-mots-clefs-target-id--2'
 | 
			
		||||
    })
 | 
			
		||||
    var sites_select = new SlimSelect({
 | 
			
		||||
      select: '#edit-field-site-target-id-verf--2'
 | 
			
		||||
    })
 | 
			
		||||
    // console.log(('sites_select'), sites_select);
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -192,6 +192,7 @@ h2, h3 {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  padding-top: 200px;
 | 
			
		||||
  padding-bottom: 3rem;
 | 
			
		||||
  min-height: calc(100vh - (200px + 3rem));
 | 
			
		||||
}
 | 
			
		||||
@media (max-width: 810px) {
 | 
			
		||||
  .layout-container main {
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								web/themes/custom/quartiers_de_demain/librairies/slimselect/slimselect.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								web/themes/custom/quartiers_de_demain/librairies/slimselect/slimselect.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -2,11 +2,13 @@
 | 
			
		||||
global:
 | 
			
		||||
  version: 0.1
 | 
			
		||||
  js:
 | 
			
		||||
    dist/assets/bundle.js: {}
 | 
			
		||||
    librairies/slick-1.8.1/slick/slick.min.js: {}
 | 
			
		||||
    librairies/swiper/swiper-bundle.js: {}
 | 
			
		||||
    librairies/slimselect/slimselect.min.js: {}
 | 
			
		||||
    dist/assets/bundle.js: {}
 | 
			
		||||
  css:
 | 
			
		||||
    theme:
 | 
			
		||||
      dist/assets/css/bundle.css: {}
 | 
			
		||||
      librairies/swiper/swiper-bundle.css: {}
 | 
			
		||||
      librairies/slimselect/slimselect.css: {}
 | 
			
		||||
      dist/assets/css/bundle.css: {}
 | 
			
		||||
      # css/animated_logo.css: {}
 | 
			
		||||
 
 | 
			
		||||
@@ -770,7 +770,7 @@ $(document).ready(function () {
 | 
			
		||||
          let typeName = typeClass ? typeClass.replace("type-", "").replace(/-/g, " ") : "contenu"; // Nettoyer le nom
 | 
			
		||||
 | 
			
		||||
          // Ajuster le nombre d'éléments visibles en fonction du type
 | 
			
		||||
          if (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo") {
 | 
			
		||||
          if (typeClass && (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo")) {
 | 
			
		||||
              visibleCount = 2; // Pour Podcast et Vidéo
 | 
			
		||||
          } else if (typeClass === "type-kit-de-communication") {
 | 
			
		||||
              visibleCount = 1; // Pour Kit de Communication
 | 
			
		||||
@@ -806,7 +806,22 @@ $(document).ready(function () {
 | 
			
		||||
              }
 | 
			
		||||
          });
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    // slimselect
 | 
			
		||||
    var type_select = new SlimSelect({
 | 
			
		||||
      select: '#edit-field-type-de-ressource-target-id--2'
 | 
			
		||||
    })
 | 
			
		||||
    var motscles_select = new SlimSelect({
 | 
			
		||||
      select: '#edit-field-mots-clefs-target-id--2'
 | 
			
		||||
    })
 | 
			
		||||
    var sites_select = new SlimSelect({
 | 
			
		||||
      select: '#edit-field-site-target-id-verf--2'
 | 
			
		||||
    })
 | 
			
		||||
    // console.log(('sites_select'), sites_select);
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,8 @@ $width-menu-slidedown : 550px;
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        padding-top: $header-height;
 | 
			
		||||
       padding-bottom: 3rem;
 | 
			
		||||
    //    box-sizing:border-box;
 | 
			
		||||
       min-height: calc(100vh - ($header-height + 3rem));
 | 
			
		||||
        @media(max-width: 810px){
 | 
			
		||||
            padding-top: 180px;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user