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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user