stable

Clone or download

Read-only

refactor: let @tuleap/print-as-pdf inject title/header/footer content

In this refactoring, the injection of title/header/footer is moved into @tuleap/print-as-pdf. I took the opportunity to introduce a bit of neverthrow to be able to manage the different errors that can occure while rendering the pdf (missing container, print failure etc.) For the moment, errors are simply logged into the console. part of story #38630: Export to file -- no functional change expected Change-Id: Ide7a78c526a7c69b8eaf4edd972f6189c14ae180

Modified Files

Name
M lib/frontend/print-as-pdf/README.md +1 −1 Go to diff View file
M lib/frontend/print-as-pdf/package.json +7 −2 Go to diff View file
M lib/frontend/print-as-pdf/pnpm-lock.yaml +30 −0 Go to diff View file
A lib/frontend/print-as-pdf/src/print-as-pdf.test.ts +146 −0 Go to diff View file
M lib/frontend/print-as-pdf/src/print-as-pdf.ts +66 −8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/export/pdf/PdfExportMenuItem.test.ts +6 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/export/pdf/PdfExportMenuItem.vue +7 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/print/PrinterVersion.vue +6 −25 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/print-preview-fake-document.mustache +3 −3 Go to diff View file
M plugins/pdftemplate/scripts/admin/package.json +2 −4 Go to diff View file
M plugins/pdftemplate/scripts/admin/pnpm-lock.yaml +0 −20 Go to diff View file
M plugins/pdftemplate/scripts/admin/src/initiate-print-preview.ts +10 −54 Go to diff View file