core/frontend
enzo 780e5ec81d fix: auth redirect bug + cookie Secure + migration multi-statements
- fetchMe: handle ALL non-ok responses (not just 401) by calling tryRefresh
  → avoids user=null when backend returns 404/500/any error
- DOMContentLoaded guard: check isAuthenticated instead of localStorage token
  → immediate redirect if fetchMe+tryRefresh both fail, no more flash of dashboard
- Cookie Secure flag: check X-Forwarded-Proto header for Traefik/proxy setup
  → cookie gets Secure=true when behind TLS-terminating reverse proxy
- db.go migrate(): split SQL by ; and exec each statement separately
  → fixes SQLite multi-statement limitation (only first stmt was executed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 22:29:22 +01:00
..
css feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
icons feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
js fix: auth redirect bug + cookie Secure + migration multi-statements 2026-03-21 22:29:22 +01:00
locales feat: LineIcons Duotone, page profil, widgets dashboard, sidebar gauche/droite 2026-03-21 18:38:48 +01:00
vendors feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
.gitignore feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
build.mjs feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
dashboard.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
Dockerfile feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
index.html feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
install.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
login.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
manifest.json feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
modules.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
nginx.conf feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
package-lock.json feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
package.json feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
profile.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
proxmox.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
settings.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
swup-bundle.entry.mjs feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00
terminal.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
updates.html feat: sessions management, web manifest, square icon-only buttons, remove lang select 2026-03-21 20:14:11 +01:00
xterm-bundle.entry.mjs feat: réécriture frontend Alpine.js + HTMX + Swup (branche frontend/alpine) 2026-03-21 16:19:24 +01:00