"use strict"; /** * Settings Page JavaScript */ class Frontend_Settings { /** * Initialize the settings page */ static on_app_ready() { // Only initialize if we're on the settings page if (!$(".Frontend_Settings").exists()) { return; } Debugger.console_debug("JS_INIT", "Settings page initialized"); // Handle sidebar navigation $('.sidebar .nav-link').on('click', function (e) { const $link = $(this); if ($link.attr('href') === '#') { e.preventDefault(); // Remove active from all links $('.sidebar .nav-link').removeClass('active'); // Add active to clicked $link.addClass('active'); const section = $link.text().trim(); Debugger.console_debug("UI", "Settings section clicked:", section); } }); // Handle form submissions $('form').on('submit', function (e) { e.preventDefault(); const $form = $(this); const formData = $form.serialize(); Debugger.console_debug("FORM", "Settings form submitted", formData); // Show success message (mock) const $alert = $('