Files
ServerKit/frontend/src/components/security/securityTabs.jsx
T
Juan Denis f249fd49f0 Add topbar tab groups with overflow + backups/security tabs
Replace per-page Tabs with a shared PageTopbar tab group that supports overflow and a "More" popover. Adds BACKUP_TABS and SECURITY_TABS components and updates Backups, Security and Git pages to render sections via the topbar tabs (useTabParam routing). Implements responsive/overflow measurement logic in PageTopbar (TopbarTabs) and related styles; removes old page-local tab styles and shadcn Tabs usage. Improves header UX so active tab stays visible when space is limited.
2026-06-20 23:32:27 -04:00

27 lines
1.7 KiB
React

import {
LayoutDashboard, Shield, Ban, Key, Network, Radar, ShieldOff,
FileCheck, ScrollText, Bug, RefreshCw, Bell, Settings,
} from 'lucide-react';
// Shared sub-nav for the Security page group. Rendered in the shared PageTopbar
// tabs so every section lives in the page top bar — matching the Domains/
// Services top-bar layout (see docs/REDESIGN_MAP.md §6 decision 3). There are 13
// sections, more than fit on one row, so the PageTopbar collapses the overflow
// into a "More" menu. All sections render from the single Security page, keyed
// off the /security/:tab route.
export const SECURITY_TABS = [
{ to: '/security', label: 'Overview', end: true, icon: <LayoutDashboard size={15} /> },
{ to: '/security/firewall', label: 'Firewall', icon: <Shield size={15} /> },
{ to: '/security/fail2ban', label: 'Fail2ban', icon: <Ban size={15} /> },
{ to: '/security/ssh-keys', label: 'SSH Keys', icon: <Key size={15} /> },
{ to: '/security/ip-lists', label: 'IP Lists', icon: <Network size={15} /> },
{ to: '/security/scanner', label: 'Malware Scanner', icon: <Radar size={15} /> },
{ to: '/security/quarantine', label: 'Quarantine', icon: <ShieldOff size={15} /> },
{ to: '/security/integrity', label: 'File Integrity', icon: <FileCheck size={15} /> },
{ to: '/security/audit', label: 'Audit', icon: <ScrollText size={15} /> },
{ to: '/security/vulnerability', label: 'Vulnerability Scan', icon: <Bug size={15} /> },
{ to: '/security/updates', label: 'Auto Updates', icon: <RefreshCw size={15} /> },
{ to: '/security/events', label: 'Events', icon: <Bell size={15} /> },
{ to: '/security/settings', label: 'Settings', icon: <Settings size={15} /> },
];