2023-01-05 23:35:02 -08:00
|
|
|
import { Application } from "@hotwired/stimulus";
|
|
|
|
import AnnouncementController from "retrospring/controllers/announcement_controller";
|
|
|
|
import AutofocusController from "retrospring/controllers/autofocus_controller";
|
|
|
|
import CharacterCountController from "retrospring/controllers/character_count_controller";
|
2023-01-08 08:12:46 -08:00
|
|
|
import CharacterCountWarningController from "retrospring/controllers/character_count_warning_controller";
|
2023-01-10 06:49:52 -08:00
|
|
|
import FormatPopupController from "retrospring/controllers/format_popup_controller";
|
2023-01-12 09:26:30 -08:00
|
|
|
import CollapseController from "retrospring/controllers/collapse_controller";
|
2023-01-16 22:39:14 -08:00
|
|
|
import ThemeController from "retrospring/controllers/theme_controller";
|
2023-01-16 20:45:12 -08:00
|
|
|
import CapabilitiesController from "retrospring/controllers/capabilities_controller";
|
2023-01-22 08:43:40 -08:00
|
|
|
import CropperController from "retrospring/controllers/cropper_controller";
|
2023-03-19 06:42:01 -07:00
|
|
|
import HotkeyController from "retrospring/controllers/hotkey_controller";
|
2023-02-05 10:17:34 -08:00
|
|
|
import InboxSharingController from "retrospring/controllers/inbox_sharing_controller";
|
2023-02-10 21:16:42 -08:00
|
|
|
import ToastController from "retrospring/controllers/toast_controller";
|
2023-02-25 06:44:51 -08:00
|
|
|
import PwaBadgeController from "retrospring/controllers/pwa_badge_controller";
|
2023-03-05 08:17:02 -08:00
|
|
|
import NavigationController from "retrospring/controllers/navigation_controller";
|
2023-10-16 06:02:57 -07:00
|
|
|
import ShareController from "retrospring/controllers/share_controller";
|
2023-11-12 03:03:59 -08:00
|
|
|
import ClipboardController from "retrospring/controllers/clipboard_controller";
|
2023-12-10 15:02:04 -08:00
|
|
|
import QuestionboxFocusController from "retrospring/controllers/questionbox_focus_controller";
|
2023-12-20 14:53:22 -08:00
|
|
|
import ReactionController from "retrospring/controllers/reaction_controller";
|
2024-03-10 07:28:24 -07:00
|
|
|
import TooltipController from "retrospring/controllers/tooltip_controller";
|
2023-01-05 23:35:02 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This module sets up Stimulus and our controllers
|
|
|
|
*
|
|
|
|
* TODO: Temporary solution until I implement stimulus-rails and move
|
|
|
|
* controllers to app/javascript/controllers where an automated
|
|
|
|
* index can be generated
|
|
|
|
*/
|
|
|
|
export default function (): void {
|
|
|
|
window['Stimulus'] = Application.start();
|
|
|
|
window['Stimulus'].register('announcement', AnnouncementController);
|
|
|
|
window['Stimulus'].register('autofocus', AutofocusController);
|
2023-01-16 20:45:12 -08:00
|
|
|
window['Stimulus'].register('capabilities', CapabilitiesController);
|
2023-01-05 23:35:02 -08:00
|
|
|
window['Stimulus'].register('character-count', CharacterCountController);
|
2023-01-08 08:12:46 -08:00
|
|
|
window['Stimulus'].register('character-count-warning', CharacterCountWarningController);
|
2023-01-12 09:26:30 -08:00
|
|
|
window['Stimulus'].register('collapse', CollapseController);
|
2023-01-22 08:43:40 -08:00
|
|
|
window['Stimulus'].register('cropper', CropperController);
|
2023-01-10 06:49:52 -08:00
|
|
|
window['Stimulus'].register('format-popup', FormatPopupController);
|
2023-03-19 06:42:01 -07:00
|
|
|
window['Stimulus'].register('hotkey', HotkeyController);
|
2023-02-05 10:17:34 -08:00
|
|
|
window['Stimulus'].register('inbox-sharing', InboxSharingController);
|
2023-02-25 06:44:51 -08:00
|
|
|
window['Stimulus'].register('pwa-badge', PwaBadgeController);
|
2023-03-05 08:17:02 -08:00
|
|
|
window['Stimulus'].register('navigation', NavigationController);
|
2023-01-16 22:39:14 -08:00
|
|
|
window['Stimulus'].register('theme', ThemeController);
|
2023-02-10 21:16:42 -08:00
|
|
|
window['Stimulus'].register('toast', ToastController);
|
2023-10-16 06:02:57 -07:00
|
|
|
window['Stimulus'].register('share', ShareController);
|
2023-11-12 03:17:33 -08:00
|
|
|
window['Stimulus'].register('clipboard', ClipboardController);
|
2023-12-10 15:02:04 -08:00
|
|
|
window['Stimulus'].register('questionbox-focus', QuestionboxFocusController);
|
2023-12-20 14:53:22 -08:00
|
|
|
window['Stimulus'].register('reaction', ReactionController);
|
2024-03-10 07:28:24 -07:00
|
|
|
window['Stimulus'].register('tooltip', TooltipController);
|
2023-01-05 23:35:02 -08:00
|
|
|
}
|