From f78cc96be7f950368aeaed40b06c227ce9ddb677 Mon Sep 17 00:00:00 2001 From: Friederich Loheide Date: Sat, 26 Sep 2026 15:03:32 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDokumente=E2=80=9C=20hei=C3=9Ft=20jetz?= =?UTF-8?q?t=20=E2=80=9EDownloads=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- CHANGELOG.md | 5 +- docs/PLAN.md | 4 +- docs/PLUGINS.md | 2 +- ...1_add_document_favorites_and_downloads.php | 34 -- plugins-core/documents/plugin.json | 13 - .../js/components/FavoriteButton.vue | 23 - plugins-core/documents/routes/web.php | 20 - .../documents/src/DocumentsPlugin.php | 78 --- .../src/Policies/DocumentFolderPolicy.php | 41 -- ...6_09_29_000001_create_documents_tables.php | 22 +- ...9_000002_rename_documents_to_downloads.php | 109 ++++ ...001_add_download_favorites_and_counter.php | 41 ++ plugins-core/downloads/plugin.json | 13 + .../resources/js/blocks/FolderBlock.vue | 4 +- .../resources/js/components/DownloadGrid.vue} | 22 +- .../resources/js/components/DownloadMenu.vue} | 12 +- .../js/components/DownloadMiniList.vue} | 10 +- .../js/components/DownloadTable.vue} | 18 +- .../js/components/DownloadThumb.vue} | 14 +- .../js/components/FavoriteButton.vue | 23 + .../resources/js/components/FileIcon.vue | 0 .../resources/js/components/FolderTreeNav.vue | 2 +- .../resources/js/lib.js | 4 +- .../resources/js/pages/Index.vue | 68 +-- .../resources/js/pdfThumbnail.js | 2 +- .../resources/js/widgets/MyDownloads.vue} | 6 +- plugins-core/downloads/routes/web.php | 27 + .../src/DownloadPresenter.php} | 26 +- .../downloads/src/DownloadsPlugin.php | 78 +++ .../DownloadFolderResource.php} | 44 +- .../Pages/ManageDownloadFolders.php} | 10 +- .../src/FolderTree.php | 10 +- .../Http/Controllers/DownloadController.php} | 164 +++--- .../src/Models/Download.php} | 24 +- .../src/Models/DownloadFolder.php} | 24 +- .../src/Models/DownloadVersion.php} | 16 +- .../src/Policies/DownloadFolderPolicy.php | 41 ++ ...dion-BOCHhz6n.js => Accordion-qBB3ElDl.js} | 2 +- ...ppIcon-BdFEsdpu.js => AppIcon-BVHFLm12.js} | 2 +- ...yout-BbDUnvfq.js => AppLayout-Cy38OwfZ.js} | 2 +- .../{Areas-DhBb9Kju.js => Areas-Bzac5pwG.js} | 2 +- ...m-D5s1tNlm.js => BirthdayItem-DK6xURSZ.js} | 2 +- ...DLGMwARu.js => BirthdaysBlock-ClAbA8ni.js} | 2 +- .../{Box-0BFUmTwU.js => Box-Bm0v4HQS.js} | 2 +- ...Logo-Bb58pVmV.js => BrandLogo-TGGJyC1K.js} | 2 +- ...uilder-Bj802cuB.js => Builder-DQTVazsj.js} | 2 +- ...tacts-BxqgboMU.js => Contacts-pzJUQND2.js} | 2 +- ...ile-C-feFs0T.js => CustomTile-rpvbUDGX.js} | 2 +- ...oard-DGZ5jgF5.js => Dashboard-BiW9lQww.js} | 4 +- ...r-CT2TVejm.js => DialogHeader-ByFe3nCF.js} | 2 +- ...DZydYaIB.js => DirectoryLogin-ClBeVS4i.js} | 2 +- ...oads-LyVvEsoB.js => Downloads-BCdWiVDF.js} | 2 +- .../{Edit-CBZkrvQS.js => Edit-c1ouj20i.js} | 4 +- ...{Editor-DBk-MGAi.js => Editor-BbW_ap54.js} | 2 +- ...{Editor-3SHt3zUZ.js => Editor-Cx9Ivcev.js} | 2 +- ...CeBj2UXC.js => EditorialForms-Di1_sGWd.js} | 2 +- ...-DdDP-wr2.js => EditorialNews-B8R4_r-1.js} | 2 +- ...DQK8pnkL.js => EditorialPages-CIn86wBI.js} | 2 +- ...ClGvIMLI.js => EventDateBlock-Cxz_hY6g.js} | 2 +- ...-CbvKawSs.js => EventListItem-C_pDZ4ur.js} | 2 +- ...eIcon-DJSjjpjx.js => FileIcon-BHQ0ftg2.js} | 2 +- ...ck-DLMXE0ph.js => FolderBlock-BAOKZUHJ.js} | 2 +- ...Cv_9aO8w.js => ForgotPassword-DgexuuME.js} | 2 +- ...lock-DoQrSefg.js => FormBlock-Dj-egPqI.js} | 2 +- ...r-BzRqQJQw.js => FormRenderer-nT5JUcxg.js} | 2 +- ...allery-Dob_3fj9.js => Gallery-BTjs-P7R.js} | 2 +- ...eting-1cEGcQ-p.js => Greeting-B05GQpKd.js} | 2 +- ...eting-DsHyR8Yh.js => Greeting-BNtvUzyI.js} | 2 +- ...ut-NNth9G53.js => GuestLayout-DAusAB2K.js} | 2 +- .../{Hero-B1XX10SN.js => Hero-OPvK6LV0.js} | 2 +- ...nList-DlXhG3mn.js => IconList-DoadxhSr.js} | 2 +- .../{Image-BOWLTTja.js => Image-DD-CaJzl.js} | 2 +- .../{Index-BPs61ySm.js => Index-BfHGKDDV.js} | 2 +- .../{Index-lRWq8E_f.js => Index-CbsDlkw3.js} | 2 +- .../{Index-3OO-Hdzy.js => Index-CcFQ4knZ.js} | 4 +- .../{Index-Ca9jR0JX.js => Index-CuHYqUvM.js} | 2 +- .../{Index-lV-fq3QH.js => Index-DMTy14mX.js} | 2 +- .../{Index-CoOXyn0J.js => Index-DhpHvuGr.js} | 2 +- public/build/assets/Index-DjWJJOPS.js | 2 + .../{Index-ZqICc-3W.js => Index-Dm9p24qX.js} | 2 +- public/build/assets/Index-Dq0UCqWZ.js | 2 - ...{Latest-u2uYBfF9.js => Latest-CZZxoFB3.js} | 2 +- ...ews-CE9Ppavy.js => LatestNews-D_wqcUcS.js} | 2 +- .../{Login-CmEJtTk-.js => Login-iLM3GgD3.js} | 2 +- ...ts-BMFHyAVI.js => MyDownloads-C3KvafhB.js} | 2 +- ...-DqwBBbXt.js => NewColleagues-DMxyPHNm.js} | 2 +- ...-BEA1JzEi.js => NewPageDialog-BbIzQTb2.js} | 2 +- ...sCard-DmDtOWG-.js => NewsCard-CWMFENyt.js} | 2 +- ...mage-BGrdg-4F.js => NewsImage-31QS1JbU.js} | 2 +- ...m-CyjX7LKh.js => NewsListItem-DmR535f5.js} | 2 +- ...ram-DdsLPkOC.js => Organigram-BAINuG6f.js} | 2 +- ...nt-ChLrfdg-.js => PageContent-DplopdM5.js} | 4 +- ...der-xxRfFX5Y.js => PageHeader-CWL5ThBH.js} | 2 +- .../{Panel-LL8MhcJX.js => Panel-xPHuwfuu.js} | 2 +- ...h-C9t0sHMo.js => PeopleSearch-lOnxyLDv.js} | 2 +- ...HwuMYKE.js => ProfileBirthday-CKO31Nfm.js} | 2 +- ...QslI4.js => ProfileIncomplete-D_-55Kim.js} | 2 +- ...nks-DgBl6uHJ.js => QuickLinks-DD-ribbK.js} | 2 +- ...-BLBecbq7.js => ResetPassword-BJZyO33I.js} | 2 +- ...DAtC-Lpw.js => RichTextEditor-CSdBGrkn.js} | 2 +- ...{Sample-h_0YfWFq.js => Sample-XU7cLEYR.js} | 2 +- .../{Show-zA_zQDpp.js => Show-C0lCCVvK.js} | 2 +- .../{Show-XCWI4PRQ.js => Show-CXvEssaa.js} | 2 +- .../{Show-CFchqID3.js => Show-Ch-d-Qt4.js} | 2 +- .../{Show-CecPPti-.js => Show-Cl9wZW4g.js} | 2 +- .../{Show-DmD5YXWC.js => Show-DghwZmO4.js} | 2 +- ...pages-Cy-r01_R.js => Subpages-C2cf5Oaf.js} | 2 +- .../{Text-Ds4Aj2bg.js => Text-DMEdDK2X.js} | 4 +- ...oming-BfzSjqs9.js => Upcoming-2G8rjb71.js} | 2 +- ...oming-DEeoRw9G.js => Upcoming-DpyMBhkM.js} | 2 +- ...DVtViobm.js => UpcomingEvents-xsZFQZUF.js} | 2 +- .../{Video-5yIzcEVv.js => Video-9vSfEOM0.js} | 2 +- .../{app-Bs4QJDng.js => app-CIvn5Z1l.js} | 4 +- ...{dialog-DGxV3e4v.js => dialog-bBqX5pN5.js} | 2 +- .../{pdf-BjiDbkVH.js => pdf-BDFieT5U.js} | 2 +- ...l-AcuDHLP0.js => pdfThumbnail-8Z6oxZ5l.js} | 4 +- public/build/manifest.json | 506 +++++++++--------- .../DownloadsTest.php} | 122 ++--- .../Feature/Downloads/RenameMigrationTest.php | 101 ++++ .../Feature/Plugins/CorePluginToggleTest.php | 2 +- 120 files changed, 1091 insertions(+), 866 deletions(-) delete mode 100644 plugins-core/documents/database/migrations/2026_09_30_000001_add_document_favorites_and_downloads.php delete mode 100644 plugins-core/documents/plugin.json delete mode 100644 plugins-core/documents/resources/js/components/FavoriteButton.vue delete mode 100644 plugins-core/documents/routes/web.php delete mode 100644 plugins-core/documents/src/DocumentsPlugin.php delete mode 100644 plugins-core/documents/src/Policies/DocumentFolderPolicy.php rename plugins-core/{documents => downloads}/database/migrations/2026_09_29_000001_create_documents_tables.php (71%) create mode 100644 plugins-core/downloads/database/migrations/2026_09_29_000002_rename_documents_to_downloads.php create mode 100644 plugins-core/downloads/database/migrations/2026_09_30_000001_add_download_favorites_and_counter.php create mode 100644 plugins-core/downloads/plugin.json rename plugins-core/{documents => downloads}/resources/js/blocks/FolderBlock.vue (89%) rename plugins-core/{documents/resources/js/components/DocumentGrid.vue => downloads/resources/js/components/DownloadGrid.vue} (85%) rename plugins-core/{documents/resources/js/components/DocumentMenu.vue => downloads/resources/js/components/DownloadMenu.vue} (67%) rename plugins-core/{documents/resources/js/components/DocumentMiniList.vue => downloads/resources/js/components/DownloadMiniList.vue} (79%) rename plugins-core/{documents/resources/js/components/DocumentTable.vue => downloads/resources/js/components/DownloadTable.vue} (92%) rename plugins-core/{documents/resources/js/components/DocumentThumb.vue => downloads/resources/js/components/DownloadThumb.vue} (73%) create mode 100644 plugins-core/downloads/resources/js/components/FavoriteButton.vue rename plugins-core/{documents => downloads}/resources/js/components/FileIcon.vue (100%) rename plugins-core/{documents => downloads}/resources/js/components/FolderTreeNav.vue (96%) rename plugins-core/{documents => downloads}/resources/js/lib.js (77%) rename plugins-core/{documents => downloads}/resources/js/pages/Index.vue (89%) rename plugins-core/{documents => downloads}/resources/js/pdfThumbnail.js (96%) rename plugins-core/{documents/resources/js/widgets/MyDocuments.vue => downloads/resources/js/widgets/MyDownloads.vue} (78%) create mode 100644 plugins-core/downloads/routes/web.php rename plugins-core/{documents/src/DocumentPresenter.php => downloads/src/DownloadPresenter.php} (64%) create mode 100644 plugins-core/downloads/src/DownloadsPlugin.php rename plugins-core/{documents/src/Filament/Resources/DocumentFolders/DocumentFolderResource.php => downloads/src/Filament/Resources/DownloadFolders/DownloadFolderResource.php} (61%) rename plugins-core/{documents/src/Filament/Resources/DocumentFolders/Pages/ManageDocumentFolders.php => downloads/src/Filament/Resources/DownloadFolders/Pages/ManageDownloadFolders.php} (57%) rename plugins-core/{documents => downloads}/src/FolderTree.php (94%) rename plugins-core/{documents/src/Http/Controllers/DocumentController.php => downloads/src/Http/Controllers/DownloadController.php} (64%) rename plugins-core/{documents/src/Models/Document.php => downloads/src/Models/Download.php} (64%) rename plugins-core/{documents/src/Models/DocumentFolder.php => downloads/src/Models/DownloadFolder.php} (57%) rename plugins-core/{documents/src/Models/DocumentVersion.php => downloads/src/Models/DownloadVersion.php} (66%) create mode 100644 plugins-core/downloads/src/Policies/DownloadFolderPolicy.php rename public/build/assets/{Accordion-BOCHhz6n.js => Accordion-qBB3ElDl.js} (98%) rename public/build/assets/{AppIcon-BdFEsdpu.js => AppIcon-BVHFLm12.js} (99%) rename public/build/assets/{AppLayout-BbDUnvfq.js => AppLayout-Cy38OwfZ.js} (98%) rename public/build/assets/{Areas-DhBb9Kju.js => Areas-Bzac5pwG.js} (91%) rename public/build/assets/{BirthdayItem-D5s1tNlm.js => BirthdayItem-DK6xURSZ.js} (90%) rename public/build/assets/{BirthdaysBlock-DLGMwARu.js => BirthdaysBlock-ClAbA8ni.js} (91%) rename public/build/assets/{Box-0BFUmTwU.js => Box-Bm0v4HQS.js} (96%) rename public/build/assets/{BrandLogo-Bb58pVmV.js => BrandLogo-TGGJyC1K.js} (95%) rename public/build/assets/{Builder-Bj802cuB.js => Builder-DQTVazsj.js} (99%) rename public/build/assets/{Contacts-BxqgboMU.js => Contacts-pzJUQND2.js} (92%) rename public/build/assets/{CustomTile-C-feFs0T.js => CustomTile-rpvbUDGX.js} (95%) rename public/build/assets/{Dashboard-DGZ5jgF5.js => Dashboard-BiW9lQww.js} (56%) rename public/build/assets/{DialogHeader-CT2TVejm.js => DialogHeader-ByFe3nCF.js} (94%) rename public/build/assets/{DirectoryLogin-DZydYaIB.js => DirectoryLogin-ClBeVS4i.js} (95%) rename public/build/assets/{Downloads-LyVvEsoB.js => Downloads-BCdWiVDF.js} (95%) rename public/build/assets/{Edit-CBZkrvQS.js => Edit-c1ouj20i.js} (93%) rename public/build/assets/{Editor-DBk-MGAi.js => Editor-BbW_ap54.js} (99%) rename public/build/assets/{Editor-3SHt3zUZ.js => Editor-Cx9Ivcev.js} (96%) rename public/build/assets/{EditorialForms-CeBj2UXC.js => EditorialForms-Di1_sGWd.js} (94%) rename public/build/assets/{EditorialNews-DdDP-wr2.js => EditorialNews-B8R4_r-1.js} (92%) rename public/build/assets/{EditorialPages-DQK8pnkL.js => EditorialPages-CIn86wBI.js} (91%) rename public/build/assets/{EventDateBlock-ClGvIMLI.js => EventDateBlock-Cxz_hY6g.js} (88%) rename public/build/assets/{EventListItem-CbvKawSs.js => EventListItem-C_pDZ4ur.js} (85%) rename public/build/assets/{FileIcon-DJSjjpjx.js => FileIcon-BHQ0ftg2.js} (98%) rename public/build/assets/{FolderBlock-DLMXE0ph.js => FolderBlock-BAOKZUHJ.js} (81%) rename public/build/assets/{ForgotPassword-Cv_9aO8w.js => ForgotPassword-DgexuuME.js} (92%) rename public/build/assets/{FormBlock-DoQrSefg.js => FormBlock-Dj-egPqI.js} (93%) rename public/build/assets/{FormRenderer-BzRqQJQw.js => FormRenderer-nT5JUcxg.js} (99%) rename public/build/assets/{Gallery-Dob_3fj9.js => Gallery-BTjs-P7R.js} (93%) rename public/build/assets/{Greeting-1cEGcQ-p.js => Greeting-B05GQpKd.js} (92%) rename public/build/assets/{Greeting-DsHyR8Yh.js => Greeting-BNtvUzyI.js} (96%) rename public/build/assets/{GuestLayout-NNth9G53.js => GuestLayout-DAusAB2K.js} (96%) rename public/build/assets/{Hero-B1XX10SN.js => Hero-OPvK6LV0.js} (98%) rename public/build/assets/{IconList-DlXhG3mn.js => IconList-DoadxhSr.js} (94%) rename public/build/assets/{Image-BOWLTTja.js => Image-DD-CaJzl.js} (93%) rename public/build/assets/{Index-BPs61ySm.js => Index-BfHGKDDV.js} (95%) rename public/build/assets/{Index-lRWq8E_f.js => Index-CbsDlkw3.js} (84%) rename public/build/assets/{Index-3OO-Hdzy.js => Index-CcFQ4knZ.js} (63%) rename public/build/assets/{Index-Ca9jR0JX.js => Index-CuHYqUvM.js} (89%) rename public/build/assets/{Index-lV-fq3QH.js => Index-DMTy14mX.js} (87%) rename public/build/assets/{Index-CoOXyn0J.js => Index-DhpHvuGr.js} (86%) create mode 100644 public/build/assets/Index-DjWJJOPS.js rename public/build/assets/{Index-ZqICc-3W.js => Index-Dm9p24qX.js} (88%) delete mode 100644 public/build/assets/Index-Dq0UCqWZ.js rename public/build/assets/{Latest-u2uYBfF9.js => Latest-CZZxoFB3.js} (82%) rename public/build/assets/{LatestNews-CE9Ppavy.js => LatestNews-D_wqcUcS.js} (90%) rename public/build/assets/{Login-CmEJtTk-.js => Login-iLM3GgD3.js} (97%) rename public/build/assets/{MyDocuments-BMFHyAVI.js => MyDownloads-C3KvafhB.js} (58%) rename public/build/assets/{NewColleagues-DqwBBbXt.js => NewColleagues-DMxyPHNm.js} (87%) rename public/build/assets/{NewPageDialog-BEA1JzEi.js => NewPageDialog-BbIzQTb2.js} (91%) rename public/build/assets/{NewsCard-DmDtOWG-.js => NewsCard-CWMFENyt.js} (88%) rename public/build/assets/{NewsImage-BGrdg-4F.js => NewsImage-31QS1JbU.js} (85%) rename public/build/assets/{NewsListItem-CyjX7LKh.js => NewsListItem-DmR535f5.js} (84%) rename public/build/assets/{Organigram-DdsLPkOC.js => Organigram-BAINuG6f.js} (98%) rename public/build/assets/{PageContent-ChLrfdg-.js => PageContent-DplopdM5.js} (58%) rename public/build/assets/{PageHeader-xxRfFX5Y.js => PageHeader-CWL5ThBH.js} (95%) rename public/build/assets/{Panel-LL8MhcJX.js => Panel-xPHuwfuu.js} (93%) rename public/build/assets/{PeopleSearch-C9t0sHMo.js => PeopleSearch-lOnxyLDv.js} (89%) rename public/build/assets/{ProfileBirthday-CHwuMYKE.js => ProfileBirthday-CKO31Nfm.js} (90%) rename public/build/assets/{ProfileIncomplete-Dn2QslI4.js => ProfileIncomplete-D_-55Kim.js} (82%) rename public/build/assets/{QuickLinks-DgBl6uHJ.js => QuickLinks-DD-ribbK.js} (94%) rename public/build/assets/{ResetPassword-BLBecbq7.js => ResetPassword-BJZyO33I.js} (93%) rename public/build/assets/{RichTextEditor-DAtC-Lpw.js => RichTextEditor-CSdBGrkn.js} (99%) rename public/build/assets/{Sample-h_0YfWFq.js => Sample-XU7cLEYR.js} (88%) rename public/build/assets/{Show-zA_zQDpp.js => Show-C0lCCVvK.js} (92%) rename public/build/assets/{Show-XCWI4PRQ.js => Show-CXvEssaa.js} (81%) rename public/build/assets/{Show-CFchqID3.js => Show-Ch-d-Qt4.js} (87%) rename public/build/assets/{Show-CecPPti-.js => Show-Cl9wZW4g.js} (87%) rename public/build/assets/{Show-DmD5YXWC.js => Show-DghwZmO4.js} (95%) rename public/build/assets/{Subpages-Cy-r01_R.js => Subpages-C2cf5Oaf.js} (90%) rename public/build/assets/{Text-Ds4Aj2bg.js => Text-DMEdDK2X.js} (78%) rename public/build/assets/{Upcoming-BfzSjqs9.js => Upcoming-2G8rjb71.js} (89%) rename public/build/assets/{Upcoming-DEeoRw9G.js => Upcoming-DpyMBhkM.js} (74%) rename public/build/assets/{UpcomingEvents-DVtViobm.js => UpcomingEvents-xsZFQZUF.js} (88%) rename public/build/assets/{Video-5yIzcEVv.js => Video-9vSfEOM0.js} (96%) rename public/build/assets/{app-Bs4QJDng.js => app-CIvn5Z1l.js} (97%) rename public/build/assets/{dialog-DGxV3e4v.js => dialog-bBqX5pN5.js} (98%) rename public/build/assets/{pdf-BjiDbkVH.js => pdf-BDFieT5U.js} (99%) rename public/build/assets/{pdfThumbnail-AcuDHLP0.js => pdfThumbnail-8Z6oxZ5l.js} (69%) rename tests/Feature/{Documents/DocumentsTest.php => Downloads/DownloadsTest.php} (64%) create mode 100644 tests/Feature/Downloads/RenameMigrationTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fb21b41..9e67728a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,14 @@ Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an. ## 0.10.0 +- **„Dokumente“ heißt jetzt „Downloads“** (Adresse /downloads, alte Links leiten weiter). Der Name „Dokumente“ ist für das kommende QM-Modul mit QM-Dokumenten und Formularen vorgesehen. Ordner, Dateien, Rechte, Sichtbarkeiten, Favoriten, Menüpunkte und eingebundene Blöcke werden beim Update automatisch übernommen - **Menü selbst gestalten** (Admin → Portal → Menü): Bereiche, Seiten (auf Wunsch mit Unterseiten als Untermenü), eigene Links (auch im neuen Tab) und Gruppen mit Unterpunkten; per Ziehen sortieren, optional mit Symbol, einzelne Punkte nur für bestimmte Rollen. Ohne eigenes Menü gilt weiter das automatische - Symbole: alle 1.854 Lucide-Symbole lokal verfügbar für Menü, Schnellzugriffe und Pagebuilder – 66 häufig gebrauchte mit deutscher Bezeichnung vorneweg, alle übrigen über die Suche (englische Namen); im Portal wird der vollständige Satz nur bei Bedarf geladen - Passt das Menü nicht in die Kopfzeile, wandern die letzten Punkte unter „Mehr“ - Initialen ohne Foto erscheinen in einer festen Farbe je Person; das Organigramm zeigt jede Abteilung mit eigener Farbe samt Legende - Einheitliche Seitenköpfe (Pfad, Titel, Beschreibung, Aktionen) auf allen Übersichtsseiten -- Dokumente: mit dem Stern gemerkte Dokumente unter „Meine Dokumente“ – in der Ablage und als Kachel auf der Startseite; „Häufig genutzt“ nach Downloads -- Dokumente: Vorschaubilder in der Kachelansicht (Bilder und erste PDF-Seite, im Browser erzeugt) +- Downloads: mit dem Stern gemerkte Dateien unter „Meine Downloads“ – im Bereich und als Kachel auf der Startseite; „Häufig genutzt“ nach Anzahl der Downloads +- Downloads: Vorschaubilder in der Kachelansicht (Bilder und erste PDF-Seite, im Browser erzeugt) - Platzhalter beim Nachladen statt springender Inhalte ## 0.9.1 diff --git a/docs/PLAN.md b/docs/PLAN.md index cd2d99ce..1c8ab885 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -454,7 +454,7 @@ Entwickler, ohne Build, direkt im Admin unter „Erscheinungsbild“. ## 13. Mitgelieferte Plugins **Start:** Dashboard, News/Feed mit Kategorien, CMS-Seiten, Formulare, -WordPress-Import, Verzeichnis & Organigramm, Dokumente, App-Launcher. +WordPress-Import, Verzeichnis & Organigramm, Downloads, QM-Dokumente (eigenes Modul), App-Launcher. **Später:** Events, Umfragen, Geburtstage/Jubiläen, Onboarding, Raumbuchung, Kantinenplan, Ideenbox, Urlaubsanträge. @@ -485,7 +485,7 @@ Kantinenplan, Ideenbox, Urlaubsanträge. | **4 – CMS** ✅ | Seitenbaum, Pagebuilder (Layout-, Inhalts-, Medien- und dynamische Blöcke, Sichtbarkeit je Block), Entwürfe, Versionen, Zeitsteuerung, Bearbeitungssperre, Freigaben; News-Freigabe-Workflow und Redaktion im Portal; Benachrichtigungen. Offen: Vorlagen und wiederverwendbare Blöcke | | **4b – Formulare & Umstieg** ✅ | Formular-Plugin (visueller Baukasten im Portal, Bedingungen, Uploads, anonyme Formulare, Mail + Backend, Ergebnis-Rechte je Formular und Rolle, CSV, Löschfristen; eingebunden per Pagebuilder-Block und unter Beiträgen, kein eigener Menüpunkt); WordPress-Import (Beiträge, Kategorien, Bilder, Seiten); E-Mail-Versand im Admin; anpassbare Startseite mit eigenen Kacheln; Geburtstage (optionales Plugin) | | **5 – Branding & Theming** ✅ | Vollständige Seite „Erscheinungsbild“: Logo-Varianten, Farben inkl. Farbtreue & Kontrastprüfung, Schriften, Form, Login-Seite, E-Mails, Live-Vorschau, Entwurf/Veröffentlichen, Export/Import | -| **6 – Weitere Plugins & IdPs** | ✅ Organigramm (aus Vorgesetzten, im Admin pflegbar), ✅ Dokumente (Ordner mit vererbten Rechten und Sichtbarkeit, Versionen, Suche, Pagebuilder-Block); ✅ OIDC generisch, LDAP/AD, SAML 2 (als Plugins auf gemeinsamem Treiber-Unterbau); offen: Lasttests 5.000 User | +| **6 – Weitere Plugins & IdPs** | ✅ Organigramm (aus Vorgesetzten, im Admin pflegbar), ✅ Downloads (Ordner mit vererbten Rechten und Sichtbarkeit, Versionen, Suche, Favoriten, Pagebuilder-Block – früher „Dokumente“); geplant: QM-Modul für QM-Dokumente und -Formulare; ✅ OIDC generisch, LDAP/AD, SAML 2 (als Plugins auf gemeinsamem Treiber-Unterbau); offen: Lasttests 5.000 User | | **7 – Plugin-SDK öffentlich** | Doku, Generator, Beispiel-Plugins (kein Plugin-Verzeichnis) | | **8 – Mobil** | REST-API (Sanctum), Web-Push, native App | diff --git a/docs/PLUGINS.md b/docs/PLUGINS.md index e53e732e..7c8da356 100644 --- a/docs/PLUGINS.md +++ b/docs/PLUGINS.md @@ -84,7 +84,7 @@ class Plugin extends BasePlugin `permissionResource()`. - Zielgruppen: `App\Support\Permissions\Audiences::constrain($query, 'mein_typ', 'tabelle.id', $user)` und im Admin-Formular `App\Filament\Components\AudienceSection::make('mein_typ')`. -- Hierarchische Objekttypen (z. B. Seiten, Dokumentordner – Vorlage: `plugins-core/documents`): +- Hierarchische Objekttypen (z. B. Seiten, Download-Ordner – Vorlage: `plugins-core/downloads`): `resourceType(..., descendants: fn (array $ids) => [...])`. Rechte mit „inkl. Unterobjekten“ gelten dann auch für alle Nachfahren; ändert sich der Baum, `App\Support\Permissions\Permissions::flush()` aufrufen. diff --git a/plugins-core/documents/database/migrations/2026_09_30_000001_add_document_favorites_and_downloads.php b/plugins-core/documents/database/migrations/2026_09_30_000001_add_document_favorites_and_downloads.php deleted file mode 100644 index 0fa21901..00000000 --- a/plugins-core/documents/database/migrations/2026_09_30_000001_add_document_favorites_and_downloads.php +++ /dev/null @@ -1,34 +0,0 @@ -foreignId('user_id')->constrained()->cascadeOnDelete(); - $table->foreignId('document_id')->constrained()->cascadeOnDelete(); - $table->timestamp('created_at')->nullable(); - - $table->primary(['user_id', 'document_id']); - }); - - Schema::table('documents', function (Blueprint $table) { - $table->unsignedInteger('downloads')->default(0)->after('updated_by'); - $table->index('downloads'); - }); - } - - public function down(): void - { - Schema::table('documents', function (Blueprint $table) { - $table->dropIndex(['downloads']); - $table->dropColumn('downloads'); - }); - - Schema::dropIfExists('document_favorites'); - } -}; diff --git a/plugins-core/documents/plugin.json b/plugins-core/documents/plugin.json deleted file mode 100644 index 6703bd04..00000000 --- a/plugins-core/documents/plugin.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "slug": "documents", - "name": "Dokumente", - "version": "1.0.0", - "description": "Dokumentenablage mit Ordnern, Versionen, Suche und Rechten je Ordner – z. B. Formulare, Dienstanweisungen, Handbücher.", - "author": "Inhaus", - "namespace": "Inhaus\\Plugins\\Documents\\", - "class": "Inhaus\\Plugins\\Documents\\DocumentsPlugin", - "requires": { - "core": ">=0.8.0", - "php": ">=8.3" - } -} diff --git a/plugins-core/documents/resources/js/components/FavoriteButton.vue b/plugins-core/documents/resources/js/components/FavoriteButton.vue deleted file mode 100644 index 3f4a7af1..00000000 --- a/plugins-core/documents/resources/js/components/FavoriteButton.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/plugins-core/documents/routes/web.php b/plugins-core/documents/routes/web.php deleted file mode 100644 index 3dded627..00000000 --- a/plugins-core/documents/routes/web.php +++ /dev/null @@ -1,20 +0,0 @@ -prefix('dokumente')->name('documents.')->controller(DocumentController::class)->where(['document' => '[0-9]+', 'folder' => '[0-9]+', 'version' => '[0-9]+'])->group(function () { - Route::get('/', 'index')->name('index'); - Route::get('/ordner/{folder}', 'folder')->name('folder'); - Route::post('/ordner', 'storeFolder')->name('folders.store'); - Route::put('/ordner/{folder}', 'updateFolder')->name('folders.update'); - Route::delete('/ordner/{folder}', 'destroyFolder')->name('folders.destroy'); - Route::post('/ordner/{folder}/dateien', 'upload')->name('upload'); - Route::put('/{document}', 'update')->name('update'); - Route::delete('/{document}', 'destroy')->name('destroy'); - Route::post('/{document}/versionen', 'newVersion')->name('versions.store'); - Route::get('/{document}/versionen', 'versions')->name('versions'); - Route::post('/{document}/favorit', 'favorite')->name('favorite'); - Route::delete('/{document}/favorit', 'unfavorite')->name('unfavorite'); - Route::get('/{document}/herunterladen/{version}/{name}', 'download')->name('download'); -}); diff --git a/plugins-core/documents/src/DocumentsPlugin.php b/plugins-core/documents/src/DocumentsPlugin.php deleted file mode 100644 index 6307c1f2..00000000 --- a/plugins-core/documents/src/DocumentsPlugin.php +++ /dev/null @@ -1,78 +0,0 @@ -app->singleton(FolderTree::class); - - $this->app->make(Navigation::class)->add('documents', 'Dokumente', '/dokumente', active: 'documents.*', sort: 50); - - $abilities = $this->app->make(Abilities::class); - $abilities->define('documents.manage', 'Dokumente: gesamte Ablage verwalten', 'Dokumente'); - $abilities->define('documents.edit', 'Dokumente pflegen', 'Dokumente', resource: 'document_folder'); - $abilities->resourceType( - 'document_folder', - 'Dokumentenordner', - fn () => $this->app->make(FolderTree::class)->options(), - fn (array $ids) => $this->app->make(FolderTree::class)->descendantIds($ids), - ); - - Gate::policy(DocumentFolder::class, DocumentFolderPolicy::class); - - // Startseite: gemerkte Dokumente – ohne Favoriten die meistgenutzten. - $this->app->make(Widgets::class)->add('documents.favorites', 'documents::MyDocuments', 'aside', sort: 25, props: function (User $user) { - $visible = $this->app->make(FolderTree::class)->visibleIds($user) ?: [0]; - $favorites = Document::query()->whereIn('folder_id', $visible) - ->whereIn('id', DB::table('document_favorites')->where('user_id', $user->id)->select('document_id')) - ->with('currentVersion')->orderBy('title')->limit(6)->get(); - $popular = $favorites->isEmpty() - ? Document::query()->whereIn('folder_id', $visible)->where('downloads', '>', 0)->with('currentVersion')->orderByDesc('downloads')->limit(5)->get() - : collect(); - - return [ - 'favorites' => $favorites->map(fn (Document $d) => DocumentPresenter::row($d, null, true))->all(), - 'popular' => $popular->map(fn (Document $d) => DocumentPresenter::row($d))->all(), - ]; - }, label: 'Meine Dokumente'); - - $this->app->make(Blocks::class)->add(BlockType::make('documents.folder', 'Dokumente', 'file-down', 'dynamic', 'documents::FolderBlock') - ->description('Die Dokumente eines Ordners – immer in der aktuellen Fassung.') - ->fields([ - Field::text('title', 'Überschrift', 150), - Field::select('folder', 'Ordner', fn () => collect($this->app->make(FolderTree::class)->options())->mapWithKeys(fn ($name, $id) => [(string) $id => $name])->all()), - Field::toggle('show_description', 'Beschreibungen anzeigen', true), - ]) - ->resolveUsing(function (array $data, ?User $user) { - $tree = $this->app->make(FolderTree::class); - $folderId = (int) $data['folder']; - - if (! $folderId || ! $tree->isVisible($folderId, $user)) { - return null; - } - - $documents = Document::query()->where('folder_id', $folderId)->with('currentVersion')->orderBy('title')->limit(100)->get(); - - return [ - 'folder_url' => route('documents.folder', $folderId), - 'documents' => $documents->map(fn (Document $d) => DocumentPresenter::row($d))->all(), - ]; - })); - } -} diff --git a/plugins-core/documents/src/Policies/DocumentFolderPolicy.php b/plugins-core/documents/src/Policies/DocumentFolderPolicy.php deleted file mode 100644 index 48289447..00000000 --- a/plugins-core/documents/src/Policies/DocumentFolderPolicy.php +++ /dev/null @@ -1,41 +0,0 @@ -can('documents.manage') || $user->permissions()->ids('documents.edit', 'document_folder') !== []; - } - - public function view(User $user, DocumentFolder $folder): bool - { - return app(FolderTree::class)->isVisible($folder->id, $user) || $this->update($user, $folder); - } - - public function create(User $user, ?DocumentFolder $parent = null): bool - { - return $user->can('documents.manage') || ($parent !== null && $this->update($user, $parent)); - } - - /** Dokumente hochladen, ändern, löschen; Unterordner anlegen. */ - public function update(User $user, DocumentFolder $folder): bool - { - return $user->can('documents.manage') || $user->can('documents.edit', ['document_folder', $folder->id]); - } - - public function delete(User $user, DocumentFolder $folder): bool - { - return $user->can('documents.manage') || ($folder->parent_id !== null && $user->can('documents.edit', ['document_folder', $folder->parent_id])); - } -} diff --git a/plugins-core/documents/database/migrations/2026_09_29_000001_create_documents_tables.php b/plugins-core/downloads/database/migrations/2026_09_29_000001_create_documents_tables.php similarity index 71% rename from plugins-core/documents/database/migrations/2026_09_29_000001_create_documents_tables.php rename to plugins-core/downloads/database/migrations/2026_09_29_000001_create_documents_tables.php index 8f9d07d7..199f9e90 100644 --- a/plugins-core/documents/database/migrations/2026_09_29_000001_create_documents_tables.php +++ b/plugins-core/downloads/database/migrations/2026_09_29_000001_create_documents_tables.php @@ -8,9 +8,9 @@ return new class extends Migration { public function up(): void { - Schema::create('document_folders', function (Blueprint $table) { + Schema::create('download_folders', function (Blueprint $table) { $table->id(); - $table->foreignId('parent_id')->nullable()->constrained('document_folders')->restrictOnDelete(); + $table->foreignId('parent_id')->nullable()->constrained('download_folders')->restrictOnDelete(); $table->string('name'); $table->string('description', 500)->nullable(); $table->unsignedInteger('sort')->default(0); @@ -20,12 +20,12 @@ return new class extends Migration $table->index(['parent_id', 'sort']); }); - Schema::create('documents', function (Blueprint $table) { + Schema::create('downloads', function (Blueprint $table) { $table->id(); - $table->foreignId('folder_id')->constrained('document_folders')->restrictOnDelete(); + $table->foreignId('folder_id')->constrained('download_folders')->restrictOnDelete(); $table->string('title'); $table->text('description')->nullable(); - // Aktuelle Fassung; ältere bleiben in document_versions abrufbar. + // Aktuelle Fassung; ältere bleiben in download_versions abrufbar. $table->unsignedBigInteger('current_version_id')->nullable(); $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete(); $table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete(); @@ -34,9 +34,9 @@ return new class extends Migration $table->index(['folder_id', 'title']); }); - Schema::create('document_versions', function (Blueprint $table) { + Schema::create('download_versions', function (Blueprint $table) { $table->id(); - $table->foreignId('document_id')->constrained('documents')->cascadeOnDelete(); + $table->foreignId('download_id')->constrained('downloads')->cascadeOnDelete(); $table->unsignedInteger('version'); $table->string('name'); $table->string('path'); @@ -46,15 +46,15 @@ return new class extends Migration $table->foreignId('uploaded_by')->nullable()->constrained('users')->nullOnDelete(); $table->timestamp('created_at')->nullable(); - $table->unique(['document_id', 'version']); + $table->unique(['download_id', 'version']); $table->index('name'); }); } public function down(): void { - Schema::dropIfExists('document_versions'); - Schema::dropIfExists('documents'); - Schema::dropIfExists('document_folders'); + Schema::dropIfExists('download_versions'); + Schema::dropIfExists('downloads'); + Schema::dropIfExists('download_folders'); } }; diff --git a/plugins-core/downloads/database/migrations/2026_09_29_000002_rename_documents_to_downloads.php b/plugins-core/downloads/database/migrations/2026_09_29_000002_rename_documents_to_downloads.php new file mode 100644 index 00000000..679a2595 --- /dev/null +++ b/plugins-core/downloads/database/migrations/2026_09_29_000002_rename_documents_to_downloads.php @@ -0,0 +1,109 @@ + $table->renameColumn('document_id', 'download_id')); + } + + if (Schema::hasTable('document_favorites') && ! Schema::hasTable('download_favorites')) { + Schema::rename('document_favorites', 'download_favorites'); + Schema::table('download_favorites', fn (Blueprint $table) => $table->renameColumn('document_id', 'download_id')); + } + + if (Schema::hasTable('downloads') && Schema::hasColumn('downloads', 'downloads')) { + Schema::table('downloads', fn (Blueprint $table) => $table->renameColumn('downloads', 'download_count')); + } + + // Rechte und Sichtbarkeiten + DB::table('grants')->where('ability', 'documents.manage')->update(['ability' => 'downloads.manage']); + DB::table('grants')->where('ability', 'documents.edit')->update(['ability' => 'downloads.edit']); + DB::table('grants')->where('resource_type', 'document_folder')->update(['resource_type' => 'download_folder']); + DB::table('audiences')->where('resource_type', 'document_folder')->update(['resource_type' => 'download_folder']); + + // Einstellungen: Menü-Einträge und Anordnung der Startseite + $this->updateSetting('navigation.menu', function (array $menu) { + $rename = function (array $item) use (&$rename) { + if (($item['type'] ?? null) === 'module' && ($item['module'] ?? null) === 'documents') { + $item['module'] = 'downloads'; + } + if (isset($item['children']) && is_array($item['children'])) { + $item['children'] = array_map($rename, $item['children']); + } + + return $item; + }; + + return array_map($rename, $menu); + }); + $this->updateSetting('dashboard.layout', function (array $layout) { + if (isset($layout['documents.favorites'])) { + $layout['downloads.favorites'] = $layout['documents.favorites']; + unset($layout['documents.favorites']); + } + + return $layout; + }); + + // Pagebuilder-Blöcke in Seiten und ihren Fassungen + foreach (['pages' => ['content', 'draft', 'scheduled_content'], 'page_revisions' => ['content']] as $table => $columns) { + if (! Schema::hasTable($table)) { + continue; + } + + foreach ($columns as $column) { + DB::table($table)->where($column, 'like', '%documents.folder%')->orderBy('id')->each(function ($row) use ($table, $column) { + DB::table($table)->where('id', $row->id)->update([ + $column => str_replace('"documents.folder"', '"downloads.folder"', $row->{$column}), + ]); + }); + } + } + + // Plugin-Zustand (z. B. „deaktiviert“) übernehmen + $state = app(PluginState::class); + $old = $state->all()['documents'] ?? null; + + if (is_array($old)) { + $state->setEnabled('downloads', (bool) ($old['enabled'] ?? true), $old['disabled_reason'] ?? null); + $state->forget('documents'); + } + + app(Settings::class)->flush(); + Permissions::flush(); + } + + public function down(): void + { + // Umbenennung wird nicht zurückgenommen. + } + + private function updateSetting(string $key, callable $change): void + { + $row = DB::table('settings')->where('key', $key)->first(); + $value = $row ? json_decode((string) $row->value, true) : null; + + if (is_array($value)) { + DB::table('settings')->where('key', $key)->update(['value' => json_encode($change($value), JSON_UNESCAPED_UNICODE)]); + } + } +}; diff --git a/plugins-core/downloads/database/migrations/2026_09_30_000001_add_download_favorites_and_counter.php b/plugins-core/downloads/database/migrations/2026_09_30_000001_add_download_favorites_and_counter.php new file mode 100644 index 00000000..705a0172 --- /dev/null +++ b/plugins-core/downloads/database/migrations/2026_09_30_000001_add_download_favorites_and_counter.php @@ -0,0 +1,41 @@ +foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->foreignId('download_id')->constrained()->cascadeOnDelete(); + $table->timestamp('created_at')->nullable(); + + $table->primary(['user_id', 'download_id']); + }); + } + + if (Schema::hasColumn('downloads', 'download_count')) { + return; + } + + Schema::table('downloads', function (Blueprint $table) { + $table->unsignedInteger('download_count')->default(0)->after('updated_by'); + $table->index('download_count'); + }); + } + + public function down(): void + { + Schema::table('downloads', function (Blueprint $table) { + $table->dropIndex(['download_count']); + $table->dropColumn('download_count'); + }); + + Schema::dropIfExists('download_favorites'); + } +}; diff --git a/plugins-core/downloads/plugin.json b/plugins-core/downloads/plugin.json new file mode 100644 index 00000000..f60ea6a7 --- /dev/null +++ b/plugins-core/downloads/plugin.json @@ -0,0 +1,13 @@ +{ + "slug": "downloads", + "name": "Downloads", + "version": "1.0.0", + "description": "Download-Bereich mit Ordnern, Versionen, Suche und Rechten je Ordner – z. B. Vorlagen, Anträge, Infomaterial. Für QM-Dokumente ist das QM-Modul gedacht.", + "author": "Inhaus", + "namespace": "Inhaus\\Plugins\\Downloads\\", + "class": "Inhaus\\Plugins\\Downloads\\DownloadsPlugin", + "requires": { + "core": ">=0.8.0", + "php": ">=8.3" + } +} diff --git a/plugins-core/documents/resources/js/blocks/FolderBlock.vue b/plugins-core/downloads/resources/js/blocks/FolderBlock.vue similarity index 89% rename from plugins-core/documents/resources/js/blocks/FolderBlock.vue rename to plugins-core/downloads/resources/js/blocks/FolderBlock.vue index 9c2079b8..7b77358f 100644 --- a/plugins-core/documents/resources/js/blocks/FolderBlock.vue +++ b/plugins-core/downloads/resources/js/blocks/FolderBlock.vue @@ -15,7 +15,7 @@ const formatSize = (bytes) => (bytes >= 1024 * 1024 ? `${(bytes / 1024 / 1024).t Zum Ordner diff --git a/plugins-core/documents/resources/js/components/DocumentGrid.vue b/plugins-core/downloads/resources/js/components/DownloadGrid.vue similarity index 85% rename from plugins-core/documents/resources/js/components/DocumentGrid.vue rename to plugins-core/downloads/resources/js/components/DownloadGrid.vue index be0e2886..e4b1de69 100644 --- a/plugins-core/documents/resources/js/components/DocumentGrid.vue +++ b/plugins-core/downloads/resources/js/components/DownloadGrid.vue @@ -4,16 +4,16 @@ import { Download, Folder, Star } from '@lucide/vue'; import { Button } from '@/components/ui/button'; import { formatShortDate } from '@/lib/format'; import { folderSummary, formatSize } from '../lib'; -import DocumentMenu from './DocumentMenu.vue'; +import DownloadMenu from './DownloadMenu.vue'; import FavoriteButton from './FavoriteButton.vue'; -import DocumentThumb from './DocumentThumb.vue'; +import DownloadThumb from './DownloadThumb.vue'; /** - * Kachelansicht: Ordner und Dokumente als Karten. + * Kachelansicht: Ordner und Dateien als Karten. */ defineProps({ folders: { type: Array, default: () => [] }, - documents: { type: Array, default: () => [] }, + downloads: { type: Array, default: () => [] }, canEdit: { type: Boolean, default: false }, }); @@ -26,18 +26,18 @@ defineEmits(['versions', 'new-version', 'edit', 'remove', 'favorite']);
  • - {{ folder.name }} + {{ folder.name }} {{ folderSummary(folder) }}
  • -
      -
    • - +
        +
      • + Fassung {{ doc.version }} {{ doc.extension }} - +
        {{ doc.title }} {{ doc.title }} @@ -47,11 +47,11 @@ defineEmits(['versions', 'new-version', 'edit', 'remove', 'favorite']);
        - + - +
      diff --git a/plugins-core/documents/resources/js/components/DocumentMenu.vue b/plugins-core/downloads/resources/js/components/DownloadMenu.vue similarity index 67% rename from plugins-core/documents/resources/js/components/DocumentMenu.vue rename to plugins-core/downloads/resources/js/components/DownloadMenu.vue index cd5a8e91..e64f27ab 100644 --- a/plugins-core/documents/resources/js/components/DocumentMenu.vue +++ b/plugins-core/downloads/resources/js/components/DownloadMenu.vue @@ -4,7 +4,7 @@ import { Button } from '@/components/ui/button'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'; defineProps({ - document: { type: Object, required: true }, + download: { type: Object, required: true }, canEdit: { type: Boolean, default: false }, }); @@ -14,15 +14,15 @@ defineEmits(['versions', 'new-version', 'edit', 'remove']);