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:
commit
3b96970e05
3 changed files with 9 additions and 1 deletions
|
@ -38,6 +38,8 @@ Pour faire tourner sidekiq, vous aurez besoin de :
|
|||
|
||||
- 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
|
||||
|
||||
- rbenv : voir https://github.com/rbenv/rbenv-installer#rbenv-installer--doctor-scripts
|
||||
|
|
|
@ -19,7 +19,10 @@ export default class extends Controller {
|
|||
zoomFromOrigin: false,
|
||||
allowMediaOverlap: 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');
|
||||
|
|
|
@ -272,3 +272,6 @@ CRON_JOBS_DISABLED=""
|
|||
|
||||
# disable SIDEKIQ_RELIABLE_FETCH
|
||||
# SKIP_RELIABLE_FETCH="true"
|
||||
|
||||
# optional license key for lightgallery
|
||||
VITE_LIGHTGALLERY_LICENSE_KEY = ""
|
||||
|
|
Loading…
Reference in a new issue