stable

Clone or download

Read-only

feat: Introduce pdftemplate plugin

This plugin will allow site administrators (or those with sufficient delegation permissions) to define PDF templates to be used later in artidoc or other plugins wanting to export content in PDF format. This plugin is flagged as experimental, but can be installed on dev instances. If the plugin is not installed, or not enabled, then nothing changes. If the plugin is installed and enabled, then in artidoc there is an option to export as PDF a document in the ellipsis menu. For now it only calls `window.print()` to print the document, it will be enhanced later. Part of story #38630: Export to file Change-Id: Idaf66cd2e9a8ca2214ceba02ef53813ff4e53752

Modified Files

Name
M plugins/artidoc/include/Artidoc/ArtidocController.php +5 −1 Go to diff View file
M plugins/artidoc/include/Artidoc/ArtidocPresenter.php +5 −0 Go to diff View file
M plugins/artidoc/include/Artidoc/artidoc.mustache +1 −0 Go to diff View file
M plugins/artidoc/include/artidocPlugin.php +1 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +3 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.vue +4 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentDropdown.test.ts +45 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentDropdown.vue +15 −1 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/export/pdf/PdfExportMenuItem.vue +36 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/SectionContent.vue +4 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/pdf-template.ts +23 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +2 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/pdf-templates-injection-key.ts +24 −0 Go to diff View file
A plugins/pdftemplate/composer.json +13 −0 Go to diff View file
A plugins/pdftemplate/composer.lock +18 −0 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/PdfTemplateCollectionRetriever.php +41 −0 Go to diff View file
A plugins/pdftemplate/include/pdftemplatePlugin.php +62 −0 Go to diff View file
A plugins/pdftemplate/site-content/fr_FR/LC_MESSAGES/tuleap-pdftemplate.po +25 −0 Go to diff View file
A plugins/pdftemplate/tests/unit/PdfTemplate/PdfTemplateCollectionRetrieverTest.php +35 −0 Go to diff View file
M plugins/tee_container/docker/Dockerfile +1 −0 Go to diff View file
A src/common/Export/Pdf/Template/GetPdfTemplatesEvent.php +53 −0 Go to diff View file
A src/common/Export/Pdf/Template/PdfTemplate.php +35 −0 Go to diff View file
M tools/rpm/tuleap.spec +12 −0 Go to diff View file