-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix admin panel JS not working (#28)
Fix admin panel JS not working. Note #3 still means there isn't a workable test suite yet.
- Loading branch information
Showing
35 changed files
with
331 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Application as PandaCmsApplication } from "@hotwired/stimulus" | ||
|
||
const pandaCmsApplication = PandaCmsApplication.start() | ||
|
||
// Configure Stimulus development experience | ||
pandaCmsApplication.debug = false | ||
window.pandaStimulus = pandaCmsApplication | ||
|
||
// Eager load all controllers defined in the import map under controllers/**/*_controller | ||
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading" | ||
eagerLoadControllersFrom("controllers", pandaCmsApplication) | ||
|
||
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) | ||
|
||
export { pandaCmsApplication } |
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
app/javascript/panda_cms/stimulus-components-rails-nested-form.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.