- Add intelligent content-game compatibility system with visual badges - Fix Adventure Reader to work with Dragon's Pearl content structure - Implement multi-column games grid for faster navigation - Add pronunciation display for Chinese vocabulary and sentences - Fix navigation breadcrumb to show proper hierarchy (Home > Levels > Content) - Add back buttons to all navigation pages - Improve JSONContentLoader to preserve story structure - Add comprehensive debugging and diagnostic tools 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
56 lines
2.2 KiB
JavaScript
56 lines
2.2 KiB
JavaScript
// === TEST RAPIDE À COPIER-COLLER DANS LA CONSOLE ===
|
||
|
||
// Copie-colle ça dans la console du navigateur pour déboguer
|
||
function quickDebug() {
|
||
console.log('🔧 Quick Debug du système de compatibilité\n');
|
||
|
||
// 1. Vérifier que les classes existent
|
||
console.log('1️⃣ Classes disponibles:');
|
||
console.log(' ContentGameCompatibility:', !!window.ContentGameCompatibility);
|
||
console.log(' ContentScanner:', !!window.ContentScanner);
|
||
console.log(' AppNavigation:', !!window.AppNavigation);
|
||
|
||
// 2. Vérifier l'initialisation
|
||
console.log('\n2️⃣ Initialisation AppNavigation:');
|
||
if (window.AppNavigation) {
|
||
console.log(' compatibilityChecker:', !!window.AppNavigation.compatibilityChecker);
|
||
console.log(' contentScanner:', !!window.AppNavigation.contentScanner);
|
||
console.log(' scannedContent:', !!window.AppNavigation.scannedContent);
|
||
|
||
if (window.AppNavigation.scannedContent) {
|
||
console.log(' Contenu trouvé:', window.AppNavigation.scannedContent.found?.length || 0);
|
||
}
|
||
}
|
||
|
||
// 3. Vérifier les modules chargés
|
||
console.log('\n3️⃣ Modules de contenu:');
|
||
if (window.ContentModules) {
|
||
const modules = Object.keys(window.ContentModules);
|
||
console.log(' Modules:', modules);
|
||
|
||
if (window.ContentModules.ChineseLongStory) {
|
||
console.log(' ✅ ChineseLongStory trouvé');
|
||
} else {
|
||
console.log(' ❌ ChineseLongStory manquant');
|
||
}
|
||
} else {
|
||
console.log(' ❌ window.ContentModules manquant');
|
||
}
|
||
|
||
// 4. Test de compatibilité direct
|
||
console.log('\n4️⃣ Test de compatibilité direct:');
|
||
if (window.AppNavigation?.compatibilityChecker && window.ContentModules?.ChineseLongStory) {
|
||
const checker = window.AppNavigation.compatibilityChecker;
|
||
const content = window.ContentModules.ChineseLongStory;
|
||
|
||
const result = checker.checkCompatibility(content, 'whack-a-mole');
|
||
console.log(' Test whack-a-mole:', result.compatible, `(${result.score}%)`);
|
||
} else {
|
||
console.log(' ❌ Impossible - composants manquants');
|
||
}
|
||
|
||
console.log('\n✅ Debug terminé');
|
||
}
|
||
|
||
// Auto-exécution
|
||
quickDebug(); |