From: Tom Hughes Date: Wed, 8 May 2024 17:47:09 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4764' X-Git-Tag: live~1253 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/99072156506b954fcb1dc7a2ab075bb3e9299122?hp=d934d6f543b30d9e5247dcf9f0c0b94efa8516a8 Merge remote-tracking branch 'upstream/pull/4764' --- diff --git a/Gemfile b/Gemfile index 0181c5c68..5385e1217 100644 --- a/Gemfile +++ b/Gemfile @@ -131,7 +131,7 @@ gem "gd2-ffij", ">= 0.4.0" gem "marcel" # Used for browser detection -gem "browser" +gem "browser", "< 6" # for ruby 3.0 support # Used for S3 object storage gem "aws-sdk-s3" diff --git a/Gemfile.lock b/Gemfile.lock index 0b2ecf330..62a312dca 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -136,7 +136,7 @@ GEM brakeman (6.1.2) racc brotli (0.5.0) - browser (6.0.0) + browser (5.3.1) builder (3.2.4) bzip2-ffi (1.1.1) ffi (~> 1.0) @@ -336,8 +336,7 @@ GEM minitest (>= 4, < 6) msgpack (1.7.2) multi_json (1.15.0) - multi_xml (0.7.1) - bigdecimal (~> 3.1) + multi_xml (0.6.0) mutex_m (0.2.0) net-http (0.4.1) uri @@ -613,7 +612,7 @@ DEPENDENCIES bootstrap (~> 5.3.2) bootstrap_form (~> 5.0) brakeman - browser + browser (< 6) bzip2-ffi cancancan canonical-rails diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index c71c0652d..20976d15a 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -16,8 +16,6 @@ //= require matomo //= require richtext //= require qs/dist/qs -//= require bs-custom-file-input -//= require bs-custom-file-input-init /* * Called as the user scrolls/zooms around to manipulate hrefs of the diff --git a/app/assets/javascripts/bs-custom-file-input-init.js b/app/assets/javascripts/bs-custom-file-input-init.js deleted file mode 100644 index 3afdac291..000000000 --- a/app/assets/javascripts/bs-custom-file-input-init.js +++ /dev/null @@ -1,5 +0,0 @@ -/* global bsCustomFileInput */ - -$(document).ready(function () { - bsCustomFileInput.init(); -}); diff --git a/app/helpers/user_roles_helper.rb b/app/helpers/user_roles_helper.rb index 4634cb015..e839c0ae6 100644 --- a/app/helpers/user_roles_helper.rb +++ b/app/helpers/user_roles_helper.rb @@ -24,7 +24,7 @@ module UserRolesHelper def role_icon_svg_tag(role, blank, title, **options) role_colors = { "administrator" => "#f69e42", - "moderator" => "#0606ff", + "moderator" => "#447eff", "importer" => "#38e13a" } color = role_colors[role] || "currentColor" @@ -32,8 +32,11 @@ module UserRolesHelper path_data = "M 10,2 8.125,8 2,8 6.96875,11.71875 5,18 10,14 15,18 13.03125,11.71875 18,8 11.875,8 10,2 z" tag.svg(:width => 20, :height => 20, **options) do concat tag.title(title) - concat tag.path(:d => path_data, :fill => color, :stroke => color, "stroke-width" => 2, "stroke-linejoin" => "round") - concat tag.path(:d => path_data, :fill => "#fff") if blank + concat tag.path(:d => path_data, + :fill => blank ? "none" : color, + :stroke => color, + "stroke-width" => blank ? 1.5 : 2, + "stroke-linejoin" => "round") end end end diff --git a/package.json b/package.json index 0a9ebf0b6..7d19be0d2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "openstreetmap", "private": true, "dependencies": { - "bs-custom-file-input": "^1.3.4", "jquery-simulate": "^1.0.2", "js-cookie": "^3.0.0", "leaflet": "^1.8.0", diff --git a/yarn.lock b/yarn.lock index f40f5e46b..0c3bd5c63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -134,11 +134,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -bs-custom-file-input@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/bs-custom-file-input/-/bs-custom-file-input-1.3.4.tgz#c275cb8d4f1c02ba026324292509fa9a747dbda8" - integrity sha512-NBsQzTnef3OW1MvdKBbMHAYHssCd613MSeJV7z2McXznWtVMnJCy7Ckyc+PwxV6Pk16cu6YBcYWh/ZE0XWNKCA== - call-bind@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9"