stable

Clone or download

Read-only

feat: ability to upload an image

Administrators can now upload an image in pdf template => images library. For now the images are not displayed so the best way to assert that the upload really succeed is to look at the db table `plugin_pdftemplate_image` and at the filesystem in `/var/lib/tuleap/pdftemplate/images`. Part of story #38630: Export to file Change-Id: Ic317a9e75e970aee88745078ce34c825d181db45

Modified Files

Name
M plugins/pdftemplate/db/install.sql +11 −0 Go to diff View file
A plugins/pdftemplate/db/mysql/202408011058_add_pdftemplate_image_table.php +48 −0 Go to diff View file
M plugins/pdftemplate/db/uninstall.sql +1 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/Image/IndexImagesController.php +3 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/Image/IndexImagesPresenter.php +8 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Admin/Image/StorePdfTemplateImage.php +28 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Admin/Image/UploadImageController.php +104 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/Image/index.mustache +17 −4 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/CreateImage.php +34 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/Identifier/InvalidPdfTemplateImageIdentifierStringException.php +31 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/Identifier/PdfTemplateImageIdentifier.php +53 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/Identifier/PdfTemplateImageIdentifierFactory.php +57 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/PdfTemplateImage.php +37 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/PdfTemplateImageDao.php +92 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/PdfTemplateImageStorage.php +47 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Image/RetrieveAllImages.php +29 −0 Go to diff View file
M plugins/pdftemplate/include/pdftemplatePlugin.php +39 −0 Go to diff View file
A plugins/pdftemplate/scripts/admin/src/_images.scss +22 −0 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/admin.scss +1 −0 Go to diff View file
M plugins/pdftemplate/site-content/fr_FR/LC_MESSAGES/tuleap-pdftemplate.po +9 −0 Go to diff View file
A plugins/pdftemplate/tests/integration/PdfTemplate/Image/PdfTemplateImageDaoTest.php +52 −0 Go to diff View file
A plugins/pdftemplate/tests/unit/PdfTemplate/Admin/Image/UploadImageControllerTest.php +261 −0 Go to diff View file
A plugins/pdftemplate/tests/unit/PdfTemplate/Stubs/CreateImageStub.php +56 −0 Go to diff View file
A plugins/pdftemplate/tests/unit/PdfTemplate/Stubs/StorePdfTemplateImageStub.php +57 −0 Go to diff View file
M tools/rpm/tuleap.spec +6 −0 Go to diff View file