„Dokumente“ heißt jetzt „Downloads“
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m31s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m50s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m55s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m18s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m19s
CI / Build-Artefakte aktuell (pull_request) Successful in 55s
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m31s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m50s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m55s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m18s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m19s
CI / Build-Artefakte aktuell (pull_request) Successful in 55s
Der Name „Dokumente“ bleibt dem kommenden QM-Modul (QM-Dokumente und -Formulare) vorbehalten. - Plugin plugins-core/downloads (Inhaus\Plugins\Downloads), Adresse /downloads, Rechte downloads.*, Objekttyp download_folder, Block downloads.folder, Kachel downloads.favorites - Migration für bestehende Installationen: Tabellen und Spalten, Rechte, Sichtbarkeiten, Menü, Startseiten-Anordnung, Blöcke in Seiten und Fassungen, Plugin-Zustand; mit Test - Alte Links unter /dokumente leiten dauerhaft weiter Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c71131d054
commit
f78cc96be7
120 changed files with 1091 additions and 866 deletions
31
plugins-core/downloads/resources/js/widgets/MyDownloads.vue
Normal file
31
plugins-core/downloads/resources/js/widgets/MyDownloads.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 Dateien (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 Downloads' : 'Häufig genutzt'" action-label="Alle Downloads" action-href="/downloads">
|
||||
<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 unter „Downloads“ merken Sie sich Dateien für diese Kachel.
|
||||
</p>
|
||||
</Panel>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue