Plugin-System; Neuigkeiten und Termine als mitgelieferte Plugins

- Plugins nach WordPress-Prinzip: plugin.json-Manifest mit Versions- und
  Abhängigkeitsprüfung, eigenes PSR-4-Autoloading, register()/boot(),
  activate()/deactivate()/uninstall(), Migrationen, Routen und Views je Plugin
- plugins-core/ (mitgeliefert, aktiv bis zur Deaktivierung) und plugins/
  (Kunden-Plugins, geschützt vor Updates, inaktiv bis zur Aktivierung)
- Zustand in storage/app/plugins.json – Laden ohne Datenbankabfrage
- Wiederherstellungsmodus: Ausnahmen und Fatal Errors beim Laden
  deaktivieren das Plugin, das Portal bleibt erreichbar
- Hooks (Actions/Filter mit Prioritäten) und Registries für Navigation,
  Startseiten-Kacheln, Rechte und Admin-Seiten (Filament-Discovery)
- Admin-Seite „Plugins“: aktivieren, deaktivieren, per ZIP installieren
  (ZIP-Slip-Schutz), löschen mit oder ohne Daten; abschaltbar per
  INHAUS_DISALLOW_FILE_MODS
- Startseite komplett aus Kacheln; Plugin-Seiten als „slug::Seite“
- Version 0.3.0

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 07:06:16 +00:00
parent cc0020458f
commit 28ef1e4a20
155 changed files with 2762 additions and 573 deletions

View file

@ -0,0 +1,17 @@
<script setup>
import { computed } from 'vue';
import { dateBlock } from '@/lib/format';
const props = defineProps({
date: { type: String, required: true },
});
const block = computed(() => dateBlock(props.date));
</script>
<template>
<div class="grid w-12 shrink-0 place-items-center rounded-md bg-muted py-1.5 leading-none">
<span class="text-xl font-semibold">{{ block.day }}</span>
<span class="mt-1 text-[10px] font-semibold tracking-wide text-muted-foreground">{{ block.month }}</span>
</div>
</template>

View file

@ -0,0 +1,20 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import EventDateBlock from './EventDateBlock.vue';
import { formatEventRange } from '@/lib/format';
defineProps({
event: { type: Object, required: true },
});
</script>
<template>
<Link :href="`/termine/${event.id}`" class="group flex items-start gap-3.5 py-3">
<EventDateBlock :date="event.starts_at" />
<div class="min-w-0 pt-0.5">
<h3 class="line-clamp-2 text-sm leading-snug font-semibold group-hover:underline">{{ event.title }}</h3>
<p class="mt-0.5 text-xs text-muted-foreground">{{ formatEventRange(event) }}</p>
<p v-if="event.location" class="truncate text-xs text-muted-foreground">{{ event.location }}</p>
</div>
</Link>
</template>