- Added `share_controller.js` to handle sharing logic. - Created `_share_social.html.erb` partial for social sharing buttons. - Integrated share buttons into city and weather art show pages. - Added sharer.js dependency. This feature allows users to share city and weather art pages on various social media platforms such as Facebook, Twitter, LinkedIn, Pinterest, Telegram, and WhatsApp, increasing content visibility.
22 lines
1010 B
JavaScript
22 lines
1010 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"
|
|
import PhotoSwipeLightBoxController from "./photo_swipe_lightbox_controller"
|
|
import FlashMessageController from "./flash_controller"
|
|
import SearchController from "./search_controller"
|
|
import PageLoadTimeController from "./page_load_time_controller"
|
|
import MapController from "./map_controller"
|
|
import ShareController from "./share_controller"
|
|
|
|
application.register("hello", HelloController)
|
|
application.register("photo-swipe-lightbox", PhotoSwipeLightBoxController)
|
|
application.register("flash", FlashMessageController)
|
|
application.register("search", SearchController)
|
|
application.register("page-load-time", PageLoadTimeController)
|
|
application.register("map", MapController)
|
|
application.register("share", ShareController)
|
|
|