Compare commits
No commits in common. "649f42403f55e5268e57eed518bac0a5d8f1f03d" and "f293a484869451da4117ffdc972a5dafd55fdabb" have entirely different histories.
649f42403f
...
f293a48486
3 changed files with 6 additions and 10 deletions
|
@ -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()) || paper.content.toLowerCase().includes(paperQuery.toLowerCase()) || paper.reference.toLowerCase().includes(paperQuery.toLowerCase())
|
||||
return paper.name.toLowerCase().includes(paperQuery.toLowerCase())
|
||||
})
|
||||
}
|
||||
if (this.paperFilter?.type !== '') {
|
||||
|
@ -64,11 +64,7 @@ export default {
|
|||
v-if="filteredData.length"
|
||||
class="w-full grid grid-flow-row gap-2 my-2"
|
||||
>
|
||||
<p>Wir konnten {{ filteredData.length }} Einträge finden</p>
|
||||
<li
|
||||
v-for="(paper, i) in filteredData"
|
||||
:key="i"
|
||||
>
|
||||
<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()"
|
||||
|
|
|
@ -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-300 dark:placeholder:text-text-700 text-2xl text-center focus-visible:outline focus-visible:outline-current"
|
||||
class="p-6 grow bg-transparent placeholder:text-text-200 text-2xl text-center focus-visible:outline focus-visible:outline-current"
|
||||
type="search"
|
||||
placeholder="z. B. Thema, Name, VII-EF-08640, …"
|
||||
placeholder="z. B. XY"
|
||||
v-model="search.value"
|
||||
@keyup.alt.enter.exact="submit('assist')"
|
||||
@keyup.enter.exact="submit('filter')"
|
||||
|
|
|
@ -20,8 +20,8 @@ app.config.globalProperties = {
|
|||
uri: '/karte'
|
||||
},
|
||||
2: {
|
||||
name: 'Dokumentation',
|
||||
uri: '/doku'
|
||||
name: 'Glossar',
|
||||
uri: '/glossar'
|
||||
}
|
||||
},
|
||||
footerMenuEntries: {
|
||||
|
|
Loading…
Reference in a new issue