diff --git a/webapp/static/index.html b/webapp/static/index.html index 2d24cb5..df52191 100644 --- a/webapp/static/index.html +++ b/webapp/static/index.html @@ -12,9 +12,6 @@ - - - - - - @@ -478,9 +429,7 @@ OpenFront Map Generator
- -
@@ -559,64 +508,28 @@

{ - e.preventDefault(); - - const email = document.getElementById('authEmail').value; - const password = document.getElementById('authPassword').value; - const errorEl = document.getElementById('authError'); - - errorEl.classList.add('hidden'); - - // Dev mode - if (!supabaseClient) { - showApp({ email }); - return; - } - - try { - let result; - if (isSignUp) { - result = await supabaseClient.auth.signUp({ email, password }); - } else { - result = await supabaseClient.auth.signInWithPassword({ email, password }); - } - - if (result.error) { - errorEl.textContent = result.error.message; - errorEl.classList.remove('hidden'); - return; - } - - if (isSignUp) { - errorEl.textContent = 'Check your email to confirm your account!'; - errorEl.style.borderColor = 'rgba(34, 197, 94, 0.3)'; - errorEl.style.background = 'rgba(34, 197, 94, 0.1)'; - errorEl.style.color = '#4ade80'; - errorEl.classList.remove('hidden'); - } else { - showApp(result.data.user); - } - } catch (err) { - errorEl.textContent = err.message; - errorEl.classList.remove('hidden'); - } - }); - - async function signOut() { - if (supabaseClient) { - await supabaseClient.auth.signOut(); - } - currentUser = null; - showAuth(); - } - // Map initialization function initMap() { map = L.map('map').setView([35.0, 33.0], 5); @@ -943,23 +747,13 @@