Einheitliche Listen (0.61.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 9m26s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 9m11s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 9m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 9m31s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m3s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m1s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m30s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 46s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 11m28s

Gemeinsame Werkzeugleiste ListToolbar (Filter-Chips, Suche, Sortierung,
Kacheln/Liste) für Neuigkeiten, Stellen, Ideen und Personen; im SDK für Plugins.
Neuigkeiten durchsuchbar.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-10-06 20:12:57 +00:00
parent 8fbe32ed5c
commit 9cb34635bc
167 changed files with 644 additions and 482 deletions

View file

@ -0,0 +1,29 @@
import { ref, watch } from 'vue';
/**
* Kacheln oder Liste – je Seite im Browser gemerkt (@inhaus/ui: useListView).
*
* const view = useListView('verleih', 'grid');
*/
export function useListView(key, fallback = 'grid') {
const storageKey = `inhaus:ansicht:${key}`;
let initial = fallback;
try {
const stored = localStorage.getItem(storageKey);
if (stored === 'grid' || stored === 'list') initial = stored;
} catch {
// ohne Speicher: Standard
}
const view = ref(initial);
watch(view, (value) => {
try {
localStorage.setItem(storageKey, value);
} catch {
// egal
}
});
return view;
}