mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	auto disable in UI
This commit is contained in:
		
							parent
							
								
									05977aa3a6
								
							
						
					
					
						commit
						6ee8e1e37f
					
				@ -41,6 +41,11 @@ public class AppConfig {
 | 
				
			|||||||
        return (defaultNavBar != null) ? defaultNavBar : "Stirling PDF";
 | 
					        return (defaultNavBar != null) ? defaultNavBar : "Stirling PDF";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
					    @Bean(name = "enableAlphaFunctionality")
 | 
				
			||||||
 | 
					    public boolean enableAlphaFunctionality() { 
 | 
				
			||||||
 | 
					        return applicationProperties.getSystem().getEnableAlphaFunctionality() != null ? applicationProperties.getSystem().getEnableAlphaFunctionality() : false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
	@Bean(name = "rateLimit")
 | 
						@Bean(name = "rateLimit")
 | 
				
			||||||
    public boolean rateLimit() {
 | 
					    public boolean rateLimit() {
 | 
				
			||||||
        String appName = System.getProperty("rateLimit");
 | 
					        String appName = System.getProperty("rateLimit");
 | 
				
			||||||
 | 
				
			|||||||
@ -275,7 +275,7 @@ home.scalePages.title=Adjust page size/scale
 | 
				
			|||||||
home.scalePages.desc=Change the size/scale of a page and/or its contents.
 | 
					home.scalePages.desc=Change the size/scale of a page and/or its contents.
 | 
				
			||||||
scalePages.tags=resize,modify,dimension,adapt
 | 
					scalePages.tags=resize,modify,dimension,adapt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
home.pipeline.title=Pipeline (Advanced) (Alpha)
 | 
					home.pipeline.title=Pipeline (Advanced)
 | 
				
			||||||
home.pipeline.desc=Run multiple actions on PDFs by defining pipeline scripts
 | 
					home.pipeline.desc=Run multiple actions on PDFs by defining pipeline scripts
 | 
				
			||||||
pipeline.tags=automate,sequence,scripted,batch-process
 | 
					pipeline.tags=automate,sequence,scripted,batch-process
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -32,12 +32,12 @@
 | 
				
			|||||||
                            <span class="icon-text"  th:text="#{home.multiTool.title}"></span>
 | 
					                            <span class="icon-text"  th:text="#{home.multiTool.title}"></span>
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
                    </li>
 | 
					                    </li>
 | 
				
			||||||
                    <!--<li class="nav-item">
 | 
					                    <li th:if="${@enableAlphaFunctionality}"  class="nav-item">
 | 
				
			||||||
                        <a class="nav-link" href="#" th:href="@{pipeline}" th:classappend="${currentPage}=='pipeline' ? 'active' : ''" th:title="#{home.pipeline.desc}">
 | 
					                        <a class="nav-link" href="#" th:href="@{pipeline}" th:classappend="${currentPage}=='pipeline' ? 'active' : ''" th:title="#{home.pipeline.desc}">
 | 
				
			||||||
                            <img class="icon" src="images/pipeline.svg" alt="icon">
 | 
					                            <img class="icon" src="images/pipeline.svg" alt="icon">
 | 
				
			||||||
                            <span class="icon-text"  th:text="#{home.pipeline.title}"></span>
 | 
					                            <span class="icon-text"  th:text="#{home.pipeline.title}"></span>
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
                    </li>-->
 | 
					                    </li>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <li class="nav-item nav-item-separator"></li>
 | 
					                    <li class="nav-item nav-item-separator"></li>
 | 
				
			||||||
                    <li class="nav-item dropdown" th:classappend="${currentPage}=='remove-pages' OR ${currentPage}=='merge-pdfs' OR ${currentPage}=='split-pdfs' OR ${currentPage}=='crop' OR ${currentPage}=='adjust-contrast' OR ${currentPage}=='pdf-organizer' OR ${currentPage}=='rotate-pdf' OR ${currentPage}=='multi-page-layout' OR ${currentPage}=='scale-pages' OR ${currentPage}=='auto-split-pdf' OR ${currentPage}=='extract-page' OR ${currentPage}=='pdf-to-single-page' ? 'active' : ''">
 | 
					                    <li class="nav-item dropdown" th:classappend="${currentPage}=='remove-pages' OR ${currentPage}=='merge-pdfs' OR ${currentPage}=='split-pdfs' OR ${currentPage}=='crop' OR ${currentPage}=='adjust-contrast' OR ${currentPage}=='pdf-organizer' OR ${currentPage}=='rotate-pdf' OR ${currentPage}=='multi-page-layout' OR ${currentPage}=='scale-pages' OR ${currentPage}=='auto-split-pdf' OR ${currentPage}=='extract-page' OR ${currentPage}=='pdf-to-single-page' ? 'active' : ''">
 | 
				
			||||||
 | 
				
			|||||||
@ -27,8 +27,9 @@
 | 
				
			|||||||
            <input type="text" id="searchBar" onkeyup="filterCards()" th:placeholder="#{home.searchBar}">
 | 
					            <input type="text" id="searchBar" onkeyup="filterCards()" th:placeholder="#{home.searchBar}">
 | 
				
			||||||
            <div class="features-container ">
 | 
					            <div class="features-container ">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									<th:block th:if="${@enableAlphaFunctionality}">
 | 
				
			||||||
                <div th:replace="~{fragments/card :: card(id='pipeline', cardTitle=#{home.pipeline.title}, cardText=#{home.pipeline.desc}, cardLink='pipeline', svgPath='images/pipeline.svg')}"></div>
 | 
					                <div  th:replace="~{fragments/card :: card(id='pipeline', cardTitle=#{home.pipeline.title}, cardText=#{home.pipeline.desc}, cardLink='pipeline', svgPath='images/pipeline.svg')}"></div>
 | 
				
			||||||
 | 
									</th:block>
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
                <div th:replace="~{fragments/card :: card(id='view-pdf', cardTitle=#{home.viewPdf.title}, cardText=#{home.viewPdf.desc}, cardLink='view-pdf', svgPath='images/book-opened.svg')}"></div>
 | 
					                <div th:replace="~{fragments/card :: card(id='view-pdf', cardTitle=#{home.viewPdf.title}, cardText=#{home.viewPdf.desc}, cardLink='view-pdf', svgPath='images/book-opened.svg')}"></div>
 | 
				
			||||||
                <div th:replace="~{fragments/card :: card(id='multi-tool', cardTitle=#{home.multiTool.title}, cardText=#{home.multiTool.desc}, cardLink='multi-tool', svgPath='images/tools.svg')}"></div>
 | 
					                <div th:replace="~{fragments/card :: card(id='multi-tool', cardTitle=#{home.multiTool.title}, cardText=#{home.multiTool.desc}, cardLink='multi-tool', svgPath='images/tools.svg')}"></div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user