Fix: Replace missing effect.webp icon with existing capacite.webp
- effect.webp icon was missing, causing infinite 404 errors - Replaced all references with capacite.webp which exists - Fixed in base-actor-sheet.mjs, base-item-sheet.mjs, mournblade-cyd2-effects.js - Fixed in partial-active-effects.hbs and partial-item-effects.hbs templates - Updated test script to check for effect.webp references Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+32
-1
@@ -135,6 +135,36 @@ if (!deprecatedFound) {
|
||||
console.log(' ✅ Aucun appel à ActiveEffectDialog (API dépréciée) trouvé');
|
||||
}
|
||||
|
||||
// 6. Vérification des références à l'icône manquante effect.webp
|
||||
console.log('\n6. Vérification des références à effect.webp (icône manquante) :');
|
||||
const effectWebpPattern = /effect\.webp/g;
|
||||
const allJsFiles = [
|
||||
'modules/applications/sheets/base-actor-sheet.mjs',
|
||||
'modules/applications/sheets/base-item-sheet.mjs',
|
||||
'modules/mournblade-cyd2-effects.js'
|
||||
];
|
||||
const hbsFiles = [
|
||||
'templates/partial-active-effects.hbs',
|
||||
'templates/partial-item-effects.hbs'
|
||||
];
|
||||
|
||||
let effectWebpFound = false;
|
||||
[...allJsFiles, ...hbsFiles].forEach(file => {
|
||||
try {
|
||||
const content = fs.readFileSync(path.join(__dirname, file), 'utf8');
|
||||
if (effectWebpPattern.test(content)) {
|
||||
console.log(` ❌ Fichier ${file} contient une référence à effect.webp`);
|
||||
effectWebpFound = true;
|
||||
}
|
||||
} catch (err) {
|
||||
// Fichier introuvable, ignorer
|
||||
}
|
||||
});
|
||||
|
||||
if (!effectWebpFound) {
|
||||
console.log(' ✅ Aucune référence à effect.webp (icône manquante) trouvée');
|
||||
}
|
||||
|
||||
// Résumé
|
||||
console.log('\n=== Résumé ===');
|
||||
console.log(`Templates préchargés: ${loaded.length}`);
|
||||
@@ -142,8 +172,9 @@ console.log(`Partials utilisés: ${usedPartials.length}`);
|
||||
console.log(`Partials manquants: ${missingPartials.length}`);
|
||||
console.log(`Fichier JSON valide: ${errors.length === 0 ? 'Oui' : 'Non'}`);
|
||||
console.log(`API dépréciée utilisée: ${deprecatedFound ? 'Oui' : 'Non'}`);
|
||||
console.log(`Référence à effect.webp: ${effectWebpFound ? 'Oui' : 'Non'}`);
|
||||
|
||||
if (errors.length === 0 && missingPartials.length === 0 && !deprecatedFound) {
|
||||
if (errors.length === 0 && missingPartials.length === 0 && !deprecatedFound && !effectWebpFound) {
|
||||
console.log('\n✅ Toutes les vérifications ont réussi !');
|
||||
process.exit(0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user