Skip to content

Commit

Permalink
last clean : remove comments and outdated config
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Dussart committed Apr 29, 2024
1 parent d979945 commit ce51b25
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ gem 'puma'
# Assets
gem 'haml-rails'
gem 'jquery-rails'
# gem 'sassc-rails'
gem 'dartsass-sprockets'
gem 'terser'
gem 'premailer-rails'
Expand Down
1 change: 0 additions & 1 deletion Procfile.dev.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ clock: bundle exec clockwork app/models/clockwork.rb
worker: bundle exec sidekiq
log: tail -f log/development.log
js: yarn build --watch
css: yarn build:css --watch
2 changes: 0 additions & 2 deletions app/front/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)

// Compatibilité navigateurs anciens dont IE11
// import "core-js/stable";
import "whatwg-fetch";
import "@hotwired/turbo-rails";

Expand Down
2 changes: 0 additions & 2 deletions app/front/packs/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)

// Compatibilité navigateurs anciens dont IE11
// import "core-js/stable";
import "whatwg-fetch";
import "@hotwired/turbo-rails";

Expand Down
1 change: 0 additions & 1 deletion app/views/application/_head.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
= javascript_include_tag 'gouvfr-nomodule', type: 'text/javascript', nomodule: '', as: 'script', data: { 'turbo-track': 'reload' }, nonce: true
= javascript_include_tag 'application', data: { 'turbo-track': 'reload' }, type: "module", nonce: true
%link{ rel: 'preload', href: 'https://browser.sentry-cdn.com/6.19.6/bundle.min.js', as: 'script', crossorigin: 'anonymous', integrity: 'sha512-EnfWeHgbnvVl/d9JaR0pAznICi6nLymkzFdWjd51e/Xxl6j6zekri6WtRFeT2RRrQoZOakJpJcak3O2a2hf25A==', nonce: true }
/ = javascript_include_tag 'https://browser.sentry-cdn.com/6.19.6/bundle.min.js', crossorigin: 'anonymous', integrity: "sha512-EnfWeHgbnvVl/d9JaR0pAznICi6nLymkzFdWjd51e/Xxl6j6zekri6WtRFeT2RRrQoZOakJpJcak3O2a2hf25A==", data: { 'turbo-track': 'reload' }, nonce: true

= render 'favicon'
= yield :head
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/pages.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
= javascript_include_tag 'gouvfr-nomodule', type: 'text/javascript', nomodule: '', data: { 'turbo-track': 'reload' }, nonce: true
= javascript_include_tag 'pages', data: { 'turbo-track': 'reload' }, type: "module", nonce: true
%link{ rel: 'preload', href: 'https://browser.sentry-cdn.com/7.35.0/bundle.min.js', as: 'script', crossorigin: 'anonymous', integrity: "sha384-uwCOEtT/vtuzGz5QiQB6J1L3YFYSbznHZGi3B5Vc6+bnyGS3O9nnDfh6dCvLrQ7X", nonce: true }
/ = javascript_include_tag 'https://browser.sentry-cdn.com/7.35.0/bundle.min.js', crossorigin: 'anonymous', integrity: "sha384-uwCOEtT/vtuzGz5QiQB6J1L3YFYSbznHZGi3B5Vc6+bnyGS3O9nnDfh6dCvLrQ7X", data: { 'turbo-track': 'reload' }, nonce: true
- if in_iframe?
%meta{ name: 'robots', content: 'noindex' }
= render 'shared/iframe_resizer'
Expand Down
4 changes: 0 additions & 4 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
}

# config.assets.debug = true
# config.assets.compress = false
# config.assets.prefix = ''

# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
Rails.application.config.content_security_policy do |p|
p.default_src :self
p.base_uri :self
p.font_src :self, :data, 'https://github.com', 'https://fonts.gstatic.com', 'https://cdn.jsdelivr.net'
p.font_src :self, :data, 'https://github.com', 'https://fonts.gstatic.com'
p.img_src :self, :data, 'https://jedonnemonavis.numerique.gouv.fr', 'https://stats.data.gouv.fr/', 'https://stats.beta.gouv.fr/', 'https://www.google.com', 'https://www.google.fr', 'https://googleads.g.doubleclick.net', 'https://www.googletagmanager.com', 'https://www.googleadservices.com', 'https://www.gstatic.com', 'https://adservice.google.com', '415474841.privacysandbox.googleadservices.com'
p.object_src :none
p.style_src :self, :unsafe_inline, 'https://fonts.googleapis.com', 'https://cdn.jsdelivr.net'
p.style_src :self, :unsafe_inline, 'https://fonts.googleapis.com'
p.script_src :self, :blob, 'https://browser.sentry-cdn.com', 'sentry.io', 'https://stats.data.gouv.fr/', 'https://stats.beta.gouv.fr/', 'https://cdn.jsdelivr.net/', 'https://www.googletagmanager.com/', 'https://www.googleadservices.com', 'https://googleads.g.doubleclick.net', 'https://www.google.com', 'www.pagespeed-mod.com'
p.script_src_elem :self, :blob, 'https://browser.sentry-cdn.com', 'sentry.io', 'https://stats.data.gouv.fr/', 'https://stats.beta.gouv.fr/', 'https://cdn.jsdelivr.net/', 'https://www.googletagmanager.com/', 'https://www.googleadservices.com', 'https://googleads.g.doubleclick.net', 'https://www.google.com', 'www.pagespeed-mod.com'
p.frame_src :self, 'stats.data.gouv.fr', 'https://stats.data.gouv.fr/', 'browser.sentry-cdn.com', 'https://cdn.jsdelivr.net/', 'https://bid.g.doubleclick.net', 'https://tube.nocturlab.fr', 'https://tpc.googlesyndication.com', 'https://www.youtube-nocookie.com'
Expand Down

0 comments on commit ce51b25

Please sign in to comment.