Sha256: 5f89327eacda598e0b2fac1b1c00f8c45dff4e440ce34d795b1b2c6dcfac87ed

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

/* global Stimulus */
import { Application } from '@hotwired/stimulus'
import AutocompleteController from './controllers/autocomplete_controller'
import DateRangeController from './controllers/date_range_controller'
import DropzoneController from './controllers/dropzone_controller'
import FilePreviewController from './controllers/file_preview_controller'
import FlatpickrController from './controllers/flatpickr_controller'
import InfiniteScrollerController from './controllers/infinite_scroller_controller'
import MediaController from './controllers/media_controller'
import MediaModalController from './controllers/media_modal_controller'
import RedactorxController from './controllers/redactorx_controller'
import RepeaterController from './controllers/repeater_controller'
import SelectController from './controllers/select_controller'
import TextareaController from './controllers/textarea_controller'

export class Formstrap {
  static start () {
    window.Stimulus = window.Stimulus || Application.start()
    Stimulus.register('autocomplete', AutocompleteController)
    Stimulus.register('date-range', DateRangeController)
    Stimulus.register('dropzone', DropzoneController)
    Stimulus.register('file-preview', FilePreviewController)
    Stimulus.register('flatpickr', FlatpickrController)
    Stimulus.register('infinite-scroller', InfiniteScrollerController)
    Stimulus.register('media', MediaController)
    Stimulus.register('media-modal', MediaModalController)
    Stimulus.register('redactorx', RedactorxController)
    Stimulus.register('repeater', RepeaterController)
    Stimulus.register('select', SelectController)
    Stimulus.register('textarea', TextareaController)
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
formstrap-0.1.3 app/assets/javascripts/formstrap/index.js
formstrap-0.1.2 app/assets/javascripts/formstrap/index.js
formstrap-0.1.1 app/assets/javascripts/formstrap/index.js
formstrap-0.1.0 app/assets/javascripts/formstrap/index.js