Merge pull request 'Mediathek: zentrale Bildverwaltung mit Verwendungsnachweis und Bildauswahl (0.18.0)' (#24) from feature/mediathek-release into main
Some checks are pending
CI / PHP 8.3 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.4 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.3 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.4 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.3 / mysql:8.0 (push) Waiting to run
CI / PHP 8.4 / mysql:8.0 (push) Waiting to run
CI / PHP 8.3 / mysql:8.4 (push) Waiting to run
CI / PHP 8.4 / mysql:8.4 (push) Waiting to run
CI / Build-Artefakte aktuell (push) Waiting to run
Some checks are pending
CI / PHP 8.3 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.4 / mariadb:10.6 (push) Waiting to run
CI / PHP 8.3 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.4 / mariadb:11.4 (push) Waiting to run
CI / PHP 8.3 / mysql:8.0 (push) Waiting to run
CI / PHP 8.4 / mysql:8.0 (push) Waiting to run
CI / PHP 8.3 / mysql:8.4 (push) Waiting to run
CI / PHP 8.4 / mysql:8.4 (push) Waiting to run
CI / Build-Artefakte aktuell (push) Waiting to run
This commit is contained in:
commit
ab35a67406
185 changed files with 3992 additions and 792 deletions
|
|
@ -4,6 +4,15 @@ Neueste Version oben. Jeder Abschnitt beginnt mit `## MAJOR.MINOR.PATCH` und
|
|||
enthält kurze Stichpunkte für Anwenderinnen und Anwender – keine Commit-Texte.
|
||||
Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an.
|
||||
|
||||
## 0.18.0
|
||||
|
||||
- **Mediathek** (Redaktion → Mediathek, im Backend unter „Inhalte → Mediathek“): alle Bilder aus Beiträgen, Seiten, Terminen und Kacheln an einem Ort
|
||||
- Raster mit Suche und Filtern (hochgeladen von, Zeitraum, verwendet in, „nicht verwendet“), Hochladen mehrerer Bilder per Ziehen und Ablegen
|
||||
- Je Bild: große Vorschau, Maße, Größe, Alternativtext und Bildunterschrift bearbeiten und „Eingebunden in“ mit Links zu jeder Fundstelle
|
||||
- Bild ersetzen (gilt sofort überall), löschen mit Warnung und Liste der Fundstellen, ungenutzte Bilder aufräumen (Recht „Mediathek verwalten“)
|
||||
- Bereits vorhandene Bilder werden beim Update automatisch übernommen
|
||||
- **Bildauswahl in den Editoren:** In Seiten und Beiträgen lassen sich Bilder für Bild-, Galerie- und Hero-Blöcke sowie das Titelbild hochladen oder aus der Mediathek wählen – mit Suche, Filter „schon in diesem Beitrag“, Mehrfachauswahl für Galerien und Alternativtext direkt im Dialog
|
||||
|
||||
## 0.17.1
|
||||
|
||||
- IT-Service: Ist nur die Serveradresse eingetragen, wird „/api/ex“ automatisch ergänzt. Liefert die Adresse keine API-Antwort (z. B. eine Webseite), erscheint ein klarer Hinweis statt leerer Listen; „Verbindung testen“ zeigt die Anzahl von Kategorien, Standorten, Gerätetypen und Leihgeräten
|
||||
|
|
|
|||
|
|
@ -31,10 +31,13 @@ class Editorial
|
|||
unset($this->sections[$key]);
|
||||
}
|
||||
|
||||
public function visibleFor(User $user): bool
|
||||
/**
|
||||
* @param string|null $except diesen Abschnitt nicht mitprüfen (verhindert Zirkelschlüsse, z. B. „media“)
|
||||
*/
|
||||
public function visibleFor(User $user, ?string $except = null): bool
|
||||
{
|
||||
foreach ($this->sections as $section) {
|
||||
if (($section['visible'])($user)) {
|
||||
foreach ($this->sections as $key => $section) {
|
||||
if ($key !== $except && ($section['visible'])($user)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
232
app/Http/Controllers/MediaController.php
Normal file
232
app/Http/Controllers/MediaController.php
Normal file
|
|
@ -0,0 +1,232 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Media\MediaLibrary;
|
||||
use App\Media\MediaUsages;
|
||||
use App\Models\Media;
|
||||
use App\Models\MediaUsage;
|
||||
use App\Models\User;
|
||||
use App\Support\Audit;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Validation\Rule;
|
||||
use Illuminate\Validation\Rules\File;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
|
||||
/**
|
||||
* Mediathek im Portal (Redaktion) und JSON-Schnittstelle der Bildauswahl.
|
||||
* Benutzen und Hochladen: „media.use“, Ersetzen und Löschen: „media.manage“.
|
||||
*/
|
||||
class MediaController extends Controller
|
||||
{
|
||||
public const PER_PAGE = 48;
|
||||
|
||||
public function __construct(private readonly MediaLibrary $library, private readonly MediaUsages $usages) {}
|
||||
|
||||
public function index(Request $request): Response
|
||||
{
|
||||
return Inertia::render('Media/Index', [
|
||||
'filters' => (object) $request->only(['q', 'von', 'zeitraum', 'status', 'in']),
|
||||
'uploaders' => User::query()->whereIn('id', Media::query()->whereNotNull('uploaded_by')->distinct()->select('uploaded_by'))
|
||||
->orderBy('last_name')->orderBy('first_name')->get()->map(fn (User $user) => ['value' => (string) $user->id, 'label' => $user->name])->values(),
|
||||
'sources' => collect($this->usages->labels())->map(fn (string $label, string $type) => ['value' => $type, 'label' => $label])->values(),
|
||||
'canManage' => $request->user()->can('media.manage'),
|
||||
]);
|
||||
}
|
||||
|
||||
public function list(Request $request): JsonResponse
|
||||
{
|
||||
$filters = $request->validate([
|
||||
'q' => ['nullable', 'string', 'max:100'],
|
||||
'von' => ['nullable', 'integer'],
|
||||
'zeitraum' => ['nullable', Rule::in(['7', '30', '365'])],
|
||||
'status' => ['nullable', Rule::in(['unbenutzt', 'verwendet'])],
|
||||
'in' => ['nullable', 'string', 'max:60'],
|
||||
'sortierung' => ['nullable', Rule::in(['neu', 'verwendet', 'name'])],
|
||||
'pfade' => ['nullable', 'array', 'max:500'],
|
||||
'pfade.*' => ['string', 'max:255'],
|
||||
'page' => ['nullable', 'integer', 'min:1'],
|
||||
]);
|
||||
|
||||
$query = Media::query()->with('uploader:id,name')->withCount('usages');
|
||||
$this->applyFilters($query, $filters);
|
||||
|
||||
$page = $query->simplePaginate(self::PER_PAGE);
|
||||
|
||||
return response()->json([
|
||||
'items' => $page->getCollection()->map(fn (Media $media) => $media->toLibraryArray())->values(),
|
||||
'next_page' => $page->hasMorePages() ? $page->currentPage() + 1 : null,
|
||||
'total' => $page->currentPage() === 1 ? $this->countFor($filters) : null,
|
||||
]);
|
||||
}
|
||||
|
||||
public function store(Request $request): JsonResponse
|
||||
{
|
||||
$request->validate(['image' => ['required', File::image()->types(['jpg', 'jpeg', 'png', 'webp', 'gif'])->max(15 * 1024)]]);
|
||||
|
||||
$media = $this->library->store($request->file('image'), MediaLibrary::DIRECTORY, $request->user());
|
||||
$media->load('uploader:id,name')->loadCount('usages');
|
||||
|
||||
return response()->json(['media' => $media->toLibraryArray()], 201);
|
||||
}
|
||||
|
||||
public function show(Media $media): JsonResponse
|
||||
{
|
||||
$media->load('uploader:id,name')->loadCount('usages');
|
||||
$labels = $this->usages->labels();
|
||||
|
||||
return response()->json([
|
||||
'media' => $media->toLibraryArray(),
|
||||
'usages' => $media->usages()->orderBy('draft')->orderBy('source_type')->orderBy('label')->get()->map(fn (MediaUsage $usage) => [
|
||||
'id' => $usage->id,
|
||||
'type' => $usage->source_type,
|
||||
'type_label' => $labels[$usage->source_type] ?? $usage->source_type,
|
||||
'context' => $usage->context,
|
||||
'label' => $usage->label,
|
||||
'url' => $usage->url,
|
||||
'draft' => $usage->draft,
|
||||
])->values(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function update(Request $request, Media $media): JsonResponse
|
||||
{
|
||||
$data = $request->validate([
|
||||
'alt' => ['nullable', 'string', 'max:300'],
|
||||
'caption' => ['nullable', 'string', 'max:500'],
|
||||
'tags' => ['nullable', 'array', 'max:20'],
|
||||
'tags.*' => ['string', 'max:40'],
|
||||
]);
|
||||
|
||||
$tags = isset($data['tags']) ? array_values(array_unique(array_filter(array_map(fn ($tag) => trim((string) $tag), $data['tags'])))) : ($media->tags ?? []);
|
||||
|
||||
$media->forceFill([
|
||||
'alt' => array_key_exists('alt', $data) ? (trim((string) $data['alt']) ?: null) : $media->alt,
|
||||
'caption' => array_key_exists('caption', $data) ? (trim((string) $data['caption']) ?: null) : $media->caption,
|
||||
'tags' => $tags ?: null,
|
||||
]);
|
||||
|
||||
// Nur Metadaten: updated_at nicht anfassen, sonst ändern sich alle Bildadressen („?v=“).
|
||||
Media::withoutTimestamps(fn () => $media->save());
|
||||
|
||||
return response()->json(['media' => $media->loadCount('usages')->load('uploader:id,name')->toLibraryArray()]);
|
||||
}
|
||||
|
||||
public function replace(Request $request, Media $media): JsonResponse
|
||||
{
|
||||
Gate::authorize('media.manage');
|
||||
$request->validate(['image' => ['required', File::image()->types(['jpg', 'jpeg', 'png', 'webp', 'gif'])->max(15 * 1024)]]);
|
||||
|
||||
$this->library->replace($media, $request->file('image'));
|
||||
Audit::log('media.replaced', ['media' => $media->id, 'path' => $media->path]);
|
||||
|
||||
return response()->json(['media' => $media->loadCount('usages')->load('uploader:id,name')->toLibraryArray()]);
|
||||
}
|
||||
|
||||
public function destroy(Media $media): JsonResponse
|
||||
{
|
||||
Gate::authorize('media.manage');
|
||||
|
||||
$usages = $media->usages()->count();
|
||||
$this->library->delete($media);
|
||||
Audit::log('media.deleted', ['media' => $media->id, 'path' => $media->path, 'usages' => $usages]);
|
||||
|
||||
return response()->json(['deleted' => 1]);
|
||||
}
|
||||
|
||||
public function bulkDestroy(Request $request): JsonResponse
|
||||
{
|
||||
Gate::authorize('media.manage');
|
||||
$data = $request->validate([
|
||||
'ids' => ['required', 'array', 'max:500'],
|
||||
'ids.*' => ['integer'],
|
||||
'only_unused' => ['boolean'],
|
||||
]);
|
||||
|
||||
$deleted = 0;
|
||||
|
||||
Media::query()->whereIn('id', $data['ids'])
|
||||
->when($data['only_unused'] ?? false, fn (Builder $q) => $q->doesntHave('usages'))
|
||||
->get()->each(function (Media $media) use (&$deleted) {
|
||||
$this->library->delete($media);
|
||||
$deleted++;
|
||||
});
|
||||
|
||||
Audit::log('media.bulk_deleted', ['count' => $deleted]);
|
||||
|
||||
return response()->json(['deleted' => $deleted]);
|
||||
}
|
||||
|
||||
public function download(Media $media): StreamedResponse
|
||||
{
|
||||
$disk = Storage::disk($media->disk ?: MediaLibrary::DISK);
|
||||
abort_unless($disk->exists($media->path), 404);
|
||||
|
||||
$extension = pathinfo($media->path, PATHINFO_EXTENSION);
|
||||
$name = pathinfo($media->displayName(), PATHINFO_FILENAME) ?: 'bild';
|
||||
|
||||
return $disk->download($media->path, $name.'.'.$extension);
|
||||
}
|
||||
|
||||
public function rebuild(): JsonResponse
|
||||
{
|
||||
Gate::authorize('media.manage');
|
||||
|
||||
$result = $this->library->rebuild();
|
||||
Audit::log('media.rebuilt', $result);
|
||||
|
||||
return response()->json($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Builder<Media> $query
|
||||
* @param array<string, mixed> $filters
|
||||
*/
|
||||
private function applyFilters(Builder $query, array $filters, bool $sort = true): void
|
||||
{
|
||||
if ($term = trim((string) ($filters['q'] ?? ''))) {
|
||||
$like = '%'.str_replace(['\\', '%', '_'], ['\\\\', '\%', '\_'], $term).'%';
|
||||
$query->where(fn (Builder $q) => $q
|
||||
->where('original_name', 'like', $like)
|
||||
->orWhere('alt', 'like', $like)
|
||||
->orWhere('caption', 'like', $like)
|
||||
->orWhere('tags', 'like', $like)
|
||||
->orWhere('path', 'like', $like));
|
||||
}
|
||||
|
||||
$query->when($filters['von'] ?? null, fn (Builder $q, $id) => $q->where('uploaded_by', $id))
|
||||
->when($filters['zeitraum'] ?? null, fn (Builder $q, $days) => $q->where('created_at', '>=', now()->subDays((int) $days)))
|
||||
->when(($filters['status'] ?? null) === 'unbenutzt', fn (Builder $q) => $q->doesntHave('usages'))
|
||||
->when(($filters['status'] ?? null) === 'verwendet', fn (Builder $q) => $q->has('usages'))
|
||||
->when($filters['in'] ?? null, fn (Builder $q, $type) => $q->whereHas('usages', fn (Builder $u) => $u->where('source_type', $type)))
|
||||
->when(array_key_exists('pfade', $filters), fn (Builder $q) => $q->whereIn('path', $filters['pfade'] ?: ['']));
|
||||
|
||||
if (! $sort) {
|
||||
return;
|
||||
}
|
||||
|
||||
match ($filters['sortierung'] ?? 'neu') {
|
||||
// Zuletzt verwendet: jüngste Einbindung zuerst (wird bei jedem Speichern der Quelle neu erfasst)
|
||||
'verwendet' => $query->orderByDesc(MediaUsage::query()->selectRaw('MAX(created_at)')->whereColumn('media_usages.media_id', 'media.id'))->orderByDesc('id'),
|
||||
'name' => $query->orderBy('original_name')->orderBy('id'),
|
||||
default => $query->orderByDesc('id'),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $filters
|
||||
*/
|
||||
private function countFor(array $filters): int
|
||||
{
|
||||
$query = Media::query();
|
||||
$this->applyFilters($query, $filters, false);
|
||||
|
||||
return $query->count();
|
||||
}
|
||||
}
|
||||
29
app/Media/EditorialMedia.php
Normal file
29
app/Media/EditorialMedia.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace App\Media;
|
||||
|
||||
use App\Models\Media;
|
||||
use App\Models\User;
|
||||
|
||||
/**
|
||||
* „Redaktion → Mediathek“: Überblick mit den neuesten Bildern.
|
||||
*/
|
||||
final class EditorialMedia
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public static function props(User $user): array
|
||||
{
|
||||
return [
|
||||
'total' => Media::query()->count(),
|
||||
'unused' => $user->can('media.manage') ? Media::query()->doesntHave('usages')->count() : null,
|
||||
'recent' => Media::query()->latest('id')->limit(8)->get()->map(fn (Media $media) => [
|
||||
'id' => $media->id,
|
||||
'name' => $media->displayName(),
|
||||
'alt' => $media->alt ?? '',
|
||||
'thumb_url' => $media->url('thumb'),
|
||||
])->all(),
|
||||
];
|
||||
}
|
||||
}
|
||||
148
app/Media/ImagePaths.php
Normal file
148
app/Media/ImagePaths.php
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
<?php
|
||||
|
||||
namespace App\Media;
|
||||
|
||||
use App\Pagebuilder\Blocks;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
/**
|
||||
* Findet Bildpfade im Speicher „uploads“ in Inhalten: in Pagebuilder-JSON
|
||||
* (jeder String, der wie ein Upload-Pfad aussieht) und in HTML
|
||||
* (src="/uploads/…"). Grundlage für „Eingebunden in“ der Mediathek.
|
||||
*/
|
||||
final class ImagePaths
|
||||
{
|
||||
/** Bezeichnung der Stelle je Blockart. */
|
||||
public const BLOCK_CONTEXTS = [
|
||||
'image' => 'Bild-Block',
|
||||
'gallery' => 'Galerie',
|
||||
'hero' => 'Hero',
|
||||
'text' => 'Im Text',
|
||||
];
|
||||
|
||||
public const HTML_CONTEXT = 'Im Text';
|
||||
|
||||
/**
|
||||
* Sieht der Wert wie ein Bildpfad im Upload-Speicher aus (relativ, ohne „..“)?
|
||||
*/
|
||||
public static function isCandidate(mixed $value): bool
|
||||
{
|
||||
return is_string($value)
|
||||
&& strlen($value) <= 255
|
||||
&& preg_match('#^[A-Za-z0-9_-][A-Za-z0-9/_.\-]*\.(webp|jpe?g|png|gif)$#i', $value) === 1
|
||||
&& ! str_contains($value, '..')
|
||||
&& ! str_contains($value, '//');
|
||||
}
|
||||
|
||||
/**
|
||||
* Pfade aus src-Attributen, die auf den Upload-Speicher zeigen.
|
||||
*
|
||||
* @return list<string>
|
||||
*/
|
||||
public static function fromHtml(?string $html): array
|
||||
{
|
||||
if (! $html || ! str_contains($html, '<img')) {
|
||||
return [];
|
||||
}
|
||||
|
||||
preg_match_all('/\ssrc\s*=\s*(["\'])(.*?)\1/i', $html, $matches);
|
||||
$paths = [];
|
||||
|
||||
foreach ($matches[2] as $src) {
|
||||
if ($path = self::fromUrl(html_entity_decode($src))) {
|
||||
$paths[] = $path;
|
||||
}
|
||||
}
|
||||
|
||||
// Anhänge des Filament-Editors: <img data-id="news/inline/…">
|
||||
preg_match_all('/\sdata-id\s*=\s*(["\'])(.*?)\1/i', $html, $ids);
|
||||
|
||||
foreach ($ids[2] as $id) {
|
||||
if (self::isCandidate($id = html_entity_decode($id))) {
|
||||
$paths[] = $id;
|
||||
}
|
||||
}
|
||||
|
||||
return array_values(array_unique($paths));
|
||||
}
|
||||
|
||||
/**
|
||||
* Pfad im Upload-Speicher zu einer Adresse („/uploads/news/a.webp?v=1“), sonst null.
|
||||
*/
|
||||
public static function fromUrl(string $url): ?string
|
||||
{
|
||||
$parts = parse_url(trim($url));
|
||||
|
||||
if ($parts === false || ! isset($parts['path'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isset($parts['host'])) {
|
||||
$ownHost = parse_url((string) Storage::disk('uploads')->url(''), PHP_URL_HOST);
|
||||
|
||||
if ($ownHost && strcasecmp($parts['host'], $ownHost) !== 0) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
$position = strpos($parts['path'], '/uploads/');
|
||||
|
||||
if ($position === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$path = rawurldecode(substr($parts['path'], $position + strlen('/uploads/')));
|
||||
|
||||
return self::isCandidate($path) ? $path : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alle Bildpfade eines Pagebuilder-Inhalts, gruppiert nach Stelle
|
||||
* („Bild-Block“, „Galerie“, „Hero“, „Im Text“ oder die Blockbezeichnung).
|
||||
*
|
||||
* @param array<mixed>|null $content
|
||||
* @return array<string, list<string>> Stelle => Pfade
|
||||
*/
|
||||
public static function fromContent(?array $content): array
|
||||
{
|
||||
$result = [];
|
||||
$blocks = app(Blocks::class);
|
||||
|
||||
$walkBlocks = function (mixed $list, int $depth) use (&$walkBlocks, &$result, $blocks): void {
|
||||
if (! is_array($list) || $depth > 10) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($list as $block) {
|
||||
if (! is_array($block)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$type = (string) ($block['type'] ?? '');
|
||||
$context = self::BLOCK_CONTEXTS[$type] ?? ($blocks->get($type)?->label ?? 'Inhalt');
|
||||
|
||||
$data = is_array($block['data'] ?? null) ? $block['data'] : [];
|
||||
|
||||
array_walk_recursive($data, function ($value) use (&$result, $context) {
|
||||
if (self::isCandidate($value)) {
|
||||
$result[$context][] = $value;
|
||||
} elseif (is_string($value) && str_contains($value, '<')) {
|
||||
foreach (self::fromHtml($value) as $path) {
|
||||
$result[self::HTML_CONTEXT][] = $path;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
foreach ((array) ($block['items'] ?? []) as $item) {
|
||||
$walkBlocks(is_array($item) ? ($item['blocks'] ?? []) : [], $depth + 1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if (is_array($content)) {
|
||||
$walkBlocks($content['blocks'] ?? [], 1);
|
||||
}
|
||||
|
||||
return array_map(fn (array $paths) => array_values(array_unique($paths)), $result);
|
||||
}
|
||||
}
|
||||
189
app/Media/MediaLibrary.php
Normal file
189
app/Media/MediaLibrary.php
Normal file
|
|
@ -0,0 +1,189 @@
|
|||
<?php
|
||||
|
||||
namespace App\Media;
|
||||
|
||||
use App\Models\Media;
|
||||
use App\Models\User;
|
||||
use App\Support\Images;
|
||||
use Illuminate\Database\UniqueConstraintViolationException;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Mediathek: jedes hochgeladene Bild wird hier als App\Models\Media erfasst.
|
||||
* Inhalte speichern weiterhin den Pfad im Speicher „uploads“ – deshalb
|
||||
* ersetzt replace() die Datei am selben Pfad, und jede Einbindung zeigt sofort
|
||||
* das neue Bild.
|
||||
*/
|
||||
class MediaLibrary
|
||||
{
|
||||
public const DISK = 'uploads';
|
||||
|
||||
/** Verzeichnis für Uploads direkt in der Mediathek bzw. über die Bildauswahl. */
|
||||
public const DIRECTORY = 'mediathek';
|
||||
|
||||
public function __construct(private readonly Images $images) {}
|
||||
|
||||
/**
|
||||
* Vorhandene Datei erfassen (idempotent über den Pfad).
|
||||
*
|
||||
* @param array{original_name?: string|null, alt?: string|null, caption?: string|null, tags?: list<string>|null, created_at?: mixed} $meta
|
||||
*/
|
||||
public function register(string $path, array $meta = [], ?User $user = null): Media
|
||||
{
|
||||
$existing = Media::query()->where('path', $path)->first();
|
||||
|
||||
if ($existing) {
|
||||
return $existing;
|
||||
}
|
||||
|
||||
$attributes = [
|
||||
...$this->fileInfo($path),
|
||||
'disk' => self::DISK,
|
||||
'path' => $path,
|
||||
'original_name' => isset($meta['original_name']) ? Str::limit((string) $meta['original_name'], 250, '') : null,
|
||||
'alt' => $meta['alt'] ?? null,
|
||||
'caption' => $meta['caption'] ?? null,
|
||||
'tags' => $meta['tags'] ?? null,
|
||||
'uploaded_by' => $user?->id,
|
||||
];
|
||||
|
||||
try {
|
||||
$media = new Media($attributes);
|
||||
|
||||
if (isset($meta['created_at'])) {
|
||||
$media->created_at = Carbon::parse($meta['created_at']);
|
||||
}
|
||||
|
||||
$media->save();
|
||||
|
||||
return $media;
|
||||
} catch (UniqueConstraintViolationException) {
|
||||
// Gleichzeitig von einer anderen Anfrage erfasst.
|
||||
return Media::query()->where('path', $path)->firstOrFail();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Pfade auf Mediathek-IDs abbilden; vorhandene, noch unbekannte Bilddateien
|
||||
* werden dabei erfasst (z. B. aus Admin-Formularen oder älteren Versionen).
|
||||
*
|
||||
* @param list<string> $paths
|
||||
* @return array<string, int> Pfad => Media-ID
|
||||
*/
|
||||
public function ensureRegistered(array $paths): array
|
||||
{
|
||||
$paths = array_values(array_filter(array_unique($paths), fn ($path) => ImagePaths::isCandidate($path)));
|
||||
|
||||
if ($paths === []) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$known = Media::query()->whereIn('path', $paths)->pluck('id', 'path')->all();
|
||||
$disk = Storage::disk(self::DISK);
|
||||
$user = Auth::user();
|
||||
|
||||
foreach (array_diff($paths, array_keys($known)) as $path) {
|
||||
if (! $disk->exists($path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
$modified = @filemtime($disk->path($path));
|
||||
$known[$path] = $this->register($path, ['created_at' => $modified ? Carbon::createFromTimestamp($modified) : null], $user instanceof User ? $user : null)->id;
|
||||
} catch (Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
}
|
||||
|
||||
return $known;
|
||||
}
|
||||
|
||||
/**
|
||||
* Upload speichern (höchstens 2000 px breit, WebP; GIFs unverändert) und erfassen.
|
||||
*/
|
||||
public function store(UploadedFile $file, string $directory = self::DIRECTORY, ?User $user = null, array $meta = []): Media
|
||||
{
|
||||
$name = $file->getClientOriginalName();
|
||||
$path = $this->images->storeContentImage($file, trim($directory, '/'));
|
||||
|
||||
// Vorschaubild für Mediathek und Bildauswahl
|
||||
$this->images->createVariants($path, ['thumb']);
|
||||
|
||||
return $this->register($path, ['original_name' => $name, ...$meta], $user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Datei austauschen – Pfad, Alternativtext und alle Einbindungen bleiben.
|
||||
*/
|
||||
public function replace(Media $media, UploadedFile $file): Media
|
||||
{
|
||||
$name = $file->getClientOriginalName();
|
||||
$this->images->overwrite($media->path, $file);
|
||||
|
||||
if (! Storage::disk(self::DISK)->exists($this->images->variantPath($media->path, 'thumb'))) {
|
||||
$this->images->createVariants($media->path, ['thumb']);
|
||||
}
|
||||
|
||||
$media->forceFill([...$this->fileInfo($media->path), 'original_name' => Str::limit($name, 250, ''), 'updated_at' => now()])->save();
|
||||
|
||||
return $media;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bild samt Varianten löschen. Einbindungen zeigen danach ihren Platzhalter.
|
||||
*/
|
||||
public function delete(Media $media): void
|
||||
{
|
||||
$this->images->deleteWithVariants($media->path);
|
||||
$media->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Datei über ihren Pfad entfernen – mit Eintrag in der Mediathek, falls vorhanden.
|
||||
*/
|
||||
public function deletePath(string $path): void
|
||||
{
|
||||
$media = Media::query()->where('path', $path)->first();
|
||||
$media ? $this->delete($media) : $this->images->deleteWithVariants($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bereits verwendete Bilder übernehmen und alle Verwendungen neu erfassen.
|
||||
*
|
||||
* @return array{sources: int, media: int}
|
||||
*/
|
||||
public function rebuild(): array
|
||||
{
|
||||
@set_time_limit(0);
|
||||
|
||||
$sources = app(MediaUsages::class)->rebuild();
|
||||
|
||||
return ['sources' => $sources, 'media' => Media::query()->count()];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{mime: string|null, size: int|null, width: int|null, height: int|null}
|
||||
*/
|
||||
private function fileInfo(string $path): array
|
||||
{
|
||||
$disk = Storage::disk(self::DISK);
|
||||
|
||||
if (! $disk->exists($path)) {
|
||||
return ['mime' => null, 'size' => null, 'width' => null, 'height' => null];
|
||||
}
|
||||
|
||||
$size = @getimagesize($disk->path($path));
|
||||
|
||||
return [
|
||||
'mime' => $size['mime'] ?? ($disk->mimeType($path) ?: null),
|
||||
'size' => $disk->size($path),
|
||||
'width' => $size[0] ?? null,
|
||||
'height' => $size[1] ?? null,
|
||||
];
|
||||
}
|
||||
}
|
||||
198
app/Media/MediaUsages.php
Normal file
198
app/Media/MediaUsages.php
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
<?php
|
||||
|
||||
namespace App\Media;
|
||||
|
||||
use App\Models\MediaUsage;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Registry „Wo ist das Bild eingebunden?“. Kern und Plugins melden ihre
|
||||
* Quellen an (Seiten, Neuigkeiten, Termine …):
|
||||
*
|
||||
* $usages->add('news', 'Neuigkeiten',
|
||||
* scan: fn (NewsPost $post) => [
|
||||
* ['context' => 'Titelbild', 'label' => $post->title, 'url' => '/…', 'draft' => false, 'paths' => [$post->cover_path]],
|
||||
* ],
|
||||
* all: fn (callable $each) => NewsPost::query()->chunkById(100, fn ($posts) => $posts->each($each)),
|
||||
* );
|
||||
* $usages->watch('news', NewsPost::class, ['cover_path', 'body_html']);
|
||||
*
|
||||
* scan() liefert je Stelle Pfade im Speicher „uploads“ (ImagePaths hilft beim
|
||||
* Auslesen von Pagebuilder-JSON und HTML). Unbekannte, aber vorhandene
|
||||
* Bilddateien werden dabei automatisch in die Mediathek übernommen – so landen
|
||||
* auch Uploads aus Formularen, die die Mediathek nicht kennen, dort.
|
||||
*/
|
||||
class MediaUsages
|
||||
{
|
||||
/** @var array<string, array{label: string, scan: callable, all: callable|null}> */
|
||||
private array $sources = [];
|
||||
|
||||
private bool $ready = false;
|
||||
|
||||
public function __construct(private readonly Dispatcher $events) {}
|
||||
|
||||
/**
|
||||
* @param callable(Model): list<array{context: string, label: string, url?: string|null, draft?: bool, paths: list<string|null>, source_id?: int}> $scan
|
||||
* @param (callable(callable(Model): void): void)|null $all ruft $each für jede Quelle auf (für „Neu einlesen“)
|
||||
*/
|
||||
public function add(string $type, string $label, callable $scan, ?callable $all = null): void
|
||||
{
|
||||
$this->sources[$type] = ['label' => $label, 'scan' => $scan, 'all' => $all];
|
||||
}
|
||||
|
||||
/**
|
||||
* Verwendungen bei jedem Speichern/Löschen des Modells aktualisieren.
|
||||
*
|
||||
* @param class-string<Model> $model
|
||||
* @param list<string> $columns nur neu berechnen, wenn sich eine dieser Spalten ändert (leer = immer)
|
||||
*/
|
||||
public function watch(string $type, string $model, array $columns = []): void
|
||||
{
|
||||
$this->events->listen("eloquent.saved: {$model}", function (Model $record) use ($type, $columns) {
|
||||
if ($columns === [] || $record->wasRecentlyCreated || $record->wasChanged($columns)) {
|
||||
$this->sync($type, $record);
|
||||
}
|
||||
});
|
||||
|
||||
$this->events->listen("eloquent.deleted: {$model}", fn (Model $record) => $this->forget($type, (int) $record->getKey()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string> Typ => Bezeichnung (z. B. „pages“ => „Seiten“)
|
||||
*/
|
||||
public function labels(): array
|
||||
{
|
||||
return array_map(fn (array $source) => $source['label'], $this->sources);
|
||||
}
|
||||
|
||||
public function has(string $type): bool
|
||||
{
|
||||
return isset($this->sources[$type]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Verwendungen einer Quelle neu erfassen. Fehler werden nur protokolliert –
|
||||
* Speichern von Inhalten darf nie an der Mediathek scheitern.
|
||||
*/
|
||||
public function sync(string $type, Model $record): void
|
||||
{
|
||||
if (! isset($this->sources[$type]) || ! $this->tablesReady()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
$entries = ($this->sources[$type]['scan'])($record);
|
||||
$paths = [];
|
||||
|
||||
foreach ($entries as $entry) {
|
||||
foreach ($entry['paths'] ?? [] as $path) {
|
||||
if (is_string($path) && $path !== '') {
|
||||
$paths[] = $path;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$ids = app(MediaLibrary::class)->ensureRegistered(array_values(array_unique($paths)));
|
||||
$rows = [];
|
||||
$now = now();
|
||||
|
||||
// Nicht-Entwürfe zuerst, damit dieselbe Stelle nicht doppelt als Entwurf erscheint.
|
||||
usort($entries, fn (array $a, array $b) => (int) ($a['draft'] ?? false) <=> (int) ($b['draft'] ?? false));
|
||||
|
||||
foreach ($entries as $entry) {
|
||||
foreach (array_unique(array_filter((array) ($entry['paths'] ?? []), 'is_string')) as $path) {
|
||||
if (! isset($ids[$path])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$sourceId = (int) ($entry['source_id'] ?? $record->getKey());
|
||||
$key = $ids[$path].'|'.$sourceId.'|'.$entry['context'];
|
||||
|
||||
if (isset($rows[$key])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$rows[$key] = [
|
||||
'media_id' => $ids[$path],
|
||||
'source_type' => $type,
|
||||
'source_id' => $sourceId,
|
||||
'context' => mb_substr((string) $entry['context'], 0, 80),
|
||||
'label' => mb_substr((string) ($entry['label'] ?? ''), 0, 250),
|
||||
'url' => isset($entry['url']) ? mb_substr((string) $entry['url'], 0, 1000) : null,
|
||||
'draft' => (bool) ($entry['draft'] ?? false),
|
||||
'created_at' => $now,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
DB::transaction(function () use ($type, $record, $rows) {
|
||||
MediaUsage::query()->where('source_type', $type)->where('source_id', $record->getKey())->delete();
|
||||
|
||||
foreach (array_chunk(array_values($rows), 200) as $chunk) {
|
||||
MediaUsage::query()->insert($chunk);
|
||||
}
|
||||
});
|
||||
} catch (Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
}
|
||||
|
||||
public function forget(string $type, int $id): void
|
||||
{
|
||||
if (! $this->tablesReady()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
MediaUsage::query()->where('source_type', $type)->where('source_id', $id)->delete();
|
||||
} catch (Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Alle Verwendungen neu erfassen (dabei referenzierte Dateien übernehmen).
|
||||
*
|
||||
* @return int Anzahl der durchsuchten Quellen
|
||||
*/
|
||||
public function rebuild(): int
|
||||
{
|
||||
if (! $this->tablesReady()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
$count = 0;
|
||||
|
||||
// Verwendungen von Quellen, die es nicht mehr gibt (z. B. Plugin entfernt), fallen weg.
|
||||
MediaUsage::query()->whereNotIn('source_type', array_keys($this->sources) ?: [''])->delete();
|
||||
|
||||
foreach ($this->sources as $type => $source) {
|
||||
if (! $source['all']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
MediaUsage::query()->where('source_type', $type)->delete();
|
||||
|
||||
($source['all'])(function (Model $record) use ($type, &$count) {
|
||||
$this->sync($type, $record);
|
||||
$count++;
|
||||
});
|
||||
} catch (Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
}
|
||||
|
||||
return $count;
|
||||
}
|
||||
|
||||
private function tablesReady(): bool
|
||||
{
|
||||
// Nur „ja“ merken: Während eines Updates entstehen die Tabellen erst mittendrin.
|
||||
return $this->ready = $this->ready || Schema::hasTable('media_usages');
|
||||
}
|
||||
}
|
||||
|
|
@ -3,12 +3,12 @@
|
|||
namespace App\Models;
|
||||
|
||||
use App\Pagebuilder\Field;
|
||||
use App\Support\Images;
|
||||
use App\Support\Permissions\Audiences;
|
||||
use App\Support\RichText;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
/**
|
||||
* Eigene Kachel auf der Startseite („Administration → Portal → Startseite“).
|
||||
|
|
@ -46,7 +46,7 @@ class DashboardTile extends Model
|
|||
}
|
||||
});
|
||||
|
||||
static::deleted(fn (DashboardTile $tile) => $tile->image_path && Storage::disk('uploads')->delete($tile->image_path));
|
||||
// Das Bild bleibt in der Mediathek (evtl. auch anderswo eingebunden) – aufräumen lässt es sich dort.
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
|
|
@ -82,7 +82,7 @@ class DashboardTile extends Model
|
|||
'tile' => [
|
||||
'type' => $this->type,
|
||||
'title' => $this->title,
|
||||
'image_url' => $this->image_path ? Storage::disk('uploads')->url($this->image_path) : null,
|
||||
'image_url' => app(Images::class)->url($this->image_path, null),
|
||||
'url' => $this->url,
|
||||
'new_tab' => $this->new_tab,
|
||||
'alt' => $this->alt ?: '',
|
||||
|
|
|
|||
98
app/Models/Media.php
Normal file
98
app/Models/Media.php
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Support\Images;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
/**
|
||||
* Ein Bild der Mediathek. Eingebunden wird es überall über seinen Pfad im
|
||||
* Speicher „uploads“ – Inhalte speichern weiterhin den Pfad, nicht die ID.
|
||||
*/
|
||||
#[Fillable(['disk', 'path', 'original_name', 'mime', 'size', 'width', 'height', 'alt', 'caption', 'tags', 'uploaded_by'])]
|
||||
class Media extends Model
|
||||
{
|
||||
protected $table = 'media';
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'tags' => 'array',
|
||||
'size' => 'integer',
|
||||
'width' => 'integer',
|
||||
'height' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo<User, $this>
|
||||
*/
|
||||
public function uploader(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'uploaded_by');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return HasMany<MediaUsage, $this>
|
||||
*/
|
||||
public function usages(): HasMany
|
||||
{
|
||||
return $this->hasMany(MediaUsage::class);
|
||||
}
|
||||
|
||||
public function fileExists(): bool
|
||||
{
|
||||
return Storage::disk($this->disk ?: 'uploads')->exists($this->path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adresse des Bilds – null, wenn die Datei fehlt.
|
||||
*
|
||||
* @param string|null $variant „thumb“, „large“ oder null für das Original
|
||||
*/
|
||||
public function url(?string $variant = null): ?string
|
||||
{
|
||||
// „?v=“ folgt dem Änderungszeitpunkt der Datei (Ersetzen setzt ihn weiter) – so
|
||||
// haben Mediathek, Seiten und Beiträge dieselbe Adresse und teilen sich den Cache.
|
||||
return app(Images::class)->url($this->path, $variant);
|
||||
}
|
||||
|
||||
public function displayName(): string
|
||||
{
|
||||
return $this->original_name ?: basename($this->path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Für Mediathek und Bildauswahl.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function toLibraryArray(): array
|
||||
{
|
||||
$url = $this->url();
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'path' => $this->path,
|
||||
'url' => $url,
|
||||
'thumb_url' => $url ? $this->url('thumb') : null,
|
||||
'name' => $this->displayName(),
|
||||
'alt' => $this->alt ?? '',
|
||||
'caption' => $this->caption ?? '',
|
||||
'tags' => $this->tags ?? [],
|
||||
'mime' => $this->mime,
|
||||
'size' => $this->size,
|
||||
'width' => $this->width,
|
||||
'height' => $this->height,
|
||||
'missing' => $url === null,
|
||||
'uploader' => $this->relationLoaded('uploader') && $this->uploader ? ['id' => $this->uploader->id, 'name' => $this->uploader->name] : null,
|
||||
'usage_count' => $this->usages_count ?? null,
|
||||
'created_at' => $this->created_at?->toIso8601String(),
|
||||
'updated_at' => $this->updated_at?->toIso8601String(),
|
||||
];
|
||||
}
|
||||
}
|
||||
34
app/Models/MediaUsage.php
Normal file
34
app/Models/MediaUsage.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* „Eingebunden in“: eine Stelle, an der ein Bild der Mediathek verwendet wird.
|
||||
* Wird von App\Media\MediaUsages bei jedem Speichern der Quelle neu berechnet.
|
||||
*/
|
||||
#[Fillable(['media_id', 'source_type', 'source_id', 'context', 'label', 'url', 'draft', 'created_at'])]
|
||||
class MediaUsage extends Model
|
||||
{
|
||||
public const UPDATED_AT = null;
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'draft' => 'boolean',
|
||||
'source_id' => 'integer',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo<Media, $this>
|
||||
*/
|
||||
public function media(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Media::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@ namespace App\Pagebuilder;
|
|||
use App\Http\Resources\PersonResource;
|
||||
use App\Models\User;
|
||||
use App\Plugins\Hooks;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use App\Support\Images;
|
||||
|
||||
/**
|
||||
* Registry der Pagebuilder-Blöcke. Der Kern bringt Layout- und Inhaltsblöcke
|
||||
|
|
@ -66,9 +66,13 @@ class Blocks
|
|||
return array_values(array_map(fn (BlockType $type) => $type->toArray(), $this->all()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Adresse eines Bilds – null, wenn die Datei fehlt (z. B. in der Mediathek
|
||||
* gelöscht): Der Block zeigt dann seinen Platzhalter.
|
||||
*/
|
||||
public static function imageUrl(?string $path): ?string
|
||||
{
|
||||
return $path ? Storage::disk('uploads')->url($path) : null;
|
||||
return app(Images::class)->url($path, null);
|
||||
}
|
||||
|
||||
private function registerLayout(): void
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Pagebuilder;
|
||||
|
||||
use App\Media\ImagePaths;
|
||||
use App\Models\User;
|
||||
use App\Plugins\PluginAccess;
|
||||
use App\Support\Permissions\Audiences;
|
||||
|
|
@ -138,7 +139,7 @@ class Content
|
|||
$texts = [];
|
||||
|
||||
array_walk_recursive($block['data'], function ($value) use (&$texts) {
|
||||
if (is_string($value) && ! str_starts_with($value, 'pagebuilder/')) {
|
||||
if (is_string($value) && ! ImagePaths::isCandidate($value)) {
|
||||
$texts[] = strip_tags($value);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Pagebuilder;
|
||||
|
||||
use App\Media\ImagePaths;
|
||||
use App\Support\Icons;
|
||||
use App\Support\RichText;
|
||||
use Closure;
|
||||
|
|
@ -62,7 +63,7 @@ final class Field
|
|||
return new self($name, 'url', $label, ['default' => $default]);
|
||||
}
|
||||
|
||||
/** Hochgeladenes Bild (Pfad im Upload-Speicher). */
|
||||
/** Hochgeladenes Bild bzw. Bild aus der Mediathek (Pfad im Upload-Speicher). */
|
||||
public static function image(string $name, string $label): self
|
||||
{
|
||||
return new self($name, 'image', $label, ['default' => null]);
|
||||
|
|
@ -140,7 +141,7 @@ final class Field
|
|||
'toggle' => (bool) $value,
|
||||
'number' => max($this->options['min'], min($this->options['max'], is_numeric($value) ? (int) $value : $this->options['default'])),
|
||||
'url' => self::safeUrl($value),
|
||||
'image' => is_string($value) && preg_match('#^pagebuilder/[A-Za-z0-9/_.-]+$#', $value) && ! str_contains($value, '..') ? $value : null,
|
||||
'image' => ImagePaths::isCandidate($value) ? $value : null,
|
||||
'people', 'ids' => array_values(array_slice(array_unique(array_filter(array_map('intval', is_array($value) ? $value : []))), 0, $this->options['max'])),
|
||||
'table' => $this->sanitizeTable($value),
|
||||
'icon' => Icons::has($value) ? $value : $this->options['default'],
|
||||
|
|
|
|||
|
|
@ -7,6 +7,11 @@ use App\Dashboard\Widgets;
|
|||
use App\Editorial\Editorial;
|
||||
use App\Identity\Entra\EntraDriver;
|
||||
use App\Identity\IdentityDrivers;
|
||||
use App\Media\EditorialMedia;
|
||||
use App\Media\ImagePaths;
|
||||
use App\Media\MediaLibrary;
|
||||
use App\Media\MediaUsages;
|
||||
use App\Models\DashboardTile;
|
||||
use App\Models\IdentityProvider;
|
||||
use App\Models\User;
|
||||
use App\Pagebuilder\Blocks;
|
||||
|
|
@ -69,6 +74,8 @@ class AppServiceProvider extends ServiceProvider
|
|||
return $drivers;
|
||||
});
|
||||
$this->app->singleton(Editorial::class);
|
||||
$this->app->singleton(MediaUsages::class);
|
||||
$this->app->singleton(MediaLibrary::class);
|
||||
$this->app->singleton(BackgroundTasks::class);
|
||||
$this->app->singleton(InstalledVersion::class);
|
||||
$this->app->singleton(UpdateProgress::class);
|
||||
|
|
@ -79,9 +86,11 @@ class AppServiceProvider extends ServiceProvider
|
|||
{
|
||||
CoreWidgets::register($this->app->make(Widgets::class));
|
||||
|
||||
$this->app->make(Navigation::class)->add('editorial', 'Redaktion', '/redaktion', active: ['editorial', 'pages.editor', 'news.editor.*', 'forms.builder'], sort: 85,
|
||||
$this->app->make(Navigation::class)->add('editorial', 'Redaktion', '/redaktion', active: ['editorial', 'pages.editor', 'news.editor.*', 'forms.builder', 'media.*'], sort: 85,
|
||||
visible: fn (User $user) => $this->app->make(Editorial::class)->visibleFor($user));
|
||||
|
||||
$this->registerMedia();
|
||||
|
||||
// N+1-Abfragen in Entwicklung und Tests sofort sichtbar machen (docs/PLAN.md, Performance).
|
||||
Model::preventLazyLoading(! $this->app->isProduction());
|
||||
|
||||
|
|
@ -115,4 +124,30 @@ class AppServiceProvider extends ServiceProvider
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Mediathek: Zugang für alle, die in der Redaktion arbeiten, Abschnitt in der
|
||||
* Redaktion und die Startseiten-Kacheln als Quelle für „Eingebunden in“.
|
||||
*/
|
||||
private function registerMedia(): void
|
||||
{
|
||||
$editorial = $this->app->make(Editorial::class);
|
||||
|
||||
// Bildauswahl und Hochladen: wer irgendwo in der Redaktion arbeitet (Seiten, Beiträge …) oder die Mediathek verwaltet.
|
||||
Gate::define('media.use', fn (User $user) => $user->can('media.manage') || $editorial->visibleFor($user, except: 'media'));
|
||||
|
||||
// Abschnitt nur neben anderen Redaktionsbereichen – sonst erschiene „Redaktion“ ohne Inhalte.
|
||||
$editorial->add('media', 'Mediathek', 'core::EditorialMedia', 90,
|
||||
fn (User $user) => $editorial->visibleFor($user, except: 'media'),
|
||||
fn (User $user) => EditorialMedia::props($user));
|
||||
|
||||
$usages = $this->app->make(MediaUsages::class);
|
||||
$usages->add('dashboard_tiles', 'Startseiten-Kacheln',
|
||||
fn (DashboardTile $tile) => [
|
||||
['context' => 'Kachelbild', 'label' => $tile->name ?: (string) $tile->title, 'url' => '/admin/kacheln', 'draft' => $tile->is_active === false, 'paths' => [$tile->image_path]],
|
||||
['context' => ImagePaths::HTML_CONTEXT, 'label' => $tile->name ?: (string) $tile->title, 'url' => '/admin/kacheln', 'draft' => $tile->is_active === false, 'paths' => ImagePaths::fromHtml($tile->body_html)],
|
||||
],
|
||||
fn (callable $each) => DashboardTile::query()->chunkById(100, fn ($tiles) => $tiles->each($each)));
|
||||
$usages->watch('dashboard_tiles', DashboardTile::class, ['image_path', 'body_html', 'name', 'title', 'is_active']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,13 @@ class AdminPanelProvider extends PanelProvider
|
|||
->url(fn () => Feedback::getUrl()),
|
||||
])
|
||||
->navigationItems([
|
||||
// Die Mediathek lebt im Portal (Redaktion) – hier nur der Weg dorthin.
|
||||
NavigationItem::make('Mediathek')
|
||||
->url('/redaktion/mediathek')
|
||||
->icon(Heroicon::OutlinedPhoto)
|
||||
->group('Inhalte')
|
||||
->sort(90)
|
||||
->visible(fn () => auth()->user()?->can('media.use') ?? false),
|
||||
NavigationItem::make('Zum Portal')
|
||||
->url('/')
|
||||
->icon(Heroicon::OutlinedArrowTopRightOnSquare)
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class Abilities
|
|||
$this->define('updates.manage', 'Aktualisierungen, Lizenz und Systemzustand', 'System');
|
||||
$this->define('mail.manage', 'E-Mail-Versand einrichten', 'System');
|
||||
$this->define('feedback.send', 'Rückmeldungen an den Hersteller senden', 'System');
|
||||
$this->define('media.manage', 'Mediathek verwalten: ersetzen, löschen, aufräumen', 'Mediathek');
|
||||
}
|
||||
|
||||
public function define(string $ability, string $label, string $group, ?string $resource = null): void
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
namespace App\Support\Demo;
|
||||
|
||||
use App\Media\MediaLibrary;
|
||||
use App\Models\DashboardTile;
|
||||
use App\Models\Setting;
|
||||
use App\Models\User;
|
||||
use App\Pagebuilder\Content;
|
||||
use App\Plugins\PluginManager;
|
||||
use App\Support\Branding;
|
||||
use App\Support\Images;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Http\Client\Pool;
|
||||
|
|
@ -170,7 +170,7 @@ class DemoContent
|
|||
}
|
||||
|
||||
$files = 0;
|
||||
$images = app(Images::class);
|
||||
$library = app(MediaLibrary::class);
|
||||
|
||||
foreach ((array) ($state['files'] ?? []) as $file) {
|
||||
try {
|
||||
|
|
@ -180,7 +180,8 @@ class DemoContent
|
|||
$files++;
|
||||
}
|
||||
|
||||
! empty($file['image']) ? $images->deleteWithVariants((string) $file['path']) : $disk->delete((string) $file['path']);
|
||||
// Bilder samt Eintrag in der Mediathek entfernen
|
||||
! empty($file['image']) ? $library->deletePath((string) $file['path']) : $disk->delete((string) $file['path']);
|
||||
} catch (Throwable) {
|
||||
$warnings[] = "Datei {$file['path']} konnte nicht gelöscht werden.";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@ use Illuminate\Http\UploadedFile;
|
|||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
use Intervention\Image\Drivers\Gd\Driver;
|
||||
use Intervention\Image\Encoders\GifEncoder;
|
||||
use Intervention\Image\Encoders\JpegEncoder;
|
||||
use Intervention\Image\Encoders\PngEncoder;
|
||||
use Intervention\Image\Encoders\WebpEncoder;
|
||||
use Intervention\Image\ImageManager;
|
||||
use Throwable;
|
||||
|
|
@ -23,7 +26,10 @@ class Images
|
|||
|
||||
private const VARIANTS_LARGEST_FIRST = ['large', 'thumb'];
|
||||
|
||||
public function createVariants(string $path): void
|
||||
/**
|
||||
* @param list<string>|null $only nur diese Varianten (z. B. ['thumb'] für die Mediathek)
|
||||
*/
|
||||
public function createVariants(string $path, ?array $only = null): void
|
||||
{
|
||||
$disk = Storage::disk('uploads');
|
||||
|
||||
|
|
@ -39,6 +45,10 @@ class Images
|
|||
$image = ImageManager::usingDriver(Driver::class)->decodePath($disk->path($path));
|
||||
|
||||
foreach (self::VARIANTS_LARGEST_FIRST as $variant) {
|
||||
if ($only !== null && ! in_array($variant, $only, true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
[$width, $height] = self::VARIANTS[$variant];
|
||||
$image->coverDown($width, $height);
|
||||
$disk->put($this->variantPath($path, $variant), $image->encode(new WebpEncoder(quality: 82))->toString());
|
||||
|
|
@ -48,12 +58,6 @@ class Images
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bild für Inhalte (Pagebuilder, Beiträge): Seitenverhältnis bleibt, höchstens
|
||||
* 2000 Pixel breit, als WebP. GIFs bleiben unverändert (Animationen).
|
||||
*
|
||||
* @return string Pfad im Speicher „uploads“
|
||||
*/
|
||||
/**
|
||||
* Führt $callback mit dem Pfad einer lokalen Kopie des Uploads aus.
|
||||
*
|
||||
|
|
@ -83,6 +87,12 @@ class Images
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bild für Inhalte (Pagebuilder, Beiträge): Seitenverhältnis bleibt, höchstens
|
||||
* 2000 Pixel breit, als WebP. GIFs bleiben unverändert (Animationen).
|
||||
*
|
||||
* @return string Pfad im Speicher „uploads“
|
||||
*/
|
||||
public function storeContentImage(UploadedFile $file, string $directory): string
|
||||
{
|
||||
$disk = Storage::disk('uploads');
|
||||
|
|
@ -104,6 +114,50 @@ class Images
|
|||
return $name.'.webp';
|
||||
}
|
||||
|
||||
/**
|
||||
* Datei an Ort und Stelle austauschen (Mediathek „Ersetzen“): Der Pfad bleibt,
|
||||
* damit jede Einbindung automatisch das neue Bild zeigt. Das Format folgt der
|
||||
* Dateiendung des bestehenden Pfads; vorhandene Varianten werden neu erzeugt.
|
||||
*/
|
||||
public function overwrite(string $path, UploadedFile $file): void
|
||||
{
|
||||
$disk = Storage::disk('uploads');
|
||||
$previous = (int) @filemtime($disk->path($path));
|
||||
$extension = strtolower(pathinfo($path, PATHINFO_EXTENSION));
|
||||
$variants = array_values(array_filter(array_keys(self::VARIANTS), fn (string $variant) => $disk->exists($this->variantPath($path, $variant))));
|
||||
|
||||
if ($extension === 'gif' && $file->getMimeType() === 'image/gif') {
|
||||
self::withLocalCopy($file, fn (string $local) => $disk->put($path, (string) file_get_contents($local)));
|
||||
} else {
|
||||
self::withLocalCopy($file, function (string $local) use ($disk, $path, $extension) {
|
||||
self::raiseMemoryLimitFor($local);
|
||||
$image = ImageManager::usingDriver(Driver::class)->decodePath($local);
|
||||
$image->scaleDown(width: 2000);
|
||||
$encoded = match ($extension) {
|
||||
'jpg', 'jpeg' => $image->encode(new JpegEncoder(quality: 85)),
|
||||
'png' => $image->encode(new PngEncoder),
|
||||
'gif' => $image->encode(new GifEncoder),
|
||||
default => $image->encode(new WebpEncoder(quality: 84)),
|
||||
};
|
||||
$disk->put($path, $encoded->toString());
|
||||
});
|
||||
}
|
||||
|
||||
if ($variants !== []) {
|
||||
$this->createVariants($path, $variants);
|
||||
}
|
||||
|
||||
// Der Änderungszeitpunkt steckt in „?v=“ der Adressen (siehe url()): muss sich
|
||||
// auch beim Ersetzen in derselben Sekunde ändern, damit Browser neu laden.
|
||||
$modified = max(time(), $previous + 1);
|
||||
|
||||
foreach ([$path, ...array_map(fn (string $variant) => $this->variantPath($path, $variant), $variants)] as $file) {
|
||||
@touch($disk->path($file), $modified);
|
||||
}
|
||||
|
||||
clearstatcache();
|
||||
}
|
||||
|
||||
public function deleteWithVariants(?string $path): void
|
||||
{
|
||||
if (! $path) {
|
||||
|
|
@ -118,16 +172,30 @@ class Images
|
|||
}
|
||||
}
|
||||
|
||||
public function url(?string $path, string $variant = 'large'): ?string
|
||||
/**
|
||||
* Öffentliche Adresse – null, wenn die Datei fehlt (z. B. in der Mediathek
|
||||
* gelöscht): Komponenten zeigen dann ihren Platzhalter statt eines kaputten Bilds.
|
||||
* „?v=“ ändert sich beim Ersetzen, damit Browser trotz langem Cache das neue Bild laden.
|
||||
*
|
||||
* @param string|null $variant null = Original
|
||||
*/
|
||||
public function url(?string $path, ?string $variant = 'large'): ?string
|
||||
{
|
||||
if (! $path) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$disk = Storage::disk('uploads');
|
||||
$variantPath = $this->variantPath($path, $variant);
|
||||
$variantPath = $variant ? $this->variantPath($path, $variant) : null;
|
||||
$file = $variantPath && $disk->exists($variantPath) ? $variantPath : $path;
|
||||
|
||||
return $disk->url($disk->exists($variantPath) ? $variantPath : $path);
|
||||
if ($file === $path && ! $disk->exists($path)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$modified = @filemtime($disk->path($file));
|
||||
|
||||
return $disk->url($file).($modified ? '?v='.$modified : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -170,7 +238,7 @@ class Images
|
|||
};
|
||||
}
|
||||
|
||||
private function variantPath(string $path, string $variant): string
|
||||
public function variantPath(string $path, string $variant): string
|
||||
{
|
||||
return preg_replace('/\.[^.\/]+$/', '', $path)."-{$variant}.webp";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ namespace App;
|
|||
*/
|
||||
final class Version
|
||||
{
|
||||
public const VERSION = '0.17.1';
|
||||
public const VERSION = '0.18.0';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Mediathek: alle hochgeladenen Bilder und wo sie eingebunden sind.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('media', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('disk', 40)->default('uploads');
|
||||
$table->string('path')->unique();
|
||||
$table->string('original_name')->nullable();
|
||||
$table->string('mime', 100)->nullable();
|
||||
$table->unsignedBigInteger('size')->nullable();
|
||||
$table->unsignedInteger('width')->nullable();
|
||||
$table->unsignedInteger('height')->nullable();
|
||||
$table->string('alt', 300)->nullable();
|
||||
$table->string('caption', 500)->nullable();
|
||||
$table->json('tags')->nullable();
|
||||
$table->foreignId('uploaded_by')->nullable()->constrained('users')->nullOnDelete();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index('created_at');
|
||||
});
|
||||
|
||||
Schema::create('media_usages', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('media_id')->constrained('media')->cascadeOnDelete();
|
||||
$table->string('source_type', 60);
|
||||
$table->unsignedBigInteger('source_id');
|
||||
$table->string('context', 80);
|
||||
$table->string('label')->nullable();
|
||||
$table->string('url', 1000)->nullable();
|
||||
$table->boolean('draft')->default(false);
|
||||
$table->timestamp('created_at')->nullable();
|
||||
|
||||
$table->index(['source_type', 'source_id']);
|
||||
$table->index(['media_id', 'created_at']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('media_usages');
|
||||
Schema::dropIfExists('media');
|
||||
}
|
||||
};
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
use App\Media\MediaLibrary;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Bestehende Installationen: bereits verwendete Bilder in die Mediathek
|
||||
* übernehmen und die Verwendungen erfassen. Fehler brechen das Update nicht
|
||||
* ab – „php artisan media:rebuild“ bzw. „Neu einlesen“ in der Mediathek holt es nach.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
try {
|
||||
app(MediaLibrary::class)->rebuild();
|
||||
} catch (Throwable $e) {
|
||||
Log::warning('Mediathek konnte nicht eingelesen werden: '.$e->getMessage(), ['exception' => $e]);
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void {}
|
||||
};
|
||||
|
|
@ -3,6 +3,8 @@
|
|||
namespace Inhaus\Plugins\Events;
|
||||
|
||||
use App\Dashboard\Widgets;
|
||||
use App\Media\ImagePaths;
|
||||
use App\Media\MediaUsages;
|
||||
use App\Models\User;
|
||||
use App\Pagebuilder\Blocks;
|
||||
use App\Pagebuilder\BlockType;
|
||||
|
|
@ -26,6 +28,14 @@ class EventsPlugin extends Plugin
|
|||
$this->app->make(Abilities::class)->define('events.manage', 'Termine verwalten', 'Termine');
|
||||
Gate::policy(Event::class, EventPolicy::class);
|
||||
|
||||
// Mediathek „Eingebunden in“
|
||||
$usages = $this->app->make(MediaUsages::class);
|
||||
$usages->add('events', 'Termine', fn (Event $event) => [
|
||||
['context' => 'Titelbild', 'label' => $event->title, 'url' => route('events.show', $event, false), 'draft' => $event->is_published === false, 'paths' => [$event->image_path]],
|
||||
['context' => ImagePaths::HTML_CONTEXT, 'label' => $event->title, 'url' => route('events.show', $event, false), 'draft' => $event->is_published === false, 'paths' => ImagePaths::fromHtml($event->description_html)],
|
||||
], fn (callable $each) => Event::query()->chunkById(100, fn ($events) => $events->each($each)));
|
||||
$usages->watch('events', Event::class, ['image_path', 'description_html', 'title', 'is_published']);
|
||||
|
||||
$this->app->make(Widgets::class)->add('events.upcoming', 'events::Upcoming', 'aside', sort: 20, props: fn (User $user) => [
|
||||
'events' => EventResource::collection(Event::query()->upcoming()->visibleTo($user)->limit(4)->get())->resolve(),
|
||||
], label: 'Termine', mobileSort: 30);
|
||||
|
|
|
|||
|
|
@ -34,24 +34,17 @@ class Event extends Model
|
|||
}
|
||||
});
|
||||
|
||||
// Bildvarianten erzeugen bzw. beim Austausch die alten Dateien entfernen.
|
||||
// Bildvarianten erzeugen. Alte Bilder bleiben in der Mediathek (sie können
|
||||
// auch anderswo eingebunden sein) und lassen sich dort als „nicht verwendet“ aufräumen.
|
||||
static::saved(function (Event $event): void {
|
||||
if (! $event->wasRecentlyCreated && ! $event->wasChanged('image_path')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$previous = $event->wasRecentlyCreated ? null : $event->getOriginal('image_path');
|
||||
|
||||
if ($previous && $previous !== $event->image_path) {
|
||||
app(Images::class)->deleteWithVariants($previous);
|
||||
}
|
||||
|
||||
if ($event->image_path) {
|
||||
app(Images::class)->createVariants($event->image_path);
|
||||
}
|
||||
});
|
||||
|
||||
static::deleted(fn (Event $event) => app(Images::class)->deleteWithVariants($event->image_path));
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import {
|
|||
EllipsisVertical,
|
||||
Eye,
|
||||
ImagePlus,
|
||||
Images,
|
||||
LoaderCircle,
|
||||
MessageSquareWarning,
|
||||
Monitor,
|
||||
|
|
@ -35,6 +36,9 @@ import BlockSettings from '@/pagebuilder/editor/BlockSettings.vue';
|
|||
import EditorBlockList from '@/pagebuilder/editor/EditorBlockList.vue';
|
||||
import { clone, createBlock, duplicate as duplicateBlock, locate, walk } from '@/pagebuilder/editor/tree';
|
||||
import { http } from '@/lib/http';
|
||||
import MediaPickerHost from '@/components/media/MediaPickerHost.vue';
|
||||
import { collectImagePaths, uploadWithProgress } from '@/components/media/api';
|
||||
import { useMediaPicker } from '@/components/media/useMediaPicker';
|
||||
|
||||
/**
|
||||
* Beitrag schreiben – mit demselben Baukasten wie die Seiten. Titelbild, Titel
|
||||
|
|
@ -70,6 +74,7 @@ const form = useForm({
|
|||
teaser: props.post?.teaser ?? '',
|
||||
category_id: props.post?.category_id ?? (props.categories.length === 1 ? props.categories[0].id : null),
|
||||
cover: null,
|
||||
cover_media: null,
|
||||
remove_cover: false,
|
||||
is_featured: props.post?.is_featured ?? false,
|
||||
published_at: localValue(props.post?.published_at),
|
||||
|
|
@ -155,18 +160,22 @@ function containsActive(item) {
|
|||
return candidates.some((block) => block.items?.includes(item) || locate(item.blocks, block.id));
|
||||
}
|
||||
|
||||
async function uploadImage(file) {
|
||||
const body = new FormData();
|
||||
body.append('image', file);
|
||||
|
||||
// Bilder landen zugleich in der Mediathek
|
||||
async function uploadImage(file, onProgress) {
|
||||
try {
|
||||
return await http.post('/redaktion/neuigkeiten/bilder', body);
|
||||
return await uploadWithProgress('/redaktion/neuigkeiten/bilder', file, { onProgress });
|
||||
} catch (error) {
|
||||
toast.error(error.fieldErrors?.image ?? error.message);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
const mediaPicker = useMediaPicker({
|
||||
upload: uploadImage,
|
||||
contextLabel: 'In diesem Beitrag',
|
||||
contextPaths: () => collectImagePaths(working.content),
|
||||
});
|
||||
|
||||
async function uploadFile() {
|
||||
toast.error('Dateien zum Herunterladen gehören in den Bereich „Downloads“ – dort hochladen und hier mit dem Downloads-Block verlinken.');
|
||||
throw new Error('not supported');
|
||||
|
|
@ -190,6 +199,7 @@ provide('pagebuilder:editor', {
|
|||
containsActive,
|
||||
uploadImage,
|
||||
uploadFile,
|
||||
pickMedia: (options) => mediaPicker.pick(options),
|
||||
imageUrl: (path) => `${props.uploadsUrl}/${path}`,
|
||||
});
|
||||
provide('pagebuilder:list', EditorBlockList);
|
||||
|
|
@ -339,12 +349,25 @@ function chooseCover(event) {
|
|||
if (!file) return;
|
||||
|
||||
form.cover = file;
|
||||
form.cover_media = null;
|
||||
form.remove_cover = false;
|
||||
coverPreview.value = URL.createObjectURL(file);
|
||||
}
|
||||
|
||||
async function pickCover() {
|
||||
const picked = await mediaPicker.pick({ title: 'Titelbild wählen' });
|
||||
|
||||
if (!picked?.length) return;
|
||||
|
||||
form.cover = null;
|
||||
form.cover_media = picked[0].path;
|
||||
form.remove_cover = false;
|
||||
coverPreview.value = picked[0].url;
|
||||
}
|
||||
|
||||
function removeCover() {
|
||||
form.cover = null;
|
||||
form.cover_media = null;
|
||||
form.remove_cover = true;
|
||||
coverPreview.value = null;
|
||||
}
|
||||
|
|
@ -519,20 +542,24 @@ function autoGrow(event) {
|
|||
<div v-if="coverPreview" class="group relative mb-6 overflow-hidden rounded-xl border" @click.stop>
|
||||
<img :src="coverPreview" alt="" class="aspect-video w-full object-cover" />
|
||||
<div class="absolute top-3 right-3 flex gap-2 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100">
|
||||
<Button size="sm" variant="outline" class="bg-card/95" @click="coverInput?.click()"><ImagePlus /> Ändern</Button>
|
||||
<Button size="sm" variant="outline" class="bg-card/95" @click="coverInput?.click()"><ImagePlus /> Hochladen</Button>
|
||||
<Button size="sm" variant="outline" class="bg-card/95" @click="pickCover"><Images /> Aus Mediathek</Button>
|
||||
<Button size="icon" variant="outline" class="size-8 bg-card/95" title="Titelbild entfernen" @click="removeCover"><X /></Button>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
<div
|
||||
v-else
|
||||
type="button"
|
||||
class="mb-6 flex aspect-[21/9] w-full flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed text-sm text-muted-foreground transition-colors hover:border-brand-300 hover:bg-brand-soft/40 hover:text-foreground"
|
||||
@click.stop="coverInput?.click()"
|
||||
class="mb-6 flex aspect-[21/9] w-full flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed text-sm text-muted-foreground"
|
||||
@click.stop
|
||||
>
|
||||
<ImagePlus class="size-7" />
|
||||
<span class="font-medium">Titelbild hinzufügen</span>
|
||||
<span class="font-medium text-foreground">Titelbild hinzufügen</span>
|
||||
<div class="flex gap-2">
|
||||
<Button size="sm" variant="outline" @click="coverInput?.click()"><ImagePlus /> Hochladen</Button>
|
||||
<Button size="sm" variant="outline" @click="pickCover"><Images /> Aus Mediathek</Button>
|
||||
</div>
|
||||
<span class="text-xs">Querformat, am besten 1600 × 900 Pixel</span>
|
||||
</button>
|
||||
</div>
|
||||
<input ref="coverInput" type="file" accept="image/jpeg,image/png,image/webp" class="hidden" @change="chooseCover" />
|
||||
<p v-if="form.errors.cover" class="-mt-4 mb-4 text-[13px] text-destructive">{{ form.errors.cover }}</p>
|
||||
|
||||
|
|
@ -620,7 +647,8 @@ function autoGrow(event) {
|
|||
<div class="grid gap-2 border-t pt-4">
|
||||
<span class="text-[13px] font-medium">Titelbild</span>
|
||||
<div class="flex gap-2">
|
||||
<Button variant="outline" size="sm" @click="coverInput?.click()"><ImagePlus /> {{ coverPreview ? 'Anderes Bild' : 'Bild hochladen' }}</Button>
|
||||
<Button variant="outline" size="sm" @click="coverInput?.click()"><ImagePlus /> Hochladen</Button>
|
||||
<Button variant="outline" size="sm" @click="pickCover"><Images /> Mediathek</Button>
|
||||
<Button v-if="coverPreview" variant="ghost" size="sm" @click="removeCover"><X /> Entfernen</Button>
|
||||
</div>
|
||||
<p class="text-xs text-muted-foreground">Wird auf 16:9 zugeschnitten.</p>
|
||||
|
|
@ -670,5 +698,6 @@ function autoGrow(event) {
|
|||
</Dialog>
|
||||
</div>
|
||||
|
||||
<MediaPickerHost :picker="mediaPicker" />
|
||||
<Toaster position="bottom-left" />
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
namespace Inhaus\Plugins\News\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Media\MediaLibrary;
|
||||
use App\Models\Role;
|
||||
use App\Models\User;
|
||||
use App\Pagebuilder\Blocks;
|
||||
use App\Pagebuilder\Content;
|
||||
use App\Support\Audit;
|
||||
use App\Support\Images;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
|
@ -109,15 +109,15 @@ class NewsEditorController extends Controller
|
|||
return to_route('editorial')->with('status', 'Beitrag gelöscht.');
|
||||
}
|
||||
|
||||
public function uploadImage(Request $request, Images $images): JsonResponse
|
||||
public function uploadImage(Request $request, MediaLibrary $library): JsonResponse
|
||||
{
|
||||
Gate::authorize('create', NewsPost::class);
|
||||
$request->validate(['image' => ['required', File::image()->types(['jpg', 'jpeg', 'png', 'webp', 'gif'])->max(15 * 1024)]]);
|
||||
|
||||
// Unter pagebuilder/, damit Bild-Blöcke den Pfad annehmen
|
||||
$path = $images->storeContentImage($request->file('image'), 'pagebuilder/news');
|
||||
// Landet zugleich in der Mediathek.
|
||||
$media = $library->store($request->file('image'), 'pagebuilder/news', $request->user());
|
||||
|
||||
return response()->json(['path' => $path, 'url' => Storage::disk('uploads')->url($path)]);
|
||||
return response()->json(['path' => $media->path, 'url' => Blocks::imageUrl($media->path), 'media' => $media->toLibraryArray()]);
|
||||
}
|
||||
|
||||
/** Vorschau dynamischer Blöcke (aktuelle Beiträge, Termine, Personen …) im Editor */
|
||||
|
|
@ -149,6 +149,8 @@ class NewsEditorController extends Controller
|
|||
'category_id' => [$user->can('news.manage') ? 'nullable' : 'required', 'integer', Rule::in($writable === true ? NewsCategory::query()->pluck('id')->all() : $writable)],
|
||||
'cover' => ['nullable', File::image()->types(['jpg', 'jpeg', 'png', 'webp'])->max(10 * 1024)],
|
||||
'remove_cover' => ['boolean'],
|
||||
// Titelbild aus der Mediathek
|
||||
'cover_media' => ['nullable', 'string', 'max:500', Rule::exists('media', 'path')],
|
||||
'is_featured' => ['boolean'],
|
||||
'comments_enabled' => ['boolean'],
|
||||
'published_at' => ['nullable', 'date'],
|
||||
|
|
@ -184,8 +186,12 @@ class NewsEditorController extends Controller
|
|||
$post->cover_path = null;
|
||||
}
|
||||
|
||||
if (filled($data['cover_media'] ?? null) && ! $request->hasFile('cover')) {
|
||||
$post->cover_path = $data['cover_media'];
|
||||
}
|
||||
|
||||
if ($request->hasFile('cover')) {
|
||||
$post->cover_path = $request->file('cover')->store('news', 'uploads');
|
||||
$post->cover_path = app(MediaLibrary::class)->store($request->file('cover'), 'news', $user)->path;
|
||||
}
|
||||
|
||||
if ($data['action'] === 'draft') {
|
||||
|
|
|
|||
|
|
@ -55,24 +55,17 @@ class NewsPost extends Model
|
|||
}
|
||||
});
|
||||
|
||||
// Bildvarianten erzeugen bzw. beim Austausch die alten Dateien entfernen.
|
||||
// Bildvarianten erzeugen. Alte Bilder bleiben in der Mediathek (sie können
|
||||
// auch anderswo eingebunden sein) und lassen sich dort als „nicht verwendet“ aufräumen.
|
||||
static::saved(function (NewsPost $post): void {
|
||||
if (! $post->wasRecentlyCreated && ! $post->wasChanged('cover_path')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$previous = $post->wasRecentlyCreated ? null : $post->getOriginal('cover_path');
|
||||
|
||||
if ($previous && $previous !== $post->cover_path) {
|
||||
app(Images::class)->deleteWithVariants($previous);
|
||||
}
|
||||
|
||||
if ($post->cover_path) {
|
||||
app(Images::class)->createVariants($post->cover_path);
|
||||
}
|
||||
});
|
||||
|
||||
static::deleted(fn (NewsPost $post) => app(Images::class)->deleteWithVariants($post->cover_path));
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ namespace Inhaus\Plugins\News;
|
|||
|
||||
use App\Dashboard\Widgets;
|
||||
use App\Editorial\Editorial;
|
||||
use App\Media\ImagePaths;
|
||||
use App\Media\MediaUsages;
|
||||
use App\Models\User;
|
||||
use App\Pagebuilder\Blocks;
|
||||
use App\Pagebuilder\BlockType;
|
||||
|
|
@ -15,6 +17,7 @@ use App\Support\Navigation;
|
|||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Inhaus\Plugins\News\Http\Resources\NewsPostResource;
|
||||
use Inhaus\Plugins\News\Models\NewsCategory;
|
||||
use Inhaus\Plugins\News\Models\NewsPost;
|
||||
|
|
@ -40,6 +43,7 @@ class NewsPlugin extends Plugin
|
|||
Gate::policy(NewsPost::class, NewsPostPolicy::class);
|
||||
|
||||
$this->registerWidgets($this->app->make(Widgets::class));
|
||||
$this->registerMediaUsages($this->app->make(MediaUsages::class));
|
||||
|
||||
$this->app->make(Editorial::class)->add(
|
||||
'news',
|
||||
|
|
@ -70,6 +74,41 @@ class NewsPlugin extends Plugin
|
|||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Mediathek „Eingebunden in“: Titelbild, Bilder im Text und – sobald Beiträge
|
||||
* mit dem Pagebuilder geschrieben werden – Bilder in der Spalte „content“.
|
||||
*/
|
||||
private function registerMediaUsages(MediaUsages $usages): void
|
||||
{
|
||||
$usages->add('news', 'Neuigkeiten', function (NewsPost $post) {
|
||||
$base = ['label' => $post->title, 'url' => route('news.editor.edit', $post, false), 'draft' => $post->status !== NewsPost::PUBLISHED];
|
||||
$entries = [
|
||||
[...$base, 'context' => 'Titelbild', 'paths' => [$post->cover_path]],
|
||||
[...$base, 'context' => ImagePaths::HTML_CONTEXT, 'paths' => [...ImagePaths::fromHtml($post->body_html), ...ImagePaths::fromHtml($post->body)]],
|
||||
];
|
||||
|
||||
if (self::hasContentColumn()) {
|
||||
$content = $post->getAttribute('content');
|
||||
$content = is_string($content) ? json_decode($content, true) : $content;
|
||||
|
||||
foreach (ImagePaths::fromContent(is_array($content) ? $content : null) as $context => $paths) {
|
||||
$entries[] = [...$base, 'context' => $context, 'paths' => $paths];
|
||||
}
|
||||
}
|
||||
|
||||
return $entries;
|
||||
}, fn (callable $each) => NewsPost::query()->chunkById(100, fn ($posts) => $posts->each($each)));
|
||||
|
||||
$usages->watch('news', NewsPost::class);
|
||||
}
|
||||
|
||||
private static function hasContentColumn(): bool
|
||||
{
|
||||
static $has;
|
||||
|
||||
return $has ??= Schema::hasColumn('news_posts', 'content');
|
||||
}
|
||||
|
||||
private function registerWidgets(Widgets $widgets): void
|
||||
{
|
||||
// Slider: hervorgehobene Beiträge mit Bild, sonst die neuesten mit Bild.
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@ import BlockSettings from '@/pagebuilder/editor/BlockSettings.vue';
|
|||
import EditorBlockList from '@/pagebuilder/editor/EditorBlockList.vue';
|
||||
import { clone, createBlock, duplicate as duplicateBlock, locate, walk } from '@/pagebuilder/editor/tree';
|
||||
import { http } from '@/lib/http';
|
||||
import MediaPickerHost from '@/components/media/MediaPickerHost.vue';
|
||||
import { collectImagePaths, uploadWithProgress } from '@/components/media/api';
|
||||
import { useMediaPicker } from '@/components/media/useMediaPicker';
|
||||
import { formatTime } from '@/lib/format';
|
||||
import PublishDialog from '../components/PublishDialog.vue';
|
||||
import RevisionsDialog from '../components/RevisionsDialog.vue';
|
||||
|
|
@ -133,14 +136,18 @@ function containsActive(item) {
|
|||
return candidates.some((block) => block.items?.includes(item) || locate(item.blocks, block.id));
|
||||
}
|
||||
|
||||
// ——— Hochladen ———
|
||||
async function uploadImage(file) {
|
||||
const body = new FormData();
|
||||
body.append('image', file);
|
||||
|
||||
return http.post(`${base}/bilder`, body);
|
||||
// ——— Hochladen und Mediathek ———
|
||||
// Bilder landen im Verzeichnis der Seite und zugleich in der Mediathek.
|
||||
async function uploadImage(file, onProgress) {
|
||||
return uploadWithProgress(`${base}/bilder`, file, { onProgress });
|
||||
}
|
||||
|
||||
const mediaPicker = useMediaPicker({
|
||||
upload: uploadImage,
|
||||
contextLabel: 'Auf dieser Seite',
|
||||
contextPaths: () => collectImagePaths(working.content),
|
||||
});
|
||||
|
||||
async function uploadFile(file) {
|
||||
const body = new FormData();
|
||||
body.append('file', file);
|
||||
|
|
@ -170,6 +177,8 @@ provide('pagebuilder:editor', {
|
|||
containsActive,
|
||||
uploadImage,
|
||||
uploadFile,
|
||||
// Bildauswahl „Aus der Mediathek“: ({ multiple?, title? }) => Promise<[{ id, path, url, alt, caption, width, height }] | null>
|
||||
pickMedia: (options) => mediaPicker.pick(options),
|
||||
imageUrl: (path) => `${props.uploadsUrl}/${path}`,
|
||||
});
|
||||
provide('pagebuilder:list', EditorBlockList);
|
||||
|
|
@ -632,5 +641,6 @@ const canvasWidth = computed(() => devices.find((d) => d.key === device.value).w
|
|||
<NewPageDialog v-model:open="dialogs.newPage" :parent-id="page.id" :parent-title="page.title" @before-create="save" />
|
||||
</div>
|
||||
|
||||
<MediaPickerHost :picker="mediaPicker" />
|
||||
<Toaster position="bottom-left" />
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
namespace Inhaus\Plugins\Pages\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Media\MediaLibrary;
|
||||
use App\Models\Role;
|
||||
use App\Models\User;
|
||||
use App\Notifications\PortalNotification;
|
||||
use App\Pagebuilder\Blocks;
|
||||
use App\Pagebuilder\Content;
|
||||
use App\Support\Audit;
|
||||
use App\Support\Images;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
|
@ -312,14 +312,15 @@ class PageEditorController extends Controller
|
|||
return response()->json(['ok' => true]);
|
||||
}
|
||||
|
||||
public function uploadImage(Request $request, Page $page, Images $images): JsonResponse
|
||||
public function uploadImage(Request $request, Page $page, MediaLibrary $library): JsonResponse
|
||||
{
|
||||
Gate::authorize('update', $page);
|
||||
$request->validate(['image' => ['required', File::image()->types(['jpg', 'jpeg', 'png', 'webp', 'gif'])->max(15 * 1024)]]);
|
||||
|
||||
$path = $images->storeContentImage($request->file('image'), 'pagebuilder/pages/'.$page->id);
|
||||
// Landet zugleich in der Mediathek.
|
||||
$media = $library->store($request->file('image'), 'pagebuilder/pages/'.$page->id, $request->user());
|
||||
|
||||
return response()->json(['path' => $path, 'url' => Blocks::imageUrl($path)]);
|
||||
return response()->json(['path' => $media->path, 'url' => Blocks::imageUrl($media->path), 'media' => $media->toLibraryArray()]);
|
||||
}
|
||||
|
||||
public function uploadFile(Request $request, Page $page): JsonResponse
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
namespace Inhaus\Plugins\Pages;
|
||||
|
||||
use App\Editorial\Editorial;
|
||||
use App\Media\ImagePaths;
|
||||
use App\Media\MediaUsages;
|
||||
use App\Models\User;
|
||||
use App\Pagebuilder\Blocks;
|
||||
use App\Pagebuilder\BlockType;
|
||||
|
|
@ -88,6 +90,7 @@ class PagesPlugin extends Plugin
|
|||
);
|
||||
|
||||
$this->registerBlocks($this->app->make(Blocks::class));
|
||||
$this->registerMediaUsages($this->app->make(MediaUsages::class));
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
|
|
@ -98,6 +101,33 @@ class PagesPlugin extends Plugin
|
|||
})->everyMinute()->name('pages-scheduled')->withoutOverlapping(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mediathek „Eingebunden in“: veröffentlichter Inhalt, Entwurf und geplanter Stand.
|
||||
*/
|
||||
private function registerMediaUsages(MediaUsages $usages): void
|
||||
{
|
||||
$usages->add('pages', 'Seiten', function (Page $page) {
|
||||
$entries = [];
|
||||
$url = route('pages.editor', $page, false);
|
||||
|
||||
foreach (['content' => false, 'scheduled_content' => true, 'draft' => true] as $column => $draft) {
|
||||
$title = match ($column) {
|
||||
'draft' => $page->draft_title ?? $page->title,
|
||||
'scheduled_content' => $page->scheduled_title ?? $page->title,
|
||||
default => $page->title,
|
||||
};
|
||||
|
||||
foreach (ImagePaths::fromContent($page->{$column}) as $context => $paths) {
|
||||
$entries[] = ['context' => $context, 'label' => $title, 'url' => $url, 'draft' => $draft, 'paths' => $paths];
|
||||
}
|
||||
}
|
||||
|
||||
return $entries;
|
||||
}, fn (callable $each) => Page::query()->chunkById(50, fn ($pages) => $pages->each($each)));
|
||||
|
||||
$usages->watch('pages', Page::class, ['content', 'draft', 'scheduled_content', 'title', 'draft_title', 'scheduled_title']);
|
||||
}
|
||||
|
||||
private function registerBlocks(Blocks $blocks): void
|
||||
{
|
||||
$blocks->add(BlockType::make('downloads', 'Downloads', 'file-down', 'media', 'pages::Downloads')
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/build/assets/AppIcon-nlhvQfK7.js
Normal file
1
public/build/assets/AppIcon-nlhvQfK7.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-BASB8Xb9.js";import{t as c}from"./NewsCard-DpbfyO9M.js";var l={class:`-mx-5 flex snap-x scroll-px-5 gap-4 overflow-x-auto px-5 pb-1 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:grid-cols-4 [&::-webkit-scrollbar]:hidden`},u={__name:`Areas`,props:{posts:{type:Array,required:!0}},setup(u){return(d,f)=>(r(),o(s,{title:`Aktuelles aus den Bereichen`,"action-label":`Alle`,"action-href":`/neuigkeiten`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.posts,e=>(r(),o(c,{key:e.id,post:e,class:`w-[78%] shrink-0 snap-start sm:w-auto`},null,8,[`post`]))),128))])]),_:1}))}};export{u as default};
|
||||
import{_ as e,b as t,bt as n,mt as r,o as i,qt as a,v as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as s}from"./Panel-Dr-NcUuS.js";import{t as c}from"./NewsCard-Cxl6vjIa.js";var l={class:`-mx-5 flex snap-x scroll-px-5 gap-4 overflow-x-auto px-5 pb-1 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 xl:grid-cols-4 [&::-webkit-scrollbar]:hidden`},u={__name:`Areas`,props:{posts:{type:Array,required:!0}},setup(u){return(d,f)=>(r(),o(s,{title:`Aktuelles aus den Bereichen`,"action-label":`Alle`,"action-href":`/neuigkeiten`},{default:a(()=>[e(`div`,l,[(r(!0),t(i,null,n(u.posts,e=>(r(),o(c,{key:e.id,post:e,class:`w-[78%] shrink-0 snap-start sm:w-auto`},null,8,[`post`]))),128))])]),_:1}))}};export{u as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-Bu3kn8yd.js";import{nt as d,p as f}from"./AppIcon-0N56IC2z.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(f,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(d),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t};
|
||||
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as u}from"./app-BNwrc_lv.js";import{nt as d,p as f}from"./AppIcon-nlhvQfK7.js";var p={class:`relative shrink-0`},m={key:0,class:`absolute -right-1 -bottom-1 grid size-5 place-items-center rounded-full bg-brand text-brand-foreground ring-2 ring-card`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block truncate text-xs text-muted-foreground`},v={__name:`BirthdayItem`,props:{item:{type:Object,required:!0}},setup(v){let y=e=>new Intl.DateTimeFormat(`de-DE`,{day:`numeric`,month:`long`}).format(new Date(`${e}T12:00:00`)),b=e=>new Intl.DateTimeFormat(`de-DE`,{weekday:`short`}).format(new Date(`${e}T12:00:00`));return(x,S)=>(a(),c(t(u),{href:`/personen/${v.item.person.id}`,class:`group flex items-center gap-3 py-2.5`},{default:o(()=>[r(`span`,p,[e(f,{person:v.item.person,class:`size-10`},null,8,[`person`]),v.item.today?(a(),i(`span`,m,[e(t(d),{class:`size-3`})])):l(``,!0)]),r(`span`,h,[r(`span`,g,s(v.item.person.name),1),r(`span`,_,s(v.item.person.job_title||v.item.person.department),1)]),r(`span`,{class:n([`shrink-0 text-right text-xs`,v.item.today?`font-semibold text-brand-text`:`text-muted-foreground`])},s(v.item.today?`Heute`:`${b(v.item.date)}, ${y(v.item.date)}`),3)]),_:1},8,[`href`]))}};export{v as t};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-CI_wVS_D.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default};
|
||||
import{_ as e,b as t,bt as n,mt as r,o as i,tr as a,v as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as c}from"./BirthdayItem-ELeKwOyJ.js";var l={key:0,class:`mb-3 text-lg font-semibold`},u={class:`divide-y rounded-lg border bg-card px-4`},d={key:0,class:`py-3 text-sm text-muted-foreground`},f={__name:`BirthdaysBlock`,props:{block:{type:Object,required:!0}},setup(f){return(p,m)=>(r(),t(`section`,null,[f.block.data.title?(r(),t(`h3`,l,a(f.block.data.title),1)):s(``,!0),e(`div`,u,[(r(!0),t(i,null,n(f.block.props?.birthdays??[],e=>(r(),o(c,{key:`${e.person.id}-${e.date}`,item:e},null,8,[`item`]))),128)),(f.block.props?.birthdays??[]).length?s(``,!0):(r(),t(`p`,d,`Keine anstehenden Geburtstage.`))])]))}};export{f as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as u,U as d}from"./AppIcon-0N56IC2z.js";import{S as f,v as p,x as m}from"./http-DmyDwIce.js";import{t as h}from"./circle-alert-D8SqHL0j.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:m,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:d,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:f,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:u,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default};
|
||||
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as u,U as d}from"./AppIcon-nlhvQfK7.js";import{C as f,S as p,y as m}from"./http-CAG9BrJF.js";import{t as h}from"./circle-alert-D8SqHL0j.js";var g=[`role`],_={class:`min-w-0 flex-1`},v={key:0,class:`mb-2 font-semibold`},y={__name:`Box`,props:{block:{type:Object,required:!0}},setup(y){let b=e(`pagebuilder:list`),x={info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`,iconClass:`text-sky-600 dark:text-sky-400`},note:{icon:d,class:`border-amber-200 bg-amber-50 text-amber-950 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-100`,iconClass:`text-amber-600 dark:text-amber-400`},warning:{icon:m,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`,iconClass:`text-red-600 dark:text-red-400`},success:{icon:f,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`,iconClass:`text-emerald-600 dark:text-emerald-400`},neutral:{icon:h,class:`border-border bg-muted text-foreground`,iconClass:`text-muted-foreground`},highlight:{icon:u,class:`border-brand-200 bg-brand-soft text-foreground`,iconClass:`text-brand-text`}};return(e,u)=>(a(),i(`aside`,{class:n([`pb-box flex gap-3 rounded-lg border p-4 @xl:p-5`,x[y.block.data.variant]?.class]),role:y.block.data.variant===`warning`?`alert`:`note`},[y.block.data.show_icon?(a(),s(c(x[y.block.data.variant]?.icon),{key:0,class:n([`mt-0.5 size-5 shrink-0`,x[y.block.data.variant]?.iconClass])},null,8,[`class`])):l(``,!0),r(`div`,_,[y.block.data.title?(a(),i(`p`,v,o(y.block.data.title),1)):l(``,!0),(a(),s(c(t(b)),{item:y.block.items[0]},null,8,[`item`]))])],10,g))}};export{y as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as c}from"./app-Bu3kn8yd.js";var l={class:`flex items-center gap-3`},u=[`src`,`alt`],d=[`src`,`alt`],f=[`src`,`alt`],p=[`src`,`alt`],m=[`src`],h={class:`text-[17px] font-semibold tracking-tight`},g={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(g){let _=g,v=r(()=>c().props.branding),y=r(()=>v.value.portal_name.trim().charAt(0).toUpperCase()),b=r(()=>v.value.logo_dark_url??v.value.logo_url);return(r,c)=>(i(),n(`span`,l,[v.value.logo_url?(i(),n(a,{key:0},[g.compact&&v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:v.value.portal_name,class:`size-8 sm:hidden`},null,8,u)):s(``,!0),t(`span`,{class:e(g.compact&&v.value.logo_mark_url?`hidden sm:contents`:`contents`)},[_.inverted?(i(),n(`img`,{key:0,src:b.value,alt:v.value.portal_name,class:`h-8 w-auto`},null,8,d)):(i(),n(a,{key:1},[t(`img`,{src:v.value.logo_url,alt:v.value.portal_name,class:`h-8 w-auto dark:hidden`},null,8,f),t(`img`,{src:b.value,alt:v.value.portal_name,class:`hidden h-8 w-auto dark:block`},null,8,p)],64))],2)],64)):(i(),n(a,{key:1},[v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:``,class:`size-8`},null,8,m)):(i(),n(`span`,{key:1,class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,_.inverted?`bg-white/15 text-current`:`bg-brand text-brand-foreground`])},o(y.value),3)),t(`span`,h,o(v.value.portal_name),1)],64))]))}};export{g as t};
|
||||
import{Zn as e,_ as t,b as n,g as r,mt as i,o as a,tr as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as c}from"./app-BNwrc_lv.js";var l={class:`flex items-center gap-3`},u=[`src`,`alt`],d=[`src`,`alt`],f=[`src`,`alt`],p=[`src`,`alt`],m=[`src`],h={class:`text-[17px] font-semibold tracking-tight`},g={__name:`BrandLogo`,props:{inverted:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},setup(g){let _=g,v=r(()=>c().props.branding),y=r(()=>v.value.portal_name.trim().charAt(0).toUpperCase()),b=r(()=>v.value.logo_dark_url??v.value.logo_url);return(r,c)=>(i(),n(`span`,l,[v.value.logo_url?(i(),n(a,{key:0},[g.compact&&v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:v.value.portal_name,class:`size-8 sm:hidden`},null,8,u)):s(``,!0),t(`span`,{class:e(g.compact&&v.value.logo_mark_url?`hidden sm:contents`:`contents`)},[_.inverted?(i(),n(`img`,{key:0,src:b.value,alt:v.value.portal_name,class:`h-8 w-auto`},null,8,d)):(i(),n(a,{key:1},[t(`img`,{src:v.value.logo_url,alt:v.value.portal_name,class:`h-8 w-auto dark:hidden`},null,8,f),t(`img`,{src:b.value,alt:v.value.portal_name,class:`hidden h-8 w-auto dark:block`},null,8,p)],64))],2)],64)):(i(),n(a,{key:1},[v.value.logo_mark_url?(i(),n(`img`,{key:0,src:v.value.logo_mark_url,alt:``,class:`size-8`},null,8,m)):(i(),n(`span`,{key:1,class:e([`grid size-8 place-items-center rounded-md text-base font-bold`,_.inverted?`bg-white/15 text-current`:`bg-brand text-brand-foreground`])},o(y.value),3)),t(`span`,h,o(v.value.portal_name),1)],64))]))}};export{g as t};
|
||||
File diff suppressed because one or more lines are too long
1
public/build/assets/Builder-CNJagWI1.js
Normal file
1
public/build/assets/Builder-CNJagWI1.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{E as e,J as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{k as p}from"./dist-DtGNiYlK.js";import{t as m}from"./button-ZHC5mKey.js";var h=p({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),g=[`href`,`target`,`rel`],_={key:0,class:`text-sm text-muted-foreground`},v={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(p){let v={primary:`default`,outline:`outline`,link:`link`},y=t(`pagebuilder:editing`,!1);return(t,b)=>(s(),a(`div`,{class:r([`flex flex-wrap gap-3`,{"justify-center":p.block.data.align===`center`}])},[(s(!0),a(c,null,o(p.block.data.buttons,(t,r)=>(s(),d(n(m),{key:r,variant:v[t.variant]??`default`,"as-child":``},{default:l(()=>[i(`a`,{href:t.url||`#`,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0},[e(u(t.label||`Schaltfläche`)+` `,1),t.new_tab?(s(),d(n(h),{key:0})):f(``,!0)],8,g)]),_:2},1032,[`variant`]))),128)),n(y)&&!p.block.data.buttons.length?(s(),a(`p`,_,`Noch keine Schaltflächen.`)):f(``,!0)],2))}};export{v as default};
|
||||
import{E as e,J as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{k as p}from"./dist-DtGNiYlK.js";import{n as m}from"./button-CwUSbS9X.js";var h=p({name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]}),g=[`href`,`target`,`rel`],_={key:0,class:`text-sm text-muted-foreground`},v={__name:`Buttons`,props:{block:{type:Object,required:!0}},setup(p){let v={primary:`default`,outline:`outline`,link:`link`},y=t(`pagebuilder:editing`,!1);return(t,b)=>(s(),a(`div`,{class:r([`flex flex-wrap gap-3`,{"justify-center":p.block.data.align===`center`}])},[(s(!0),a(c,null,o(p.block.data.buttons,(t,r)=>(s(),d(n(m),{key:r,variant:v[t.variant]??`default`,"as-child":``},{default:l(()=>[i(`a`,{href:t.url||`#`,target:t.new_tab?`_blank`:void 0,rel:t.new_tab?`noopener`:void 0},[e(u(t.label||`Schaltfläche`)+` `,1),t.new_tab?(s(),d(n(h),{key:0})):f(``,!0)],8,g)]),_:2},1032,[`variant`]))),128)),n(y)&&!p.block.data.buttons.length?(s(),a(`p`,_,`Noch keine Schaltflächen.`)):f(``,!0)],2))}};export{v as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-Bu3kn8yd.js";import{V as m,p as h}from"./AppIcon-0N56IC2z.js";import{y as g}from"./http-DmyDwIce.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=n(`pagebuilder:editing`,!1);return(n,D)=>(c(),o(`section`,null,[T.block.data.title?(c(),o(`h3`,_,d(T.block.data.title),1)):f(``,!0),a(`div`,{class:i(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(c(!0),o(l,null,s(T.block.props?.people??[],n=>(c(),o(`div`,{key:n.id,class:i([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(h,{person:n,class:`size-12 shrink-0`},null,8,[`person`]),a(`div`,v,[e(r(p),{href:`/personen/${n.id}`,class:`block truncate font-semibold hover:underline`},{default:u(()=>[t(d(n.name),1)]),_:2},1032,[`href`]),n.job_title?(c(),o(`p`,y,d(n.job_title),1)):f(``,!0),a(`div`,b,[n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(r(g),{class:`size-3.5`}),t(` `+d(n.phone),1)],8,x)):f(``,!0),a(`a`,{href:`mailto:${n.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(r(m),{class:`size-3.5 shrink-0`}),D[0]||=t(),a(`span`,C,d(n.email),1)],8,S)])])],2))),128)),r(E)&&!(T.block.props?.people??[]).length?(c(),o(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default};
|
||||
import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,mt as c,o as l,qt as u,tr as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-BNwrc_lv.js";import{V as m,p as h}from"./AppIcon-nlhvQfK7.js";import{b as g}from"./http-CAG9BrJF.js";var _={key:0,class:`mb-3 text-lg font-semibold`},v={class:`min-w-0`},y={key:0,class:`truncate text-[13px] text-muted-foreground`},b={class:`mt-1.5 flex flex-wrap gap-x-4 gap-y-1 text-[13px]`},x=[`href`],S=[`href`],C={class:`truncate`},w={key:0,class:`text-sm text-muted-foreground`},T={__name:`Contacts`,props:{block:{type:Object,required:!0}},setup(T){let E=n(`pagebuilder:editing`,!1);return(n,D)=>(c(),o(`section`,null,[T.block.data.title?(c(),o(`h3`,_,d(T.block.data.title),1)):f(``,!0),a(`div`,{class:i(T.block.data.layout===`list`?`divide-y rounded-lg border bg-card`:`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`)},[(c(!0),o(l,null,s(T.block.props?.people??[],n=>(c(),o(`div`,{key:n.id,class:i([`flex gap-3`,T.block.data.layout===`list`?`items-center px-4 py-3`:`rounded-lg border bg-card p-4`])},[e(h,{person:n,class:`size-12 shrink-0`},null,8,[`person`]),a(`div`,v,[e(r(p),{href:`/personen/${n.id}`,class:`block truncate font-semibold hover:underline`},{default:u(()=>[t(d(n.name),1)]),_:2},1032,[`href`]),n.job_title?(c(),o(`p`,y,d(n.job_title),1)):f(``,!0),a(`div`,b,[n.phone?(c(),o(`a`,{key:0,href:`tel:${n.phone}`,class:`inline-flex items-center gap-1 text-brand-text hover:underline`},[e(r(g),{class:`size-3.5`}),t(` `+d(n.phone),1)],8,x)):f(``,!0),a(`a`,{href:`mailto:${n.email}`,class:`inline-flex min-w-0 items-center gap-1 text-brand-text hover:underline`},[e(r(m),{class:`size-3.5 shrink-0`}),D[0]||=t(),a(`span`,C,d(n.email),1)],8,S)])])],2))),128)),r(E)&&!(T.block.props?.people??[]).length?(c(),o(`p`,w,`Noch keine Personen ausgewählt.`)):f(``,!0)],2)]))}};export{T as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{z as u}from"./AppIcon-0N56IC2z.js";import{S as d,v as f,x as p}from"./http-DmyDwIce.js";import{t as m}from"./circle-alert-D8SqHL0j.js";import{t as h}from"./Panel-BASB8Xb9.js";var g=[`src`,`alt`],_={key:0,class:`block px-4 py-3 text-sm font-semibold group-hover:underline`},v={class:`min-w-0 flex-1`},y={key:0,class:`font-semibold`},b=[`innerHTML`],x=[`href`,`target`],S=[`innerHTML`],C=[`href`,`target`],w={__name:`CustomTile`,props:{tile:{type:Object,required:!0}},setup(w){let T={brand:{icon:u,class:`border-brand bg-brand text-brand-foreground`},info:{icon:p,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:f,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:m,class:`border-border bg-card text-foreground`}};return(d,f)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(u)),{class:`mt-0.5 size-5 shrink-0`})),n(`div`,v,[w.tile.title?(i(),r(`p`,y,o(w.tile.title),1)):l(``,!0),w.tile.html?(i(),r(`div`,{key:1,class:t([`prose prose-sm max-w-none [&_a]:underline`,w.tile.title?`mt-1`:``]),innerHTML:w.tile.html},null,10,b)):l(``,!0),w.tile.url?(i(),r(`a`,{key:2,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-2 inline-block text-sm font-medium underline`},`Mehr erfahren`,8,x)):l(``,!0)])],2)):(i(),s(h,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default};
|
||||
import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,wt as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{z as u}from"./AppIcon-nlhvQfK7.js";import{C as d,S as f,y as p}from"./http-CAG9BrJF.js";import{t as m}from"./circle-alert-D8SqHL0j.js";import{t as h}from"./Panel-Dr-NcUuS.js";var g=[`src`,`alt`],_={key:0,class:`block px-4 py-3 text-sm font-semibold group-hover:underline`},v={class:`min-w-0 flex-1`},y={key:0,class:`font-semibold`},b=[`innerHTML`],x=[`href`,`target`],S=[`innerHTML`],C=[`href`,`target`],w={__name:`CustomTile`,props:{tile:{type:Object,required:!0}},setup(w){let T={brand:{icon:u,class:`border-brand bg-brand text-brand-foreground`},info:{icon:f,class:`border-sky-200 bg-sky-50 text-sky-950 dark:border-sky-900 dark:bg-sky-950/40 dark:text-sky-100`},success:{icon:d,class:`border-emerald-200 bg-emerald-50 text-emerald-950 dark:border-emerald-900 dark:bg-emerald-950/40 dark:text-emerald-100`},warning:{icon:p,class:`border-red-200 bg-red-50 text-red-950 dark:border-red-900 dark:bg-red-950/40 dark:text-red-100`},neutral:{icon:m,class:`border-border bg-card text-foreground`}};return(d,f)=>w.tile.type===`image`&&w.tile.image_url?(i(),s(c(w.tile.url?`a`:`figure`),{key:0,href:w.tile.url||void 0,target:w.tile.url&&w.tile.new_tab?`_blank`:void 0,rel:w.tile.url&&w.tile.new_tab?`noopener`:void 0,class:`group block overflow-hidden rounded-lg border bg-card`},{default:a(()=>[n(`img`,{src:w.tile.image_url,alt:w.tile.alt||w.tile.title||``,loading:`lazy`,class:`w-full object-cover transition-transform duration-300 group-hover:scale-[1.02]`},null,8,g),w.tile.title?(i(),r(`span`,_,o(w.tile.title),1)):l(``,!0)]),_:1},8,[`href`,`target`,`rel`])):w.tile.type===`notice`?(i(),r(`section`,{key:1,class:t([`pb-box flex gap-3 rounded-lg border p-4 sm:p-5`,T[w.tile.variant]?.class??T.brand.class])},[(i(),s(c(T[w.tile.variant]?.icon??e(u)),{class:`mt-0.5 size-5 shrink-0`})),n(`div`,v,[w.tile.title?(i(),r(`p`,y,o(w.tile.title),1)):l(``,!0),w.tile.html?(i(),r(`div`,{key:1,class:t([`prose prose-sm max-w-none [&_a]:underline`,w.tile.title?`mt-1`:``]),innerHTML:w.tile.html},null,10,b)):l(``,!0),w.tile.url?(i(),r(`a`,{key:2,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-2 inline-block text-sm font-medium underline`},`Mehr erfahren`,8,x)):l(``,!0)])],2)):(i(),s(h,{key:2,title:w.tile.title||``},{default:a(()=>[n(`div`,{class:`prose prose-sm prose-neutral max-w-none prose-img:rounded-md`,innerHTML:w.tile.html},null,8,S),w.tile.url?(i(),r(`a`,{key:0,href:w.tile.url,target:w.tile.new_tab?`_blank`:void 0,class:`mt-3 inline-block text-[13px] font-medium text-brand-text hover:underline`},`Mehr erfahren`,8,C)):l(``,!0)]),_:1},8,[`title`]))}};export{w as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{On as e,_ as t,b as n,bt as r,et as i,g as a,mt as o,o as s,qt as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./dist-DtGNiYlK.js";import{t as p}from"./AppLayout-BxsYt2ib.js";import{t as m}from"./widgets-BmL-pPiO.js";var h={key:0,class:`mb-6 grid gap-6`},g={key:1,class:`grid grid-cols-12 gap-6`},_={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},v={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},y={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},b={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(b){let x=b,S=f(`(min-width: 1024px)`),C=a(()=>x.widgets.filter(e=>m(e.component))),w=e=>C.value.filter(t=>t.area===e),T=a(()=>w(`hero`)[0]??null),E=a(()=>[...C.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(a,f)=>(o(),l(p,{title:`Startseite`},{default:c(()=>[e(S)&&w(`top`).length?(o(),n(`div`,h,[(o(!0),n(s,null,r(w(`top`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])):d(``,!0),e(S)?(o(),n(`div`,g,[t(`div`,_,[T.value?(o(),l(u(e(m)(T.value.component)),i({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):d(``,!0),(o(!0),n(s,null,r(w(`feed`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(o(!0),n(s,null,r(w(`main`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{class:`xl:col-span-3`}),null,16))),128))]),t(`aside`,v,[(o(!0),n(s,null,r(w(`aside`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])])):(o(),n(`div`,y,[(o(!0),n(s,null,r(E.value,t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))]))]),_:1}))}};export{b as default};
|
||||
import{On as e,_ as t,b as n,bt as r,et as i,g as a,mt as o,o as s,qt as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./dist-DtGNiYlK.js";import{t as p}from"./AppLayout-esQiy2nD.js";import{t as m}from"./widgets-D5Uy4PcL.js";var h={key:0,class:`mb-6 grid gap-6`},g={key:1,class:`grid grid-cols-12 gap-6`},_={class:`col-span-8 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-9 xl:grid-cols-3`},v={class:`col-span-4 grid min-w-0 grid-cols-1 content-start gap-6 xl:col-span-3`},y={key:2,class:`grid min-w-0 grid-cols-1 gap-6`},b={__name:`Dashboard`,props:{widgets:{type:Array,required:!0}},setup(b){let x=b,S=f(`(min-width: 1024px)`),C=a(()=>x.widgets.filter(e=>m(e.component))),w=e=>C.value.filter(t=>t.area===e),T=a(()=>w(`hero`)[0]??null),E=a(()=>[...C.value].sort((e,t)=>e.mobileSort-t.mobileSort));return(a,f)=>(o(),l(p,{title:`Startseite`},{default:c(()=>[e(S)&&w(`top`).length?(o(),n(`div`,h,[(o(!0),n(s,null,r(w(`top`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])):d(``,!0),e(S)?(o(),n(`div`,g,[t(`div`,_,[T.value?(o(),l(u(e(m)(T.value.component)),i({key:0},T.value.props,{class:`xl:col-span-2`}),null,16)):d(``,!0),(o(!0),n(s,null,r(w(`feed`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{wide:!T.value,class:T.value?`xl:col-span-1`:`xl:col-span-3`}),null,16,[`wide`,`class`]))),128)),(o(!0),n(s,null,r(w(`main`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props,{class:`xl:col-span-3`}),null,16))),128))]),t(`aside`,v,[(o(!0),n(s,null,r(w(`aside`),t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))])])):(o(),n(`div`,y,[(o(!0),n(s,null,r(E.value,t=>(o(),l(u(e(m)(t.component)),i({key:t.key},{ref_for:!0},t.props),null,16))),128))]))]),_:1}))}};export{b as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{a as e}from"./usePrimitiveElement-DC7UloPZ.js";import{On as t,et as n,k as r,mt as i,qt as a,v as o,xt as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as c,l,p as u,s as d}from"./dist-DtGNiYlK.js";import{w as f}from"./AppIcon-0N56IC2z.js";var p=r({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let r=e;u();let l=f();return(e,u)=>(i(),o(t(c),n(r,{id:t(l).descriptionId}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`id`]))}}),m=r({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(r){let c=r,u=d(c,`class`),f=e(u);return(e,r)=>(i(),o(t(p),n({"data-slot":`dialog-description`},t(f),{class:t(l)(`text-muted-foreground text-sm`,c.class)}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`class`]))}});export{m as t};
|
||||
1
public/build/assets/DialogDescription-CaB-9xpp.js
Normal file
1
public/build/assets/DialogDescription-CaB-9xpp.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{a as e}from"./usePrimitiveElement-DC7UloPZ.js";import{On as t,et as n,k as r,mt as i,qt as a,v as o,xt as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{l as c,s as l}from"./dist-DtGNiYlK.js";import{t as u}from"./DialogDescription-Cf3zbHQX.js";var d=r({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(r){let d=r,f=l(d,`class`),p=e(f);return(e,r)=>(i(),o(t(u),n({"data-slot":`dialog-description`},t(p),{class:t(c)(`text-muted-foreground text-sm`,d.class)}),{default:a(()=>[s(e.$slots,`default`)]),_:3},16,[`class`]))}});export{d as t};
|
||||
1
public/build/assets/DialogDescription-Cf3zbHQX.js
Normal file
1
public/build/assets/DialogDescription-Cf3zbHQX.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{On as e,et as t,k as n,mt as r,qt as i,v as a,xt as o}from"./runtime-core.esm-bundler-B8D2lM98.js";import{d as s,p as c}from"./dist-DtGNiYlK.js";import{w as l}from"./AppIcon-nlhvQfK7.js";var u=n({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(n){let u=n;c();let d=l();return(n,c)=>(r(),a(e(s),t(u,{id:e(d).descriptionId}),{default:i(()=>[o(n.$slots,`default`)]),_:3},16,[`id`]))}});export{u as t};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as u,r as d}from"./app-Bu3kn8yd.js";import{O as f}from"./dist-DtGNiYlK.js";import{t as p}from"./arrow-left-BMImfTf2.js";import{t as m}from"./eye-off-myis3scV.js";import{t as h}from"./eye-CFNQcvaV.js";import{t as g}from"./FormField-BoFAO4pm.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Input-FGSb2-yK.js";import{t as y}from"./GuestLayout-CAwpgUCY.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=u({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,u)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(v),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":u[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(v),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":u[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:u[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(m),{key:0,class:`size-4`})):(i(),o(n(h),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(_),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(f),{key:0,class:`animate-spin`})):c(``,!0),u[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(p),{class:`size-4`}),u[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default};
|
||||
import{D as e,E as t,On as n,_ as r,mt as i,qt as a,v as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as l}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as u,r as d}from"./app-BNwrc_lv.js";import{O as f}from"./dist-DtGNiYlK.js";import{t as p}from"./arrow-left-BMImfTf2.js";import{t as m}from"./eye-off-myis3scV.js";import{t as h}from"./eye-CFNQcvaV.js";import{t as g}from"./FormField-BoFAO4pm.js";import{n as _}from"./button-CwUSbS9X.js";import{t as v}from"./Input-FGSb2-yK.js";import{t as y}from"./GuestLayout-B2rtJjbh.js";var b={class:`relative`},x=[`aria-label`],S={__name:`DirectoryLogin`,props:{provider:{type:Object,required:!0}},setup(S){let C=S,w=s(!1),T=u({username:``,password:``});function E(){T.post(C.provider.action,{onFinish:()=>T.reset(`password`)})}return(s,u)=>(i(),o(y,{title:S.provider.label,description:`Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.`},{default:a(()=>[r(`form`,{class:`grid gap-5`,onSubmit:l(E,[`prevent`])},[e(g,{id:`username`,label:S.provider.username_label,error:n(T).errors.username},{default:a(()=>[e(n(v),{id:`username`,modelValue:n(T).username,"onUpdate:modelValue":u[0]||=e=>n(T).username=e,autocomplete:`username`,autocapitalize:`none`,spellcheck:`false`,autofocus:``,class:`h-10`,"aria-invalid":!!n(T).errors.username},null,8,[`modelValue`,`aria-invalid`])]),_:1},8,[`label`,`error`]),e(g,{id:`password`,label:`Passwort`,error:n(T).errors.password},{default:a(()=>[r(`div`,b,[e(n(v),{id:`password`,modelValue:n(T).password,"onUpdate:modelValue":u[1]||=e=>n(T).password=e,type:w.value?`text`:`password`,autocomplete:`current-password`,class:`h-10 pr-10`,"aria-invalid":!!n(T).errors.password},null,8,[`modelValue`,`type`,`aria-invalid`]),r(`button`,{type:`button`,class:`absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground`,"aria-label":w.value?`Passwort verbergen`:`Passwort anzeigen`,onClick:u[2]||=e=>w.value=!w.value},[w.value?(i(),o(n(m),{key:0,class:`size-4`})):(i(),o(n(h),{key:1,class:`size-4`}))],8,x)])]),_:1},8,[`error`]),e(n(_),{type:`submit`,size:`lg`,class:`mt-2 h-10 w-full`,disabled:n(T).processing},{default:a(()=>[n(T).processing?(i(),o(n(f),{key:0,class:`animate-spin`})):c(``,!0),u[3]||=t(` Anmelden `,-1)]),_:1},8,[`disabled`]),e(n(d),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground`},{default:a(()=>[e(n(p),{class:`size-4`}),u[4]||=t(` Andere Anmeldung wählen `,-1)]),_:1})],32)]),_:1},8,[`title`]))}};export{S as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{X as l}from"./AppIcon-0N56IC2z.js";import{t as u}from"./download-UAAY3N2F.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(l),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(u),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default};
|
||||
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{X as l}from"./AppIcon-nlhvQfK7.js";import{t as u}from"./download-UAAY3N2F.js";var d={key:0,class:`mb-3 text-lg font-semibold`},f={class:`divide-y rounded-lg border bg-card`},p=[`href`],m={class:`grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text`},h={class:`min-w-0 flex-1`},g={class:`block truncate text-sm font-medium group-hover:underline`},_={class:`block text-xs text-muted-foreground`},v={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},y={__name:`Downloads`,props:{block:{type:Object,required:!0}},setup(y){let b=e=>e>1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(x,S)=>(a(),r(`section`,null,[y.block.data.title?(a(),r(`h3`,d,s(y.block.data.title),1)):c(``,!0),n(`ul`,f,[(a(!0),r(o,null,i(y.block.props?.files??[],i=>(a(),r(`li`,{key:i.id},[n(`a`,{href:i.url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[n(`span`,m,[e(t(l),{class:`size-5`})]),n(`span`,h,[n(`span`,g,s(i.name),1),n(`span`,_,s(i.extension||`Datei`)+` · `+s(b(i.size)),1)]),e(t(u),{class:`size-4 shrink-0 text-muted-foreground`})],8,p)]))),128)),(y.block.props?.files??[]).length?c(``,!0):(a(),r(`li`,v,`Noch keine Dateien.`))])]))}};export{y as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/build/assets/Editor-BKM9pJGo.js
Normal file
1
public/build/assets/Editor-BKM9pJGo.js
Normal file
File diff suppressed because one or more lines are too long
1
public/build/assets/Editor-BhJCzJD1.js
Normal file
1
public/build/assets/Editor-BhJCzJD1.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-Bu3kn8yd.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./pencil-line-CmAbFj4f.js";import{t as h}from"./plus-B_ij2ng2.js";import{t as g}from"./table-properties-BPjlj2dD.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Panel-BASB8Xb9.js";var y=[`href`],b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`text-xs text-muted-foreground`},C={class:`font-medium text-brand-text`},w=[`href`],T=[`href`],E={key:1,class:`text-sm text-muted-foreground`},D={__name:`EditorialForms`,props:{forms:{type:Array,required:!0},createUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(v,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(_),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:c(()=>[r(`a`,{href:D.createUrl},[e(n(h)),k[0]||=t(` Neues Formular`,-1)],8,y)]),_:1})):d(``,!0)]),default:c(()=>[D.forms.length?(o(),i(`ul`,b,[(o(!0),i(s,null,a(D.forms,a=>(o(),i(`li`,{key:a.id,class:`flex items-center gap-3 px-5 py-2.5`},[r(`div`,x,[e(n(f),{href:a.url,class:`block truncate text-sm font-medium hover:underline`},{default:c(()=>[t(l(a.title),1)]),_:2},1032,[`href`]),r(`p`,S,[t(l(a.open?`offen`:`geschlossen`)+` · `+l(a.submissions)+` Einsendungen`,1),a.unread?(o(),i(s,{key:0},[k[1]||=t(`, `,-1),r(`span`,C,l(a.unread)+` neu`,1)],64)):d(``,!0)])]),a.builder_url?(o(),u(n(_),{key:0,size:`icon`,variant:`ghost`,"as-child":``,title:`Felder bearbeiten`},{default:c(()=>[e(n(f),{href:a.builder_url},{default:c(()=>[e(n(m))]),_:1},8,[`href`])]),_:2},1024)):d(``,!0),a.results_url?(o(),u(n(_),{key:1,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse`},{default:c(()=>[r(`a`,{href:a.results_url},[e(n(g))],8,w)]),_:2},1024)):d(``,!0),a.csv_url?(o(),u(n(_),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-BNwrc_lv.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./pencil-line-CmAbFj4f.js";import{t as h}from"./plus-B_ij2ng2.js";import{t as g}from"./table-properties-BPjlj2dD.js";import{n as _}from"./button-CwUSbS9X.js";import{t as v}from"./Panel-Dr-NcUuS.js";var y=[`href`],b={key:0,class:`-mx-5 divide-y border-t`},x={class:`min-w-0 flex-1`},S={class:`text-xs text-muted-foreground`},C={class:`font-medium text-brand-text`},w=[`href`],T=[`href`],E={key:1,class:`text-sm text-muted-foreground`},D={__name:`EditorialForms`,props:{forms:{type:Array,required:!0},createUrl:{type:String,default:null}},setup(D){return(O,k)=>(o(),u(v,{title:`Formulare`},{actions:c(()=>[D.createUrl?(o(),u(n(_),{key:0,size:`sm`,variant:`outline`,"as-child":``},{default:c(()=>[r(`a`,{href:D.createUrl},[e(n(h)),k[0]||=t(` Neues Formular`,-1)],8,y)]),_:1})):d(``,!0)]),default:c(()=>[D.forms.length?(o(),i(`ul`,b,[(o(!0),i(s,null,a(D.forms,a=>(o(),i(`li`,{key:a.id,class:`flex items-center gap-3 px-5 py-2.5`},[r(`div`,x,[e(n(f),{href:a.url,class:`block truncate text-sm font-medium hover:underline`},{default:c(()=>[t(l(a.title),1)]),_:2},1032,[`href`]),r(`p`,S,[t(l(a.open?`offen`:`geschlossen`)+` · `+l(a.submissions)+` Einsendungen`,1),a.unread?(o(),i(s,{key:0},[k[1]||=t(`, `,-1),r(`span`,C,l(a.unread)+` neu`,1)],64)):d(``,!0)])]),a.builder_url?(o(),u(n(_),{key:0,size:`icon`,variant:`ghost`,"as-child":``,title:`Felder bearbeiten`},{default:c(()=>[e(n(f),{href:a.builder_url},{default:c(()=>[e(n(m))]),_:1},8,[`href`])]),_:2},1024)):d(``,!0),a.results_url?(o(),u(n(_),{key:1,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse`},{default:c(()=>[r(`a`,{href:a.results_url},[e(n(g))],8,w)]),_:2},1024)):d(``,!0),a.csv_url?(o(),u(n(_),{key:2,size:`icon`,variant:`ghost`,"as-child":``,title:`Ergebnisse als CSV herunterladen`},{default:c(()=>[r(`a`,{href:a.csv_url},[e(n(p))],8,T)]),_:2},1024)):d(``,!0)]))),128))])):(o(),i(`p`,E,`Noch keine Formulare.`))]),_:1}))}};export{D as default};
|
||||
1
public/build/assets/EditorialMedia-DaL3QIsH.js
Normal file
1
public/build/assets/EditorialMedia-DaL3QIsH.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-BNwrc_lv.js";import{t as p}from"./image-off-IDPmIoA8.js";import{t as m}from"./images-47Nc0alu.js";import{t as h}from"./Panel-Dr-NcUuS.js";var g={class:`-mt-1 mb-3 text-[13px] text-muted-foreground`},_={key:0,class:`grid grid-cols-4 gap-2`},v=[`src`,`alt`],y={key:1,class:`grid aspect-[4/3] place-items-center text-muted-foreground`},b={key:1,class:`grid place-items-center rounded-md border border-dashed py-8 text-center text-[13px] text-muted-foreground`},x={__name:`EditorialMedia`,props:{total:{type:Number,default:0},unused:{type:Number,default:null},recent:{type:Array,default:()=>[]}},setup(x){return(S,C)=>(o(),u(h,{title:`Mediathek`,"action-label":`Mediathek öffnen`,"action-href":`/redaktion/mediathek`},{default:c(()=>[r(`p`,g,[t(l(x.total.toLocaleString(`de-DE`))+` `+l(x.total===1?`Bild`:`Bilder`)+` `,1),x.unused?(o(),i(s,{key:0},[C[0]||=t(` · `,-1),e(n(f),{href:`/redaktion/mediathek?status=unbenutzt`,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(l(x.unused)+` nicht verwendet`,1)]),_:1})],64)):d(``,!0)]),x.recent.length?(o(),i(`ul`,_,[(o(!0),i(s,null,a(x.recent,t=>(o(),i(`li`,{key:t.id},[e(n(f),{href:`/redaktion/mediathek?q=${encodeURIComponent(t.name)}`,class:`block overflow-hidden rounded-md border bg-muted hover:border-brand-300`,title:t.alt||t.name},{default:c(()=>[t.thumb_url?(o(),i(`img`,{key:0,src:t.thumb_url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover`},null,8,v)):(o(),i(`span`,y,[e(n(p),{class:`size-5`,"stroke-width":1.5})]))]),_:2},1032,[`href`,`title`])]))),128))])):(o(),i(`div`,b,[e(n(m),{class:`mb-2 size-6`,"stroke-width":1.5}),C[1]||=t(` Noch keine Bilder hochgeladen. `,-1)]))]),_:1}))}};export{x as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-Bu3kn8yd.js";import{t as m}from"./message-square-warning-BFfa_vqd.js";import{t as h}from"./plus-B_ij2ng2.js";import{a as g}from"./format-BsuBtvUs.js";import{t as _}from"./button-ZHC5mKey.js";import{t as v}from"./Panel-BASB8Xb9.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(h)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),h=>(s(),a(`section`,{key:h.key},[i(`h3`,b,[t(u(h.title)+` `,1),h.key===`review`?(s(),a(`span`,x,u(h.items.length),1)):f(``,!0)]),h.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(h.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),h.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(g)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(m),{key:0,class:`size-4 shrink-0 text-amber-600`,title:`Mit Anmerkung zurückgegeben`})):f(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,D(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,T,u(h.empty),1))]))),128))])]),_:1}))}};export{E as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-BNwrc_lv.js";import{t as m}from"./message-square-warning-BFfa_vqd.js";import{t as h}from"./plus-B_ij2ng2.js";import{a as g}from"./format-BsuBtvUs.js";import{n as _}from"./button-CwUSbS9X.js";import{t as v}from"./Panel-Dr-NcUuS.js";var y={class:`grid gap-5`},b={class:`mb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},x={key:0,class:`ml-1 rounded-full bg-brand px-1.5 py-0.5 text-[10px] text-brand-foreground`},S={key:0,class:`-mx-5 divide-y border-y`},C={class:`min-w-0 flex-1`},w={class:`truncate text-xs text-muted-foreground`},T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialNews`,props:{review:{type:Array,required:!0},mine:{type:Array,required:!0},scheduled:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=e=>({pending:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`,published:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`,draft:`bg-muted text-muted-foreground`})[e.status];return(O,k)=>(s(),d(v,{title:`Neuigkeiten`},{actions:l(()=>[E.canCreate?(s(),d(n(_),{key:0,size:`sm`,"as-child":``},{default:l(()=>[e(n(p),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(h)),k[0]||=t(` Neuer Beitrag`,-1)]),_:1})]),_:1})):f(``,!0)]),default:l(()=>[i(`div`,y,[(s(!0),a(c,null,o([{key:`review`,title:`Zur Freigabe`,items:E.review,empty:null},{key:`mine`,title:`Meine Entwürfe`,items:E.mine,empty:`Keine offenen Entwürfe.`},{key:`scheduled`,title:`Geplant`,items:E.scheduled,empty:null}].filter(e=>e.items.length||e.empty),h=>(s(),a(`section`,{key:h.key},[i(`h3`,b,[t(u(h.title)+` `,1),h.key===`review`?(s(),a(`span`,x,u(h.items.length),1)):f(``,!0)]),h.items.length?(s(),a(`ul`,S,[(s(!0),a(c,null,o(h.items,o=>(s(),a(`li`,{key:o.id,class:`flex items-center gap-3 px-5 py-2.5`},[i(`div`,C,[e(n(p),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:l(()=>[t(u(o.title),1)]),_:2},1032,[`href`]),i(`p`,w,[t(u(o.category??`Ohne Kategorie`),1),h.key!==`mine`&&o.author?(s(),a(c,{key:0},[t(` · `+u(o.author),1)],64)):f(``,!0),o.date?(s(),a(c,{key:1},[t(` · `+u(n(g)(o.date)),1)],64)):f(``,!0)])]),o.review_note?(s(),d(n(m),{key:0,class:`size-4 shrink-0 text-amber-600`,title:`Mit Anmerkung zurückgegeben`})):f(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,D(o)])},u(o.status_label),3)]))),128))])):(s(),a(`p`,T,u(h.empty),1))]))),128))])]),_:1}))}};export{E as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as h}from"./app-Bu3kn8yd.js";import{t as g}from"./lock-H7FAhSBr.js";import{t as _}from"./plus-B_ij2ng2.js";import{a as v}from"./format-BsuBtvUs.js";import{t as y}from"./button-ZHC5mKey.js";import{t as b}from"./Panel-BASB8Xb9.js";import{t as x}from"./NewPageDialog-BJuo8o_M.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(_)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(v)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(g),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as h}from"./app-BNwrc_lv.js";import{t as g}from"./lock-H7FAhSBr.js";import{t as _}from"./plus-B_ij2ng2.js";import{a as v}from"./format-BsuBtvUs.js";import{n as y}from"./button-CwUSbS9X.js";import{t as b}from"./Panel-Dr-NcUuS.js";import{t as x}from"./NewPageDialog-CGV-jwsW.js";var S={key:0,class:`-mx-5 divide-y border-t`},C={class:`text-xs text-muted-foreground`},w=[`title`],T={key:1,class:`text-sm text-muted-foreground`},E={__name:`EditorialPages`,props:{pages:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(E){let D=p(!1),O={published:{label:`Veröffentlicht`,class:`bg-emerald-100 text-emerald-800 dark:bg-emerald-900/50 dark:text-emerald-200`},draft:{label:`Entwurf`,class:`bg-brand-soft text-brand-soft-foreground`},scheduled:{label:`Geplant`,class:`bg-amber-100 text-amber-800 dark:bg-amber-900/50 dark:text-amber-200`},new:{label:`Neu`,class:`bg-muted text-muted-foreground`}};return(p,k)=>(c(),f(b,{title:`Seiten`},{actions:u(()=>[E.canCreate?(c(),f(n(y),{key:0,size:`sm`,variant:`outline`,onClick:k[0]||=e=>D.value=!0},{default:u(()=>[e(n(_)),k[2]||=t(` Neue Seite`,-1)]),_:1})):m(``,!0)]),default:u(()=>[E.pages.length?(c(),a(`ul`,S,[(c(!0),a(l,null,o(E.pages,o=>(c(),a(`li`,{key:o.id,class:`flex items-center gap-3 py-2.5 pr-5`,style:s({paddingLeft:`${1.25+Math.min(o.depth,4)*1.25}rem`})},[i(`div`,{class:r([`min-w-0 flex-1`,o.depth?`border-l pl-3`:``])},[e(n(h),{href:o.edit_url,class:`block truncate text-sm font-medium hover:underline`},{default:u(()=>[t(d(o.title),1)]),_:2},1032,[`href`]),i(`p`,C,[t(d(o.url),1),o.changed_at?(c(),a(l,{key:0},[t(` · `+d(n(v)(o.changed_at)),1)],64)):m(``,!0)])],2),o.locked_by?(c(),a(`span`,{key:0,class:`inline-flex items-center gap-1 text-xs text-muted-foreground`,title:`${o.locked_by} bearbeitet gerade`},[e(n(g),{class:`size-3.5`}),t(` `+d(o.locked_by),1)],8,w)):m(``,!0),i(`span`,{class:r([`shrink-0 rounded px-1.5 py-0.5 text-[11px] font-medium`,O[o.status].class])},d(O[o.status].label),3)],4))),128))])):(c(),a(`p`,T,`Sie dürfen noch keine Seiten bearbeiten.`)),e(x,{open:D.value,"onUpdate:open":k[1]||=e=>D.value=e},null,8,[`open`])]),_:1}))}};export{E as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as l}from"./app-Bu3kn8yd.js";import{r as u}from"./format-BsuBtvUs.js";import{t as d}from"./EventDateBlock-_E5XlLto.js";var f={class:`min-w-0 pt-0.5`},p={class:`line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},m={class:`mt-0.5 text-xs text-muted-foreground`},h={key:0,class:`truncate text-xs text-muted-foreground`},g={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(g){return(_,v)=>(i(),s(t(l),{href:`/termine/${g.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:g.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(g.event.title),1),n(`p`,m,o(t(u)(g.event)),1),g.event.location?(i(),r(`p`,h,o(g.event.location),1)):c(``,!0)])]),_:1},8,[`href`]))}};export{g as t};
|
||||
import{D as e,On as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as l}from"./app-BNwrc_lv.js";import{r as u}from"./format-BsuBtvUs.js";import{t as d}from"./EventDateBlock-_E5XlLto.js";var f={class:`min-w-0 pt-0.5`},p={class:`line-clamp-2 text-sm leading-snug font-semibold group-hover:underline`},m={class:`mt-0.5 text-xs text-muted-foreground`},h={key:0,class:`truncate text-xs text-muted-foreground`},g={__name:`EventListItem`,props:{event:{type:Object,required:!0}},setup(g){return(_,v)=>(i(),s(t(l),{href:`/termine/${g.event.id}`,class:`group flex items-start gap-3.5 py-3`},{default:a(()=>[e(d,{date:g.event.starts_at},null,8,[`date`]),n(`div`,f,[n(`h3`,p,o(g.event.title),1),n(`p`,m,o(t(u)(g.event)),1),g.event.location?(i(),r(`p`,h,o(g.event.location),1)):c(``,!0)])]),_:1},8,[`href`]))}};export{g as t};
|
||||
|
|
@ -1 +1 @@
|
|||
import{Zn as e,b as t,g as n,mt as r,tr as i,v as a,wt as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{k as c}from"./dist-DtGNiYlK.js";import{X as l}from"./AppIcon-0N56IC2z.js";var u=c({name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),d=c({name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]}),f=c({name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]}),p=c({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),m=c({name:`presentation`,size:24,node:[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]}),h=[`title`],g={key:0,class:`absolute -bottom-1.5 rounded-[3px] bg-card px-1 text-[9px] leading-tight font-bold tracking-wide text-current ring-1 ring-border`},_={__name:`FileIcon`,props:{extension:{type:String,default:``},size:{type:String,default:`md`}},setup(c){let _=c,v={icon:l},y={icon:f},b={PDF:{...v,class:`bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300`},DOC:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},DOCX:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},ODT:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},RTF:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},TXT:{...v,class:`bg-muted text-muted-foreground`},XLS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},XLSX:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},CSV:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},ODS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},PPT:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},PPTX:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},JPG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},JPEG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},PNG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},ZIP:{icon:u,class:`bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300`}},x=n(()=>b[_.extension?.toUpperCase()]??{icon:p,class:`bg-muted text-muted-foreground`}),S=n(()=>({sm:`size-8 rounded-md`,md:`size-10 rounded-md`,lg:`size-14 rounded-lg`})[_.size]),C=n(()=>({sm:`size-4`,md:`size-5`,lg:`size-7`})[_.size]);return(n,l)=>(r(),t(`span`,{class:e([`relative grid shrink-0 place-items-center`,[S.value,x.value.class]]),title:c.extension||void 0},[(r(),a(o(x.value.icon),{class:e(C.value),"stroke-width":1.75},null,8,[`class`])),c.extension&&c.size!==`sm`?(r(),t(`span`,g,i(c.extension),1)):s(``,!0)],10,h))}};export{_ as t};
|
||||
import{Zn as e,b as t,g as n,mt as r,tr as i,v as a,wt as o,y as s}from"./runtime-core.esm-bundler-B8D2lM98.js";import{k as c}from"./dist-DtGNiYlK.js";import{X as l}from"./AppIcon-nlhvQfK7.js";var u=c({name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]}),d=c({name:`file-image`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]}),f=c({name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]}),p=c({name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]}),m=c({name:`presentation`,size:24,node:[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]}),h=[`title`],g={key:0,class:`absolute -bottom-1.5 rounded-[3px] bg-card px-1 text-[9px] leading-tight font-bold tracking-wide text-current ring-1 ring-border`},_={__name:`FileIcon`,props:{extension:{type:String,default:``},size:{type:String,default:`md`}},setup(c){let _=c,v={icon:l},y={icon:f},b={PDF:{...v,class:`bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300`},DOC:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},DOCX:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},ODT:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},RTF:{...v,class:`bg-sky-50 text-sky-700 dark:bg-sky-950/50 dark:text-sky-300`},TXT:{...v,class:`bg-muted text-muted-foreground`},XLS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},XLSX:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},CSV:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},ODS:{...y,class:`bg-emerald-50 text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-300`},PPT:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},PPTX:{icon:m,class:`bg-orange-50 text-orange-700 dark:bg-orange-950/50 dark:text-orange-300`},JPG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},JPEG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},PNG:{icon:d,class:`bg-violet-50 text-violet-700 dark:bg-violet-950/50 dark:text-violet-300`},ZIP:{icon:u,class:`bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300`}},x=n(()=>b[_.extension?.toUpperCase()]??{icon:p,class:`bg-muted text-muted-foreground`}),S=n(()=>({sm:`size-8 rounded-md`,md:`size-10 rounded-md`,lg:`size-14 rounded-lg`})[_.size]),C=n(()=>({sm:`size-4`,md:`size-5`,lg:`size-7`})[_.size]);return(n,l)=>(r(),t(`span`,{class:e([`relative grid shrink-0 place-items-center`,[S.value,x.value.class]]),title:c.extension||void 0},[(r(),a(o(x.value.icon),{class:e(C.value),"stroke-width":1.75},null,8,[`class`])),c.extension&&c.size!==`sm`?(r(),t(`span`,g,i(c.extension),1)):s(``,!0)],10,h))}};export{_ as t};
|
||||
File diff suppressed because one or more lines are too long
1
public/build/assets/Folder-DhP4Kqlb.js
Normal file
1
public/build/assets/Folder-DhP4Kqlb.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as d}from"./app-Bu3kn8yd.js";import{t as f}from"./chevron-right-C9w5cb2q.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./FileIcon-B6dfvt48.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(f),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(m,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(p),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as d}from"./app-BNwrc_lv.js";import{t as f}from"./chevron-right-C9w5cb2q.js";import{t as p}from"./download-UAAY3N2F.js";import{t as m}from"./FileIcon-BctWLKDw.js";var h={key:0},g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={class:`divide-y rounded-lg border bg-card`},y=[`href`],b={class:`min-w-0 flex-1`},x={class:`block truncate text-sm font-medium group-hover:underline`},S={key:0,class:`block truncate text-[13px] text-muted-foreground`},C={class:`block text-xs text-muted-foreground`},w={key:0,class:`px-4 py-3 text-sm text-muted-foreground`},T={__name:`FolderBlock`,props:{block:{type:Object,required:!0}},setup(T){let E=e=>e>=1048576?`${(e/1024/1024).toFixed(1).replace(`.`,`,`)} MB`:`${Math.max(1,Math.round(e/1024))} KB`;return(D,O)=>T.block.props?(o(),i(`section`,h,[T.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(T.block.data.title),1),e(n(d),{href:T.block.props.folder_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[O[0]||=t(`Zum Ordner `,-1),e(n(f),{class:`size-3.5`})]),_:1},8,[`href`])])):u(``,!0),r(`ul`,v,[(o(!0),i(s,null,a(T.block.props.downloads,t=>(o(),i(`li`,{key:t.id},[r(`a`,{href:t.download_url,class:`group flex items-center gap-3 px-4 py-3 hover:bg-accent/50`},[e(m,{extension:t.extension},null,8,[`extension`]),r(`span`,b,[r(`span`,x,l(t.title),1),T.block.data.show_description&&t.description?(o(),i(`span`,S,l(t.description),1)):u(``,!0),r(`span`,C,l(t.extension)+` · `+l(E(t.size)),1)]),e(n(p),{class:`size-4 shrink-0 text-muted-foreground`})],8,y)]))),128)),T.block.props.downloads.length?u(``,!0):(o(),i(`li`,w,`Keine Dateien in diesem Ordner.`))])])):u(``,!0)}};export{T as default};
|
||||
1
public/build/assets/FolderTile-B1Q0k_YL.js
Normal file
1
public/build/assets/FolderTile-B1Q0k_YL.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as h}from"./app-BNwrc_lv.js";import{k as g}from"./dist-DtGNiYlK.js";import{V as _,p as v,t as y}from"./AppIcon-nlhvQfK7.js";import{b}from"./http-CAG9BrJF.js";import{t as x}from"./smartphone-BE2l7T-2.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?x:e.type===`phone`?b:e.type===`email`?_:null;return(_,y)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(v,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(y,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(y,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,mt as c,o as l,qt as u,tr as d,v as f,wt as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as h}from"./app-Bu3kn8yd.js";import{k as g}from"./dist-DtGNiYlK.js";import{V as _,p as v,t as y}from"./AppIcon-0N56IC2z.js";import{y as b}from"./http-DmyDwIce.js";import{t as x}from"./smartphone-BE2l7T-2.js";import{t as S}from"./colors-RDOJqd57.js";var C=g({name:`folder-cog`,size:24,node:[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]],aliases:[`folder-cog-2`]}),w={class:`flex gap-3`},T={class:`min-w-0 pt-0.5`},E={class:`mt-1 grid gap-0.5 text-[13px]`},D=[`href`],O={key:2,class:`truncate text-muted-foreground`},k={__name:`ContactCard`,props:{contact:{type:Object,required:!0}},setup(r){let s=e=>e.type===`phone`?`tel:${e.value}`:e.type===`email`?`mailto:${e.value}`:null,g=e=>e.key===`mobile`?x:e.type===`phone`?b:e.type===`email`?_:null;return(_,y)=>(c(),a(`div`,w,[e(n(h),{href:`/personen/${r.contact.id}`,class:`shrink-0`},{default:u(()=>[e(v,{person:r.contact,class:`size-14 text-base`},null,8,[`person`])]),_:1},8,[`href`]),i(`div`,T,[e(n(h),{href:`/personen/${r.contact.id}`,class:`block truncate text-sm font-semibold hover:underline`},{default:u(()=>[t(d(r.contact.name),1)]),_:1},8,[`href`]),i(`ul`,E,[(c(!0),a(l,null,o(r.contact.fields,e=>(c(),a(`li`,{key:e.key,class:`flex min-w-0 items-center gap-1.5`},[g(e)?(c(),f(p(g(e)),{key:0,class:`size-3.5 shrink-0 text-muted-foreground`})):m(``,!0),s(e)?(c(),a(`a`,{key:1,href:s(e),class:`truncate text-brand-text hover:underline`},d(e.value),9,D)):(c(),a(`span`,O,d(e.value),1))]))),128))])])]))}},A=[`src`],j={__name:`QmIcon`,props:{icon:{type:Object,default:()=>({name:`folder`})},strokeWidth:{type:[Number,String],default:1.75}},setup(e){return(t,n)=>e.icon?.name?(c(),f(y,{key:0,name:e.icon.name,"stroke-width":e.strokeWidth},null,8,[`name`,`stroke-width`])):e.icon?.url&&e.icon.mono?(c(),a(`span`,{key:1,class:`inline-block bg-current`,style:s({maskImage:`url('${e.icon.url}')`,WebkitMaskImage:`url('${e.icon.url}')`,maskSize:`contain`,WebkitMaskSize:`contain`,maskRepeat:`no-repeat`,WebkitMaskRepeat:`no-repeat`,maskPosition:`center`,WebkitMaskPosition:`center`}),"aria-hidden":`true`},null,4)):e.icon?.url?(c(),a(`img`,{key:2,src:e.icon.url,alt:``,class:`object-contain`},null,8,A)):(c(),f(y,{key:3,name:`folder`,"stroke-width":e.strokeWidth},null,8,[`stroke-width`]))}},M={class:`pointer-events-none absolute -right-4 -bottom-5 opacity-15 transition-transform group-hover:scale-105`,"aria-hidden":`true`},N={class:`relative mt-3`},P={class:`mt-0.5 block text-xs text-white/80`},F={__name:`FolderTile`,props:{folder:{type:Object,required:!0},small:{type:Boolean,default:!1}},setup(t){let a=t,o=()=>{let e=[];return a.folder.folders&&e.push(`${a.folder.folders} ${a.folder.folders,`Ordner`}`),a.folder.entries&&e.push(`${a.folder.entries} ${a.folder.entries===1?`Dokument`:`Dokumente`}`),e.join(` · `)||`Noch leer`};return(a,s)=>(c(),f(n(h),{href:t.folder.url,class:r([`group relative flex flex-col justify-between overflow-hidden rounded-lg text-white shadow-xs transition hover:shadow-md hover:brightness-110 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none`,[n(S)(t.folder.color).tile,t.small?`min-h-24 p-3.5`:`min-h-32 p-4`]])},{default:u(()=>[i(`span`,M,[e(j,{icon:t.folder.icon,class:r(t.small?`size-20`:`size-24`)},null,8,[`icon`,`class`])]),i(`span`,{class:r([`grid place-items-center rounded-md bg-white/15`,t.small?`size-9`:`size-11`])},[e(j,{icon:t.folder.icon,class:r(t.small?`size-5`:`size-6`)},null,8,[`icon`,`class`])],2),i(`span`,N,[i(`span`,{class:r([`block leading-tight font-semibold`,t.small?`text-sm`:`text-[15px]`])},d(t.folder.name),3),i(`span`,P,d(o()),1)])]),_:1},8,[`href`,`class`]))}};export{C as i,j as n,k as r,F as t};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as d,r as f}from"./app-Bu3kn8yd.js";import{O as p}from"./dist-DtGNiYlK.js";import{t as m}from"./arrow-left-BMImfTf2.js";import{t as h}from"./FormField-BoFAO4pm.js";import{t as g}from"./button-ZHC5mKey.js";import{t as _}from"./Input-FGSb2-yK.js";import{t as v}from"./GuestLayout-CAwpgUCY.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=d({email:``});return(d,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(f),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as u}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{i as d,r as f}from"./app-BNwrc_lv.js";import{O as p}from"./dist-DtGNiYlK.js";import{t as m}from"./arrow-left-BMImfTf2.js";import{t as h}from"./FormField-BoFAO4pm.js";import{n as g}from"./button-CwUSbS9X.js";import{t as _}from"./Input-FGSb2-yK.js";import{t as v}from"./GuestLayout-B2rtJjbh.js";var y={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},b={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(b){let x=d({email:``});return(d,S)=>(a(),c(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:o(()=>[b.status?(a(),i(`div`,y,s(b.status),1)):l(``,!0),r(`form`,{class:`grid gap-5`,onSubmit:S[1]||=u(e=>n(x).post(`/forgot-password`),[`prevent`])},[e(h,{id:`email`,label:`E-Mail-Adresse`,error:n(x).errors.email},{default:o(()=>[e(n(_),{id:`email`,modelValue:n(x).email,"onUpdate:modelValue":S[0]||=e=>n(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(n(g),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:n(x).processing},{default:o(()=>[n(x).processing?(a(),c(n(p),{key:0,class:`animate-spin`})):l(``,!0),S[2]||=t(` Link senden `,-1)]),_:1},8,[`disabled`]),e(n(f),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:o(()=>[e(n(m),{class:`size-4`}),S[3]||=t(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{b as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./FormRenderer-BEg0886q.js";var d={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},f={class:`text-xl font-semibold tracking-tight`},p={key:0,class:`mt-2 mb-6 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},m={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},h={__name:`FormBlock`,props:{block:{type:Object,required:!0}},setup(h){let g=e(`pagebuilder:editing`,!1);return(e,_)=>h.block.props?(a(),i(`section`,d,[h.block.data.show_title?(a(),i(o,{key:0},[r(`h3`,f,s(h.block.props.title),1),h.block.props.description?(a(),i(`p`,p,s(h.block.props.description),1)):l(``,!0)],64)):l(``,!0),r(`div`,{class:n({"pointer-events-none opacity-80":t(g)})},[(a(),c(u,{key:h.block.props.id,form:h.block.props},null,8,[`form`]))],2)])):t(g)?(a(),i(`p`,m,`Bitte rechts ein Formular auswählen.`)):l(``,!0)}};export{h as default};
|
||||
import{J as e,On as t,Zn as n,_ as r,b as i,mt as a,o,tr as s,v as c,y as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as u}from"./FormRenderer-CoNVx1AS.js";var d={key:0,class:`rounded-lg border bg-card p-5 @3xl:p-8`},f={class:`text-xl font-semibold tracking-tight`},p={key:0,class:`mt-2 mb-6 text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},m={key:1,class:`rounded-lg border border-dashed p-4 text-sm text-muted-foreground`},h={__name:`FormBlock`,props:{block:{type:Object,required:!0}},setup(h){let g=e(`pagebuilder:editing`,!1);return(e,_)=>h.block.props?(a(),i(`section`,d,[h.block.data.show_title?(a(),i(o,{key:0},[r(`h3`,f,s(h.block.props.title),1),h.block.props.description?(a(),i(`p`,p,s(h.block.props.description),1)):l(``,!0)],64)):l(``,!0),r(`div`,{class:n({"pointer-events-none opacity-80":t(g)})},[(a(),c(u,{key:h.block.props.id,form:h.block.props},null,8,[`form`]))],2)])):t(g)?(a(),i(`p`,m,`Bitte rechts ein Formular auswählen.`)):l(``,!0)}};export{h as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{K as h}from"./AppIcon-0N56IC2z.js";import{t as g}from"./chevron-left-8GGLVOvJ.js";import{t as _}from"./chevron-right-C9w5cb2q.js";import{i as v,r as y,t as b}from"./dialog-uBUhf8w7.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(h),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(v),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(b),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(g),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(_),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default};
|
||||
import{D as e,E as t,J as n,On as r,Zn as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,vn as p,y as m}from"./runtime-core.esm-bundler-B8D2lM98.js";import{K as h}from"./AppIcon-nlhvQfK7.js";import{t as g}from"./chevron-left-8GGLVOvJ.js";import{t as _}from"./chevron-right-C9w5cb2q.js";import{i as v,r as y,t as b}from"./dialog-RK2mTeqi.js";var x=[`aria-label`,`onClick`],S=[`src`,`alt`],C={key:1,class:`grid aspect-[4/3] place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},w={key:2,class:`mt-1.5 text-xs text-muted-foreground`},T={key:0,class:`col-span-full text-sm text-muted-foreground`},E=[`src`,`alt`],D={class:`flex items-center justify-between gap-4 px-4 pt-1 pb-3 text-sm`},O={class:`text-white/80`},k={key:0,class:`shrink-0 text-white/60 tabular-nums`},A={__name:`Gallery`,props:{block:{type:Object,required:!0}},setup(A){let j=A,M=n(`pagebuilder:editing`,!1),N={2:`@xl:grid-cols-2`,3:`@xl:grid-cols-2 @3xl:grid-cols-3`,4:`@xl:grid-cols-3 @3xl:grid-cols-4`},P=c(()=>j.block.data.images.map((e,t)=>({...e,url:j.block.props?.urls?.[t]??null}))),F=c(()=>P.value.filter(e=>e.url)),I=p(null),L=c(()=>I.value===null?null:F.value[I.value]);function R(e){I.value=F.value.indexOf(e)}function z(e){I.value===null||F.value.length<2||(I.value=(I.value+e+F.value.length)%F.value.length)}function B(e){e.key===`ArrowRight`&&z(1),e.key===`ArrowLeft`&&z(-1)}let V=null,H=e=>V=e.touches[0].clientX;function U(e){if(V===null)return;let t=e.changedTouches[0].clientX-V;Math.abs(t)>50&&z(t<0?1:-1),V=null}return(n,c)=>(l(),o(u,null,[a(`div`,{class:i([`grid grid-cols-2 gap-3`,N[A.block.data.columns]])},[(l(!0),o(u,null,s(P.value,(t,n)=>(l(),o(`figure`,{key:n},[t.url?(l(),o(`button`,{key:0,type:`button`,class:`block w-full cursor-zoom-in overflow-hidden rounded-lg focus-visible:ring-3 focus-visible:ring-ring/40 focus-visible:outline-none`,"aria-label":`${t.alt||`Bild`} vergrößern`,onClick:e=>R(t)},[a(`img`,{src:t.url,alt:t.alt,loading:`lazy`,class:`aspect-[4/3] w-full object-cover transition-transform duration-300 hover:scale-[1.03]`},null,8,S)],8,x)):(l(),o(`div`,C,[e(r(h),{class:`size-6`})])),t.caption?(l(),o(`figcaption`,w,f(t.caption),1)):m(``,!0)]))),128)),r(M)&&!P.value.length?(l(),o(`p`,T,`Noch keine Bilder.`)):m(``,!0)],2),e(r(v),{open:L.value!==null,"onUpdate:open":c[2]||=e=>!e&&(I.value=null)},{default:d(()=>[e(r(y),{class:`max-w-6xl border-0 bg-black/95 p-0 text-white sm:max-w-6xl`,onKeydown:B},{default:d(()=>[e(r(b),{class:`sr-only`},{default:d(()=>[t(f(L.value?.alt||`Bild`),1)]),_:1}),a(`div`,{class:`relative`,onTouchstartPassive:H,onTouchend:U},[L.value?(l(),o(`img`,{key:L.value.url,src:L.value.url,alt:L.value.alt,class:`max-h-[82vh] w-full object-contain`},null,8,E)):m(``,!0),F.value.length>1?(l(),o(u,{key:1},[a(`button`,{type:`button`,class:`absolute top-1/2 left-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Vorheriges Bild`,onClick:c[0]||=e=>z(-1)},[e(r(g),{class:`size-6`})]),a(`button`,{type:`button`,class:`absolute top-1/2 right-3 grid size-11 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white hover:bg-black/75`,"aria-label":`Nächstes Bild`,onClick:c[1]||=e=>z(1)},[e(r(_),{class:`size-6`})])],64)):m(``,!0)],32),a(`div`,D,[a(`p`,O,f(L.value?.caption),1),F.value.length>1?(l(),o(`span`,k,f(I.value+1)+` / `+f(F.value.length),1)):m(``,!0)])]),_:1})]),_:1},8,[`open`])],64))}};export{A as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as u,r as d}from"./app-Bu3kn8yd.js";import{M as f,O as p,p as m}from"./AppIcon-0N56IC2z.js";import{i as h,r as g}from"./AppLayout-BxsYt2ib.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(m,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,g as a,mt as o,qt as s,tr as c,v as l}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as u,r as d}from"./app-BNwrc_lv.js";import{M as f,O as p,p as m}from"./AppIcon-nlhvQfK7.js";import{i as h,r as g}from"./AppLayout-esQiy2nD.js";var _={class:`overflow-hidden rounded-lg border bg-card`},v={class:`flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground`},y={class:`min-w-0`},b={class:`text-sm opacity-85`},x={class:`mt-0.5 text-[22px] leading-tight font-semibold tracking-tight break-words`},S={class:`mt-1.5 line-clamp-2 text-[13px] opacity-85`},C={class:`grid grid-cols-3 divide-x`,"aria-label":`Mein Bereich`},w={key:0,href:`/admin`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},T={__name:`GreetingCard`,props:{user:{type:Object,required:!0},profile:{type:Object,required:!0},greeting:{type:String,required:!0}},setup(a){return(u,T)=>(o(),i(`section`,_,[r(`div`,v,[r(`div`,y,[r(`div`,b,c(a.greeting)+`,`,1),r(`div`,x,c(a.user.name),1),r(`div`,S,c(a.profile.job_title||`Schön, dass Sie da sind!`),1)]),e(m,{person:a.user,class:`size-16 shrink-0 text-lg ring-4 ring-white/25 xl:size-20 xl:text-xl`},null,8,[`person`])]),r(`nav`,C,[e(n(d),{href:`/personen/${a.user.id}`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(p),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[0]||=t(` Mein Profil `,-1)]),_:1},8,[`href`]),e(n(d),{href:`/profil/bearbeiten`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(g),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[1]||=t(` Profil bearbeiten `,-1)]),_:1}),a.user.can_admin?(o(),i(`a`,w,[e(n(f),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[2]||=t(` Administration `,-1)])):(o(),l(n(d),{key:1,href:`/logout`,method:`post`,as:`button`,class:`flex flex-col items-center gap-2 px-2 py-4 text-center text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground`},{default:s(()=>[e(n(h),{class:`size-5 text-brand-text`,"stroke-width":1.75}),T[3]||=t(` Abmelden `,-1)]),_:1}))])]))}},E={__name:`Greeting`,props:{profile:{type:Object,required:!0}},setup(e){let t=e,n=u(),r=a(()=>({...n.props.auth.user,avatar_url:t.profile.avatar_url})),i=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Guten Tag`:`Guten Abend`});return(t,n)=>(o(),l(T,{user:r.value,profile:e.profile,greeting:i.value},null,8,[`user`,`profile`,`greeting`]))}};export{E as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{nt as l}from"./AppIcon-0N56IC2z.js";import{_ as u}from"./http-DmyDwIce.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(`<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true"><circle cx="8%" cy="30%" r="4" fill="currentColor"></circle><circle cx="15%" cy="75%" r="3" fill="currentColor"></circle><rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor"></rect><circle cx="62%" cy="20%" r="3" fill="currentColor"></circle><circle cx="78%" cy="70%" r="5" fill="currentColor"></circle><rect x="88%" y="30%" width="8" height="8" fill="currentColor"></rect><circle cx="94%" cy="80%" r="3" fill="currentColor"></circle></svg>`,1),r(`div`,f,[r(`span`,p,[e(t(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default};
|
||||
import{D as e,On as t,T as n,_ as r,b as i,mt as a,tr as o,vn as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{nt as l}from"./AppIcon-nlhvQfK7.js";import{v as u}from"./http-CAG9BrJF.js";var d={key:0,class:`relative overflow-hidden rounded-lg bg-brand text-brand-foreground`,role:`status`},f={class:`relative flex items-center gap-4 px-5 py-5 sm:px-8`},p={class:`grid size-12 shrink-0 place-items-center rounded-full bg-white/15`},m={class:`min-w-0 flex-1`},h={class:`text-xl font-semibold tracking-tight`},g={__name:`Greeting`,props:{name:{type:String,required:!0}},setup(g){let _=g,v=`inhaus.birthday-greeting.${new Date().toISOString().slice(0,10)}`,y=s(!1);try{y.value=localStorage.getItem(v)===`1`}catch{}function b(){y.value=!0;try{localStorage.setItem(v,`1`)}catch{}}return(s,g)=>y.value?c(``,!0):(a(),i(`section`,d,[g[1]||=n(`<svg class="pointer-events-none absolute inset-0 size-full opacity-25" aria-hidden="true"><circle cx="8%" cy="30%" r="4" fill="currentColor"></circle><circle cx="15%" cy="75%" r="3" fill="currentColor"></circle><rect x="24%" y="18%" width="7" height="7" transform="rotate(20)" fill="currentColor"></rect><circle cx="62%" cy="20%" r="3" fill="currentColor"></circle><circle cx="78%" cy="70%" r="5" fill="currentColor"></circle><rect x="88%" y="30%" width="8" height="8" fill="currentColor"></rect><circle cx="94%" cy="80%" r="3" fill="currentColor"></circle></svg>`,1),r(`div`,f,[r(`span`,p,[e(t(l),{class:`size-6`})]),r(`div`,m,[r(`p`,h,`Alles Gute zum Geburtstag, `+o(_.name)+`!`,1),g[0]||=r(`p`,{class:`mt-0.5 text-sm opacity-90`},`Wir wünschen Ihnen einen schönen Tag.`,-1)]),r(`button`,{type:`button`,class:`grid size-9 shrink-0 place-items-center rounded-md hover:bg-white/15`,"aria-label":`Glückwunsch ausblenden`,onClick:b},[e(t(u),{class:`size-5`})])])]))}};export{g as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as d,n as f}from"./app-Bu3kn8yd.js";import{t as p}from"./BrandLogo-1xuP9ByR.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t};
|
||||
import{D as e,On as t,Zn as n,_ as r,b as i,g as a,mt as o,o as s,tr as c,xt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{a as d,n as f}from"./app-BNwrc_lv.js";import{t as p}from"./BrandLogo-B9g_TCsV.js";var m={key:0,class:`bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950`},h={key:1,class:`relative grid min-h-screen place-items-center bg-brand px-4 py-12`},g=[`src`],_={key:1,class:`absolute inset-0 bg-black/35`},v={class:`relative w-full max-w-[440px]`},y={class:`rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10`},b={class:`mb-8`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={key:0,class:`mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]`},T={key:2,class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},E={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},D=[`src`],O={key:1,class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},k={key:0,class:`text-3xl leading-tight font-semibold tracking-tight`},A={class:`mt-4 text-[15px] opacity-85`},j={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},M={class:`w-full max-w-[400px]`},N={class:`mb-10 lg:hidden`},P={class:`text-2xl font-semibold tracking-tight`},F={key:0,class:`mt-2 text-sm text-muted-foreground`},I={class:`mt-8`},L={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(L){let R=L,z=a(()=>d().props.branding),B=a(()=>z.value.login??{layout:`split`});return(a,d)=>(o(),i(s,null,[e(t(f),{title:R.title},null,8,[`title`]),z.value.preview?(o(),i(`div`,m,`Vorschau des Entwurfs`)):u(``,!0),B.value.layout===`centered`?(o(),i(`div`,h,[B.value.image_url?(o(),i(`img`,{key:0,src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,g)):u(``,!0),B.value.image_url?(o(),i(`div`,_)):u(``,!0),r(`div`,v,[r(`div`,y,[r(`div`,b,[e(p)]),r(`h1`,x,c(R.title),1),R.description?(o(),i(`p`,S,c(R.description),1)):u(``,!0),r(`div`,C,[l(a.$slots,`default`)])]),B.value.title?(o(),i(`p`,w,c(B.value.title),1)):u(``,!0)])])):(o(),i(`div`,T,[r(`aside`,E,[B.value.image_url?(o(),i(s,{key:0},[r(`img`,{src:B.value.image_url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,D),d[0]||=r(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10`},null,-1)],64)):(o(),i(`div`,O)),e(p,{inverted:``,class:n([`relative`,B.value.image_url?`text-white`:``])},null,8,[`class`]),r(`div`,{class:n([`relative max-w-md`,B.value.image_url?`text-white`:``])},[B.value.title?(o(),i(`p`,k,c(B.value.title),1)):u(``,!0),r(`p`,A,c(B.value.text||`Neuigkeiten, Ansprechpartner und Anwendungen von ${z.value.portal_name}.`),1)],2),r(`p`,{class:n([`relative text-xs opacity-70`,B.value.image_url?`text-white`:``])},`© `+c(new Date().getFullYear())+` `+c(z.value.portal_name),3)]),r(`main`,j,[r(`div`,M,[r(`div`,N,[e(p)]),r(`h1`,P,c(R.title),1),R.description?(o(),i(`p`,F,c(R.description),1)):u(``,!0),r(`div`,I,[l(a.$slots,`default`)])])])]))],64))}};export{L as t};
|
||||
|
|
@ -1 +1 @@
|
|||
import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as l}from"./button-ZHC5mKey.js";var u=[`src`],d={class:`relative max-w-2xl p-6 @3xl:p-10`},f={key:0,class:`text-2xl font-semibold tracking-tight @3xl:text-3xl`},p={key:1,class:`mt-2 text-[15px] leading-relaxed text-white/90 @3xl:text-base`},m=[`href`],h={__name:`Hero`,props:{block:{type:Object,required:!0}},setup(h){let g={small:`min-h-48`,medium:`min-h-72`,large:`min-h-96`};return(_,v)=>(i(),r(`section`,{class:t([`relative flex items-end overflow-hidden rounded-lg bg-brand text-white`,g[h.block.data.height]])},[h.block.props?.url?(i(),r(`img`,{key:0,src:h.block.props.url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,u)):c(``,!0),v[0]||=n(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent`},null,-1),n(`div`,d,[h.block.data.title?(i(),r(`h2`,f,o(h.block.data.title),1)):c(``,!0),h.block.data.text?(i(),r(`p`,p,o(h.block.data.text),1)):c(``,!0),h.block.data.button_label&&h.block.data.button_url?(i(),s(e(l),{key:2,"as-child":``,class:`mt-5 bg-white text-neutral-900 hover:bg-white/90`},{default:a(()=>[n(`a`,{href:h.block.data.button_url},o(h.block.data.button_label),9,m)]),_:1})):c(``,!0)])],2))}};export{h as default};
|
||||
import{On as e,Zn as t,_ as n,b as r,mt as i,qt as a,tr as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{n as l}from"./button-CwUSbS9X.js";var u=[`src`],d={class:`relative max-w-2xl p-6 @3xl:p-10`},f={key:0,class:`text-2xl font-semibold tracking-tight @3xl:text-3xl`},p={key:1,class:`mt-2 text-[15px] leading-relaxed text-white/90 @3xl:text-base`},m=[`href`],h={__name:`Hero`,props:{block:{type:Object,required:!0}},setup(h){let g={small:`min-h-48`,medium:`min-h-72`,large:`min-h-96`};return(_,v)=>(i(),r(`section`,{class:t([`relative flex items-end overflow-hidden rounded-lg bg-brand text-white`,g[h.block.data.height]])},[h.block.props?.url?(i(),r(`img`,{key:0,src:h.block.props.url,alt:``,class:`absolute inset-0 size-full object-cover`},null,8,u)):c(``,!0),v[0]||=n(`div`,{class:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent`},null,-1),n(`div`,d,[h.block.data.title?(i(),r(`h2`,f,o(h.block.data.title),1)):c(``,!0),h.block.data.text?(i(),r(`p`,p,o(h.block.data.text),1)):c(``,!0),h.block.data.button_label&&h.block.data.button_url?(i(),s(e(l),{key:2,"as-child":``,class:`mt-5 bg-white text-neutral-900 hover:bg-white/90`},{default:a(()=>[n(`a`,{href:h.block.data.button_url},o(h.block.data.button_label),9,m)]),_:1})):c(``,!0)])],2))}};export{h as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,g as c,it as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as _}from"./app-Bu3kn8yd.js";import{k as v}from"./dist-DtGNiYlK.js";import{a as y}from"./AppLayout-BxsYt2ib.js";import{t as b}from"./chevron-left-8GGLVOvJ.js";import{t as x}from"./chevron-right-C9w5cb2q.js";import{t as S}from"./play-GbhjcPFH.js";var C=v({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),w=[`src`,`aria-hidden`,`loading`],T={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},E={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},D={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},O={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},k={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},A={class:`flex items-center gap-1.5 px-1`},j=[`aria-label`,`aria-current`,`onClick`],M=[`aria-label`],N={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(v){let N=v,P=h(0),F=h(!1),I=c(()=>N.posts[P.value]),L=null;function R(e){P.value=(e+N.posts.length)%N.posts.length}function z(){B(),N.posts.length>1&&!F.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(L=setInterval(()=>R(P.value+1),7e3))}function B(){clearInterval(L)}function V(){F.value=!F.value,z()}return s(z),l(B),(s,c)=>(u(),a(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:B,onMouseleave:z,onFocusin:B,onFocusout:z},[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`img`,{key:e.id,src:e.cover_url,alt:``,"aria-hidden":t!==P.value,loading:t===0?`eager`:`lazy`,class:r([`absolute inset-0 -z-10 size-full object-cover transition-opacity duration-700`,t===P.value?`opacity-100`:`opacity-0`])},null,10,w))),128)),c[3]||=i(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),i(`div`,T,[I.value.category?(u(),a(`span`,E,p(I.value.category.name),1)):g(``,!0),i(`h2`,D,p(I.value.title),1),I.value.teaser?(u(),a(`p`,O,p(I.value.teaser),1)):g(``,!0),e(n(_),{href:`/neuigkeiten/${I.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:f(()=>[c[2]||=t(` Mehr erfahren `,-1),e(n(y),{class:`size-4`})]),_:1},8,[`href`])]),v.posts.length>1?(u(),a(`div`,k,[i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:c[0]||=e=>R(P.value-1)},[e(n(b),{class:`size-5`})]),i(`div`,A,[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`button`,{key:e.id,type:`button`,class:r([`h-1.5 rounded-full transition-all`,t===P.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${v.posts.length}`,"aria-current":t===P.value,onClick:e=>R(t)},null,10,j))),128))]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:c[1]||=e=>R(P.value+1)},[e(n(x),{class:`size-5`})]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":F.value?`Automatisch weiterblättern`:`Anhalten`,onClick:V},[F.value?(u(),m(n(S),{key:0,class:`size-4`})):(u(),m(n(C),{key:1,class:`size-4`}))],8,M)])):g(``,!0)],32))}},P={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),m(N,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{P as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,g as c,it as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as _}from"./app-BNwrc_lv.js";import{k as v}from"./dist-DtGNiYlK.js";import{a as y}from"./AppLayout-esQiy2nD.js";import{t as b}from"./chevron-left-8GGLVOvJ.js";import{t as x}from"./chevron-right-C9w5cb2q.js";import{t as S}from"./play-GbhjcPFH.js";var C=v({name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]}),w=[`src`,`aria-hidden`,`loading`],T={class:`flex h-full flex-col justify-end p-6 sm:max-w-[65%] sm:justify-center sm:p-10`,"aria-live":`polite`},E={key:0,class:`mb-3 w-fit rounded-sm bg-brand px-2 py-0.5 text-[11px] font-semibold tracking-wide text-brand-foreground uppercase`},D={class:`text-2xl leading-tight font-semibold tracking-tight sm:text-[32px]`},O={key:1,class:`mt-3 line-clamp-3 hidden text-[15px] text-white/85 sm:block`},k={key:0,class:`absolute right-4 bottom-4 flex items-center gap-2 sm:right-6 sm:bottom-6`},A={class:`flex items-center gap-1.5 px-1`},j=[`aria-label`,`aria-current`,`onClick`],M=[`aria-label`],N={__name:`HeroSlider`,props:{posts:{type:Array,required:!0}},setup(v){let N=v,P=h(0),F=h(!1),I=c(()=>N.posts[P.value]),L=null;function R(e){P.value=(e+N.posts.length)%N.posts.length}function z(){B(),N.posts.length>1&&!F.value&&!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(L=setInterval(()=>R(P.value+1),7e3))}function B(){clearInterval(L)}function V(){F.value=!F.value,z()}return s(z),l(B),(s,c)=>(u(),a(`section`,{class:`relative isolate aspect-[16/10] overflow-hidden rounded-lg bg-brand-950 text-white sm:aspect-[16/9] lg:aspect-auto lg:h-full lg:min-h-[400px]`,"aria-roledescription":`Karussell`,"aria-label":`Hervorgehobene Neuigkeiten`,onMouseenter:B,onMouseleave:z,onFocusin:B,onFocusout:z},[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`img`,{key:e.id,src:e.cover_url,alt:``,"aria-hidden":t!==P.value,loading:t===0?`eager`:`lazy`,class:r([`absolute inset-0 -z-10 size-full object-cover transition-opacity duration-700`,t===P.value?`opacity-100`:`opacity-0`])},null,10,w))),128)),c[3]||=i(`div`,{class:`absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/5 sm:bg-gradient-to-r sm:from-black/75 sm:via-black/40 sm:to-transparent`},null,-1),i(`div`,T,[I.value.category?(u(),a(`span`,E,p(I.value.category.name),1)):g(``,!0),i(`h2`,D,p(I.value.title),1),I.value.teaser?(u(),a(`p`,O,p(I.value.teaser),1)):g(``,!0),e(n(_),{href:`/neuigkeiten/${I.value.slug}`,class:`mt-5 inline-flex w-fit items-center gap-2 rounded-md bg-brand px-4 py-2.5 text-sm font-medium text-brand-foreground transition-colors hover:bg-brand-700`},{default:f(()=>[c[2]||=t(` Mehr erfahren `,-1),e(n(y),{class:`size-4`})]),_:1},8,[`href`])]),v.posts.length>1?(u(),a(`div`,k,[i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Vorheriger Beitrag`,onClick:c[0]||=e=>R(P.value-1)},[e(n(b),{class:`size-5`})]),i(`div`,A,[(u(!0),a(d,null,o(v.posts,(e,t)=>(u(),a(`button`,{key:e.id,type:`button`,class:r([`h-1.5 rounded-full transition-all`,t===P.value?`w-6 bg-white`:`w-1.5 bg-white/50 hover:bg-white/80`]),"aria-label":`Beitrag ${t+1} von ${v.posts.length}`,"aria-current":t===P.value,onClick:e=>R(t)},null,10,j))),128))]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":`Nächster Beitrag`,onClick:c[1]||=e=>R(P.value+1)},[e(n(x),{class:`size-5`})]),i(`button`,{type:`button`,class:`grid size-9 place-items-center rounded-full bg-black/35 hover:bg-black/55`,"aria-label":F.value?`Automatisch weiterblättern`:`Anhalten`,onClick:V},[F.value?(u(),m(n(S),{key:0,class:`size-4`})):(u(),m(n(C),{key:1,class:`size-4`}))],8,M)])):g(``,!0)],32))}},P={__name:`Hero`,props:{posts:{type:Array,required:!0}},setup(e){return(t,n)=>(u(),m(N,{posts:e.posts,class:`h-full`},null,8,[`posts`]))}};export{P as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./AppIcon-0N56IC2z.js";var p={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},m={class:`min-w-0`},h={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(g){return(_,v)=>(a(),r(`ul`,{class:t(g.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(g.block.data.items,(i,o)=>(a(),r(`li`,{key:o},[(a(),l(u(i.url?`a`:`div`),{href:i.url||void 0,class:t([`flex gap-4`,[g.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,p,[e(f,{name:i.icon||`link`,class:`size-5`},null,8,[`name`])]),n(`span`,m,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,h,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{g as default};
|
||||
import{D as e,Zn as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,wt as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{t as f}from"./AppIcon-nlhvQfK7.js";var p={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},m={class:`min-w-0`},h={key:0,class:`mt-0.5 block text-sm leading-relaxed whitespace-pre-line text-muted-foreground`},g={__name:`IconList`,props:{block:{type:Object,required:!0}},setup(g){return(_,v)=>(a(),r(`ul`,{class:t(g.block.data.layout===`grid`?`grid gap-4 @xl:grid-cols-2 @4xl:grid-cols-3`:`grid gap-4`)},[(a(!0),r(o,null,i(g.block.data.items,(i,o)=>(a(),r(`li`,{key:o},[(a(),l(u(i.url?`a`:`div`),{href:i.url||void 0,class:t([`flex gap-4`,[g.block.data.layout===`grid`?`h-full rounded-lg border bg-card p-4`:``,i.url?`group`:``]])},{default:s(()=>[n(`span`,p,[e(f,{name:i.icon||`link`,class:`size-5`},null,8,[`name`])]),n(`span`,m,[n(`span`,{class:t([`block font-medium`,{"group-hover:underline":i.url}])},c(i.title),3),i.text?(a(),r(`span`,h,c(i.text),1)):d(``,!0)])]),_:2},1032,[`href`,`class`]))]))),128))],2))}};export{g as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,wt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{K as d}from"./AppIcon-0N56IC2z.js";var f=[`src`,`alt`],p={key:1,class:`grid aspect-video place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},m={key:2,class:`mt-2 text-sm text-muted-foreground`},h={__name:`Image`,props:{block:{type:Object,required:!0}},setup(h){let g={full:`w-full`,medium:`mx-auto w-full @3xl:w-2/3`,small:`mx-auto w-full @xl:w-1/2 @3xl:w-1/3`};return(_,v)=>(a(),i(`figure`,{class:n(g[h.block.data.size])},[h.block.props?.url?(a(),c(l(h.block.data.url?`a`:`div`),{key:0,href:h.block.data.url||void 0},{default:o(()=>[r(`img`,{src:h.block.props.url,alt:h.block.data.alt,loading:`lazy`,class:`w-full rounded-lg`},null,8,f)]),_:1},8,[`href`])):(a(),i(`div`,p,[e(t(d),{class:`size-8`})])),h.block.data.caption?(a(),i(`figcaption`,m,s(h.block.data.caption),1)):u(``,!0)],2))}};export{h as default};
|
||||
import{D as e,On as t,Zn as n,_ as r,b as i,mt as a,qt as o,tr as s,v as c,wt as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{K as d}from"./AppIcon-nlhvQfK7.js";var f=[`src`,`alt`],p={key:1,class:`grid aspect-video place-items-center rounded-lg border border-dashed bg-muted text-muted-foreground`},m={key:2,class:`mt-2 text-sm text-muted-foreground`},h={__name:`Image`,props:{block:{type:Object,required:!0}},setup(h){let g={full:`w-full`,medium:`mx-auto w-full @3xl:w-2/3`,small:`mx-auto w-full @xl:w-1/2 @3xl:w-1/3`};return(_,v)=>(a(),i(`figure`,{class:n(g[h.block.data.size])},[h.block.props?.url?(a(),c(l(h.block.data.url?`a`:`div`),{key:0,href:h.block.data.url||void 0},{default:o(()=>[r(`img`,{src:h.block.props.url,alt:h.block.data.alt,loading:`lazy`,class:`w-full rounded-lg`},null,8,f)]),_:1},8,[`href`])):(a(),i(`div`,p,[e(t(d),{class:`size-8`})])),h.block.data.caption?(a(),i(`figcaption`,m,s(h.block.data.caption),1)):u(``,!0)],2))}};export{h as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as m,r as h}from"./app-Bu3kn8yd.js";import{F as g}from"./AppIcon-0N56IC2z.js";import{t as _}from"./AppLayout-BxsYt2ib.js";import{t as v}from"./chevron-left-8GGLVOvJ.js";import{t as y}from"./chevron-right-C9w5cb2q.js";import{t as b}from"./pen-line-22hyV1yp.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-Ybe7qDu5.js";import{t as C}from"./button-ZHC5mKey.js";import{t as w}from"./NewsCard-DpbfyO9M.js";var T={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},E={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},D={key:2,class:`rounded-lg border border-dashed bg-card`},O={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},k={class:`text-sm text-muted-foreground`},A={class:`flex gap-2`},j={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(j){return(M,N)=>(s(),d(_,{title:`Neuigkeiten`},{default:l(()=>[e(S,{title:`Neuigkeiten`,description:`Aktuelles aus dem Unternehmen und den Bereichen.`},f({_:2},[j.canWrite?{name:`actions`,fn:l(()=>[e(n(C),{"as-child":``},{default:l(()=>[e(n(h),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(b)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(h),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...N[3]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(j.categories,e=>(s(),d(n(h),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory===e.slug?`border-brand bg-brand text-brand-foreground`:`bg-card hover:bg-accent`]),"preserve-scroll":``},{default:l(()=>[t(u(e.name),1)]),_:2},1032,[`href`,`class`]))),128))])):p(``,!0),j.posts.data.length?(s(),a(`div`,E,[(s(!0),a(c,null,o(j.posts.data,e=>(s(),d(w,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,D,[e(x,{icon:n(g),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),j.posts.meta.last_page>1?(s(),a(`nav`,O,[i(`p`,k,`Seite `+u(j.posts.meta.current_page)+` von `+u(j.posts.meta.last_page),1),i(`div`,A,[e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.prev,onClick:N[0]||=e=>n(m).get(j.posts.links.prev)},{default:l(()=>[e(n(v)),N[4]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.next,onClick:N[1]||=e=>n(m).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(y))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{o as m,r as h}from"./app-BNwrc_lv.js";import{F as g}from"./AppIcon-nlhvQfK7.js";import{t as _}from"./AppLayout-esQiy2nD.js";import{t as v}from"./chevron-left-8GGLVOvJ.js";import{t as y}from"./chevron-right-C9w5cb2q.js";import{t as b}from"./pen-line-22hyV1yp.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-BMzzCXfT.js";import{n as C}from"./button-CwUSbS9X.js";import{t as w}from"./NewsCard-Cxl6vjIa.js";var T={key:0,class:`mb-6 flex flex-wrap gap-2`,"aria-label":`Kategorien`},E={key:1,class:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4`},D={key:2,class:`rounded-lg border border-dashed bg-card`},O={key:3,class:`mt-8 flex items-center justify-between`,"aria-label":`Seiten`},k={class:`text-sm text-muted-foreground`},A={class:`flex gap-2`},j={__name:`Index`,props:{posts:{type:Object,required:!0},categories:{type:Array,required:!0},activeCategory:{type:String,default:null},canWrite:{type:Boolean,default:!1}},setup(j){return(M,N)=>(s(),d(_,{title:`Neuigkeiten`},{default:l(()=>[e(S,{title:`Neuigkeiten`,description:`Aktuelles aus dem Unternehmen und den Bereichen.`},f({_:2},[j.canWrite?{name:`actions`,fn:l(()=>[e(n(C),{"as-child":``},{default:l(()=>[e(n(h),{href:`/redaktion/neuigkeiten/neu`},{default:l(()=>[e(n(b)),N[2]||=t(` Beitrag schreiben`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),j.categories.length?(s(),a(`nav`,T,[e(n(h),{href:`/neuigkeiten`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory?`bg-card hover:bg-accent`:`border-brand bg-brand text-brand-foreground`]),"preserve-scroll":``},{default:l(()=>[...N[3]||=[t(` Alle `,-1)]]),_:1},8,[`class`]),(s(!0),a(c,null,o(j.categories,e=>(s(),d(n(h),{key:e.slug,href:`/neuigkeiten?kategorie=${e.slug}`,class:r([`rounded-full border px-3.5 py-1.5 text-[13px] font-medium transition-colors`,j.activeCategory===e.slug?`border-brand bg-brand text-brand-foreground`:`bg-card hover:bg-accent`]),"preserve-scroll":``},{default:l(()=>[t(u(e.name),1)]),_:2},1032,[`href`,`class`]))),128))])):p(``,!0),j.posts.data.length?(s(),a(`div`,E,[(s(!0),a(c,null,o(j.posts.data,e=>(s(),d(w,{key:e.id,post:e},null,8,[`post`]))),128))])):(s(),a(`div`,D,[e(x,{icon:n(g),title:`Keine Beiträge`,text:`In dieser Kategorie ist noch nichts veröffentlicht.`},null,8,[`icon`])])),j.posts.meta.last_page>1?(s(),a(`nav`,O,[i(`p`,k,`Seite `+u(j.posts.meta.current_page)+` von `+u(j.posts.meta.last_page),1),i(`div`,A,[e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.prev,onClick:N[0]||=e=>n(m).get(j.posts.links.prev)},{default:l(()=>[e(n(v)),N[4]||=t(` Neuere`,-1)]),_:1},8,[`disabled`]),e(n(C),{variant:`outline`,size:`sm`,disabled:!j.posts.links.next,onClick:N[1]||=e=>n(m).get(j.posts.links.next)},{default:l(()=>[N[5]||=t(`Ältere `,-1),e(n(y))]),_:1},8,[`disabled`])])])):p(``,!0)]),_:1}))}};export{j as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-Bu3kn8yd.js";import{nt as h}from"./AppIcon-0N56IC2z.js";import{t as g}from"./AppLayout-BxsYt2ib.js";import{t as _}from"./BirthdayItem-CI_wVS_D.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";import{t as y}from"./PageHeader-Ybe7qDu5.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(y,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(h),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,g as s,mt as c,o as l,qt as u,tr as d,v as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-BNwrc_lv.js";import{nt as h}from"./AppIcon-nlhvQfK7.js";import{t as g}from"./AppLayout-esQiy2nD.js";import{t as _}from"./BirthdayItem-ELeKwOyJ.js";import{t as v}from"./EmptyState-Ceq4v8mE.js";import{t as y}from"./PageHeader-BMzzCXfT.js";var b={class:`mx-auto max-w-3xl`},x={key:0,class:`mb-6 rounded-lg border bg-card px-4 py-3 text-sm`},S={key:1,class:`grid gap-5`},C={class:`divide-y px-5`},w={key:2,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{birthdays:{type:Array,required:!0},scope:{type:String,required:!0},registered:{type:Boolean,default:!1}},setup(T){let E=T,D=s(()=>{let e=[];for(let t of E.birthdays){let n=e.at(-1);n&&n.date===t.date?n.items.push(t):e.push({date:t.date,today:t.today,items:[t]})}return e}),O=e=>e.today?`Heute`:new Intl.DateTimeFormat(`de-DE`,{weekday:`long`,day:`numeric`,month:`long`}).format(new Date(`${e.date}T12:00:00`));return(s,E)=>(c(),f(g,{title:`Geburtstage`},{default:u(()=>[i(`div`,b,[e(y,{title:`Geburtstage`,description:`Die nächsten 30 Tage · ${T.scope}`},null,8,[`description`]),T.registered?p(``,!0):(c(),a(`p`,x,[E[1]||=t(` Sie möchten auch in der Liste stehen? Tragen Sie Tag und Monat unter `,-1),e(n(m),{href:`/profil/bearbeiten`,class:`font-medium text-brand-text hover:underline`},{default:u(()=>[...E[0]||=[t(`Profil bearbeiten`,-1)]]),_:1}),E[2]||=t(` ein. `,-1)])),D.value.length?(c(),a(`div`,S,[(c(!0),a(l,null,o(D.value,e=>(c(),a(`section`,{key:e.date,class:`rounded-lg border bg-card`},[i(`h2`,{class:r([`border-b px-5 py-3 text-sm font-semibold`,e.today?`text-brand-text`:``])},d(O(e)),3),i(`div`,C,[(c(!0),a(l,null,o(e.items,e=>(c(),f(_,{key:e.person.id,item:e},null,8,[`item`]))),128))])]))),128))])):(c(),a(`div`,w,[e(v,{icon:n(h),title:`Keine Geburtstage in den nächsten 30 Tagen`},null,8,[`icon`])]))])]),_:1}))}};export{T as default};
|
||||
2
public/build/assets/Index-BYRiOW5j.js
Normal file
2
public/build/assets/Index-BYRiOW5j.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialForms-CbjA1btN.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-BNwrc_lv.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-Bv2m9wnk.css","assets/download-UAAY3N2F.js","assets/dist-DtGNiYlK.js","assets/pencil-line-CmAbFj4f.js","assets/plus-B_ij2ng2.js","assets/table-properties-BPjlj2dD.js","assets/button-CwUSbS9X.js","assets/Panel-Dr-NcUuS.js","assets/chevron-right-C9w5cb2q.js","assets/EditorialNews-AsssE4tU.js","assets/message-square-warning-BFfa_vqd.js","assets/format-BsuBtvUs.js","assets/EditorialPages-C4uXxskK.js","assets/lock-H7FAhSBr.js","assets/NewPageDialog-CGV-jwsW.js","assets/Input-FGSb2-yK.js","assets/dialog-RK2mTeqi.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/AppIcon-nlhvQfK7.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-CAG9BrJF.js","assets/DialogDescription-CaB-9xpp.js","assets/DialogDescription-Cf3zbHQX.js","assets/DialogHeader-DuqiL3ry.js","assets/EditorialMedia-DaL3QIsH.js","assets/image-off-IDPmIoA8.js","assets/images-47Nc0alu.js"])))=>i.map(i=>d[i]);
|
||||
import{D as e,O as t,_ as n,b as r,bt as i,et as a,mt as o,o as s,qt as c,v as l,wt as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{s as d}from"./app-BNwrc_lv.js";import{t as f}from"./AppLayout-esQiy2nD.js";import{t as p}from"./PageHeader-BMzzCXfT.js";var m={class:`grid items-start gap-6 xl:grid-cols-2`},h={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(h){let g=Object.assign({"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>d(()=>import(`./EditorialForms-CbjA1btN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>d(()=>import(`./EditorialNews-AsssE4tU.js`),__vite__mapDeps([13,1,2,3,4,14,6,8,15,10,11,12])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>d(()=>import(`./EditorialPages-C4uXxskK.js`),__vite__mapDeps([16,1,2,3,4,17,6,8,15,10,11,12,18,19,20,21,22,23,24,25,26,27]))}),_={};for(let[e,n]of Object.entries(g)){let[,r]=e.match(/plugins-core\/([^/]+)\//);_[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}for(let[e,n]of Object.entries(Object.assign({"../../components/editorial/EditorialMedia.vue":()=>d(()=>import(`./EditorialMedia-DaL3QIsH.js`),__vite__mapDeps([28,1,2,3,4,29,6,30,11,12]))})))_[`core::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n);return(t,d)=>(o(),l(f,{title:`Redaktion`},{default:c(()=>[e(p,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),n(`div`,m,[(o(!0),r(s,null,i(h.sections,e=>(o(),l(u(_[e.component]),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])]),_:1}))}};export{h as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,et as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as g}from"./app-Bu3kn8yd.js";import{B as _,E as v,tt as y}from"./AppIcon-0N56IC2z.js";import{t as b}from"./AppLayout-BxsYt2ib.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-Ybe7qDu5.js";import{i as C,r as w}from"./format-BsuBtvUs.js";import{t as T}from"./EventDateBlock-_E5XlLto.js";import{t as E}from"./widgets-BmL-pPiO.js";var D={class:`grid min-w-0 grid-cols-1 content-start gap-6`},O={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,r)=>(l(),a(`aside`,D,[(l(!0),a(u,null,o(e.widgets,e=>(l(),a(u,{key:e.key},[n(E)(e.component)?(l(),p(m(n(E)(e.component)),s({key:0,ref_for:!0},e.props),null,16)):h(``,!0)],64))),128))]))}},k={class:`grid gap-6 lg:grid-cols-12`},A={key:0,class:`grid gap-8`},j={class:`mb-3 text-sm font-semibold text-muted-foreground`},M={class:`divide-y rounded-lg border bg-card`},N={class:`min-w-0 flex-1`},P={class:`text-[15px] font-semibold group-hover:underline`},F={class:`mt-0.5 text-[13px] text-muted-foreground`},I={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},L=[`src`],R={key:1,class:`rounded-lg border border-dashed bg-card`},z={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]}},setup(s){let m=s,E=c(()=>{let e=[];for(let t of m.events.data){let n=new Date(t.starts_at),r=C((n<new Date?new Date:n).toISOString()),i=e[e.length-1];i?.label===r?i.events.push(t):e.push({label:r,events:[t]})}return e});return(c,m)=>(l(),p(b,{title:`Termine`},{default:d(()=>[e(S,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`}),i(`div`,k,[i(`div`,{class:r([`min-w-0`,s.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[E.value.length?(l(),a(`div`,A,[(l(!0),a(u,null,o(E.value,r=>(l(),a(`section`,{key:r.label},[i(`h2`,j,f(r.label),1),i(`ul`,M,[(l(!0),a(u,null,o(r.events,r=>(l(),a(`li`,{key:r.id},[e(n(g),{href:`/termine/${r.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:d(()=>[e(T,{date:r.starts_at,class:`w-14`},null,8,[`date`]),i(`div`,N,[i(`h3`,P,f(r.title),1),i(`p`,F,f(n(w)(r)),1),r.location||r.online_url?(l(),a(`p`,I,[r.location?(l(),p(n(_),{key:0,class:`size-3.5`})):(l(),p(n(v),{key:1,class:`size-3.5`})),t(` `+f(r.location||`Online`),1)])):h(``,!0)]),r.thumb_url?(l(),a(`img`,{key:0,src:r.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,L)):h(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(l(),a(`div`,R,[e(x,{icon:n(y),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),s.sidebar.length?(l(),p(O,{key:0,widgets:s.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):h(``,!0)])]),_:1}))}};export{z as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,et as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,wt as m,y as h}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as g}from"./app-BNwrc_lv.js";import{B as _,E as v,tt as y}from"./AppIcon-nlhvQfK7.js";import{t as b}from"./AppLayout-esQiy2nD.js";import{t as x}from"./EmptyState-Ceq4v8mE.js";import{t as S}from"./PageHeader-BMzzCXfT.js";import{i as C,r as w}from"./format-BsuBtvUs.js";import{t as T}from"./EventDateBlock-_E5XlLto.js";import{t as E}from"./widgets-D5Uy4PcL.js";var D={class:`grid min-w-0 grid-cols-1 content-start gap-6`},O={__name:`DashboardSidebar`,props:{widgets:{type:Array,required:!0}},setup(e){return(t,r)=>(l(),a(`aside`,D,[(l(!0),a(u,null,o(e.widgets,e=>(l(),a(u,{key:e.key},[n(E)(e.component)?(l(),p(m(n(E)(e.component)),s({key:0,ref_for:!0},e.props),null,16)):h(``,!0)],64))),128))]))}},k={class:`grid gap-6 lg:grid-cols-12`},A={key:0,class:`grid gap-8`},j={class:`mb-3 text-sm font-semibold text-muted-foreground`},M={class:`divide-y rounded-lg border bg-card`},N={class:`min-w-0 flex-1`},P={class:`text-[15px] font-semibold group-hover:underline`},F={class:`mt-0.5 text-[13px] text-muted-foreground`},I={key:0,class:`mt-0.5 flex items-center gap-1.5 text-[13px] text-muted-foreground`},L=[`src`],R={key:1,class:`rounded-lg border border-dashed bg-card`},z={__name:`Index`,props:{events:{type:Object,required:!0},sidebar:{type:Array,default:()=>[]}},setup(s){let m=s,E=c(()=>{let e=[];for(let t of m.events.data){let n=new Date(t.starts_at),r=C((n<new Date?new Date:n).toISOString()),i=e[e.length-1];i?.label===r?i.events.push(t):e.push({label:r,events:[t]})}return e});return(c,m)=>(l(),p(b,{title:`Termine`},{default:d(()=>[e(S,{title:`Termine`,description:`Veranstaltungen, Fortbildungen und Treffen.`}),i(`div`,k,[i(`div`,{class:r([`min-w-0`,s.sidebar.length?`lg:col-span-8 xl:col-span-9`:`lg:col-span-12`])},[E.value.length?(l(),a(`div`,A,[(l(!0),a(u,null,o(E.value,r=>(l(),a(`section`,{key:r.label},[i(`h2`,j,f(r.label),1),i(`ul`,M,[(l(!0),a(u,null,o(r.events,r=>(l(),a(`li`,{key:r.id},[e(n(g),{href:`/termine/${r.id}`,class:`group flex items-center gap-4 p-4 transition-colors hover:bg-accent/60`},{default:d(()=>[e(T,{date:r.starts_at,class:`w-14`},null,8,[`date`]),i(`div`,N,[i(`h3`,P,f(r.title),1),i(`p`,F,f(n(w)(r)),1),r.location||r.online_url?(l(),a(`p`,I,[r.location?(l(),p(n(_),{key:0,class:`size-3.5`})):(l(),p(n(v),{key:1,class:`size-3.5`})),t(` `+f(r.location||`Online`),1)])):h(``,!0)]),r.thumb_url?(l(),a(`img`,{key:0,src:r.thumb_url,alt:``,loading:`lazy`,class:`hidden h-16 w-28 shrink-0 rounded-md object-cover sm:block`},null,8,L)):h(``,!0)]),_:2},1032,[`href`])]))),128))])]))),128))])):(l(),a(`div`,R,[e(x,{icon:n(y),title:`Keine anstehenden Termine`,text:`Neue Termine erscheinen hier, sobald sie eingetragen sind.`},null,8,[`icon`])]))],2),s.sidebar.length?(l(),p(O,{key:0,widgets:s.sidebar,class:`lg:col-span-4 xl:col-span-3`},null,8,[`widgets`])):h(``,!0)])]),_:1}))}};export{z as default};
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorialForms-Xe2D8QAP.js","assets/runtime-core.esm-bundler-B8D2lM98.js","assets/app-Bu3kn8yd.js","assets/runtime-dom.esm-bundler-BEWGoe8n.js","assets/app-CL30rx2M.css","assets/download-UAAY3N2F.js","assets/dist-DtGNiYlK.js","assets/pencil-line-CmAbFj4f.js","assets/plus-B_ij2ng2.js","assets/table-properties-BPjlj2dD.js","assets/button-ZHC5mKey.js","assets/Panel-BASB8Xb9.js","assets/chevron-right-C9w5cb2q.js","assets/EditorialNews-D_r1x5FJ.js","assets/message-square-warning-BFfa_vqd.js","assets/format-BsuBtvUs.js","assets/EditorialPages-iK1WfX4x.js","assets/lock-H7FAhSBr.js","assets/NewPageDialog-BJuo8o_M.js","assets/DialogDescription-BxaIqmag.js","assets/usePrimitiveElement-DC7UloPZ.js","assets/AppIcon-0N56IC2z.js","assets/RovingFocusGroup-D88K7krN.js","assets/http-DmyDwIce.js","assets/Input-FGSb2-yK.js","assets/dialog-uBUhf8w7.js","assets/DialogHeader-DuqiL3ry.js"])))=>i.map(i=>d[i]);
|
||||
import{D as e,O as t,_ as n,b as r,bt as i,et as a,mt as o,o as s,qt as c,v as l,wt as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{s as d}from"./app-Bu3kn8yd.js";import{t as f}from"./AppLayout-BxsYt2ib.js";import{t as p}from"./PageHeader-Ybe7qDu5.js";var m={class:`grid items-start gap-6 xl:grid-cols-2`},h={__name:`Index`,props:{sections:{type:Array,required:!0}},setup(h){let g=Object.assign({"../../../../plugins-core/forms/resources/js/editorial/EditorialForms.vue":()=>d(()=>import(`./EditorialForms-Xe2D8QAP.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"../../../../plugins-core/news/resources/js/editorial/EditorialNews.vue":()=>d(()=>import(`./EditorialNews-D_r1x5FJ.js`),__vite__mapDeps([13,1,2,3,4,14,6,8,15,10,11,12])),"../../../../plugins-core/pages/resources/js/editorial/EditorialPages.vue":()=>d(()=>import(`./EditorialPages-iK1WfX4x.js`),__vite__mapDeps([16,1,2,3,4,17,6,8,15,10,11,12,18,19,20,21,22,23,24,25,26]))}),_={};for(let[e,n]of Object.entries(g)){let[,r]=e.match(/plugins-core\/([^/]+)\//);_[`${r}::${e.split(`/`).pop().replace(`.vue`,``)}`]=t(n)}return(t,d)=>(o(),l(f,{title:`Redaktion`},{default:c(()=>[e(p,{title:`Redaktion`,description:`Ihre Seiten und Beiträge – Entwürfe, Freigaben und Geplantes.`}),n(`div`,m,[(o(!0),r(s,null,i(h.sections,e=>(o(),l(u(_[e.component]),a({key:e.key},{ref_for:!0},e.props),null,16))),128))])]),_:1}))}};export{h as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-Bu3kn8yd.js";import{D as m}from"./AppIcon-0N56IC2z.js";import{t as h}from"./AppLayout-BxsYt2ib.js";import{s as g}from"./RovingFocusGroup-D88K7krN.js";import{i as _,r as v,t as y}from"./FolderTile-_J6uRwiD.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-Ybe7qDu5.js";import{t as S}from"./button-ZHC5mKey.js";import{t as C}from"./colors-RDOJqd57.js";import{t as w}from"./QmSearchBox-Ri1YCTQc.js";var T=[`href`],E={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},D=[`innerHTML`],O={key:1,class:`rounded-lg border bg-card`},k={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},A={key:1,class:`grid gap-8`},j={class:`mb-3 flex items-center gap-3`},M={class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},N={class:`grid grid-cols-[repeat(auto-fill,minmax(13rem,1fr))] gap-4`},P={key:2,class:`mt-10`},F={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},I={class:`mb-3 flex flex-wrap items-center gap-2`},L={key:0,class:`rounded bg-brand-soft px-2 py-0.5 text-xs font-medium text-brand-soft-foreground`},R={key:3,class:`rounded-lg border bg-card`},z=[`href`],B={__name:`Index`,props:{intro:{type:String,default:``},contacts:{type:Array,default:()=>[]},officers:{type:Array,default:()=>[]},categories:{type:Array,required:!0},canManage:{type:Boolean,default:!1},adminUrl:{type:String,default:null}},setup(B){return(V,H)=>(s(),d(h,{title:`Qualitätsmanagement`},{default:l(()=>[e(x,{title:`Qualitätsmanagement`,description:`Verfahrensanweisungen, Standards und Formulare – immer in der gültigen Fassung.`},{actions:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},[e(n(_)),H[0]||=t(` Ordner verwalten`,-1)],8,T)]),_:1})):f(``,!0),e(w)]),_:1}),B.intro||B.contacts.length?(s(),a(`div`,{key:0,class:r([`mb-8 grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":B.intro&&B.contacts.length}])},[B.intro?(s(),a(`section`,E,[H[1]||=i(`span`,{class:`absolute inset-y-0 left-0 w-1.5 bg-brand`,"aria-hidden":`true`},null,-1),i(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:B.intro},null,8,D)])):f(``,!0),B.contacts.length?(s(),a(`aside`,O,[i(`h2`,k,[e(n(m),{class:`size-4 text-brand-text`}),t(` `+u(B.contacts.length===1?`Ansprechpartner*in QM`:`Ansprechpartner*innen QM`),1)]),i(`div`,{class:r([`grid gap-4 p-4`,{"sm:grid-cols-2 lg:grid-cols-1":!B.intro}])},[(s(!0),a(c,null,o(B.contacts,e=>(s(),d(v,{key:e.id,contact:e},null,8,[`contact`]))),128))],2)])):f(``,!0)],2)):f(``,!0),B.categories.length?(s(),a(`div`,A,[(s(!0),a(c,null,o(B.categories,e=>(s(),a(`section`,{key:e.id??`rest`},[i(`div`,j,[i(`h2`,M,u(e.name),1),H[2]||=i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`},null,-1)]),i(`div`,N,[(s(!0),a(c,null,o(e.folders,e=>(s(),d(y,{key:e.id,folder:e},null,8,[`folder`]))),128))])]))),128))])):f(``,!0),B.officers.length?(s(),a(`section`,P,[H[3]||=i(`div`,{class:`mb-3 flex items-center gap-3`},[i(`h2`,{class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},`QM-Beauftragte`),i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`})],-1),i(`ul`,F,[(s(!0),a(c,null,o(B.officers,(o,c)=>(s(),a(`li`,{key:`${o.id}-${c}`,class:`rounded-lg border bg-card p-4`},[i(`div`,I,[o.area?(s(),a(`span`,L,u(o.area),1)):f(``,!0),o.folder?(s(),d(n(p),{key:1,href:o.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(C)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`])):f(``,!0)]),e(v,{contact:o},null,8,[`contact`])]))),128))])])):f(``,!0),B.categories.length?f(``,!0):(s(),a(`div`,R,[e(b,{icon:n(g),title:`Noch keine Ordner`,text:B.canManage?`Legen Sie Kategorien und Ordner im Admin-Bereich unter „Qualitätsmanagement“ an.`:`Hier erscheinen bald die QM-Dokumente.`},{default:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,class:`mt-4`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},`Ordner anlegen`,8,z)]),_:1})):f(``,!0)]),_:1},8,[`icon`,`text`])]))]),_:1}))}};export{B as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as p}from"./app-BNwrc_lv.js";import{D as m}from"./AppIcon-nlhvQfK7.js";import{t as h}from"./AppLayout-esQiy2nD.js";import{s as g}from"./RovingFocusGroup-D88K7krN.js";import{i as _,r as v,t as y}from"./FolderTile-B1Q0k_YL.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-BMzzCXfT.js";import{n as S}from"./button-CwUSbS9X.js";import{t as C}from"./colors-RDOJqd57.js";import{t as w}from"./QmSearchBox-BW950raa.js";var T=[`href`],E={key:0,class:`relative overflow-hidden rounded-lg border bg-card p-5 pl-6`},D=[`innerHTML`],O={key:1,class:`rounded-lg border bg-card`},k={class:`flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold`},A={key:1,class:`grid gap-8`},j={class:`mb-3 flex items-center gap-3`},M={class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},N={class:`grid grid-cols-[repeat(auto-fill,minmax(13rem,1fr))] gap-4`},P={key:2,class:`mt-10`},F={class:`grid gap-3 sm:grid-cols-2 xl:grid-cols-3`},I={class:`mb-3 flex flex-wrap items-center gap-2`},L={key:0,class:`rounded bg-brand-soft px-2 py-0.5 text-xs font-medium text-brand-soft-foreground`},R={key:3,class:`rounded-lg border bg-card`},z=[`href`],B={__name:`Index`,props:{intro:{type:String,default:``},contacts:{type:Array,default:()=>[]},officers:{type:Array,default:()=>[]},categories:{type:Array,required:!0},canManage:{type:Boolean,default:!1},adminUrl:{type:String,default:null}},setup(B){return(V,H)=>(s(),d(h,{title:`Qualitätsmanagement`},{default:l(()=>[e(x,{title:`Qualitätsmanagement`,description:`Verfahrensanweisungen, Standards und Formulare – immer in der gültigen Fassung.`},{actions:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},[e(n(_)),H[0]||=t(` Ordner verwalten`,-1)],8,T)]),_:1})):f(``,!0),e(w)]),_:1}),B.intro||B.contacts.length?(s(),a(`div`,{key:0,class:r([`mb-8 grid items-start gap-6`,{"lg:grid-cols-[minmax(0,1fr)_20rem]":B.intro&&B.contacts.length}])},[B.intro?(s(),a(`section`,E,[H[1]||=i(`span`,{class:`absolute inset-y-0 left-0 w-1.5 bg-brand`,"aria-hidden":`true`},null,-1),i(`div`,{class:`prose prose-sm max-w-none dark:prose-invert`,innerHTML:B.intro},null,8,D)])):f(``,!0),B.contacts.length?(s(),a(`aside`,O,[i(`h2`,k,[e(n(m),{class:`size-4 text-brand-text`}),t(` `+u(B.contacts.length===1?`Ansprechpartner*in QM`:`Ansprechpartner*innen QM`),1)]),i(`div`,{class:r([`grid gap-4 p-4`,{"sm:grid-cols-2 lg:grid-cols-1":!B.intro}])},[(s(!0),a(c,null,o(B.contacts,e=>(s(),d(v,{key:e.id,contact:e},null,8,[`contact`]))),128))],2)])):f(``,!0)],2)):f(``,!0),B.categories.length?(s(),a(`div`,A,[(s(!0),a(c,null,o(B.categories,e=>(s(),a(`section`,{key:e.id??`rest`},[i(`div`,j,[i(`h2`,M,u(e.name),1),H[2]||=i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`},null,-1)]),i(`div`,N,[(s(!0),a(c,null,o(e.folders,e=>(s(),d(y,{key:e.id,folder:e},null,8,[`folder`]))),128))])]))),128))])):f(``,!0),B.officers.length?(s(),a(`section`,P,[H[3]||=i(`div`,{class:`mb-3 flex items-center gap-3`},[i(`h2`,{class:`text-sm font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase`},`QM-Beauftragte`),i(`span`,{class:`h-px flex-1 bg-border`,"aria-hidden":`true`})],-1),i(`ul`,F,[(s(!0),a(c,null,o(B.officers,(o,c)=>(s(),a(`li`,{key:`${o.id}-${c}`,class:`rounded-lg border bg-card p-4`},[i(`div`,I,[o.area?(s(),a(`span`,L,u(o.area),1)):f(``,!0),o.folder?(s(),d(n(p),{key:1,href:o.folder.url,class:`inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:l(()=>[i(`span`,{class:r([`size-2 rounded-sm`,n(C)(o.folder.color).dot])},null,2),t(u(o.folder.path),1)]),_:2},1032,[`href`])):f(``,!0)]),e(v,{contact:o},null,8,[`contact`])]))),128))])])):f(``,!0),B.categories.length?f(``,!0):(s(),a(`div`,R,[e(b,{icon:n(g),title:`Noch keine Ordner`,text:B.canManage?`Legen Sie Kategorien und Ordner im Admin-Bereich unter „Qualitätsmanagement“ an.`:`Hier erscheinen bald die QM-Dokumente.`},{default:l(()=>[B.adminUrl?(s(),d(n(S),{key:0,class:`mt-4`,"as-child":``},{default:l(()=>[i(`a`,{href:B.adminUrl},`Ordner anlegen`,8,z)]),_:1})):f(``,!0)]),_:1},8,[`icon`,`text`])]))]),_:1}))}};export{B as default};
|
||||
File diff suppressed because one or more lines are too long
1
public/build/assets/Index-CjQCdvt-.js
Normal file
1
public/build/assets/Index-CjQCdvt-.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as v,r as y}from"./app-Bu3kn8yd.js";import{c as b}from"./dist-DtGNiYlK.js";import{N as x,t as S}from"./AppIcon-0N56IC2z.js";import{n as C,t as w}from"./AppLayout-BxsYt2ib.js";import{t as T}from"./FileIcon-B6dfvt48.js";import{t as E}from"./search-x-BVofHEe_.js";import{t as D}from"./EmptyState-Ceq4v8mE.js";import{t as O}from"./PageHeader-Ybe7qDu5.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,b(e=>v.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(w,{title:`Suche`},{default:d(()=>[e(O,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(x),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(S,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(y)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(T,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(C)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(C)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(D,{icon:r(E),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(S,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(y),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default};
|
||||
import{D as e,E as t,Ht as n,On as r,Yt as i,_ as a,b as o,bt as s,g as c,mt as l,o as u,qt as d,tr as f,v as p,vn as m,wt as h,y as g}from"./runtime-core.esm-bundler-B8D2lM98.js";import{x as _}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{o as v,r as y}from"./app-BNwrc_lv.js";import{c as b}from"./dist-DtGNiYlK.js";import{N as x,t as S}from"./AppIcon-nlhvQfK7.js";import{n as C,t as w}from"./AppLayout-esQiy2nD.js";import{t as T}from"./FileIcon-BctWLKDw.js";import{t as E}from"./search-x-BVofHEe_.js";import{t as D}from"./EmptyState-Ceq4v8mE.js";import{t as O}from"./PageHeader-BMzzCXfT.js";var k={class:`grid gap-6 lg:grid-cols-12`},A={class:`grid content-start gap-6 lg:col-span-9`},j={class:`relative block`},M=[`id`],N={class:`flex items-center gap-2.5 border-b px-5 py-3`},P={class:`grid size-8 place-items-center rounded-md bg-brand-soft text-brand-text`},F={class:`text-base font-semibold`},I={class:`ml-auto text-xs text-muted-foreground`},L={class:`divide-y`},R=[`src`],z={class:`min-w-0 flex-1`},B=[`innerHTML`],V={key:0,class:`mt-0.5 text-xs text-muted-foreground`},H=[`innerHTML`],U={key:0,class:`rounded-lg border bg-card`},W={key:0,class:`hidden lg:col-span-3 lg:block`},G={class:`sticky top-20 rounded-lg border bg-card p-4`},K={class:`grid gap-0.5 text-sm`},q=[`href`],J={class:`ml-auto text-xs text-muted-foreground tabular-nums`},Y={__name:`Index`,props:{query:{type:String,default:``},groups:{type:Array,required:!0},minLength:{type:Number,default:2}},setup(Y){let X=Y,Z=m(X.query),Q=c(()=>X.groups.reduce((e,t)=>e+t.items.length,0));return n(Z,b(e=>v.get(`/suche`,e.trim()?{q:e.trim()}:{},{preserveState:!0,preserveScroll:!0,replace:!0}),300)),(n,c)=>(l(),p(w,{title:`Suche`},{default:d(()=>[e(O,{title:`Suche`},{description:d(()=>[Y.query.length>=Y.minLength?(l(),o(u,{key:0},[t(f(Q.value?`${Q.value} Treffer für „${Y.query}“`:`Keine Treffer für „${Y.query}“`),1)],64)):(l(),o(u,{key:1},[t(`Neuigkeiten, Termine, Seiten, Downloads und Dokumente durchsuchen`)],64))]),_:1}),a(`div`,k,[a(`div`,A,[a(`label`,j,[c[1]||=a(`span`,{class:`sr-only`},`Suchbegriff`,-1),e(r(x),{class:`pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-muted-foreground`}),i(a(`input`,{"onUpdate:modelValue":c[0]||=e=>Z.value=e,type:`search`,autofocus:``,placeholder:`Wonach suchen Sie?`,class:`h-12 w-full rounded-lg border border-input bg-card pr-4 pl-12 text-base shadow-xs placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[_,Z.value]])]),(l(!0),o(u,null,s(Y.groups,t=>(l(),o(`section`,{id:`treffer-${t.key}`,key:t.key,class:`overflow-hidden rounded-lg border bg-card`},[a(`header`,N,[a(`span`,P,[e(S,{name:t.icon,class:`size-4`},null,8,[`name`])]),a(`h2`,F,f(t.label),1),a(`span`,I,f(t.items.length===20?`20+`:t.items.length)+` Treffer`,1)]),a(`ul`,L,[(l(!0),o(u,null,s(t.items,e=>(l(),o(`li`,{key:e.url},[(l(),p(h(e.external?`a`:r(y)),{href:e.url,class:`group flex items-start gap-4 px-5 py-3.5 transition-colors hover:bg-accent/50`},{default:d(()=>[e.image?(l(),o(`img`,{key:0,src:e.image,alt:``,loading:`lazy`,class:`hidden h-14 w-20 shrink-0 rounded-md object-cover sm:block`},null,8,R)):e.file?(l(),p(T,{key:1,extension:e.file,class:`shrink-0`},null,8,[`extension`])):g(``,!0),a(`div`,z,[a(`h3`,{class:`text-[15px] font-semibold group-hover:underline`,innerHTML:r(C)(e.title,Y.query)},null,8,B),e.meta?(l(),o(`p`,V,f(e.meta),1)):g(``,!0),e.excerpt?(l(),o(`p`,{key:1,class:`mt-1 line-clamp-2 text-[13px] text-muted-foreground`,innerHTML:r(C)(e.excerpt,Y.query)},null,8,H)):g(``,!0)])]),_:2},1032,[`href`]))]))),128))])],8,M))),128)),Y.query.length>=Y.minLength&&!Y.groups.length?(l(),o(`div`,U,[e(D,{icon:r(E),title:`Nichts gefunden`,text:`Andere Schreibweise oder weniger Begriffe versuchen. Personen finden Sie im Personenverzeichnis.`},null,8,[`icon`])])):g(``,!0)]),Y.groups.length>1?(l(),o(`aside`,W,[a(`nav`,G,[c[2]||=a(`h2`,{class:`mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase`},`Bereiche`,-1),a(`ul`,K,[(l(!0),o(u,null,s(Y.groups,n=>(l(),o(`li`,{key:n.key},[a(`a`,{href:`#treffer-${n.key}`,class:`flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-accent`},[e(S,{name:n.icon,class:`size-4 text-muted-foreground`},null,8,[`name`]),t(` `+f(n.label)+` `,1),a(`span`,J,f(n.items.length),1)],8,q)]))),128))]),e(r(y),{href:Y.query?`/personen?q=${encodeURIComponent(Y.query)}`:`/personen`,class:`mt-3 block border-t pt-3 text-[13px] text-brand-text hover:underline`},{default:d(()=>[t(`„`+f(Y.query)+`“ im Personenverzeichnis suchen`,1)]),_:1},8,[`href`])])])):g(``,!0)])]),_:1}))}};export{Y as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-Bu3kn8yd.js";import{X as h,Y as g}from"./AppIcon-0N56IC2z.js";import{t as _}from"./AppLayout-BxsYt2ib.js";import{t as v}from"./chevron-right-C9w5cb2q.js";import{t as y}from"./plus-B_ij2ng2.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-Ybe7qDu5.js";import{t as S}from"./button-ZHC5mKey.js";import{t as C}from"./NewPageDialog-BJuo8o_M.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(x,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(S),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(y)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(g),{key:0,class:`size-5`})):(o(),u(n(h),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(v),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(b,{icon:n(h),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,vn as d,w as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-BNwrc_lv.js";import{X as h,Y as g}from"./AppIcon-nlhvQfK7.js";import{t as _}from"./AppLayout-esQiy2nD.js";import{t as v}from"./chevron-right-C9w5cb2q.js";import{t as y}from"./plus-B_ij2ng2.js";import{t as b}from"./EmptyState-Ceq4v8mE.js";import{t as x}from"./PageHeader-BMzzCXfT.js";import{n as S}from"./button-CwUSbS9X.js";import{t as C}from"./NewPageDialog-CGV-jwsW.js";var w={key:0,class:`grid gap-5 md:grid-cols-2 xl:grid-cols-3`},T={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},E={class:`min-w-0 flex-1 truncate font-semibold`},D={key:0,class:`grid p-2`},O={class:`truncate`},k={key:0,class:`text-xs text-muted-foreground`},A={key:0,class:`px-3 py-1.5 text-[13px]`},j={key:1,class:`rounded-lg border bg-card`},M={__name:`Index`,props:{tree:{type:Array,required:!0},canCreate:{type:Boolean,default:!1}},setup(M){let N=d(!1);return(d,P)=>(o(),u(_,{title:`Seiten`},{default:c(()=>[e(x,{title:`Seiten`,description:`Informationen der Bereiche, Abteilungen und Gremien.`},f({_:2},[M.canCreate?{name:`actions`,fn:c(()=>[e(n(S),{onClick:P[0]||=e=>N.value=!0},{default:c(()=>[e(n(y)),P[2]||=t(` Neue Seite`,-1)]),_:1})]),key:`0`}:void 0]),1024),M.tree.length?(o(),i(`div`,w,[(o(!0),i(s,null,a(M.tree,d=>(o(),i(`section`,{key:d.id,class:`rounded-lg border bg-card`},[e(n(m),{href:d.url,class:`flex items-center gap-3 border-b px-5 py-4 hover:bg-accent/50`},{default:c(()=>[r(`span`,T,[d.children.length?(o(),u(n(g),{key:0,class:`size-5`})):(o(),u(n(h),{key:1,class:`size-5`}))]),r(`span`,E,l(d.title),1),e(n(v),{class:`size-4 text-muted-foreground`})]),_:2},1032,[`href`]),d.children.length?(o(),i(`ul`,D,[(o(!0),i(s,null,a(d.children.slice(0,8),t=>(o(),i(`li`,{key:t.id},[e(n(m),{href:t.url,class:`flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent`},{default:c(()=>[r(`span`,O,l(t.title),1),t.children.length?(o(),i(`span`,k,l(t.children.length),1)):p(``,!0)]),_:2},1032,[`href`])]))),128)),d.children.length>8?(o(),i(`li`,A,[e(n(m),{href:d.url,class:`font-medium text-brand-text hover:underline`},{default:c(()=>[t(`Alle `+l(d.children.length)+` Seiten`,1)]),_:2},1032,[`href`])])):p(``,!0)])):p(``,!0)]))),128))])):(o(),i(`div`,j,[e(b,{icon:n(h),title:`Noch keine Seiten`,text:`Hier erscheinen Seiten, sobald sie veröffentlicht sind.`},null,8,[`icon`])])),e(C,{open:N.value,"onUpdate:open":P[1]||=e=>N.value=e},null,8,[`open`])]),_:1}))}};export{M as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as d}from"./app-Bu3kn8yd.js";import{$ as f}from"./AppIcon-0N56IC2z.js";import{t as p}from"./AppLayout-BxsYt2ib.js";import{t as m}from"./chevron-right-C9w5cb2q.js";import{t as h}from"./EmptyState-Ceq4v8mE.js";import{t as g}from"./PageHeader-Ybe7qDu5.js";import{n as _}from"./format-BsuBtvUs.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(p,{title:`Formulare`},{default:s(()=>[e(g,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(f),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(_)(i.closes_at)),1)):u(``,!0)]),e(t(m),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(h,{icon:t(f),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};
|
||||
import{D as e,On as t,_ as n,b as r,bt as i,mt as a,o,qt as s,tr as c,v as l,y as u}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as d}from"./app-BNwrc_lv.js";import{$ as f}from"./AppIcon-nlhvQfK7.js";import{t as p}from"./AppLayout-esQiy2nD.js";import{t as m}from"./chevron-right-C9w5cb2q.js";import{t as h}from"./EmptyState-Ceq4v8mE.js";import{t as g}from"./PageHeader-BMzzCXfT.js";import{n as _}from"./format-BsuBtvUs.js";var v={key:0,class:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`},y={class:`grid size-10 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text`},b={class:`min-w-0 flex-1`},x={class:`block font-semibold group-hover:underline`},S={key:0,class:`mt-1 line-clamp-2 block text-sm text-muted-foreground`},C={key:1,class:`mt-2 block text-xs text-muted-foreground`},w={key:1,class:`rounded-lg border bg-card`},T={__name:`Index`,props:{forms:{type:Array,required:!0}},setup(T){return(E,D)=>(a(),l(p,{title:`Formulare`},{default:s(()=>[e(g,{title:`Formulare`,description:`Anträge, Anmeldungen und Meldungen – direkt online ausfüllen.`}),T.forms.length?(a(),r(`div`,v,[(a(!0),r(o,null,i(T.forms,i=>(a(),l(t(d),{key:i.id,href:i.url,class:`group flex gap-4 rounded-lg border bg-card p-5 hover:border-brand-300`},{default:s(()=>[n(`span`,y,[e(t(f),{class:`size-5`})]),n(`span`,b,[n(`span`,x,c(i.title),1),i.description?(a(),r(`span`,S,c(i.description),1)):u(``,!0),i.closes_at?(a(),r(`span`,C,`Bis `+c(t(_)(i.closes_at)),1)):u(``,!0)]),e(t(m),{class:`mt-2.5 size-4 shrink-0 text-muted-foreground`})]),_:2},1032,[`href`]))),128))])):(a(),r(`div`,w,[e(h,{icon:t(f),title:`Keine Formulare`,text:`Derzeit sind keine Formulare für Sie freigegeben.`},null,8,[`icon`])]))]),_:1}))}};export{T as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{F as l}from"./AppIcon-0N56IC2z.js";import{t as u}from"./EmptyState-Ceq4v8mE.js";import{t as d}from"./Panel-BASB8Xb9.js";import{t as f}from"./NewsListItem-rvZKO5MT.js";var p={key:0,href:`/admin/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(d,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(l),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default};
|
||||
import{On as e,Zn as t,b as n,bt as r,mt as i,o as a,qt as o,v as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{F as l}from"./AppIcon-nlhvQfK7.js";import{t as u}from"./EmptyState-Ceq4v8mE.js";import{t as d}from"./Panel-Dr-NcUuS.js";import{t as f}from"./NewsListItem-DKC4VK9G.js";var p={key:0,href:`/admin/neuigkeiten/neu`,class:`mt-4 text-sm font-medium text-brand-text hover:underline`},m={__name:`Latest`,props:{posts:{type:Array,required:!0},canWrite:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(m){return(h,g)=>(i(),s(d,{title:`Neuigkeiten`,"action-label":`Alle anzeigen`,"action-href":`/neuigkeiten`},{default:o(()=>[m.posts.length?(i(),n(`div`,{key:0,class:t([`-my-3 divide-y`,{"sm:grid sm:grid-cols-2 sm:gap-x-6 sm:divide-y-0":m.wide}])},[(i(!0),n(a,null,r(m.posts,e=>(i(),s(f,{key:e.id,post:e},null,8,[`post`]))),128))],2)):(i(),s(u,{key:1,icon:e(l),title:`Noch keine Neuigkeiten`,text:`Sobald Beiträge veröffentlicht sind, erscheinen sie hier.`},{default:o(()=>[m.canWrite?(i(),n(`a`,p,`Ersten Beitrag schreiben`)):c(``,!0)]),_:1},8,[`icon`]))]),_:1}))}};export{m as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-Bu3kn8yd.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./NewsCard-DpbfyO9M.js";import{t as h}from"./NewsListItem-rvZKO5MT.js";var g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={key:1,class:`divide-y rounded-lg border bg-card px-4`},y={key:2,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},b={key:3,class:`text-sm text-muted-foreground`},x={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(x){return(S,C)=>(o(),i(`section`,null,[x.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(x.block.data.title),1),x.block.props?.more_url?(o(),u(n(f),{key:0,href:x.block.props.more_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[C[0]||=t(` Alle anzeigen `,-1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])):d(``,!0),x.block.data.layout===`list`?(o(),i(`div`,v,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(h,{key:e.id,post:e},null,8,[`post`]))),128))])):(o(),i(`div`,y,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(m,{key:e.id,post:e},null,8,[`post`]))),128))])),(x.block.props?.posts??[]).length?d(``,!0):(o(),i(`p`,b,`Keine Beiträge.`))]))}};export{x as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,mt as o,o as s,qt as c,tr as l,v as u,y as d}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as f}from"./app-BNwrc_lv.js";import{t as p}from"./chevron-right-C9w5cb2q.js";import{t as m}from"./NewsCard-Cxl6vjIa.js";import{t as h}from"./NewsListItem-DKC4VK9G.js";var g={key:0,class:`mb-3 flex items-center justify-between gap-4`},_={class:`text-lg font-semibold`},v={key:1,class:`divide-y rounded-lg border bg-card px-4`},y={key:2,class:`grid gap-5 @xl:grid-cols-2 @4xl:grid-cols-3`},b={key:3,class:`text-sm text-muted-foreground`},x={__name:`LatestNews`,props:{block:{type:Object,required:!0}},setup(x){return(S,C)=>(o(),i(`section`,null,[x.block.data.title?(o(),i(`div`,g,[r(`h3`,_,l(x.block.data.title),1),x.block.props?.more_url?(o(),u(n(f),{key:0,href:x.block.props.more_url,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:c(()=>[C[0]||=t(` Alle anzeigen `,-1),e(n(p),{class:`size-3.5`})]),_:1},8,[`href`])):d(``,!0)])):d(``,!0),x.block.data.layout===`list`?(o(),i(`div`,v,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(h,{key:e.id,post:e},null,8,[`post`]))),128))])):(o(),i(`div`,y,[(o(!0),i(s,null,a(x.block.props?.posts??[],e=>(o(),u(m,{key:e.id,post:e},null,8,[`post`]))),128))])),(x.block.props?.posts??[]).length?d(``,!0):(o(),i(`p`,b,`Keine Beiträge.`))]))}};export{x as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as p}from"./AppIcon-0N56IC2z.js";import{t as m}from"./FileIcon-B6dfvt48.js";import{t as h}from"./Panel-BASB8Xb9.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default};
|
||||
import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,mt as s,o as c,qt as l,tr as u,v as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{A as p}from"./AppIcon-nlhvQfK7.js";import{t as m}from"./FileIcon-BctWLKDw.js";import{t as h}from"./Panel-Dr-NcUuS.js";var g={key:0,class:`-my-1.5 grid gap-0.5`},_=[`href`],v={class:`min-w-0 flex-1 truncate text-sm`},y={__name:`MyDownloads`,props:{favorites:{type:Array,default:()=>[]},popular:{type:Array,default:()=>[]}},setup(y){let b=y,x=b.favorites.length?b.favorites:b.popular;return(b,S)=>(s(),d(h,{title:y.favorites.length?`Meine Downloads`:`Häufig genutzt`,"action-label":`Alle Downloads`,"action-href":`/downloads`},{default:l(()=>[n(x).length?(s(),a(`ul`,g,[(s(!0),a(c,null,o(n(x),t=>(s(),a(`li`,{key:t.id},[i(`a`,{href:t.download_url,class:`-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent`},[e(m,{extension:t.extension,size:`sm`},null,8,[`extension`]),i(`span`,v,u(t.title),1)],8,_)]))),128))])):f(``,!0),y.favorites.length?f(``,!0):(s(),a(`p`,{key:1,class:r([`text-[13px] text-muted-foreground`,{"mt-3 border-t pt-3":n(x).length}])},[e(n(p),{class:`-mt-0.5 mr-1 inline size-3.5`}),S[0]||=t(`Mit dem Stern unter „Downloads“ merken Sie sich Dateien für diese Kachel. `,-1)],2))]),_:1},8,[`title`]))}};export{y as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,ct as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-Bu3kn8yd.js";import{t as h}from"./calendar-clock-8H2IkjP5.js";import{t as g}from"./http-DmyDwIce.js";import{n as _,t as v}from"./message-square-plus-89qxGe_b.js";import{t as y}from"./Panel-BASB8Xb9.js";import{t as b}from"./Skeleton-fJgmuUSB.js";var x={key:0,class:`grid grid-cols-2 gap-2`},S={class:`grid grid-cols-2 gap-2`},C={class:`block text-xl font-semibold tabular-nums`},w={class:`flex items-center gap-1 text-xs text-muted-foreground`},T={class:`block text-xl font-semibold tabular-nums`},E={class:`flex items-center gap-1 text-xs text-muted-foreground`},D={key:0,class:`mt-3 grid gap-0.5`},O={class:`truncate`},k={class:`shrink-0 text-[11px] text-muted-foreground`},A={key:2,class:`text-[13px] text-muted-foreground`},j={__name:`MyIt`,setup(j){let M=f(null),N=f(!1);return o(async()=>{try{M.value=await g.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(y,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(b),{class:`h-16`}),e(n(b),{class:`h-16`})])):M.value?(s(),i(c,{key:1},[r(`div`,S,[e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,C,u(M.value.open_tickets),1),r(`span`,w,[e(n(_),{class:`size-3.5`}),f[0]||=t(` offene Tickets`,-1)])]),_:1}),e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,T,u(M.value.loans),1),r(`span`,E,[e(n(h),{class:`size-3.5`}),f[1]||=t(` Ausleihen`,-1)])]),_:1})]),M.value.latest.length?(s(),i(`ul`,D,[(s(!0),i(c,null,a(M.value.latest,t=>(s(),i(`li`,{key:t.id},[e(n(m),{href:`/it-service/tickets/${t.id}`,class:`flex items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent`},{default:l(()=>[r(`span`,O,u(t.subject),1),r(`span`,k,u(t.status_label),1)]),_:2},1032,[`href`])]))),128))])):p(``,!0)],64)):(s(),i(`p`,A,`Der IT-Service ist gerade nicht erreichbar.`)),e(n(m),{href:`/it-service/tickets/neu`,class:`mt-3 flex items-center gap-1.5 border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[e(n(v),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
|
||||
import{D as e,E as t,On as n,_ as r,b as i,bt as a,ct as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{r as m}from"./app-BNwrc_lv.js";import{t as h}from"./calendar-clock-8H2IkjP5.js";import{n as g}from"./http-CAG9BrJF.js";import{n as _,t as v}from"./message-square-plus-89qxGe_b.js";import{t as y}from"./Panel-Dr-NcUuS.js";import{t as b}from"./Skeleton-fJgmuUSB.js";var x={key:0,class:`grid grid-cols-2 gap-2`},S={class:`grid grid-cols-2 gap-2`},C={class:`block text-xl font-semibold tabular-nums`},w={class:`flex items-center gap-1 text-xs text-muted-foreground`},T={class:`block text-xl font-semibold tabular-nums`},E={class:`flex items-center gap-1 text-xs text-muted-foreground`},D={key:0,class:`mt-3 grid gap-0.5`},O={class:`truncate`},k={class:`shrink-0 text-[11px] text-muted-foreground`},A={key:2,class:`text-[13px] text-muted-foreground`},j={__name:`MyIt`,setup(j){let M=f(null),N=f(!1);return o(async()=>{try{M.value=await g.get(`/it-service/uebersicht`)}catch{N.value=!0}}),(o,f)=>(s(),d(y,{title:`Meine IT`,"action-label":`Öffnen`,"action-href":`/it-service`},{default:l(()=>[!M.value&&!N.value?(s(),i(`div`,x,[e(n(b),{class:`h-16`}),e(n(b),{class:`h-16`})])):M.value?(s(),i(c,{key:1},[r(`div`,S,[e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,C,u(M.value.open_tickets),1),r(`span`,w,[e(n(_),{class:`size-3.5`}),f[0]||=t(` offene Tickets`,-1)])]),_:1}),e(n(m),{href:`/it-service`,class:`rounded-md bg-muted px-3 py-2.5 hover:bg-brand-soft`},{default:l(()=>[r(`span`,T,u(M.value.loans),1),r(`span`,E,[e(n(h),{class:`size-3.5`}),f[1]||=t(` Ausleihen`,-1)])]),_:1})]),M.value.latest.length?(s(),i(`ul`,D,[(s(!0),i(c,null,a(M.value.latest,t=>(s(),i(`li`,{key:t.id},[e(n(m),{href:`/it-service/tickets/${t.id}`,class:`flex items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent`},{default:l(()=>[r(`span`,O,u(t.subject),1),r(`span`,k,u(t.status_label),1)]),_:2},1032,[`href`])]))),128))])):p(``,!0)],64)):(s(),i(`p`,A,`Der IT-Service ist gerade nicht erreichbar.`)),e(n(m),{href:`/it-service/tickets/neu`,class:`mt-3 flex items-center gap-1.5 border-t pt-3 text-[13px] font-medium text-brand-text hover:underline`},{default:l(()=>[e(n(v),{class:`size-4`}),f[2]||=t(` IT-Problem melden `,-1)]),_:1})]),_:1}))}};export{j as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{$ as e,D as t,Ft as n,On as r,Yt as i,_ as a,b as o,bt as s,et as c,mt as l,o as u,tr as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{C as m}from"./http-DmyDwIce.js";var h={class:`relative`},g={key:0,value:null},_=[`value`],v={__name:`NativeSelect`,props:e({options:{type:Array,required:!0},placeholder:{type:String,default:``}},{modelValue:{type:[String,Number,null],default:null},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let v=n(e,`modelValue`);return(n,y)=>(l(),o(`div`,h,[i(a(`select`,c({"onUpdate:modelValue":y[0]||=e=>v.value=e,class:`h-9 w-full appearance-none rounded-md border border-input bg-card pr-8 pl-3 text-sm shadow-xs focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none disabled:opacity-60`},n.$attrs),[e.placeholder?(l(),o(`option`,g,d(e.placeholder),1)):f(``,!0),(l(!0),o(u,null,s(e.options,e=>(l(),o(`option`,{key:e.value,value:e.value},d(e.label),9,_))),128))],16),[[p,v.value]]),t(r(m),{class:`pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground`})]))}};export{v as t};
|
||||
import{$ as e,D as t,Ft as n,On as r,Yt as i,_ as a,b as o,bt as s,et as c,mt as l,o as u,tr as d,y as f}from"./runtime-core.esm-bundler-B8D2lM98.js";import{b as p}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{w as m}from"./http-CAG9BrJF.js";var h={class:`relative`},g={key:0,value:null},_=[`value`],v={__name:`NativeSelect`,props:e({options:{type:Array,required:!0},placeholder:{type:String,default:``}},{modelValue:{type:[String,Number,null],default:null},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let v=n(e,`modelValue`);return(n,y)=>(l(),o(`div`,h,[i(a(`select`,c({"onUpdate:modelValue":y[0]||=e=>v.value=e,class:`h-9 w-full appearance-none rounded-md border border-input bg-card pr-8 pl-3 text-sm shadow-xs focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none disabled:opacity-60`},n.$attrs),[e.placeholder?(l(),o(`option`,g,d(e.placeholder),1)):f(``,!0),(l(!0),o(u,null,s(e.options,e=>(l(),o(`option`,{key:e.value,value:e.value},d(e.label),9,_))),128))],16),[[p,v.value]]),t(r(m),{class:`pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground`})]))}};export{v as t};
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue