diff --git a/modules/edw_paragraphs_gallery/README.md b/modules/edw_paragraphs_gallery/README.md index ebe43b1..d467754 100644 --- a/modules/edw_paragraphs_gallery/README.md +++ b/modules/edw_paragraphs_gallery/README.md @@ -43,9 +43,25 @@ lightgallery library. } } ``` +and +``` +{ + "type": "package", + "package": { + "name": "miromannino/justified-gallery", + "version": "v3.8.1", + "type": "drupal-library", + "dist": { + "url": "https://github.com/miromannino/Justified-Gallery/archive/master.zip", + "type": "zip" + } + } +} +``` After this you can install the library using composer and the library will be downloaded into the libraries folder. ```php $ composer require 'sachinchoolur/lightgallery' +$ composer require 'miromannino/justified-gallery' ``` diff --git a/modules/edw_paragraphs_gallery/composer.json b/modules/edw_paragraphs_gallery/composer.json new file mode 100644 index 0000000..3851a92 --- /dev/null +++ b/modules/edw_paragraphs_gallery/composer.json @@ -0,0 +1,51 @@ +{ + "name": "eaudeweb/edw_paragraphs_gallery", + "description": "This module provides a number of Paragraph types", + "type": "drupal-module", + "authors": [ + { + "name": "dtabirca", + "email": "dtabirca@1029792.no-reply.drupal.org" + } + ], + "minimum-stability": "dev", + "repositories": [ + { + "type": "composer", + "url": "https://packages.drupal.org/8" + }, + { + "type": "composer", + "url": "https://asset-packagist.org" + }, + { + "type": "package", + "package": { + "name": "sachinchoolur/lightgallery", + "version": "v2.8.3", + "type": "drupal-library", + "dist": { + "url": "https://github.com/sachinchoolur/lightGallery/archive/master.zip", + "type": "zip" + } + } + }, + { + "type": "package", + "package": { + "name": "miromannino/justified-gallery", + "version": "v3.8.1", + "type": "drupal-library", + "dist": { + "url": "https://github.com/miromannino/Justified-Gallery/archive/master.zip", + "type": "zip" + } + } + } + ], + "require": { + "drupal/paragraphs": "^1.19", + "eaudeweb/edw_media": "^1.0", + "miromannino/justified-gallery": "^3.8" + } +} diff --git a/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.info.yml b/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.info.yml index 5c1b2b8..6c84029 100644 --- a/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.info.yml +++ b/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.info.yml @@ -2,6 +2,6 @@ name: EDW Paragraphs Gallery description: Provides a paragraph type that displays a gallery of media entities. package: Eau de Web type: module -core_version_requirement: ^9.4 || ^10 || ^11 +core_version_requirement: ^11 dependencies: - edw_paragraphs:edw_paragraphs diff --git a/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.libraries.yml b/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.libraries.yml index c00fc66..c04ecd8 100644 --- a/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.libraries.yml +++ b/modules/edw_paragraphs_gallery/edw_paragraphs_gallery.libraries.yml @@ -2,13 +2,13 @@ light_gallery: css: theme: css/lightgallery.css: { } - /libraries/lightgallery/site/v1/lightgallery/css/lightgallery.css: { } + /libraries/lightgallery/dist/css/lightgallery.css: { } /libraries/lightgallery/dist/css/lightgallery-bundle.min.css: { } - //cdn.jsdelivr.net/npm/justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css: { type: external, minified: true } + /libraries/justified-gallery/dist/css/justifiedGallery.min.css: { minified: true } js: /libraries/lightgallery/dist/plugins/zoom/lg-zoom.min.js: { minified: true } /libraries/lightgallery/dist/lightgallery.min.js: { minified: true } - //cdn.jsdelivr.net/npm/justifiedGallery@3.8.1/dist/js/jquery.justifiedGallery.min.js: { type: external, minified: true } + /libraries/justified-gallery/dist/js/jquery.justifiedGallery.min.js: { minified: true } /libraries/lightgallery/dist/plugins/autoplay/lg-autoplay.min.js: { minified: true } /libraries/lightgallery/dist/plugins/fullscreen/lg-fullscreen.min.js: { minified: true } /libraries/lightgallery/dist/plugins/thumbnail/lg-thumbnail.min.js: { minified: true }