diff --git a/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java b/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java index 5b1b40702d2..cf0bcbd4e52 100644 --- a/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java +++ b/src/main/java/stirling/software/SPDF/EE/EEAppConfig.java @@ -7,20 +7,19 @@ import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Lazy; +import lombok.extern.slf4j.Slf4j; import stirling.software.SPDF.model.ApplicationProperties; @Configuration @Lazy +@Slf4j public class EEAppConfig { - private static final Logger logger = LoggerFactory.getLogger(EEAppConfig.class); - @Autowired ApplicationProperties applicationProperties; - @Autowired private LicenseKeyChecker licenseKeyChecker; @Bean(name = "runningEE") public boolean runningEnterpriseEdition() { - return licenseKeyChecker.getEnterpriseEnabledResult(); + return licenseKeyChecker.getEnterpriseEnabledResult(); } -} +} \ No newline at end of file diff --git a/src/main/resources/static/js/multitool/horizontalScroll.js b/src/main/resources/static/js/multitool/horizontalScroll.js deleted file mode 100644 index 28ec42f51bd..00000000000 --- a/src/main/resources/static/js/multitool/horizontalScroll.js +++ /dev/null @@ -1,39 +0,0 @@ -const scrollDivHorizontally = (id) => { - var scrollDeltaX = 0; // variable to store the accumulated horizontal scroll delta - var scrollDeltaY = 0; // variable to store the accumulated vertical scroll delta - var isScrolling = false; // variable to track if scroll is already in progress - const divToScroll = document.getElementById(id); - - function scrollLoop() { - // Scroll the div horizontally and vertically by a fraction of the accumulated scroll delta - divToScroll.scrollLeft += scrollDeltaX * 0.1; - divToScroll.scrollTop += scrollDeltaY * 0.1; - - // Reduce the accumulated scroll delta by a fraction - scrollDeltaX *= 0.9; - scrollDeltaY *= 0.9; - - // If scroll delta is still significant, continue the scroll loop - if (Math.abs(scrollDeltaX) > 0.1 || Math.abs(scrollDeltaY) > 0.1) { - requestAnimationFrame(scrollLoop); - } else { - isScrolling = false; // Reset scroll in progress flag - } - } - - divToScroll.addEventListener("wheel", function (e) { - e.preventDefault(); // prevent default mousewheel behavior - - // Accumulate the horizontal and vertical scroll delta - scrollDeltaX -= e.deltaX || e.wheelDeltaX || -e.deltaY || -e.wheelDeltaY; - scrollDeltaY -= e.deltaY || e.wheelDeltaY || -e.deltaX || -e.wheelDeltaX; - - // If scroll is not already in progress, start the scroll loop - if (!isScrolling) { - isScrolling = true; - requestAnimationFrame(scrollLoop); - } - }); -}; - -export default scrollDivHorizontally; \ No newline at end of file diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 24a2ca5714a..d31749dac3f 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -360,7 +360,7 @@ -