blacklight-gallery 4.5.0 → 4.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +11 -0
- data/.solr_wrapper.yml +1 -0
- data/app/assets/stylesheets/blacklight_gallery/_gallery.scss +5 -5
- data/app/components/blacklight/gallery/slideshow_preview_component.html.erb +2 -4
- data/app/components/blacklight/gallery/slideshow_preview_component.rb +18 -0
- data/lib/blacklight/gallery/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c71ee2cf22c62356da80b25dc1935c2a64532937556a655d62d6da4267cc411a
|
4
|
+
data.tar.gz: eb59f7062053c51b3b0bd5f5e513592c5bab1b866331e1e6d15ab9f0022803fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c62a7c6b351c88e3a648537a4582a50ec9dc7e833fe5619c76421ef995c710d3defe3d53f09e9bd72e9ee0c058bbd6cb31986e6c756db288c2b83834247212
|
7
|
+
data.tar.gz: 703a23c64b909db73c0ceb93575058da2d24240b6bf54dec4ae5443095709c9abfa586824328819635707064d7827aa08b6c009fce55935ff1733b85580c0b4c
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
9
|
+
directory: "/" # Location of package manifests
|
10
|
+
schedule:
|
11
|
+
interval: "weekly"
|
data/.solr_wrapper.yml
CHANGED
@@ -21,12 +21,12 @@
|
|
21
21
|
clear: left;
|
22
22
|
}
|
23
23
|
|
24
|
-
.document-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
}
|
24
|
+
.document-title-heading {
|
25
|
+
padding-left: 0;
|
26
|
+
padding-right: 0;
|
27
|
+
}
|
29
28
|
|
29
|
+
.document-metadata {
|
30
30
|
dt, dd {
|
31
31
|
flex: 0 0 100%;
|
32
32
|
max-width: 100%;
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<% component = Blacklight::VERSION > '8' ?
|
2
2
|
Blacklight::DocumentComponent.new(classes: 'slideshow-preview-thumbnail', component: :div, document: @presenter, counter: @counter) :
|
3
3
|
Blacklight::DocumentComponent.new(classes: 'slideshow-preview-thumbnail', component: :div, document: @document, presenter: @presenter, counter: @counter)
|
4
|
-
%>
|
4
|
+
%>
|
5
5
|
<%= render(component) do |component| %>
|
6
6
|
<% component.with_body do %>
|
7
|
-
<%=
|
8
|
-
data: { 'context-href': nil, 'slide-to': @document_counter, 'bs-slide-to': @document_counter,
|
9
|
-
toggle: "modal", 'bs-toggle': "modal", target: "#slideshow-modal", 'bs-target': "#slideshow-modal" }) %>
|
7
|
+
<%= link_to_document %>
|
10
8
|
<% end %>
|
11
9
|
<% end %>
|
@@ -35,6 +35,24 @@ module Blacklight
|
|
35
35
|
def render_document_class(*args)
|
36
36
|
@view_context.render_document_class(*args)
|
37
37
|
end
|
38
|
+
|
39
|
+
def link_to_document
|
40
|
+
helpers.link_to_document(@document, thumbnail, class: 'thumbnail', data: data_attributes)
|
41
|
+
end
|
42
|
+
|
43
|
+
def data_attributes
|
44
|
+
# 'context-href': nil is for Blacklight < 7.38, :context_href is for those after 7.38
|
45
|
+
{
|
46
|
+
'context-href': nil,
|
47
|
+
context_href: nil,
|
48
|
+
'slide-to': @document_counter,
|
49
|
+
'bs-slide-to': @document_counter,
|
50
|
+
toggle: "modal",
|
51
|
+
'bs-toggle': "modal",
|
52
|
+
target: "#slideshow-modal",
|
53
|
+
'bs-target': "#slideshow-modal"
|
54
|
+
}
|
55
|
+
end
|
38
56
|
end
|
39
57
|
end
|
40
58
|
end
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-gallery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -197,6 +197,7 @@ executables: []
|
|
197
197
|
extensions: []
|
198
198
|
extra_rdoc_files: []
|
199
199
|
files:
|
200
|
+
- ".github/dependabot.yml"
|
200
201
|
- ".github/workflows/ruby.yml"
|
201
202
|
- ".gitignore"
|
202
203
|
- ".solr_wrapper.yml"
|