Sha256: 437f368d85515896719032dd6824cc829c01775ff4fc5989d82da15de86827e0

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

console.debug("[Panda CMS] Importing Panda CMS Stimulus Controller...");;

import { Application as PandaCmsApplication } from "@hotwired/stimulus"

const pandaCmsApplication = PandaCmsApplication.start()

console.debug("[Panda CMS] Application started...");;

// Configure Stimulus development experience
pandaCmsApplication.debug = false
window.pandaCmsStimulus = pandaCmsApplication

console.debug("[Panda CMS] window.pandaCmsStimulus available...")

console.debug("[Panda CMS] Registering controllers...")

// Grab our internal controllers manually
import { DashboardController } from "controllers/dashboard_controller"
pandaCmsApplication.register("dashboard", DashboardController)

import { SlugController } from "controllers/slug_controller"
pandaCmsApplication.register("slug", SlugController)

console.debug("[Panda CMS] Registering components...")

// Import and register all TailwindCSS Components or just the ones you need
import { Alert, Autosave, ColorPreview, Dropdown, Modal, Tabs, Popover, Toggle, Slideover } from "tailwindcss-stimulus-components"
pandaCmsApplication.register('alert', Alert)
pandaCmsApplication.register('autosave', Autosave)
pandaCmsApplication.register('color-preview', ColorPreview)
pandaCmsApplication.register('dropdown', Dropdown)
pandaCmsApplication.register('modal', Modal)
pandaCmsApplication.register('popover', Popover)
pandaCmsApplication.register('slideover', Slideover)
pandaCmsApplication.register('tabs', Tabs)
pandaCmsApplication.register('toggle', Toggle)

console.debug("[Panda CMS] Components registered...");

export { pandaCmsApplication }

console.debug("[Panda CMS] Application exported...");

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
panda_cms-0.6.0 app/javascript/panda_cms/controllers/index.js