Globale Live-Suche, Kontaktkarten-Personensuche, neue Beitragsansicht, Termine mit Seitenleiste, Demo-Inhalte, Plugin-Upload-Fix
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m24s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m26s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m31s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m18s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m24s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m26s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m31s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m18s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9b06e65802
commit
b276e1c6d0
211 changed files with 3580 additions and 1072 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<script setup>
|
||||
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
import { Head, Link, router, usePage } from '@inertiajs/vue3';
|
||||
import { Head, Link, usePage } from '@inertiajs/vue3';
|
||||
import { ChevronDown, LogOut, Menu, Monitor, Moon, Search, Settings, Sun, UserRound, UserRoundPen } from '@lucide/vue';
|
||||
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from '@/components/ui/sheet';
|
||||
import {
|
||||
|
|
@ -19,6 +19,7 @@ import NotificationBell from '@/components/NotificationBell.vue';
|
|||
import PersonAvatar from '@/components/PersonAvatar.vue';
|
||||
import NavLink from '@/components/nav/NavLink.vue';
|
||||
import AppIcon from '@/components/AppIcon.vue';
|
||||
import GlobalSearchBox from '@/components/GlobalSearchBox.vue';
|
||||
import { useThemePreference } from '@/composables/useThemePreference';
|
||||
|
||||
defineProps({
|
||||
|
|
@ -79,12 +80,8 @@ const navMore = computed(() => navigation.value.slice(navFit.value));
|
|||
const { preference, setPreference } = useThemePreference();
|
||||
|
||||
const mobileNavOpen = ref(false);
|
||||
// Nur im Personenverzeichnis vorbelegen – andere Seiten nutzen ?q= für ihre eigene Suche.
|
||||
const search = ref(page.url.startsWith('/personen?') ? (new URLSearchParams(page.url.split('?')[1]).get('q') ?? '') : '');
|
||||
|
||||
function submitSearch() {
|
||||
router.get('/personen', search.value ? { q: search.value } : {});
|
||||
}
|
||||
// Auf der Ergebnisseite den Suchbegriff im Feld stehen lassen
|
||||
const searchQuery = page.url.startsWith('/suche?') ? (new URLSearchParams(page.url.split('?')[1]).get('q') ?? '') : '';
|
||||
|
||||
const themeOptions = [
|
||||
{ value: 'system', label: 'Wie im System', icon: Monitor },
|
||||
|
|
@ -150,11 +147,13 @@ const themeOptions = [
|
|||
|
||||
<nav ref="navBox" class="relative hidden h-full min-w-0 flex-1 lg:block" aria-label="Hauptnavigation">
|
||||
<!-- Unsichtbare Kopie zum Messen der Breiten -->
|
||||
<ul ref="navMeasure" class="pointer-events-none invisible absolute flex gap-1" aria-hidden="true">
|
||||
<li v-for="item in navigation" :key="item.key" class="flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap">
|
||||
<AppIcon v-if="item.icon" :name="item.icon" class="size-4" />{{ item.label }}<ChevronDown v-if="item.children.length" class="size-4" />
|
||||
</li>
|
||||
</ul>
|
||||
<div class="pointer-events-none invisible absolute inset-0 overflow-hidden" aria-hidden="true">
|
||||
<ul ref="navMeasure" class="flex w-max gap-1">
|
||||
<li v-for="item in navigation" :key="item.key" class="flex items-center gap-1.5 px-3 text-sm font-medium whitespace-nowrap">
|
||||
<AppIcon v-if="item.icon" :name="item.icon" class="size-4" />{{ item.label }}<ChevronDown v-if="item.children.length" class="size-4" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="flex h-full items-stretch gap-1">
|
||||
<li v-for="item in navVisible" :key="item.key" class="flex">
|
||||
<DropdownMenu v-if="item.children.length">
|
||||
|
|
@ -224,20 +223,9 @@ const themeOptions = [
|
|||
</nav>
|
||||
|
||||
<div class="ml-auto flex shrink-0 items-center gap-1">
|
||||
<form class="mr-2 hidden w-64 md:block xl:w-80" role="search" @submit.prevent="submitSearch">
|
||||
<label class="relative block">
|
||||
<span class="sr-only">Personen suchen</span>
|
||||
<Search class="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
|
||||
<input
|
||||
v-model="search"
|
||||
type="search"
|
||||
placeholder="Personen suchen …"
|
||||
class="h-10 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none"
|
||||
/>
|
||||
</label>
|
||||
</form>
|
||||
<GlobalSearchBox :initial="searchQuery" class="mr-2 hidden w-64 md:block xl:w-80" />
|
||||
|
||||
<Link href="/personen" class="grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden" aria-label="Personen suchen">
|
||||
<Link href="/suche" class="grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden" aria-label="Portal durchsuchen">
|
||||
<Search class="size-5" />
|
||||
</Link>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue