fix: corrige erros de sintaxe ES6 - tudo para IIFE

- Converte logger.js para IIFE (remove export)
- Converte state.js para IIFE (remove export)
- Remove imports de app.js
- Corrige referências aos scripts de teste removidos
- Adiciona scripts de teste corretos
This commit is contained in:
2026-04-03 21:42:51 +00:00
parent 0d8797c80c
commit 6af3492815
4 changed files with 172 additions and 167 deletions

View File

@@ -6,17 +6,7 @@
// Logger disponível globalmente (carregado antes em logger.js)
// Usar window.Logger.info('mensagem') para logs controlados
// Import state from modules (userPreferences only - appState is still global for legacy)
import { userPreferences, loadPreferences, savePreferences, adminConfig } from './js/core/state.js';
// Make available globally for legacy code
window.userPreferences = userPreferences;
window.loadPreferences = loadPreferences;
window.savePreferences = savePreferences;
window.adminConfig = adminConfig;
// In-memory data storage (legacy - still global for compatibility)
const appState = {
// State e config disponíveis globalmente via script state.js (carregado antes)
// ========================================
// CSV MAPPING AND LOADING FUNCTIONS v6.6