From b14a97bc6041817e5021cce6590688b8f67b3b87 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 22 Apr 2026 01:42:52 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Route=20Elite=20Dashboard=20and?= =?UTF-8?q?=20Trojan=20Horse=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.tsx | 5 +++++ frontend/src/components/layout/Sidebar.tsx | 4 +++- frontend/src/pages/auth/LoginPage.tsx | 10 ++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c16cc38..16ee984 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -9,6 +9,9 @@ import { InvoicesPage } from './pages/invoices/InvoicesPage'; import { CompaniesPage } from './pages/companies/CompaniesPage'; import { StaffPage } from './pages/staff/StaffPage'; import { SettingsPage } from './pages/settings/SettingsPage'; +import { MultiEntityDashboard } from './pages/Dashboard/MultiEntityDashboard'; +import { TrojanHorseConverter } from './pages/Public/TrojanHorseConverter'; + // ── Protected Route Guard ───────────────────────────────── const ProtectedRoute = ({ children }: { children: React.ReactNode }) => { @@ -23,11 +26,13 @@ export default function App() { {/* Public Routes */} } /> } /> + } /> {/* Protected Dashboard Routes */} }> } /> } /> + } /> } /> } /> } /> diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 707467f..1eb5b63 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -11,12 +11,14 @@ import { Building2, Users, Settings, - LogOut + LogOut, + Crown } from 'lucide-react'; import { useAuthStore } from '../../store/authStore'; const menuItems = [ { icon: LayoutDashboard, label: 'الرئيسية', path: '/dashboard' }, + { icon: Crown, label: 'لوحة النخبة', path: '/elite-dashboard' }, { icon: FileText, label: 'الفواتير', path: '/invoices' }, { icon: Building2, label: 'الشركات', path: '/companies' }, { icon: Users, label: 'الموظفون', path: '/staff' }, diff --git a/frontend/src/pages/auth/LoginPage.tsx b/frontend/src/pages/auth/LoginPage.tsx index dd9c4de..d3f9a49 100644 --- a/frontend/src/pages/auth/LoginPage.tsx +++ b/frontend/src/pages/auth/LoginPage.tsx @@ -124,6 +124,16 @@ export default function LoginPage() { أنشئ حساباً جديداً + + {/* Trojan Horse Marketing Link */} +
+ + 🚀 جرب أداة تحويل فواتير PDF إلى XML مجاناً + +
);