Menü-Editor, farbige Initialen, Seitenköpfe, Favoriten, Vorschaubilder
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m44s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m51s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m16s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m25s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m44s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m51s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m16s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m25s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
- Admin → Portal → Menü: Bereiche, Seiten (mit Unterseiten), Links und Gruppen mit Unterpunkten, sortierbar, je Rolle einschränkbar; Kopfzeile misst den Platz und legt Überzähliges unter „Mehr“ - Initialen in fester Farbe je Person, Abteilungsfarben im Organigramm - PageHeader für alle Übersichtsseiten - Dokumente: Favoriten (auch als Startseiten-Kachel), „Häufig genutzt“, Vorschaubilder (Bilder, erste PDF-Seite per pdf.js im Browser) - Platzhalter beim Nachladen Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
114811e6c5
commit
dda250aaad
140 changed files with 1993 additions and 427 deletions
31
plugins-core/documents/resources/js/widgets/MyDocuments.vue
Normal file
31
plugins-core/documents/resources/js/widgets/MyDocuments.vue
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<script setup>
|
||||
import { Star } from '@lucide/vue';
|
||||
import Panel from '@/components/Panel.vue';
|
||||
import FileIcon from '../components/FileIcon.vue';
|
||||
|
||||
/**
|
||||
* Startseite: gemerkte Dokumente (Stern) – ohne Favoriten die meistgenutzten.
|
||||
*/
|
||||
const props = defineProps({
|
||||
favorites: { type: Array, default: () => [] },
|
||||
popular: { type: Array, default: () => [] },
|
||||
});
|
||||
|
||||
const items = props.favorites.length ? props.favorites : props.popular;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Panel :title="favorites.length ? 'Meine Dokumente' : 'Häufig genutzt'" action-label="Alle Dokumente" action-href="/dokumente">
|
||||
<ul v-if="items.length" class="-my-1.5 grid gap-0.5">
|
||||
<li v-for="doc in items" :key="doc.id">
|
||||
<a :href="doc.download_url" class="-mx-2 flex items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent">
|
||||
<FileIcon :extension="doc.extension" size="sm" />
|
||||
<span class="min-w-0 flex-1 truncate text-sm">{{ doc.title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-if="!favorites.length" class="text-[13px] text-muted-foreground" :class="{ 'mt-3 border-t pt-3': items.length }">
|
||||
<Star class="-mt-0.5 mr-1 inline size-3.5" />Mit dem Stern in der Ablage merken Sie sich Dokumente für diese Kachel.
|
||||
</p>
|
||||
</Panel>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue