Loheide-eu-mitarbeiterplatt.../resources/js/layouts/PluginLayout.vue
Friederich Loheide 179471cb53
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 8m15s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m10s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m23s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m1s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 49s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
Einheitlicher Rahmen für alle Seiten (0.49.0)
Das Portal legt den Rahmen selbst um jede Plugin-Seite; AppLayout aus
@inhaus/ui setzt dort nur noch den Titel. Detailseiten nutzen PageHeader.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 04:28:23 +00:00

25 lines
791 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { inject } from 'vue';
import { Head } from '@inertiajs/vue3';
import AppLayout from '@/layouts/AppLayout.vue';
import { FRAME } from '@/lib/pluginFrame';
/**
* „AppLayout“ für Plugins (@inhaus/ui). Den Rahmen – Kopfzeile, Menü, Fußzeile – legt das Portal
* selbst um jede Plugin-Seite (siehe lib/pluginFrame.js); hier wird dann nur noch der Titel gesetzt.
* Außerhalb dieses Rahmens (ältere Portale, Vorschau) zeichnet die Komponente ihn wie bisher.
*/
defineProps({
title: { type: String, default: '' },
});
const framed = inject(FRAME, false);
</script>
<template>
<template v-if="framed">
<Head v-if="title" :title="title" />
<slot />
</template>
<AppLayout v-else :title="title"><slot /></AppLayout>
</template>