Skip to content

Commit

Permalink
Correct stimulus initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
coorasse committed Feb 2, 2022
1 parent ee9bcc6 commit ffbd605
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion .semaphore/main-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ blocks:
- git config --global url.ssh://[email protected]/.insteadOf https://git.heroku.com/
- git remote add heroku $HEROKU_REMOTE
- git push heroku -f $SEMAPHORE_GIT_BRANCH:main
- heroku run -x rails db:migrate
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ GEM
sassc (>= 1.11)
globalid (1.0.0)
activesupport (>= 5.0)
i18n (1.8.11)
i18n (1.9.1)
concurrent-ruby (~> 1.0)
importmap-rails (1.0.2)
actionpack (>= 6.0.0)
Expand Down Expand Up @@ -151,9 +151,9 @@ GEM
net-protocol
timeout
nio4r (2.5.8)
nokogiri (1.13.0-arm64-darwin)
nokogiri (1.13.1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.0-x86_64-linux)
nokogiri (1.13.1-x86_64-linux)
racc (~> 1.4)
parallel (1.21.0)
parser (3.1.0.0)
Expand Down Expand Up @@ -272,7 +272,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.5.3)
zeitwerk (2.5.4)

PLATFORMS
arm64-darwin-21
Expand Down
1 change: 0 additions & 1 deletion app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ import "@hotwired/turbo-rails"
import "controllers"
import "popper"
import "bootstrap"
import 'controllers';

2 changes: 1 addition & 1 deletion app/javascript/controllers/editable_field_controller.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus';
import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
static get targets() {
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/controllers/hello_controller.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller } from "stimulus"
import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
connect() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller } from 'stimulus';
import { Controller } from "@hotwired/stimulus"
import { Turbo } from '@hotwired/turbo-rails';

// this controller allows to update the URL even if only a frame content changed.
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script async defer src="https://buttons.github.io/buttons.js" data-turbolinks-track="reload"></script>
<script async defer src="https://buttons.github.io/buttons.js" data-turbo-track="reload"></script>

<h1> Hello 👋, welcome to Turbo Showcase <i class="fas fa-rocket renuo-green"></i></h1>
<p class="mt-5">
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= csrf_meta_tags %>
<%= csp_meta_tag %>

<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>
<%= javascript_importmap_tags %>
</head>

Expand Down

0 comments on commit ffbd605

Please sign in to comment.