"use client"; import React from 'react'; import { Trash2 } from 'lucide-react'; import { useAppStore } from '@/store/app-store'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Button } from '@/components/ui/button'; import { formatTimestamp, getPlatformColor } from '@/lib/utils'; export function ConsolePanel() { const { consoleMessages, clearConsole, bottomPanelTab, setBottomPanelTab } = useAppStore(); const scrollRef = React.useRef(null); React.useEffect(() => { if (scrollRef.current) { scrollRef.current.scrollTop = scrollRef.current.scrollHeight; } }, [consoleMessages]); return (
setBottomPanelTab(v as any)} className="flex-1 flex flex-col">
Console Terminal Nexus Sync Deploy Logs {bottomPanelTab === 'console' && ( )}
{consoleMessages.map((msg: any) => (
{formatTimestamp(msg.timestamp)} [{msg.platform.toUpperCase()}] {msg.message}
))}
$ npm run dev
✓ Starting development server...
Local: http://localhost:3000
_
14:30:45.123 [Roblox→All] Player_001.position updated
14:30:45.124 [Web] Ack received (12ms latency)
14:30:45.126 [Mobile] Ack received (14ms latency)
14:30:45.140 [Desktop] Ack received (28ms latency)
14:30:46.001 [Web→All] Player_002.health changed: 100→95
14:30:46.015 [Conflict] Player_001.inventory - resolving...
14:30:46.020 [Resolved] Server authority applied
[Deploy] Starting deployment to Roblox...
[Build] Compiling Lua scripts...
[Build] ✓ Compilation successful
[Upload] Uploading to Roblox Cloud...
[Deploy] ✓ Deployment complete!
[Info] Universe ID: 123456789
); }