mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	Fix: Thymeleaf syntax (/*[[...]]*/) (#2659)
				
					
				
			# Description Please provide a summary of the changes, including relevant motivation and context. Closes #(issue_number) ## Checklist - [x] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [x] I have performed a self-review of my own code - [ ] I have attached images of the change if it is UI based - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] If my code has heavily changed functionality I have updated relevant docs on [Stirling-PDFs doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) - [x] My changes generate no new warnings - [ ] 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)
This commit is contained in:
		
							parent
							
								
									b2da426cc1
								
							
						
					
					
						commit
						76cbf94fdc
					
				@ -39,4 +39,3 @@ document.getElementById("cacheInputs").addEventListener("change", function () {
 | 
				
			|||||||
  cacheInputs = this.checked ? "enabled" : "disabled";
 | 
					  cacheInputs = this.checked ? "enabled" : "disabled";
 | 
				
			||||||
  localStorage.setItem("cacheInputs", cacheInputs);
 | 
					  localStorage.setItem("cacheInputs", cacheInputs);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -338,7 +338,6 @@
 | 
				
			|||||||
                      alert('Error syncing settings to account');
 | 
					                      alert('Error syncing settings to account');
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                  });
 | 
					                  });
 | 
				
			||||||
 | 
					 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
              </script>
 | 
					              </script>
 | 
				
			||||||
              <div class="mb-3 mt-4 text-center">
 | 
					              <div class="mb-3 mt-4 text-center">
 | 
				
			||||||
 | 
				
			|||||||
@ -39,10 +39,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
          document.addEventListener('DOMContentLoaded', function() {
 | 
					          document.addEventListener('DOMContentLoaded', function() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		     const runningEE = [[${@runningEE}]];
 | 
					              const runningEE = /*[[${@runningEE}]]*/ false;
 | 
				
			||||||
	         const SSOAutoLogin = [[${@SSOAutoLogin}]];
 | 
					              const SSOAutoLogin = /*[[${@SSOAutoLogin}]]*/ false;
 | 
				
			||||||
	         const loginMethod = [[${loginMethod}]];
 | 
					              const loginMethod = /*[[${loginMethod}]]*/ 'normal';
 | 
				
			||||||
	         const providerList = [[${providerlist}]];
 | 
					              const providerList = /*[[${providerlist}]]*/ {};
 | 
				
			||||||
              const shouldAutoRedirect = !hasRedirectError &&
 | 
					              const shouldAutoRedirect = !hasRedirectError &&
 | 
				
			||||||
                  !hasLogout &&
 | 
					                  !hasLogout &&
 | 
				
			||||||
                  !hasMessage &&
 | 
					                  !hasMessage &&
 | 
				
			||||||
@ -54,7 +54,7 @@
 | 
				
			|||||||
                  'No logout': !hasLogout,
 | 
					                  'No logout': !hasLogout,
 | 
				
			||||||
                  'No message': !hasMessage,
 | 
					                  'No message': !hasMessage,
 | 
				
			||||||
                  'Under max attempts': redirectAttempts < MAX_REDIRECT_ATTEMPTS,
 | 
					                  'Under max attempts': redirectAttempts < MAX_REDIRECT_ATTEMPTS,
 | 
				
			||||||
		         'Is OAuth2': loginMethod === 'oauth2'
 | 
					                  'Is only OAuth2': loginMethod === 'oauth2'
 | 
				
			||||||
              });
 | 
					              });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              if (shouldAutoRedirect && providerList && Object.keys(providerList).length > 0) {
 | 
					              if (shouldAutoRedirect && providerList && Object.keys(providerList).length > 0) {
 | 
				
			||||||
 | 
				
			|||||||
@ -107,7 +107,7 @@
 | 
				
			|||||||
    /*<![CDATA[*/
 | 
					    /*<![CDATA[*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Get the current version from the appVersion bean
 | 
					    // Get the current version from the appVersion bean
 | 
				
			||||||
    const appVersion = [[${@appVersion}]];
 | 
					    const appVersion = /*[[${@appVersion}]]*/ '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // GitHub API configuration
 | 
					    // GitHub API configuration
 | 
				
			||||||
    const REPO_OWNER = 'Stirling-Tools';
 | 
					    const REPO_OWNER = 'Stirling-Tools';
 | 
				
			||||||
@ -134,7 +134,6 @@
 | 
				
			|||||||
        return element;
 | 
					        return element;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	
 | 
					 | 
				
			||||||
    const ALLOWED_TAGS = {
 | 
					    const ALLOWED_TAGS = {
 | 
				
			||||||
        'a': ['href', 'target', 'rel', 'class'],
 | 
					        'a': ['href', 'target', 'rel', 'class'],
 | 
				
			||||||
        'img': ['src', 'alt', 'width', 'height', 'style'],
 | 
					        'img': ['src', 'alt', 'width', 'height', 'style'],
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user