🚀 Auto-deploy: BrainWind atualizado em 14/07/2026 15:18:53
This commit is contained in:
+41
-9
@@ -14,7 +14,7 @@ import PiperackModule from './pages/PiperackModule';
|
||||
import {
|
||||
Home, Settings, Menu, Cylinder, Church, CircleDot,
|
||||
Square, Layers, BarChart3, Activity, Warehouse,
|
||||
Settings2, Sun, Moon, Frame,
|
||||
Settings2, Sun, Moon, Frame, FolderOpen, BookOpen
|
||||
} from 'lucide-react';
|
||||
import { useState } from 'react';
|
||||
import { cn } from '@/lib/utils';
|
||||
@@ -141,13 +141,14 @@ function AppLayout({ children }: { children: React.ReactNode }) {
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
|
||||
</nav>
|
||||
<div className="border-t p-2 flex flex-col gap-1 items-center justify-center">
|
||||
<GlobalWindSettingsModal
|
||||
trigger={
|
||||
<button
|
||||
className={cn(
|
||||
'flex items-center gap-3 px-3 py-2 rounded-md transition-colors text-sm w-full text-left cursor-pointer text-muted-foreground hover:bg-secondary/50 hover:text-secondary-foreground',
|
||||
isCollapsed && 'justify-center px-0',
|
||||
'flex items-center gap-3 px-3 py-2.5 rounded-md transition-colors text-sm w-full text-left cursor-pointer text-muted-foreground hover:bg-secondary/50 hover:text-secondary-foreground',
|
||||
isCollapsed && 'justify-center px-0'
|
||||
)}
|
||||
title={isCollapsed ? 'Parâmetros do Vento' : undefined}
|
||||
>
|
||||
@@ -156,18 +157,49 @@ function AppLayout({ children }: { children: React.ReactNode }) {
|
||||
</button>
|
||||
}
|
||||
/>
|
||||
</nav>
|
||||
<div className="border-t p-2 flex flex-col gap-2 items-center justify-center">
|
||||
<Link
|
||||
to="/settings?tab=gerenciador"
|
||||
className={cn(
|
||||
'flex items-center gap-3 px-3 py-2.5 rounded-md transition-colors text-sm w-full cursor-pointer',
|
||||
location.pathname === '/settings' && new URLSearchParams(location.search).get('tab') === 'gerenciador'
|
||||
? 'bg-primary text-primary-foreground font-medium shadow-sm'
|
||||
: 'text-muted-foreground hover:bg-secondary/50 hover:text-secondary-foreground',
|
||||
isCollapsed && 'justify-center px-0'
|
||||
)}
|
||||
title={isCollapsed ? 'Arquivos' : undefined}
|
||||
>
|
||||
<FolderOpen className="w-5 h-5 shrink-0" />
|
||||
{!isCollapsed && <span>Arquivos</span>}
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/settings"
|
||||
className={cn(
|
||||
'flex items-center gap-3 px-3 py-2.5 rounded-md transition-colors text-sm w-full cursor-pointer text-muted-foreground hover:bg-secondary/50 hover:text-secondary-foreground',
|
||||
isCollapsed && 'justify-center px-0',
|
||||
'flex items-center gap-3 px-3 py-2.5 rounded-md transition-colors text-sm w-full cursor-pointer',
|
||||
location.pathname === '/settings' && (!location.search || location.search.includes('tab=config') || location.search.includes('tab=testes'))
|
||||
? 'bg-primary text-primary-foreground font-medium shadow-sm'
|
||||
: 'text-muted-foreground hover:bg-secondary/50 hover:text-secondary-foreground',
|
||||
isCollapsed && 'justify-center px-0'
|
||||
)}
|
||||
title={isCollapsed ? t('nav_settings') : undefined}
|
||||
>
|
||||
<Settings className="w-5 h-5 shrink-0" />
|
||||
{!isCollapsed && <span>{t('nav_settings')}</span>}
|
||||
{!isCollapsed && <span>Configurações</span>}
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/settings?tab=glossary"
|
||||
className={cn(
|
||||
'flex items-center gap-3 px-3 py-2.5 rounded-md transition-colors text-sm w-full cursor-pointer',
|
||||
location.pathname === '/settings' && new URLSearchParams(location.search).get('tab') === 'glossary'
|
||||
? 'bg-primary text-primary-foreground font-medium shadow-sm'
|
||||
: 'text-muted-foreground hover:bg-secondary/50 hover:text-secondary-foreground',
|
||||
isCollapsed && 'justify-center px-0'
|
||||
)}
|
||||
title={isCollapsed ? 'Glossário' : undefined}
|
||||
>
|
||||
<BookOpen className="w-5 h-5 shrink-0" />
|
||||
{!isCollapsed && <span>Glossário</span>}
|
||||
</Link>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
Reference in New Issue
Block a user