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.
This commit is contained in:
songtianlun 2025-02-01 14:31:53 +08:00
parent 905ec35fd8
commit 05449d1e7f

View File

@ -1,6 +1,6 @@
import { Controller } from "@hotwired/stimulus" import { Controller } from "@hotwired/stimulus"
import PhotoSwipeLightbox from 'photoswipe/dist/photoswipe-lightbox.esm' import PhotoSwipeLightbox from 'photoswipe/lightbox'
import PhotoSwipe from 'photoswipe/dist/photoswipe.esm' import PhotoSwipe from 'photoswipe'
import 'photoswipe/dist/photoswipe.css' import 'photoswipe/dist/photoswipe.css'
export default class extends Controller { export default class extends Controller {