Skip to content

Commit 8fe9416

Browse files
committed
Upgrade blacklight_range_limit
1 parent 9e15838 commit 8fe9416

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ gem 'sitemap_generator'
8282
gem 'blacklight-gallery', '~> 4.2'
8383
gem 'blacklight-hierarchy', '~> 6.1'
8484
gem 'blacklight-oembed', '>= 0.1.0'
85-
gem 'blacklight_range_limit', '~> 8.0'
85+
gem 'blacklight_range_limit', '~> 9.0'
8686
gem 'rails_autolink'
8787
gem 'rsolr', '>= 1.0'
8888

Gemfile.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,8 @@ GEM
150150
signet
151151
tophat
152152
view_component (>= 2.66, < 4)
153-
blacklight_range_limit (8.5.0)
153+
blacklight_range_limit (9.0.0)
154154
blacklight (>= 7.25.2, < 9)
155-
deprecation
156155
view_component (>= 2.54, < 4)
157156
bootsnap (1.20.1)
158157
msgpack (~> 1.2)
@@ -824,7 +823,7 @@ DEPENDENCIES
824823
blacklight-hierarchy (~> 6.1)
825824
blacklight-oembed (>= 0.1.0)
826825
blacklight-spotlight (~> 4.0)
827-
blacklight_range_limit (~> 8.0)
826+
blacklight_range_limit (~> 9.0)
828827
bootsnap (>= 1.4.4)
829828
bootstrap_form (~> 4.5)
830829
bot_challenge_page (~> 0.4.0)

app/assets/javascripts/application.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@
1212
//
1313

1414
//= require_tree .
15-
16-
//= require 'blacklight_range_limit'

app/controllers/spotlight/home_pages_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class HomePagesController
1111

1212
# rubocop:disable Rails/LexicallyScopedActionFilter
1313
# Tweak the authorization for the range limit actions
14-
before_action :authenticate_user!, except: %i[show range_limit range_limit_panel]
15-
skip_authorize_resource only: %i[range_limit range_limit_panel]
14+
before_action :authenticate_user!, except: %i[show range_limit]
15+
skip_authorize_resource only: %i[range_limit]
1616

17-
before_action only: %i[range_limit range_limit_panel] do
17+
before_action only: %i[range_limit] do
1818
authorize! :read, @page
1919
end
2020
# rubocop:enable Rails/LexicallyScopedActionFilter

app/javascript/entry.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
// This is the entrypoint for the importmap build.
22
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
3-
import jQuery from 'jquery'
3+
import jQuery from "jquery"
44
window.jQuery = jQuery
55
window.$ = jQuery
66

77
import "@hotwired/turbo-rails"
88

99
import "controllers"
1010

11-
import 'bootstrap'
12-
import Blacklight from 'blacklight'
13-
import 'openseadragon-rails/rails'
11+
import "bootstrap"
12+
import Blacklight from "blacklight"
13+
import "openseadragon-rails/rails"
1414

1515
window.Blacklight = Blacklight
1616

17-
import { I18n } from 'i18n-js'
17+
import { I18n } from "i18n-js"
1818
export const i18n = new I18n()
1919

20-
import 'transform_result'
21-
import 'blacklight-hierarchy'
20+
import "transform_result"
21+
import "blacklight-hierarchy"
22+
import "blacklight-range-limit"

config/importmap.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@
2727
pin "openseadragon" # @5.0.1
2828
pin 'blacklight-frontend', to: 'blacklight/index.js'
2929
pin "blacklight-hierarchy" # @6.4.0
30+
pin "chart.js", to: "https://ga.jspm.io/npm:chart.js@4.2.0/dist/chart.js"
31+
pin "@kurkle/color", to: "https://ga.jspm.io/npm:@kurkle/color@0.3.2/dist/color.esm.js"

0 commit comments

Comments
 (0)