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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 913cb13022a835407afc868fd4ddd875f40034ec639a26ea9e9fba94f89c1bfd
4
- data.tar.gz: 4507042c61c539708cc64104c5ec65e650b6dd2e3ccbbe406ea88c17539c5eb8
3
+ metadata.gz: 4927245e76448f9fc8b4f8ca2a14afe04c1c5c5c794a84826d0da6b618ab18e4
4
+ data.tar.gz: 0eb3ee4d9293f8575e8d134e770480a7fb7b400378cb83d80d4aaeec9cf8fe58
5
5
  SHA512:
6
- metadata.gz: d24fd936206d879b1aa8df6e30b6dbb9e9801ac3a994638c93c1a294d55e9f2d359032fbe7cb60744df7749993d37271be30f631105e093f8e75ed06a0908443
7
- data.tar.gz: 1a58a476b12d45acd79752564bcb7474161884e7d0bf30dc9278fa61dbc6e90c010f826ca807f2e51722fb3eb9c3951baa97830f182b78f4d6898e7cd3ad6299
6
+ metadata.gz: 599c4e4e4def663a47eed40f9c830afd39b289b2815e313f688052cfa622c7c6610a951df96fe8b0750102e091efbb0a4644c1a70fd9b7d9276069d81a55a72a
7
+ data.tar.gz: b8c730e6e13a9e9b1617d1f440d04a9e953d136f507bbf0cb2048952e7f2ce1ccc3f9a9cedf0655da8e072a29fda5998c45d953f8325cedbe2ba238149747899
data/.solr_wrapper.yml ADDED
@@ -0,0 +1,5 @@
1
+ # Place any default configuration for solr_wrapper here
2
+ # port: 8983
3
+ collection:
4
+ dir: solr/conf/
5
+ name: blacklight-core
@@ -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
- <?xml version="1.0" encoding="UTF-8"?>
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
- <?xml version="1.0" encoding="UTF-8"?>
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
- <?xml version="1.0" encoding="UTF-8"?>
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,7 +1,3 @@
1
- .view-icon-gallery {
2
- &:before { content: "\e011"; }
3
- }
4
-
5
1
  .gallery {
6
2
 
7
3
  display: -webkit-box;
@@ -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: darkgray !default;
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
- background-image: none;
59
+ position: absolute;
60
+ top: 0;
63
61
  height: 100%;
64
62
  width: 50px;
65
-
66
- .glyphicon {
67
- color: $gray-light;
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 .glyphicon {
71
- padding-right: 3px;
72
+ .carousel-control.left {
73
+ left: 0px;
72
74
  }
73
- .carousel-control.right .glyphicon {
74
- padding-left: 2px;
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"><span class="glyphicon glyphicon-chevron-left"></span></a>
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"><span class="glyphicon glyphicon-chevron-right"></span></a>
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"><span class="glyphicon glyphicon-plus-sign"></span></a>
37
- <a id="osd-zoom-out"><span class="glyphicon glyphicon-minus-sign"></span></a>
38
- <a id="osd-home"><span class="glyphicon glyphicon-resize-small"></span></a>
39
- <a id="osd-full-page"><span class="glyphicon glyphicon-fullscreen"></span></a>
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
- <span class="glyphicon glyphicon-chevron-left"></span>
9
+ <%= blacklight_icon 'chevron_left' %>
10
10
  </a>
11
11
  <a class="right carousel-control next" href="#slideshow" data-slide="next">
12
- <span class="glyphicon glyphicon-chevron-right"></span>
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"><span class="glyphicon glyphicon-remove"></span></button>
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
-
@@ -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"
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "1.1.1"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -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.1.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-13 00:00:00.000000000 Z
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: '0'
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: '0'
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