Skip to content

Commit

Permalink
Self host Bootstrap-js instead of using a CDN
Browse files Browse the repository at this point in the history
No reliance on third-parties and leaking data.
  • Loading branch information
MacTwister committed Oct 16, 2023
1 parent b212a32 commit a839edb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// about supported directives.
//
//= require jquery/dist/jquery.slim.js
//= require bootstrap/dist/js/bootstrap.bundle.js
//= require jquery.limit-1.2
//= require leaflet
//= require Control.Loading.js
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*= require messenger
*= require messenger-theme-flat
*= require trumbowyg/trumbowyg
*= require bootstrap/dist/css/bootstrap.min.css
*= require flatpickr
*= require leaflet
*= stub active_admin
Expand Down
2 changes: 0 additions & 2 deletions app/views/application/_head.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
%meta{content: "1349222175", property: "fb:admins"}/
= javascript_include_tag "application", "data-turbolinks-track" => true
%link{href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/css/bootstrap.min.css", rel: "stylesheet", integrity: "sha384-SI27wrMjH3ZZ89r4o+fGIJtnzkAnFs3E4qz9DIYioCQ5l9Rd/7UAa8DHcaL8jkWt", crossorigin: "anonymous"}
%script{src: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.0/js/bootstrap.bundle.min.js", integrity: "sha384-Iep5TjrwnXOp2AdreAjhlprhxI5Ix8Y3I/zJd1tNQZQmonaE3i6fTdrvIG9YjOWl", crossorigin: "anonymous"}
%link{rel: "canonical", href: "#{request.url.split('?').first}"}
%link{rel: "stylesheet", href: "https://api.mapbox.com/mapbox.js/v3.0.1/mapbox.css"}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:fablabbcn/fablabs.io.git",
"author": "Viktor Smari <[email protected]>",
"license": "MIT",
"dependencies": {
"bootstrap-datepicker": "~1.6.4",
"bootstrap": "^4.4.1",
"jquery": "~3.7.0",
"leaflet": "~1.0.3",
"leaflet-spin": "~1.1.0",
Expand Down
12 changes: 5 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
# yarn lockfile v1


bootstrap-datepicker@~1.6.4:
version "1.6.4"
resolved "https://registry.yarnpkg.com/bootstrap-datepicker/-/bootstrap-datepicker-1.6.4.tgz#889ebeced8eaa2ff15ec1f273e4b07531cc43da0"
integrity sha512-dPEUbP2JlWGHJWJEWfBIyFFR+iMgERj/bZR1oHqlaCRke2oILljMMFrlMZrgdpZigj5Ly9TdZzCNuYz4hRJ+7A==
dependencies:
jquery ">=1.7.1"
bootstrap@^4.4.1:
version "4.6.2"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.6.2.tgz#8e0cd61611728a5bf65a3a2b8d6ff6c77d5d7479"
integrity sha512-51Bbp/Uxr9aTuy6ca/8FbFloBUJZLHwnhTcnjIeRn2suQWsWzcuJhGjKDB5eppVte/8oCdOL3VuwxvZDUggwGQ==

jquery@>=1.7.1, jquery@~3.7.0:
jquery@~3.7.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.7.0.tgz#fe2c01a05da500709006d8790fe21c8a39d75612"
integrity sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==
Expand Down

0 comments on commit a839edb

Please sign in to comment.