Compare commits

..

No commits in common. "649f42403f55e5268e57eed518bac0a5d8f1f03d" and "f293a484869451da4117ffdc972a5dafd55fdabb" have entirely different histories.

3 changed files with 6 additions and 10 deletions

View file

@ -34,7 +34,7 @@ export default {
let filteredPapers: Papers[] = this.papers let filteredPapers: Papers[] = this.papers
if (paperQuery !== '') { if (paperQuery !== '') {
filteredPapers = this.papers.filter((paper) => { 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 !== '') { if (this.paperFilter?.type !== '') {
@ -64,11 +64,7 @@ export default {
v-if="filteredData.length" v-if="filteredData.length"
class="w-full grid grid-flow-row gap-2 my-2" 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 <article
class="p-4 rounded-lg bg-background-100 dark:bg-background-900" class="p-4 rounded-lg bg-background-100 dark:bg-background-900"
@click.prevent="openPaper()" @click.prevent="openPaper()"

View file

@ -24,9 +24,9 @@ export default {
<form class="sticky top-0 flex flex-row place-content-center"> <form class="sticky top-0 flex flex-row place-content-center">
<div class="flex flex-row w-full max-w-5xl"> <div class="flex flex-row w-full max-w-5xl">
<input <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" type="search"
placeholder="z. B. Thema, Name, VII-EF-08640, …" placeholder="z. B. XY"
v-model="search.value" v-model="search.value"
@keyup.alt.enter.exact="submit('assist')" @keyup.alt.enter.exact="submit('assist')"
@keyup.enter.exact="submit('filter')" @keyup.enter.exact="submit('filter')"

View file

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