songtianlun
905ec35fd8
- Integrate PhotoSwipe library for enhanced image viewing - Create PhotoSwipeLightBoxController to manage images - Register lightbox controller in Stimulus framework - Update views to include lightbox functionality - Modify styles to accommodate new design elements This commit introduces a new way for users to view images with PhotoSwipe, improving the interactivity of the photo gallery. It also includes adjustments to the layout and styles for better presentation and user experience.
15 lines
584 B
JavaScript
15 lines
584 B
JavaScript
// This file is auto-generated by ./bin/rails stimulus:manifest:update
|
|
// Run that command whenever you add a new controller or create them with
|
|
// ./bin/rails generate stimulus controllerName
|
|
|
|
import { application } from "./application"
|
|
|
|
import HelloController from "./hello_controller"
|
|
application.register("hello", HelloController)
|
|
|
|
import PhotoSwipeLightBoxController from "./photo_swipe_lightbox_controller"
|
|
|
|
console.log("ready to register photo-swipe")
|
|
application.register("photo-swipe-lightbox", PhotoSwipeLightBoxController)
|
|
console.log("successful to register photo-swipe")
|