mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Add rails-ujs to manifest.js and application.js.
This commit is contained in:
parent
bfeb936638
commit
e9eeb6aae2
5 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
//= link rails-ujs.js
|
||||
//= link_tree ../images
|
||||
//= link_directory ../stylesheets .css
|
||||
//= link_tree ../builds
|
||||
|
|
|
|||
|
|
@ -12,3 +12,6 @@ import "./channels"
|
|||
|
||||
import "trix"
|
||||
import "@rails/actiontext"
|
||||
|
||||
import "@rails/ujs"
|
||||
Rails.start()
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
<li><%= link_to 'Subscription', "#{MANAGER_URL}/auth/dawarich?token=#{current_user.generate_subscription_token}" %></li>
|
||||
<% end %>
|
||||
|
||||
<li><%= link_to 'Logout', destroy_user_session_path, method: :delete, data: { turbo_method: :delete } %></li>
|
||||
<li><%= link_to 'Logout', destroy_user_session_path, method: :delete, data: { turbo: false } %></li>
|
||||
</ul>
|
||||
</details>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ pin_all_from 'app/javascript/channels', under: 'channels'
|
|||
pin 'application', preload: true
|
||||
pin '@rails/actioncable', to: 'actioncable.esm.js'
|
||||
pin '@rails/activestorage', to: 'activestorage.esm.js'
|
||||
pin '@rails/ujs', to: 'rails-ujs.js'
|
||||
pin '@hotwired/turbo-rails', to: 'turbo.min.js', preload: true
|
||||
pin '@hotwired/stimulus', to: 'stimulus.min.js', preload: true
|
||||
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js', preload: true
|
||||
|
|
|
|||
4
vendor/javascript/@rails--ujs.js
vendored
Normal file
4
vendor/javascript/@rails--ujs.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue