Neuer Seitenrahmen (0.50.0)
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
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
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>
This commit is contained in:
parent
d1d2b33760
commit
e191fb03b0
349 changed files with 1751 additions and 1623 deletions
|
|
@ -6,7 +6,7 @@ import * as Inertia from '@inertiajs/vue3';
|
|||
import * as InhausUi from './sdk/ui';
|
||||
import { registerServiceWorker } from './lib/push';
|
||||
import { loadPluginPage } from './lib/pluginComponents';
|
||||
import { framePluginPage } from './lib/pluginFrame';
|
||||
import { withFrame } from './lib/withFrame';
|
||||
|
||||
const { createApp, h } = Vue;
|
||||
const { createInertiaApp } = Inertia;
|
||||
|
|
@ -30,18 +30,18 @@ createInertiaApp({
|
|||
const page = plugin ? pages[`../../plugins-core/${plugin}/resources/js/pages/${pageName}.vue`] : pages[`./pages/${name}.vue`];
|
||||
|
||||
// Separat installierte Plugins liefern ihre Seiten vorkompiliert mit (Plugin-SDK);
|
||||
// den Rahmen legt das Portal selbst darum
|
||||
// den Rahmen legt das Portal selbst darum (lib/withFrame.js)
|
||||
if (!page && plugin) {
|
||||
const remote = loadPluginPage(name);
|
||||
|
||||
if (remote) return remote.then((module) => framePluginPage(module, name));
|
||||
if (remote) return remote.then((module) => withFrame(module, { plugin: true }));
|
||||
}
|
||||
|
||||
if (!page) {
|
||||
throw new Error(`Seite nicht gefunden: ${name}`);
|
||||
}
|
||||
|
||||
return page();
|
||||
return page().then((module) => withFrame(module));
|
||||
},
|
||||
setup({ el, App, props, plugin }) {
|
||||
createApp({ render: () => h(App, props) })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue