Merge pull request #10379 from demarches-simplifiees/add-lightgallery-license

Technique : ajout de la license key pour la galerie de pièces jointes
This commit is contained in:
Eric Leroy-Terquem 2024-05-29 08:19:16 +00:00 committed by GitHub
commit 3b96970e05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -38,6 +38,8 @@ Pour faire tourner sidekiq, vous aurez besoin de :
- redis - redis
- lightgallery : une license a été souscrite pour soutenir le projet, mais elle n'est pas obligatoire si la librairie est utilisée dans le cadre d'une application open source.
#### Développement #### Développement
- rbenv : voir https://github.com/rbenv/rbenv-installer#rbenv-installer--doctor-scripts - rbenv : voir https://github.com/rbenv/rbenv-installer#rbenv-installer--doctor-scripts

View file

@ -19,7 +19,10 @@ export default class extends Controller {
zoomFromOrigin: false, zoomFromOrigin: false,
allowMediaOverlap: true, allowMediaOverlap: true,
toggleThumb: true, toggleThumb: true,
selector: '.gallery-link' selector: '.gallery-link',
// license key is not mandatory for open source projects but we purchased
// an organization license to show our support (see https://www.lightgalleryjs.com/license/)
licenseKey: import.meta.env.VITE_LIGHTGALLERY_LICENSE_KEY
}; };
const gallery = document.querySelector('.gallery'); const gallery = document.querySelector('.gallery');

View file

@ -272,3 +272,6 @@ CRON_JOBS_DISABLED=""
# disable SIDEKIQ_RELIABLE_FETCH # disable SIDEKIQ_RELIABLE_FETCH
# SKIP_RELIABLE_FETCH="true" # SKIP_RELIABLE_FETCH="true"
# optional license key for lightgallery
VITE_LIGHTGALLERY_LICENSE_KEY = ""