diff --git a/frontend/src/lib/routes/DumpIndex.svelte b/frontend/src/lib/routes/DumpIndex.svelte index 0266222..775c7a0 100644 --- a/frontend/src/lib/routes/DumpIndex.svelte +++ b/frontend/src/lib/routes/DumpIndex.svelte @@ -4,6 +4,7 @@ import ExternalLink from "eva-icons/outline/svg/external-link-outline.svg?component"; import { fetchData, fetchErrors } from "../dump"; import { routes } from "../router"; + import type { Dataset } from "../schema"; export let params: { dumpUrl: string }; const url = decodeURIComponent(params.dumpUrl); @@ -17,6 +18,14 @@ return `https://${url}`; return url; } + + let query: string = ""; + function filterDatasets(datasets: Dataset[], query: string): Dataset[] { + return datasets.filter( + (dataset) => + dataset.identifier.includes(query) || dataset.title.includes(query), + ); + }
@@ -48,8 +57,18 @@ {/if} + +
+ +
+