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>
35 lines
1.5 KiB
Vue
35 lines
1.5 KiB
Vue
<script setup>
|
||
import { pluginComponent } from '@/lib/pluginComponents';
|
||
import { defineAsyncComponent } from 'vue';
|
||
import PageHeader from '@/components/PageHeader.vue';
|
||
import AppLayout from '@/layouts/AppLayout.vue';
|
||
|
||
/**
|
||
* Redaktion: Arbeitslisten der Plugins („<plugin>::Name“ aus plugins-core/<plugin>/resources/js/editorial).
|
||
*/
|
||
defineProps({
|
||
sections: { type: Array, required: true },
|
||
});
|
||
|
||
const loaders = import.meta.glob('../../../../plugins-core/*/resources/js/editorial/*.vue');
|
||
const components = {};
|
||
|
||
for (const [path, loader] of Object.entries(loaders)) {
|
||
const [, slug] = path.match(/plugins-core\/([^/]+)\//);
|
||
components[`${slug}::${path.split('/').pop().replace('.vue', '')}`] = defineAsyncComponent(loader);
|
||
}
|
||
|
||
// Abschnitte des Kerns („core::Name“ aus resources/js/components/editorial), z. B. die Mediathek.
|
||
for (const [path, loader] of Object.entries(import.meta.glob('../../components/editorial/*.vue'))) {
|
||
components[`core::${path.split('/').pop().replace('.vue', '')}`] = defineAsyncComponent(loader);
|
||
}
|
||
</script>
|
||
|
||
<template>
|
||
<AppLayout title="Redaktion">
|
||
<PageHeader title="Redaktion" description="Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes." />
|
||
<div class="grid grid-cols-1 items-start gap-6 xl:grid-cols-2">
|
||
<component :is="components[section.component] ?? pluginComponent(section.component, 'editorial')" v-for="section in sections" :key="section.key" v-bind="section.props" class="min-w-0" />
|
||
</div>
|
||
</AppLayout>
|
||
</template>
|