Files
vue-pult/docs/migration/DASHBOARD_MIGRATION.md
2025-10-01 11:54:13 +03:00

9 lines
982 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ... existing code ...
# Документация по переносу компонента Dashboard (Основной блок)
## Общая структура компонента в React
- **Файл**: client/src/pages/Dashboard.tsx
- **Тип**: Функциональный компонент React с useState, useSelector, useDispatch, хуками (useAuth, useWebSocketNew, usePauseSystem, useNotifications, useIsMobile).
- **Зависимости**: react-redux, lucide-react (AlertTriangle), Tailwind CSS, компоненты (GamePort, BottomPanel, BurgerMenu, AppHeader, модалы).
- **Template (JSX)**: div с class "h-screen bg-slate-800 flex flex-col" (мобильный: "mobile-dashboard"), onClick для clearMoving. Включает AppHeader, уведомления (пауза, pending игры, смена), основную область с grid портов (3x2 на десктоп, адаптив на мобильный), модалы (