Actualiser test.html
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled

This commit is contained in:
2026-06-17 17:39:18 +00:00
parent 0619d1487c
commit 42fcbef95b
+11 -36
View File
@@ -1,45 +1,20 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head>
<meta charset="UTF-8">
<title>⚡ Debug EverShelf</title>
<style>
body { font-family: sans-serif; background: #f4f4f9; padding: 20px; }
.table-container { background: white; margin-bottom: 20px; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
pre { background: #333; color: #0f0; padding: 10px; border-radius: 5px; overflow-x: auto; }
h2 { border-bottom: 2px solid #ccc; padding-bottom: 5px; }
</style>
</head>
<body> <body>
<h1>Table de traduction (Catégories)</h1>
<h1>Dashboard de Debug EverShelf</h1> <pre id="debug-out">Chargement...</pre>
<div id="debug-zone"></div>
<script> <script>
// Liste des fichiers sources à inspecter (ajoute ici tes fichiers trouvés dans le terminal) // Remplace par le chemin trouvé avec le grep ci-dessus
const targets = ['/data/category_ai_cache.json', '/assets/js/app.js']; const LOCALE_PATH = '/locales/fr.json';
async function initDebug() { fetch(LOCALE_PATH)
const zone = document.getElementById('debug-zone'); .then(r => r.json())
.then(data => {
for (const path of targets) { // On extrait uniquement la partie 'categories'
const section = document.createElement('div'); document.getElementById('debug-out').innerText = JSON.stringify(data.categories, null, 2);
section.className = 'table-container'; })
section.innerHTML = `<h2>Fichier : ${path}</h2><pre id="data-${btoa(path)}">Chargement...</pre>`; .catch(e => document.getElementById('debug-out').innerText = "Erreur : " + e.message);
zone.appendChild(section);
try {
const response = await fetch(path);
const text = await response.text();
document.getElementById(`data-${btoa(path)}`).innerText = text;
} catch (e) {
document.getElementById(`data-${btoa(path)}`).innerText = "Erreur de lecture : " + e.message;
}
}
}
initDebug();
</script> </script>
</body> </body>
</html> </html>