fix homepage

This commit is contained in:
Anthony Stirling 2025-07-02 10:55:20 +01:00
parent 63acd27492
commit d78a64168e
2 changed files with 12 additions and 6 deletions

View File

@ -142,9 +142,12 @@ public class EndpointConfiguration {
if (disabledGroups.add(group)) { if (disabledGroups.add(group)) {
log.debug("Disabling group: {}", group); log.debug("Disabling group: {}", group);
} }
Set<String> endpoints = endpointGroups.get(group); // Only cascade to endpoints for *functional* groups
if (endpoints != null) { if (!isToolGroup(group)) {
endpoints.forEach(this::disableEndpoint); Set<String> endpoints = endpointGroups.get(group);
if (endpoints != null) {
endpoints.forEach(this::disableEndpoint);
}
} }
} }
@ -327,6 +330,7 @@ public class EndpointConfiguration {
addEndpointToGroup("Java", "remove-image-pdf"); addEndpointToGroup("Java", "remove-image-pdf");
addEndpointToGroup("Java", "pdf-to-markdown"); addEndpointToGroup("Java", "pdf-to-markdown");
addEndpointToGroup("Java", "add-attachments"); addEndpointToGroup("Java", "add-attachments");
addEndpointToGroup("Java", "compress-pdf");
// Javascript // Javascript
addEndpointToGroup("Javascript", "pdf-organizer"); addEndpointToGroup("Javascript", "pdf-organizer");
@ -353,9 +357,11 @@ public class EndpointConfiguration {
addEndpointAlternative("repair", "Ghostscript"); addEndpointAlternative("repair", "Ghostscript");
addEndpointAlternative("compress-pdf", "qpdf"); addEndpointAlternative("compress-pdf", "qpdf");
addEndpointAlternative("compress-pdf", "Ghostscript"); addEndpointAlternative("compress-pdf", "Ghostscript");
addEndpointAlternative("compress-pdf", "Java");
addEndpointAlternative("ocr-pdf", "tesseract"); addEndpointAlternative("ocr-pdf", "tesseract");
addEndpointAlternative("ocr-pdf", "OCRmyPDF"); addEndpointAlternative("ocr-pdf", "OCRmyPDF");
// Weasyprint dependent endpoints // Weasyprint dependent endpoints
addEndpointToGroup("Weasyprint", "html-to-pdf"); addEndpointToGroup("Weasyprint", "html-to-pdf");
addEndpointToGroup("Weasyprint", "url-to-pdf"); addEndpointToGroup("Weasyprint", "url-to-pdf");

View File

@ -37,10 +37,10 @@
</div> </div>
<div class="recent-features"> <div class="recent-features">
<div class="newfeature" <div class="newfeature"
th:insert="~{fragments/navbarEntryCustom :: navbarEntry('redact', '/images/redact-manual.svg#icon-redact-manual', 'home.redact.title', 'home.redact.desc', 'redact.tags', 'security')}"> th:insert="~{fragments/navbarEntry :: navbarEntry('add-attachments', 'attachment', 'home.attachments.title', 'home.attachments.desc', 'attachments.tags', 'other')}">
</div> </div>
<div class="newfeature" <div class="newfeature"
th:insert="~{fragments/navbarEntry :: navbarEntry ('multi-tool', 'construction', 'home.multiTool.title', 'home.multiTool.desc', 'multiTool.tags', 'organize')}"> th:insert="~{fragments/navbarEntry :: navbarEntry('fake-scan', 'scanner', 'fakeScan.title', 'fakeScan.description', 'fakeScan.tags', 'advance')}">
</div> </div>
<div class="newfeature" <div class="newfeature"
th:insert="~{fragments/navbarEntry :: navbarEntry('compress-pdf', 'zoom_in_map', 'home.compressPdfs.title', 'home.compressPdfs.desc', 'compressPDFs.tags', 'advance')}"> th:insert="~{fragments/navbarEntry :: navbarEntry('compress-pdf', 'zoom_in_map', 'home.compressPdfs.title', 'home.compressPdfs.desc', 'compressPDFs.tags', 'advance')}">