lbenicio-minimal-v1 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/assets/vendor/search.js +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7439cd8aa881ed14eb4c42b12b31ac138ccd672259d4605c5f66398cef0e71b3
4
- data.tar.gz: daa0f614ba299e8b336669567d2b2128fd0426c79f5f7c9c4008ec4fad3d934a
3
+ metadata.gz: 90ba3f252988199fd40699e066f7ae5af2a49cdc6a0a34f84337010e0309c96d
4
+ data.tar.gz: 4444754f9b73cc72a259cacc97e2caf98a6e0e9b1f2d7670db654606ec5a50d9
5
5
  SHA512:
6
- metadata.gz: 4b79bb85480f180aa14ee7df305a4aeb5b3a1286ab4e81b004f8e664dd29e4f1fc0afd8ff763db4cf25f9513e5b3a65436e3c430384e56ce8b04b3957b7a5098
7
- data.tar.gz: 2afe45a7a53018d14ae6896fa71868ede217a6155067ab1747ac6094406ccb6c7cb1b1fc552914a7c71b285967739a7799fc76e0a690b5ae10fd8523b3c9bc9f
6
+ metadata.gz: 7a97affc27e1595df3a4e06864a759d9919cf0c36ecc04f23a5947908319e6ac692757b9ba0917751612ec0ee296d1a2483b84f0be943a930f94f07dbde092c8
7
+ data.tar.gz: 32770cf102d2ca8f1bde6db964f5117980abfb6b1ee4118b9fed493a9a1d8769457c645a72b47351fccb137a9a1ffc1cd94a103dd54c4626dc061b760359dbf6
@@ -1 +1 @@
1
- function app(e){var t=instantsearch({searchClient:algoliasearch(e.appId,e.apiKey),indexName:e.indexName,routing:!0,searchFunction:e.searchFunction});t.addWidgets([instantsearch.widgets.searchBox({container:"#search-input",placeholder:"Search for ..."}),instantsearch.widgets.hits({container:"#hits",templates:{item:function(e){var t=""!==document.querySelector("input.ais-SearchBox-input").value,n=document.querySelector("section#search-box div#pagination"),a=document.querySelector("section#search-box div#stats"),s=document.querySelector("section#search-box div#sort-by-wrapper"),i=document.querySelector("section#search-box div#right-column");return t?(n.classList.remove("d-none"),a.classList.remove("d-none"),s.classList.remove("d-none"),i.classList.remove("d-none")):(n.classList.add("d-none"),a.classList.add("d-none"),s.classList.add("d-none"),i.classList.add("d-none")),t&&e.image,""},empty:getTemplate("no-results")}}),instantsearch.widgets.stats({container:"#stats"}),instantsearch.widgets.sortBy({container:"#sort-by",items:[{value:e.indexName,label:"Most relevant"}]}),instantsearch.widgets.pagination({container:"#pagination",scrollTo:"#search-input"})]),t.start()}function getTemplate(e){return document.querySelector("#"+e+"-template").innerHTML}function getHeader(e){return"<h5>"+e+"</h5>"}
1
+ function app(e){var t=instantsearch({searchClient:algoliasearch(e.appId,e.apiKey),indexName:e.indexName,routing:!0,searchFunction:e.searchFunction});t.addWidgets([instantsearch.widgets.searchBox({container:"#search-input",placeholder:"Search for ..."}),instantsearch.widgets.hits({container:"#hits",templates:{item:function(e){var t=""!==document.querySelector("input.ais-SearchBox-input").value,n=document.querySelector("section#search-box div#pagination"),a=document.querySelector("section#search-box div#stats"),s=document.querySelector("section#search-box div#sort-by-wrapper"),i=document.querySelector("section#search-box div#right-column");return t?(n.classList.remove("d-none"),a.classList.remove("d-none"),s.classList.remove("d-none"),i.classList.remove("d-none")):(n.classList.add("d-none"),a.classList.add("d-none"),s.classList.add("d-none"),i.classList.add("d-none")),t?'<div class="hit"><div class="hit-image '+(e.image?"":"d-none")+'"><img src="'+e.image+'" alt="'+e.name+'"></div><div class="hit-content"><h5 class="hit-name"><a href="'+e.url+'">'+e.title+'</a></h5><p class="hit-description"><a href="'+e.url+'">'+e.content.slice(0,300)+"</a></p></div></div>":""},empty:getTemplate("no-results")}}),instantsearch.widgets.stats({container:"#stats"}),instantsearch.widgets.sortBy({container:"#sort-by",items:[{value:e.indexName,label:"Most relevant"}]}),instantsearch.widgets.pagination({container:"#pagination",scrollTo:"#search-input"})]),t.start()}function getTemplate(e){return document.querySelector("#"+e+"-template").innerHTML}function getHeader(e){return"<h5>"+e+"</h5>"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbenicio-minimal-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Benicio