blacklight-gallery 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.solr_wrapper.yml +5 -0
- data/app/assets/images/blacklight/add_circle.svg +1 -0
- data/app/assets/images/blacklight/chevron_left.svg +1 -0
- data/app/assets/images/blacklight/chevron_right.svg +1 -0
- data/app/assets/images/blacklight/custom_fullscreen.svg +1 -0
- data/app/assets/images/blacklight/gallery.svg +1 -20
- data/app/assets/images/blacklight/masonry.svg +1 -17
- data/app/assets/images/blacklight/remove_circle.svg +1 -0
- data/app/assets/images/blacklight/resize_small.svg +1 -0
- data/app/assets/images/blacklight/slideshow.svg +1 -13
- data/app/assets/stylesheets/blacklight_gallery/_gallery.scss +0 -4
- data/app/assets/stylesheets/blacklight_gallery/_masonry.scss +0 -7
- data/app/assets/stylesheets/blacklight_gallery/_slideshow.scss +15 -14
- data/app/views/catalog/_openseadragon_default.html.erb +6 -7
- data/app/views/catalog/_slideshow.html.erb +2 -3
- data/app/views/catalog/_slideshow_modal.html.erb +3 -2
- data/blacklight-gallery.gemspec +1 -1
- data/lib/blacklight/gallery/version.rb +1 -1
- data/spec/test_app_templates/Gemfile.extra +1 -0
- metadata +13 -8
- data/app/assets/images/blacklight/gallery/view-icon-masonry.png +0 -0
- data/app/assets/images/blacklight/gallery/view-icon-masonry@2x.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4927245e76448f9fc8b4f8ca2a14afe04c1c5c5c794a84826d0da6b618ab18e4
|
4
|
+
data.tar.gz: 0eb3ee4d9293f8575e8d134e770480a7fb7b400378cb83d80d4aaeec9cf8fe58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 599c4e4e4def663a47eed40f9c830afd39b289b2815e313f688052cfa622c7c6610a951df96fe8b0750102e091efbb0a4644c1a70fd9b7d9276069d81a55a72a
|
7
|
+
data.tar.gz: b8c730e6e13a9e9b1617d1f440d04a9e953d136f507bbf0cb2048952e7f2ce1ccc3f9a9cedf0655da8e072a29fda5998c45d953f8325cedbe2ba238149747899
|
data/.solr_wrapper.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7,14H5v5h5V17H7Zm7-9V7h3v3h2V5Z" /><path d="M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z" /></svg>
|
@@ -1,20 +1 @@
|
|
1
|
-
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
-
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
4
|
-
<title>Gallery</title>
|
5
|
-
<desc>Created with Sketch.</desc>
|
6
|
-
<defs></defs>
|
7
|
-
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
|
8
|
-
<g id="Gallery" stroke="#000000" stroke-width="3">
|
9
|
-
<path d="M2,2 L2,3" id="Line"></path>
|
10
|
-
<path d="M2,7.5 L2,8.5" id="Line"></path>
|
11
|
-
<path d="M8,7.5 L8,8.5" id="Line"></path>
|
12
|
-
<path d="M14,7.5 L14,8.5" id="Line"></path>
|
13
|
-
<path d="M2,13 L2,14" id="Line"></path>
|
14
|
-
<path d="M8,13 L8,14" id="Line"></path>
|
15
|
-
<path d="M14,13 L14,14" id="Line"></path>
|
16
|
-
<path d="M8,2 L8,3" id="Line"></path>
|
17
|
-
<path d="M14,2 L14,3" id="Line"></path>
|
18
|
-
</g>
|
19
|
-
</g>
|
20
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/></svg>
|
@@ -1,17 +1 @@
|
|
1
|
-
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
-
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
4
|
-
<title>Masonry</title>
|
5
|
-
<desc>Created with Sketch.</desc>
|
6
|
-
<defs></defs>
|
7
|
-
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
|
8
|
-
<g id="Masonry" stroke="#000000" stroke-width="3">
|
9
|
-
<path d="M8,0 L8,6.5" id="Line"></path>
|
10
|
-
<path d="M14.5,8.5 L14.5,15" id="Line"></path>
|
11
|
-
<path d="M1.5,8.5 L1.5,15" id="Line"></path>
|
12
|
-
<path d="M8,12 L8,14.5" id="Line"></path>
|
13
|
-
<path d="M14.5,1 L14.5,2.5" id="Line"></path>
|
14
|
-
<path d="M1.5,1 L1.5,2.5" id="Line"></path>
|
15
|
-
</g>
|
16
|
-
</g>
|
17
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5,16H8v3h2V14H5ZM16,8V5H14v5h5V8Z"/><path d="M22.517,1.524H1.736V22.37H22.517Zm-2,18.845H3.736V3.524H20.517Z"/></svg>
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
-
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
4
|
-
<title>Slideshow</title>
|
5
|
-
<desc>Created with Sketch.</desc>
|
6
|
-
<defs></defs>
|
7
|
-
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
-
<g id="Slideshow" stroke="#000000">
|
9
|
-
<rect id="Rectangle" stroke-width="2" transform="translate(8.000000, 8.000000) rotate(1.000000) translate(-8.000000, -8.000000) " x="1" y="2" width="14" height="12" rx="6"></rect>
|
10
|
-
<polygon id="Triangle" fill="#000000" transform="translate(9.000000, 8.000000) rotate(90.000000) translate(-9.000000, -8.000000) " points="9 5 12 11 6 11"></polygon>
|
11
|
-
</g>
|
12
|
-
</g>
|
13
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
|
@@ -1,10 +1,3 @@
|
|
1
|
-
|
2
|
-
.view-icon-masonry {
|
3
|
-
&:before { content: "\e010"; visibility: hidden; } // get the glyphicon sizing
|
4
|
-
|
5
|
-
@include img-retina("blacklight/gallery/view-icon-masonry.png","blacklight/gallery/view-icon-masonry@2x.png", 13px, 13px);
|
6
|
-
}
|
7
|
-
|
8
1
|
.masonry {
|
9
2
|
&.document {
|
10
3
|
padding: 0;
|
@@ -1,9 +1,5 @@
|
|
1
|
-
.view-icon-slideshow {
|
2
|
-
&:before { content: "\e158"; }
|
3
|
-
}
|
4
|
-
|
5
1
|
$gray-light: lightgray !default;
|
6
|
-
$gray-dark:
|
2
|
+
$gray-dark: #343a40 !default;
|
7
3
|
|
8
4
|
.slideshow-modal {
|
9
5
|
.modal-dialog {
|
@@ -35,6 +31,7 @@ $gray-dark: darkgray !default;
|
|
35
31
|
.slideshow-inner {
|
36
32
|
height: 100%;
|
37
33
|
overflow: hidden;
|
34
|
+
padding-bottom: 20px;
|
38
35
|
|
39
36
|
.item {
|
40
37
|
width: 100%;
|
@@ -59,19 +56,24 @@ $gray-dark: darkgray !default;
|
|
59
56
|
}
|
60
57
|
|
61
58
|
.carousel-control {
|
62
|
-
|
59
|
+
position: absolute;
|
60
|
+
top: 0;
|
63
61
|
height: 100%;
|
64
62
|
width: 50px;
|
65
|
-
|
66
|
-
|
67
|
-
|
63
|
+
.blacklight-icons {
|
64
|
+
width: 3rem;
|
65
|
+
svg {
|
66
|
+
height: 3rem;
|
67
|
+
width: 3rem;
|
68
|
+
fill: $gray-light;
|
69
|
+
}
|
68
70
|
}
|
69
71
|
}
|
70
|
-
.carousel-control.left
|
71
|
-
|
72
|
+
.carousel-control.left {
|
73
|
+
left: 0px;
|
72
74
|
}
|
73
|
-
.carousel-control.right
|
74
|
-
|
75
|
+
.carousel-control.right {
|
76
|
+
right: 0px;
|
75
77
|
}
|
76
78
|
|
77
79
|
.caption {
|
@@ -83,7 +85,6 @@ $gray-dark: darkgray !default;
|
|
83
85
|
}
|
84
86
|
|
85
87
|
.counter {
|
86
|
-
// background-color: $gray-light;
|
87
88
|
border-radius: 12px;
|
88
89
|
border: 1px solid $gray-light;
|
89
90
|
color: $gray-light;
|
@@ -27,20 +27,19 @@
|
|
27
27
|
<% osd_config = osd_config_referencestrip.merge(osd_config) %>
|
28
28
|
|
29
29
|
<div class="col-md-6 pagination">
|
30
|
-
<a id="osd-previous"
|
30
|
+
<a id="osd-previous"><%= Blacklight::Icon.new('chevron_left').file_source %></a>'
|
31
31
|
<span id="osd-page">1</span> of <%= count %>
|
32
|
-
<a id="osd-next"
|
32
|
+
<a id="osd-next"><%= Blacklight::Icon.new('chevron_right').file_source %></a>'
|
33
33
|
</div>
|
34
34
|
<% end %>
|
35
35
|
<div class="col-md-6 controls">
|
36
|
-
<a id="osd-zoom-in"
|
37
|
-
<a id="osd-zoom-out"
|
38
|
-
<a id="osd-home"
|
39
|
-
<a id="osd-full-page"
|
36
|
+
<a id="osd-zoom-in"><%= Blacklight::Icon.new('add_circle').file_source %></a>'
|
37
|
+
<a id="osd-zoom-out"><%= Blacklight::Icon.new('remove_circle').file_source %></a>'
|
38
|
+
<a id="osd-home"><%= Blacklight::Icon.new('resize_small').file_source %></a>'
|
39
|
+
<a id="osd-full-page"><%= Blacklight::Icon.new('custom_fullscreen').file_source %></a>'
|
40
40
|
</div>
|
41
41
|
</div>
|
42
42
|
<%= openseadragon_picture_tag image, class: 'osd-image row', data: { openseadragon: osd_config } %>
|
43
43
|
</div>
|
44
44
|
|
45
45
|
<% end %>
|
46
|
-
|
@@ -6,11 +6,10 @@
|
|
6
6
|
|
7
7
|
<!-- Controls -->
|
8
8
|
<a class="left carousel-control prev" href="#slideshow" data-slide="prev">
|
9
|
-
|
9
|
+
<%= blacklight_icon 'chevron_left' %>
|
10
10
|
</a>
|
11
11
|
<a class="right carousel-control next" href="#slideshow" data-slide="next">
|
12
|
-
|
12
|
+
<%= blacklight_icon 'chevron_right' %>
|
13
13
|
</a>
|
14
14
|
|
15
15
|
</div>
|
16
|
-
|
@@ -3,7 +3,9 @@
|
|
3
3
|
<div class="modal-dialog col-md-10">
|
4
4
|
<div class="modal-content">
|
5
5
|
<div class="modal-header">
|
6
|
-
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"
|
6
|
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
|
7
|
+
×
|
8
|
+
</button>
|
7
9
|
</div>
|
8
10
|
<div class="modal-body">
|
9
11
|
<%= yield %>
|
@@ -11,4 +13,3 @@
|
|
11
13
|
</div>
|
12
14
|
</div>
|
13
15
|
</div>
|
14
|
-
|
data/blacklight-gallery.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency "rails"
|
20
|
+
spec.add_dependency "rails", '~> 5.1'
|
21
21
|
spec.add_dependency 'blacklight', '~> 7.0'
|
22
22
|
spec.add_dependency "bootstrap", "~> 4.0"
|
23
23
|
spec.add_dependency "openseadragon", ">= 0.2.0"
|
@@ -0,0 +1 @@
|
|
1
|
+
gem 'sprockets', '< 4'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-gallery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: blacklight
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,15 +228,20 @@ extensions: []
|
|
228
228
|
extra_rdoc_files: []
|
229
229
|
files:
|
230
230
|
- ".gitignore"
|
231
|
+
- ".solr_wrapper.yml"
|
231
232
|
- ".travis.yml"
|
232
233
|
- Gemfile
|
233
234
|
- LICENSE.txt
|
234
235
|
- README.md
|
235
236
|
- Rakefile
|
237
|
+
- app/assets/images/blacklight/add_circle.svg
|
238
|
+
- app/assets/images/blacklight/chevron_left.svg
|
239
|
+
- app/assets/images/blacklight/chevron_right.svg
|
240
|
+
- app/assets/images/blacklight/custom_fullscreen.svg
|
236
241
|
- app/assets/images/blacklight/gallery.svg
|
237
|
-
- app/assets/images/blacklight/gallery/view-icon-masonry.png
|
238
|
-
- app/assets/images/blacklight/gallery/view-icon-masonry@2x.png
|
239
242
|
- app/assets/images/blacklight/masonry.svg
|
243
|
+
- app/assets/images/blacklight/remove_circle.svg
|
244
|
+
- app/assets/images/blacklight/resize_small.svg
|
240
245
|
- app/assets/images/blacklight/slideshow.svg
|
241
246
|
- app/assets/javascripts/blacklight_gallery/default.js
|
242
247
|
- app/assets/javascripts/blacklight_gallery/masonry.js
|
Binary file
|
Binary file
|