Plugin-SDK: Oberflächen für Kunden-Plugins, Generator, Doku (0.20.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m46s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m29s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m12s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m33s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m46s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m29s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m12s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
46b7b05f94
commit
ea2200cb3e
353 changed files with 2151 additions and 1542 deletions
|
|
@ -1,8 +1,16 @@
|
|||
import '../css/app.css';
|
||||
import 'vue-sonner/style.css';
|
||||
|
||||
import { createApp, h } from 'vue';
|
||||
import { createInertiaApp } from '@inertiajs/vue3';
|
||||
import * as Vue from 'vue';
|
||||
import * as Inertia from '@inertiajs/vue3';
|
||||
import * as InhausUi from './sdk/ui';
|
||||
import { loadPluginPage } from './lib/pluginComponents';
|
||||
|
||||
const { createApp, h } = Vue;
|
||||
const { createInertiaApp } = Inertia;
|
||||
|
||||
// Plugin-SDK: Module für die Import Map (public/sdk/*.js) – Plugins nutzen dieselben Instanzen.
|
||||
window.__inhaus = { modules: { vue: Vue, '@inertiajs/vue3': Inertia, '@inhaus/ui': InhausUi } };
|
||||
|
||||
createInertiaApp({
|
||||
title: (title, page) => {
|
||||
|
|
@ -19,6 +27,13 @@ createInertiaApp({
|
|||
const [plugin, pageName] = name.includes('::') ? name.split('::') : [null, name];
|
||||
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)
|
||||
if (!page && plugin) {
|
||||
const remote = loadPluginPage(name);
|
||||
|
||||
if (remote) return remote;
|
||||
}
|
||||
|
||||
if (!page) {
|
||||
throw new Error(`Seite nicht gefunden: ${name}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue