Add all app files

This commit is contained in:
Ryan W
2021-09-26 14:41:38 -07:00
parent 63a398fc7f
commit a51dc8db9a
64 changed files with 1129 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
import "controllers"
+10
View File
@@ -0,0 +1,10 @@
import { Application } from "@hotwired/stimulus"
const application = Application.start()
// Configure Stimulus development experience
application.warnings = true
application.debug = false
window.Stimulus = application
export { application }
@@ -0,0 +1,7 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
connect() {
this.element.textContent = "Hello World!"
}
}
+5
View File
@@ -0,0 +1,5 @@
// Import and register all your controllers from the importmap under controllers/*
import { application } from "controllers/application"
import { registerControllersFrom } from "@hotwired/stimulus-importmap-autoloader"
registerControllersFrom("controllers", application)