From 93fe2e085a33492abde844d3abe2d91334546ad7 Mon Sep 17 00:00:00 2001 From: reecebrowne <74901996+reecebrowne@users.noreply.github.com> Date: Fri, 28 Feb 2025 23:53:49 +1300 Subject: [PATCH 1/2] Add description to search. Fix homepage broken by ) (#3079) # Description of Changes Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: Reece Browne --- src/main/resources/static/js/homecard.js | 2 +- src/main/resources/static/js/pages/home.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/static/js/homecard.js b/src/main/resources/static/js/homecard.js index 89170660..33d49a78 100644 --- a/src/main/resources/static/js/homecard.js +++ b/src/main/resources/static/js/homecard.js @@ -17,7 +17,7 @@ function filterCards() { // Get the navbar tags associated with the card var navbarItem = document.querySelector(`a.dropdown-item[href="${card.id}"]`); var navbarTags = navbarItem ? navbarItem.getAttribute('data-bs-tags') : ''; - var navbarTags = navbarItem ? navbarTags + ',' + navbarItem.getAttribute('data-bs-title') : ''; + navbarTags = navbarItem ? navbarTags + ',' + navbarItem.getAttribute('data-bs-title') + ',' + navbarItem.children[0].getAttribute('data-title') : navbarTags; var content = (title + ' ' + navbarTags).toUpperCase(); diff --git a/src/main/resources/static/js/pages/home.js b/src/main/resources/static/js/pages/home.js index f29028ad..1a5390ae 100644 --- a/src/main/resources/static/js/pages/home.js +++ b/src/main/resources/static/js/pages/home.js @@ -51,7 +51,7 @@ document.addEventListener('DOMContentLoaded', function () { const storedVersion = localStorage.getItem('surveyVersion'); if (storedVersion && storedVersion !== surveyVersion) { localStorage.setItem('pageViews', '0'); - localStorage.setItem('surveyVersion', surveyVersion)); + localStorage.setItem('surveyVersion', surveyVersion); } let pageViews = parseInt(localStorage.getItem('pageViews') || '0'); From f3a413fe82d5df1c9f2c9ad4fb68b7ea4c2ce30e Mon Sep 17 00:00:00 2001 From: Ludy Date: Fri, 28 Feb 2025 11:54:18 +0100 Subject: [PATCH 2/2] Remove book site and translation entries (#3078) # Description of Changes Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details. --- .../SPDF/config/EndpointConfiguration.java | 7 --- src/main/resources/messages_en_GB.properties | 21 --------- .../templates/convert/book-to-pdf.html | 29 ------------ .../templates/convert/pdf-to-book.html | 45 ------------------- 4 files changed, 102 deletions(-) delete mode 100644 src/main/resources/templates/convert/book-to-pdf.html delete mode 100644 src/main/resources/templates/convert/pdf-to-book.html diff --git a/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java b/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java index 16121170..a1b1ab7a 100644 --- a/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java +++ b/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java @@ -11,7 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import lombok.extern.slf4j.Slf4j; - import stirling.software.SPDF.model.ApplicationProperties; @Service @@ -164,14 +163,8 @@ public class EndpointConfiguration { addEndpointToGroup("CLI", "ocr-pdf"); addEndpointToGroup("CLI", "html-to-pdf"); addEndpointToGroup("CLI", "url-to-pdf"); - addEndpointToGroup("CLI", "book-to-pdf"); - addEndpointToGroup("CLI", "pdf-to-book"); addEndpointToGroup("CLI", "pdf-to-rtf"); - // Calibre - addEndpointToGroup("Calibre", "book-to-pdf"); - addEndpointToGroup("Calibre", "pdf-to-book"); - // python addEndpointToGroup("Python", "extract-image-scans"); addEndpointToGroup("Python", "html-to-pdf"); diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index bd534563..8e409884 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -516,14 +516,6 @@ home.AddStampRequest.desc=Add text or add image stamps at set locations AddStampRequest.tags=Stamp, Add image, center image, Watermark, PDF, Embed, Customize,Customise -home.PDFToBook.title=PDF to Book -home.PDFToBook.desc=Converts PDF to Book/Comic formats using calibre -PDFToBook.tags=Book,Comic,Calibre,Convert,manga,amazon,kindle,epub,mobi,azw3,docx,rtf,txt,html,lit,fb2,pdb,lrf - -home.BookToPDF.title=Book to PDF -home.BookToPDF.desc=Converts Books/Comics formats to PDF using calibre -BookToPDF.tags=Book,Comic,Calibre,Convert,manga,amazon,kindle,epub,mobi,azw3,docx,rtf,txt,html,lit,fb2,pdb,lrf - home.removeImagePdf.title=Remove image home.removeImagePdf.desc=Remove image from PDF to reduce file size removeImagePdf.tags=Remove Image,Page operations,Back end,server side @@ -848,19 +840,6 @@ compare.complex.message=One or both of the provided documents are large files, a compare.large.file.message=One or Both of the provided documents are too large to process compare.no.text.message=One or both of the selected PDFs have no text content. Please choose PDFs with text for comparison. -#BookToPDF -BookToPDF.title=Books and Comics to PDF -BookToPDF.header=Book to PDF -BookToPDF.credit=Uses Calibre -BookToPDF.submit=Convert - -#PDFToBook -PDFToBook.title=PDF to Book -PDFToBook.header=PDF to Book -PDFToBook.selectText.1=Format -PDFToBook.credit=Uses Calibre -PDFToBook.submit=Convert - #sign sign.title=Sign sign.header=Sign PDFs diff --git a/src/main/resources/templates/convert/book-to-pdf.html b/src/main/resources/templates/convert/book-to-pdf.html deleted file mode 100644 index 2de6011f..00000000 --- a/src/main/resources/templates/convert/book-to-pdf.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - -
-
- -

-
-
-
-

-
-
- -
-

-
-
-
-
- -
- - \ No newline at end of file diff --git a/src/main/resources/templates/convert/pdf-to-book.html b/src/main/resources/templates/convert/pdf-to-book.html deleted file mode 100644 index ef5f1063..00000000 --- a/src/main/resources/templates/convert/pdf-to-book.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - -
-
- -

-
-
-
-

-
-
-
- - -
- -
-

-
-
-
-
- -
- - \ No newline at end of file