refactoring

This commit is contained in:
2025-11-25 22:12:43 +01:00
parent de7bcf881a
commit e2a3d54198
12 changed files with 1458 additions and 2842 deletions

15
web/js/config.js Normal file
View File

@ -0,0 +1,15 @@
// Auto-detect API base URL from current domain
const API_BASE_URL = window.location.protocol + '//' + window.location.host;
//const API_BASE_URL = 'http://localhost:5000'; //used for development
// Application state
const AppState = {
map: null,
markers: [],
allListings: [],
selectedListingId: null,
currentSessionId: null,
scrapeStartTime: null,
isScrapingActive: false
};