Einfache Ansicht für Klienten (0.57.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 8m49s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 8m47s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 8m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 9m24s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 11m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 12m4s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m37s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 45s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m12s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 10m41s

Rollen-Schalter simple_ui: größere Schrift, Leichte Sprache automatisch,
Startseite mit großen Kacheln; Hinweis in „Was sieht wer?“.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-30 16:34:14 +00:00
parent cd5b23d166
commit b967c16b6d
147 changed files with 550 additions and 380 deletions

View file

@ -1,6 +1,6 @@
<script setup>
import { ref, watch } from 'vue';
import { router } from '@inertiajs/vue3';
import { onMounted, ref, watch } from 'vue';
import { router, usePage } from '@inertiajs/vue3';
import { BookOpenText, LoaderCircle, PencilLine, Sparkles, TriangleAlert } from '@lucide/vue';
import { toast } from 'vue-sonner';
import { Button } from '@/components/ui/button';
@ -24,6 +24,12 @@ const showEasy = defineModel({ type: Boolean, default: false });
const reader = ref(null);
watch(showEasy, () => reader.value?.stop());
// Einfache Ansicht (z. B. Klienten): Leichte Sprache von selbst, wo es sie gibt
const page = usePage();
onMounted(() => {
if (page.props.auth?.user?.simple && props.easy?.html) showEasy.value = true;
});
// Bearbeiten
const editing = ref(false);
const draft = ref('');