mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-02 13:15:17 +09:00
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.
27 lines
1.7 KiB
React
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} /> },
|
|
];
|