Compare commits

...

5 commits

Author SHA1 Message Date
649f42403f
show filtered paper count 2023-06-16 21:12:47 +02:00
4f8ab93b0d
extend search 2023-06-16 21:11:38 +02:00
6a247c8135
rename Glossar to Dokumentation 2023-06-16 21:10:21 +02:00
c8433cd163
improve styles 2023-06-16 21:09:51 +02:00
90f599294a
specify search examples 2023-06-16 21:08:16 +02:00
3 changed files with 10 additions and 6 deletions

View file

@ -34,7 +34,7 @@ export default {
let filteredPapers: Papers[] = this.papers
if (paperQuery !== '') {
filteredPapers = this.papers.filter((paper) => {
return paper.name.toLowerCase().includes(paperQuery.toLowerCase())
return paper.name.toLowerCase().includes(paperQuery.toLowerCase()) || paper.content.toLowerCase().includes(paperQuery.toLowerCase()) || paper.reference.toLowerCase().includes(paperQuery.toLowerCase())
})
}
if (this.paperFilter?.type !== '') {
@ -64,7 +64,11 @@ export default {
v-if="filteredData.length"
class="w-full grid grid-flow-row gap-2 my-2"
>
<li v-for="(paper, i) in filteredData" :key="i">
<p>Wir konnten {{ filteredData.length }} Einträge finden</p>
<li
v-for="(paper, i) in filteredData"
:key="i"
>
<article
class="p-4 rounded-lg bg-background-100 dark:bg-background-900"
@click.prevent="openPaper()"

View file

@ -24,9 +24,9 @@ export default {
<form class="sticky top-0 flex flex-row place-content-center">
<div class="flex flex-row w-full max-w-5xl">
<input
class="p-6 grow bg-transparent placeholder:text-text-200 text-2xl text-center focus-visible:outline focus-visible:outline-current"
class="p-6 grow bg-transparent placeholder:text-text-300 dark:placeholder:text-text-700 text-2xl text-center focus-visible:outline focus-visible:outline-current"
type="search"
placeholder="z. B. XY"
placeholder="z. B. Thema, Name, VII-EF-08640, …"
v-model="search.value"
@keyup.alt.enter.exact="submit('assist')"
@keyup.enter.exact="submit('filter')"

View file

@ -20,8 +20,8 @@ app.config.globalProperties = {
uri: '/karte'
},
2: {
name: 'Glossar',
uri: '/glossar'
name: 'Dokumentation',
uri: '/doku'
}
},
footerMenuEntries: {