const fs = require('fs'); const path = require('path'); function walkDir(dir, files = []) { const entries = fs.readdirSync(dir, { withFileTypes: true }); for (const entry of entries) { const full = path.join(dir, entry.name); if (entry.isDirectory()) walkDir(full, files); else if (entry.name.endsWith('.vue') && !entry.name.includes('_fixed')) files.push(full); } return files; } const viewsDir = path.join(__dirname, 'src', 'views'); const files = walkDir(viewsDir); let fixedFiles = []; for (const filePath of files) { let content = fs.readFileSync(filePath, 'utf8'); let modified = false; // Find the root div class in template const templateMatch = content.match(/