Loheide-eu-mitarbeiterplatt.../resources/js/lib/withFrame.js
Friederich Loheide e191fb03b0
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m20s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m44s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m13s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m13s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m0s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 43s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Neuer Seitenrahmen (0.50.0)
Bleibendes Inertia-Layout (PortalFrame) mit festem Seitenkopf-Bereich;
PageHeader teleportiert dorthin, AppLayout meldet Titel und Seitenvorlage
(default/medium/narrow/app). Seiten ohne Kopf bekommen einen vom Rahmen.

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

17 lines
612 B
JavaScript
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.

import PortalFrame from '@/layouts/PortalFrame.vue';
/**
* Seiten erhalten den Portalrahmen als bleibendes Layout (Inertia): Er wird nicht bei jedem
* Seitenwechsel neu aufgebaut. Mitgelieferte Seiten ohne Rahmen (Anmeldung, Editoren, Druck)
* schalten ihn mit defineOptions({ frame: false }) ab. Seiten aus Kunden-Plugins bekommen ihn
* immer – so kommt das Äußere stets vom Portal selbst.
*/
export function withFrame(module, { plugin = false } = {}) {
const page = module.default ?? module;
if (plugin || page.frame !== false) {
page.layout = PortalFrame;
}
return page;
}