- Create header_controller.js to handle mobile menu and user dropdown - Replace Alpine.js directives with Stimulus data attributes in header component - Add proper event handling for click outside to close menus - Maintain all existing functionality with improved code consistency
28 lines
824 B
JavaScript
Executable File
28 lines
824 B
JavaScript
Executable File
// 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 LogoutController from "./logout_controller";
|
|
application.register("logout", LogoutController);
|
|
|
|
import CounterController from "./counter_controller"
|
|
application.register("counter", CounterController);
|
|
|
|
import FlashMessageController from "./flash_message_controller"
|
|
application.register("flash-message", FlashMessageController);
|
|
|
|
import TicketSelectionController from "./ticket_selection_controller"
|
|
application.register("ticket-selection", TicketSelectionController);
|
|
|
|
import HeaderController from "./header_controller"
|
|
application.register("header", HeaderController);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|