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.
- checksums.yaml +4 -4
- data/assets/vendor/search.js +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90ba3f252988199fd40699e066f7ae5af2a49cdc6a0a34f84337010e0309c96d
|
4
|
+
data.tar.gz: 4444754f9b73cc72a259cacc97e2caf98a6e0e9b1f2d7670db654606ec5a50d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a97affc27e1595df3a4e06864a759d9919cf0c36ecc04f23a5947908319e6ac692757b9ba0917751612ec0ee296d1a2483b84f0be943a930f94f07dbde092c8
|
7
|
+
data.tar.gz: 32770cf102d2ca8f1bde6db964f5117980abfb6b1ee4118b9fed493a9a1d8769457c645a72b47351fccb137a9a1ffc1cd94a103dd54c4626dc061b760359dbf6
|
data/assets/vendor/search.js
CHANGED
@@ -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
|
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>"}
|