96b12b66e2
- Neutralized downloads.js, watchlist-ui.js, and anime.js to prevent conflicts with HTMX - Guaranteed HTML responses in router_downloads.py via strict header detection - Unified frontend logic to follow the new server-driven architecture
21 lines
685 B
JavaScript
21 lines
685 B
JavaScript
/**
|
|
* Anime Search & Releases (Legacy - Partially modernized to HTMX)
|
|
*/
|
|
|
|
async function loadAnimeReleases() {
|
|
// Keep this for now as it's not yet fully HTMX
|
|
console.log('Loading anime releases...');
|
|
try {
|
|
const response = await fetch('/api/anime/mal/search?q=2024&limit=12');
|
|
const data = await response.json();
|
|
// Logic to render cards would go here, but for now we expect HTMX to handle core search
|
|
} catch (e) { console.error(e); }
|
|
}
|
|
|
|
async function handleAnimeSearch() {
|
|
console.log('Legacy handleAnimeSearch - using HTMX form instead');
|
|
}
|
|
|
|
window.loadAnimeReleases = loadAnimeReleases;
|
|
window.handleAnimeSearch = handleAnimeSearch;
|