Loheide-eu-mitarbeiterplatt.../resources/js/pages/Editorial/Index.vue
Friederich Loheide baee0c7d61
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m58s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m17s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m27s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m22s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m2s
Redaktion: Überbreite auf dem Handy behoben
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 21:02:26 +00:00

34 lines
1.4 KiB
Vue
Raw 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.

<script setup>
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]" v-for="section in sections" :key="section.key" v-bind="section.props" class="min-w-0" />
</div>
</AppLayout>
</template>