chore(gallery): add lightgallery license key

This commit is contained in:
Eric Leroy-Terquem 2024-04-24 10:27:46 +02:00
parent 0b609402ee
commit 4d34d6d4c5
No known key found for this signature in database
GPG key ID: ECE60B4C1FA2ABB3
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 = ""