Sha256: 2e1d6d5aff96319475c62d19bcdaf215ed40bc613d26d65d5b56d5ff0f4d66d9

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

// Dependencies

import 'jquery'
import Rails from '@rails/ujs'

import 'bootstrap'
import 'bootstrap-confirmation2'

import 'magnific-popup'

import 'flatpickr'

import 'select2/dist/js/select2.full'

// Core

import { refreshContext, refreshMainContext } from './core/contexts'
import cookie from './core/cookie'
import { init, ready, triggerInit, triggerReady } from './core/events'
import { i18n, localize } from './core/i18n'
import turbolinks from './core/turbolinks'
import visit from './core/visit'

// Components

import './components/confirmation'
import './components/datepicker'
import Dialog from './components/dialog'
import './components/file'
import './components/form'
import './components/gallery'
import './components/pagination'
import './components/select'
import './components/sidebar'
import './components/table'
import { focusTab, focusActiveTab } from './components/tabs'
import './components/tooltips'

// Initialize

Rails.start()

// Export

const Trestle = {
  refreshContext,
  refreshMainContext,
  cookie,
  init,
  ready,
  triggerInit,
  triggerReady,
  i18n,
  localize,
  turbolinks,
  visit,
  Dialog,
  focusTab,
  focusActiveTab
}

export default Trestle

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trestle-0.9.8 frontend/js/index.js
trestle-0.9.7 frontend/js/index.js
trestle-0.9.6 frontend/js/index.js
trestle-0.9.5 frontend/js/index.js
trestle-0.9.4 frontend/js/index.js