Update search and login functionality to use new endpoints

Refactor the search component to fetch results from a new endpoint and handle both JSON and HTML responses. Update the authentication modal to utilize Django's allauth for OAuth providers, handling redirects and login success/failure more robustly.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9bc9dd7a-5328-4cb7-91de-b3cb33a0c48c
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
pac7
2025-09-21 19:02:17 +00:00
committed by pacnpal
parent ebe65e7c9d
commit a7bd0505f9
2 changed files with 138 additions and 21 deletions

View File

@@ -51,8 +51,10 @@ document.addEventListener('DOMContentLoaded', () => {
// Update icon
const icon = mobileMenuBtn.querySelector('i');
icon.classList.remove(isMenuOpen ? 'fa-bars' : 'fa-times');
icon.classList.add(isMenuOpen ? 'fa-times' : 'fa-bars');
if (icon) {
icon.classList.remove(isMenuOpen ? 'fa-bars' : 'fa-times');
icon.classList.add(isMenuOpen ? 'fa-times' : 'fa-bars');
}
};
mobileMenuBtn.addEventListener('click', toggleMenu);