diff --git a/Gemfile b/Gemfile index 5561eb05..470bc865 100644 --- a/Gemfile +++ b/Gemfile @@ -14,11 +14,11 @@ gem 'puma', '~> 6.4' gem 'sprockets-rails' gem 'importmap-rails' gem 'dartsass-rails' +gem 'dartsass-sprockets' gem 'turbo-rails' gem 'stimulus-rails' -gem 'bootstrap', '~> 4.6.0' +gem 'bootstrap', '~> 5.3.0' gem 'bootstrap-icons-helper' -gem 'jquery-rails' # Use Redis adapter to run Action Cable in production gem 'redis', '~> 5.0' diff --git a/Gemfile.lock b/Gemfile.lock index ade4d3be..2a1c964b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -104,10 +104,9 @@ GEM bcrypt (3.1.19) bigdecimal (3.1.4) bindex (0.8.1) - bootstrap (4.6.2) + bootstrap (5.3.2) autoprefixer-rails (>= 9.1.0) - popper_js (>= 1.16.1, < 2) - sassc-rails (>= 2.0.0) + popper_js (>= 2.11.8, < 3) bootstrap-icons (1.0.13) nokogiri (~> 1) bootstrap-icons-helper (2.0.1) @@ -136,6 +135,14 @@ GEM dartsass-rails (0.5.0) railties (>= 6.0.0) sass-embedded (~> 1.63) + dartsass-ruby (3.0.2) + sass-embedded (~> 1.54, < 1.67) + dartsass-sprockets (3.0.0) + dartsass-ruby (~> 3.0) + railties (>= 4.0.0) + sprockets (> 3.0) + sprockets-rails + tilt date (3.3.3) deep_merge (1.2.2) diffy (3.4.2) @@ -208,10 +215,6 @@ GEM irb (1.8.3) rdoc reline (>= 0.3.8) - jquery-rails (4.6.0) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) json (2.6.3) language_server-protocol (3.17.0.3) libv8-node (18.16.0.0) @@ -268,7 +271,7 @@ GEM parser (3.2.2.4) ast (~> 2.4.1) racc - popper_js (1.16.1) + popper_js (2.11.8) protocol-hpack (1.4.2) protocol-http (0.25.0) protocol-http1 (0.16.0) @@ -306,7 +309,7 @@ GEM hocon (>= 1.0) puppetdb-ruby (1.2.0) httparty - racc (1.7.2) + racc (1.7.3) rack (3.0.8) rack-session (2.0.0) rack (>= 3.0.0) @@ -350,7 +353,7 @@ GEM rb-inotify (0.10.1) ffi (~> 1.0) rchardet (1.8.0) - rdoc (6.5.0) + rdoc (6.6.0) psych (>= 4.0.0) redis (5.0.8) redis-client (>= 0.17.0) @@ -396,23 +399,15 @@ GEM rexml ruby2_keywords (0.0.5) rubyzip (2.3.2) - sass-embedded (1.69.5) + sass-embedded (1.66.1) google-protobuf (~> 3.23) rake (>= 13.0.0) - sass-embedded (1.69.5-arm64-darwin) + sass-embedded (1.66.1-arm64-darwin) google-protobuf (~> 3.23) - sass-embedded (1.69.5-x86_64-darwin) + sass-embedded (1.66.1-x86_64-darwin) google-protobuf (~> 3.23) - sass-embedded (1.69.5-x86_64-linux-gnu) + sass-embedded (1.66.1-x86_64-linux-gnu) google-protobuf (~> 3.23) - sassc (2.4.0) - ffi (~> 1.9) - sassc-rails (2.1.2) - railties (>= 4.0.0) - sassc (>= 2.0) - sprockets (> 3.0) - sprockets-rails - tilt sawyer (0.9.2) addressable (>= 2.3.5) faraday (>= 0.17.3, < 3) @@ -477,13 +472,14 @@ PLATFORMS DEPENDENCIES bcrypt (~> 3.1.7) - bootstrap (~> 4.6.0) + bootstrap (~> 5.3.0) bootstrap-icons-helper breadcrumbs_on_rails byebug cancancan capybara (>= 2.15) dartsass-rails + dartsass-sprockets diffy factory_bot_rails faker @@ -494,7 +490,6 @@ DEPENDENCIES github_changelog_generator (>= 1.16.1) hiera-eyaml importmap-rails - jquery-rails listen (~> 3.2) mini_racer net-ldap diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index bae6a19e..4f080526 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -3,5 +3,4 @@ //= link_tree ../../javascript .js //= link_tree ../../../vendor/javascript .js //= link bootstrap -//= link jquery //= link application.css diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 036a839b..b4993828 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -31,6 +31,14 @@ $container-max-widths: ( @import "bootstrap"; +a { + text-decoration: none; +} + +.btn-primary { + --bs-btn-color: #fff; +} + ol.breadcrumb li:first-child { padding-left: 0; } diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 17e32c51..0da3df1f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,13 +1,13 @@ module ApplicationHelper FLASH_CLASSES = { - "notice" => "alert alert-success", - "error" => "alert alert-danger", - "alert" => "alert alert-warning" + "notice" => "alert-success", + "error" => "alert-danger", + "alert" => "alert-warning" }.freeze ROLE_BADGE_COLORS = { - "admin" => "badge-danger", - "regular" => "badge-success", - "api" => "badge-info" + "admin" => "bg-danger", + "regular" => "bg-success", + "api" => "bg-info" }.freeze def flash_class(level) diff --git a/app/javascript/application.js b/app/javascript/application.js index 128bf092..1580c4fb 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -2,11 +2,5 @@ import "@hotwired/turbo-rails" import "controllers" -import "jquery" +import * as Popper from "@popperjs/core" import "bootstrap" - -// Bootstrap JS Initialization -document.addEventListener("turbo:load", () => { - $('[data-toggle="tooltip"]').tooltip() - $('[data-toggle="popover"]').popover() -}) diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index be44f955..600a6caf 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -31,41 +31,43 @@ <% file_index = 0 %> <% @files_and_values_by_hierarchy.each do |hierarchy, files_and_values| %> <% hierarchy_index += 1 %> -