Browse Source

turbo8 with prefetch false

main
pvincent 7 months ago
parent
commit
9742a4628a
  1. 10
      Gemfile
  2. 70
      Gemfile.lock
  3. 9
      app/views/layouts/application.html.erb

10
Gemfile

@ -13,13 +13,11 @@ gem 'stimulus-rails'
gem 'tailwindcss-rails'
group :development do
gem 'rails_live_reload'
gem 'turbo-rails', '~> 1' # works well with rails_live_reload
gem 'amazing_print'
gem 'debug'
gem 'error_highlight'
gem 'htmlbeautifier'
gem 'rails_live_reload'
gem 'rainbow'
gem 'rubocop', require: false
gem 'rubocop-packaging'
@ -28,10 +26,6 @@ group :development do
gem 'rubocop-shopify'
gem 'rubocop-thread_safety'
gem 'ruby-lsp-rails'
gem 'turbo-rails'
gem 'web-console'
end
group :test do
gem 'capybara'
gem 'selenium-webdriver'
end

70
Gemfile.lock

@ -75,25 +75,14 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
amazing_print (1.6.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.7)
bigdecimal (3.1.8)
bindex (0.8.1)
bootsnap (1.18.3)
msgpack (~> 1.2)
builder (3.2.4)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crass (1.0.6)
@ -108,15 +97,15 @@ GEM
globalid (1.2.1)
activesupport (>= 6.1)
htmlbeautifier (1.4.3)
i18n (1.14.4)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.1)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
io-console (0.7.2)
irb (1.12.0)
rdoc
irb (1.13.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
@ -132,7 +121,6 @@ GEM
net-pop
net-smtp
marcel (1.0.4)
matrix (0.4.2)
mini_mime (1.1.5)
minitest (5.22.3)
msgpack (1.7.2)
@ -167,7 +155,6 @@ GEM
prism (0.27.0)
psych (5.1.2)
stringio
public_suffix (5.0.5)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.3)
@ -225,7 +212,7 @@ GEM
rdoc (6.6.3.1)
psych (>= 4.0.0)
regexp_parser (2.9.0)
reline (0.5.4)
reline (0.5.5)
io-console (~> 0.5)
rexml (3.2.6)
rubocop (1.63.4)
@ -250,7 +237,7 @@ GEM
rubocop-performance (1.21.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (2.29.1)
rubocop-rspec (2.29.2)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
@ -265,19 +252,13 @@ GEM
language_server-protocol (~> 3.17.0)
prism (>= 0.23.0, < 0.28)
sorbet-runtime (>= 0.5.10782)
ruby-lsp-rails (0.3.5)
ruby-lsp (>= 0.16.0, < 0.17.0)
ruby-lsp-rails (0.3.6)
ruby-lsp (>= 0.16.5, < 0.17.0)
sorbet-runtime (>= 0.5.9897)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
selenium-webdriver (4.20.1)
base64 (~> 0.2)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_logger (4.15.0)
concurrent-ruby (~> 1.0)
sorbet-runtime (0.5.11361)
sorbet-runtime (0.5.11369)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@ -288,21 +269,21 @@ GEM
stimulus-rails (1.3.3)
railties (>= 6.0.0)
stringio (3.1.0)
tailwindcss-rails (2.5.0)
railties (>= 6.0.0)
tailwindcss-rails (2.5.0-aarch64-linux)
railties (>= 6.0.0)
tailwindcss-rails (2.5.0-arm-linux)
railties (>= 6.0.0)
tailwindcss-rails (2.5.0-arm64-darwin)
railties (>= 6.0.0)
tailwindcss-rails (2.5.0-x86_64-darwin)
railties (>= 6.0.0)
tailwindcss-rails (2.5.0-x86_64-linux)
railties (>= 6.0.0)
tailwindcss-rails (2.6.0)
railties (>= 7.0.0)
tailwindcss-rails (2.6.0-aarch64-linux)
railties (>= 7.0.0)
tailwindcss-rails (2.6.0-arm-linux)
railties (>= 7.0.0)
tailwindcss-rails (2.6.0-arm64-darwin)
railties (>= 7.0.0)
tailwindcss-rails (2.6.0-x86_64-darwin)
railties (>= 7.0.0)
tailwindcss-rails (2.6.0-x86_64-linux)
railties (>= 7.0.0)
thor (1.3.1)
timeout (0.4.1)
turbo-rails (1.5.0)
turbo-rails (2.0.5)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
@ -315,12 +296,9 @@ GEM
bindex (>= 0.4.0)
railties (>= 6.0.0)
webrick (1.8.1)
websocket (1.2.10)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.13)
PLATFORMS
@ -334,7 +312,6 @@ PLATFORMS
DEPENDENCIES
amazing_print
bootsnap
capybara
debug
error_highlight
htmlbeautifier
@ -353,11 +330,10 @@ DEPENDENCIES
rubocop-shopify
rubocop-thread_safety
ruby-lsp-rails
selenium-webdriver
sprockets-rails
stimulus-rails
tailwindcss-rails
turbo-rails (~> 1)
turbo-rails
web-console
RUBY VERSION

9
app/views/layouts/application.html.erb

@ -2,9 +2,16 @@
<html>
<head>
<title><%=Rails.configuration.application_title%></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<!--META -->
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<meta name="viewport" content="width=device-width,initial-scale=1">
<% if Rails.env.development? %>
<meta name="turbo-prefetch" content="false">
<% end%>
<!-- LINK-->
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>

Loading…
Cancel
Save