Added support for pass custom search transform

This commit is contained in:
squidfunk 2020-03-27 16:59:25 +01:00
parent 635343544e
commit 64caf62835
6 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.b5589e46.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.b5589e46.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.aa7a7592.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.aa7a7592.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.3340e0de.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.3340e0de.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.3bc815f0.min.js",

View File

@ -175,7 +175,7 @@
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.3340e0de.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.b5589e46.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.aa7a7592.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -266,7 +266,7 @@ export function initialize(config: unknown) {
/* Mount search query */
const query$ = useComponent("search-query")
.pipe(
mountSearchQuery(worker),
mountSearchQuery(worker, { transform: config.search.transform }),
shareReplay(1)
)