Loheide-eu-mitarbeiterplatt.../resources/js/lib/pluginFrame.js
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

23 lines
732 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 { defineComponent, h, provide } from 'vue';
import AppLayout from '@/layouts/AppLayout.vue';
export const FRAME = Symbol('inhaus:frame');
/**
* Legt den Portalrahmen um eine Seite aus einem Kunden-Plugin. So kommt das Äußere immer vom
* Portal selbst – ein Plugin kann ihn weder weglassen noch ersetzen, und Änderungen am Rahmen
* gelten ohne Plugin-Update.
*/
export function framePluginPage(module, name) {
const page = module.default ?? module;
return defineComponent({
name: `PluginPage(${name})`,
inheritAttrs: false,
setup(_, { attrs }) {
provide(FRAME, true);
return () => h(AppLayout, null, { default: () => h(page, attrs) });
},
});
}