diff --git a/src/systems/dashboard/dashboardManager.js b/src/systems/dashboard/dashboardManager.js index 8c0df1e..772db81 100644 --- a/src/systems/dashboard/dashboardManager.js +++ b/src/systems/dashboard/dashboardManager.js @@ -13,6 +13,14 @@ * Provides high-level API for widget and tab management. */ +// Performance: Disable console logging (console.error still active) +const DEBUG = false; +const console = DEBUG ? window.console : { + log: () => {}, + warn: () => {}, + error: window.console.error.bind(window.console) +}; + import { GridEngine } from './gridEngine.js'; import { WidgetRegistry } from './widgetRegistry.js'; import { TabManager } from './tabManager.js'; diff --git a/src/systems/dashboard/dragDrop.js b/src/systems/dashboard/dragDrop.js index 2ba4704..da7ff8e 100644 --- a/src/systems/dashboard/dragDrop.js +++ b/src/systems/dashboard/dragDrop.js @@ -5,6 +5,14 @@ * Provides visual feedback, grid snapping, and collision detection. */ +// Performance: Disable console logging (console.error still active) +const DEBUG = false; +const console = DEBUG ? window.console : { + log: () => {}, + warn: () => {}, + error: window.console.error.bind(window.console) +}; + /** * @typedef {Object} DragState * @property {HTMLElement} element - Element being dragged diff --git a/src/systems/dashboard/editModeManager.js b/src/systems/dashboard/editModeManager.js index 803cb6a..48fa0d5 100644 --- a/src/systems/dashboard/editModeManager.js +++ b/src/systems/dashboard/editModeManager.js @@ -5,6 +5,14 @@ * Handles edit controls, widget library, and layout modifications. */ +// Performance: Disable console logging (console.error still active) +const DEBUG = false; +const console = DEBUG ? window.console : { + log: () => {}, + warn: () => {}, + error: window.console.error.bind(window.console) +}; + import { showConfirmDialog } from './confirmDialog.js'; /** diff --git a/src/systems/dashboard/gridEngine.js b/src/systems/dashboard/gridEngine.js index ed699ff..b24c472 100644 --- a/src/systems/dashboard/gridEngine.js +++ b/src/systems/dashboard/gridEngine.js @@ -7,6 +7,15 @@ * * @class GridEngine */ + +// Performance: Disable console logging (console.error still active) +const DEBUG = false; +const console = DEBUG ? window.console : { + log: () => {}, + warn: () => {}, + error: window.console.error.bind(window.console) +}; + export class GridEngine { /** * Initialize grid engine with configuration diff --git a/src/systems/dashboard/resizeHandler.js b/src/systems/dashboard/resizeHandler.js index 5c4b5ae..422da1a 100644 --- a/src/systems/dashboard/resizeHandler.js +++ b/src/systems/dashboard/resizeHandler.js @@ -5,6 +5,14 @@ * Provides visual feedback, grid snapping, and size constraints. */ +// Performance: Disable console logging (console.error still active) +const DEBUG = false; +const console = DEBUG ? window.console : { + log: () => {}, + warn: () => {}, + error: window.console.error.bind(window.console) +}; + /** * @typedef {Object} ResizeState * @property {HTMLElement} element - Element being resized