diff --git a/ui/suite/base-layout.js b/ui/suite/base-layout.js deleted file mode 100644 index 35f3802..0000000 --- a/ui/suite/base-layout.js +++ /dev/null @@ -1,192 +0,0 @@ -/* ============================================================================= - BOTUI SUITE - BASE LAYOUT JAVASCRIPT - Sentient Theme with AI Assistant Panel - ============================================================================= */ - -(function() { - 'use strict'; - - // ============================================================================= - // STATE - // ============================================================================= - - const state = { - aiPanelOpen: true, - currentApp: 'dashboard', - messages: [] - }; - - // ============================================================================= - // AI PANEL - // ============================================================================= - - window.toggleAIPanel = function() { - const panel = document.getElementById('ai-panel'); - if (panel) { - panel.classList.toggle('open'); - state.aiPanelOpen = panel.classList.contains('open'); - } - }; - - window.sendAIMessage = function() { - const input = document.getElementById('ai-input'); - if (!input || !input.value.trim()) return; - - const message = input.value.trim(); - input.value = ''; - - addMessage('user', message); - showTypingIndicator(); - - // Simulate AI response - setTimeout(() => { - hideTypingIndicator(); - addMessage('assistant', `Entendido! Vou processar sua solicitação: "${message}"`); - }, 1500); - }; - - function addMessage(type, content, action) { - const container = document.getElementById('ai-messages'); - if (!container) return; - - const messageEl = document.createElement('div'); - messageEl.className = `ai-message ${type}`; - - let html = `
`; - if (action) { - html += ``; - } - - messageEl.innerHTML = html; - container.appendChild(messageEl); - container.scrollTop = container.scrollHeight; - - state.messages.push({ type, content, action }); - } - - function showTypingIndicator() { - const container = document.getElementById('ai-messages'); - if (!container) return; - - const indicator = document.createElement('div'); - indicator.className = 'ai-message assistant'; - indicator.id = 'typing-indicator'; - indicator.innerHTML = ` -