From 05449d1e7ff5a4838446744aa02d3427425f7bcc Mon Sep 17 00:00:00 2001 From: songtianlun Date: Sat, 1 Feb 2025 14:31:53 +0800 Subject: [PATCH] chore: update PhotoSwipe import paths - Change import for PhotoSwipeLightbox to 'photoswipe/lightbox' - Change import for PhotoSwipe to 'photoswipe' These updates reflect the new module structure of the PhotoSwipe library, ensuring that the controller utilizes the correct paths for improved functionality and maintainability. --- app/javascript/controllers/photo_swipe_lightbox_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/controllers/photo_swipe_lightbox_controller.js b/app/javascript/controllers/photo_swipe_lightbox_controller.js index 2dad88c..4e67fd8 100644 --- a/app/javascript/controllers/photo_swipe_lightbox_controller.js +++ b/app/javascript/controllers/photo_swipe_lightbox_controller.js @@ -1,6 +1,6 @@ import { Controller } from "@hotwired/stimulus" -import PhotoSwipeLightbox from 'photoswipe/dist/photoswipe-lightbox.esm' -import PhotoSwipe from 'photoswipe/dist/photoswipe.esm' +import PhotoSwipeLightbox from 'photoswipe/lightbox' +import PhotoSwipe from 'photoswipe' import 'photoswipe/dist/photoswipe.css' export default class extends Controller {