summaryrefslogtreecommitdiffhomepage
path: root/src/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers')
-rw-r--r--src/controllers/application.js9
-rw-r--r--src/controllers/hello_controller.js7
-rw-r--r--src/controllers/index.js8
3 files changed, 0 insertions, 24 deletions
diff --git a/src/controllers/application.js b/src/controllers/application.js
deleted file mode 100644
index 1213e85..0000000
--- a/src/controllers/application.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import { Application } from "@hotwired/stimulus"
-
-const application = Application.start()
-
-// Configure Stimulus development experience
-application.debug = false
-window.Stimulus = application
-
-export { application }
diff --git a/src/controllers/hello_controller.js b/src/controllers/hello_controller.js
deleted file mode 100644
index 5975c07..0000000
--- a/src/controllers/hello_controller.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import { Controller } from "@hotwired/stimulus"
-
-export default class extends Controller {
- connect() {
- this.element.textContent = "Hello World!"
- }
-}
diff --git a/src/controllers/index.js b/src/controllers/index.js
deleted file mode 100644
index d0685d3..0000000
--- a/src/controllers/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// This file is auto-generated by ./bin/rails stimulus:manifest:update
-// Run that command whenever you add a new controller or create them with
-// ./bin/rails generate stimulus controllerName
-
-import { application } from "./application"
-
-import HelloController from "./hello_controller"
-application.register("hello", HelloController)