Admin part is added and navbar context file is added
This commit is contained in:
19
app/dashboard/admin/dynamicDashboard/page.tsx
Normal file
19
app/dashboard/admin/dynamicDashboard/page.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client"
|
||||
|
||||
import DynamicDashboardPortal from "@/components/dashboard/admin/Configuration/dynamicDashboard";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function DynamicDashboardPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<DynamicDashboardPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
20
app/dashboard/admin/language/page.tsx
Normal file
20
app/dashboard/admin/language/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"use client"
|
||||
|
||||
import LanguagePortal from "@/components/dashboard/admin/Configuration/language";
|
||||
import ModulesPortal from "@/components/dashboard/admin/Configuration/modules";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function LanguagePage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<LanguagePortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
21
app/dashboard/admin/mobileFlow/page.tsx
Normal file
21
app/dashboard/admin/mobileFlow/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
"use client"
|
||||
|
||||
|
||||
import MobileFlowsPortal from "@/components/dashboard/admin/Configuration/mobileFlows";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function MobileFlowPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<MobileFlowsPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
19
app/dashboard/admin/modules/page.tsx
Normal file
19
app/dashboard/admin/modules/page.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client"
|
||||
|
||||
import ModulesPortal from "@/components/dashboard/admin/Configuration/modules";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function ModulesPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<ModulesPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
18
app/dashboard/admin/overview/page.tsx
Normal file
18
app/dashboard/admin/overview/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
"use client"
|
||||
|
||||
import AdminOverviewPortal from "@/components/dashboard/admin/overview";
|
||||
|
||||
|
||||
|
||||
|
||||
export default function OverviewPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<AdminOverviewPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
23
app/dashboard/admin/security/page.tsx
Normal file
23
app/dashboard/admin/security/page.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
|
||||
"use client"
|
||||
|
||||
|
||||
import SecurityPortal from "@/components/dashboard/admin/Platform/security";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function SecurityPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<SecurityPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
20
app/dashboard/admin/site/page.tsx
Normal file
20
app/dashboard/admin/site/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"use client"
|
||||
|
||||
|
||||
import SitePortal from "@/components/dashboard/admin/site";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default function AuditSurveyPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<SitePortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
19
app/dashboard/admin/tenants/page.tsx
Normal file
19
app/dashboard/admin/tenants/page.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client"
|
||||
|
||||
|
||||
import TenantsPortal from "@/components/dashboard/admin/tenants";
|
||||
|
||||
|
||||
|
||||
|
||||
export default function TenantsPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<TenantsPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
20
app/dashboard/admin/users/page.tsx
Normal file
20
app/dashboard/admin/users/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"use client"
|
||||
|
||||
|
||||
|
||||
import UserPortal from "@/components/dashboard/admin/users";
|
||||
|
||||
|
||||
|
||||
|
||||
export default function UsersPage() {
|
||||
return (
|
||||
|
||||
|
||||
<div className="p-8 mx-3">
|
||||
<UserPortal/>
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
"use client"// app/dashboard/layout.tsx
|
||||
"use client";
|
||||
|
||||
import Sidebar from "@/components/layouts/sidebar";
|
||||
import Navbar from "@/components/layouts/navbar";
|
||||
import { Sparkles } from "lucide-react";
|
||||
import { NavProvider } from "@/components/layouts/context/navContext";
|
||||
|
||||
export default function DashboardLayout({
|
||||
children,
|
||||
@@ -9,27 +11,29 @@ export default function DashboardLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div className=" bg-[#071321] text-white ">
|
||||
{/* Shared Sidebar */}
|
||||
<Sidebar />
|
||||
|
||||
<div className="flex-1 flex flex-col min-h-screen">
|
||||
{/*Common Navbar for every webpage */}
|
||||
<Navbar />
|
||||
|
||||
<NavProvider>
|
||||
|
||||
<main className="flex-1 pl-68 bg-[#071321]">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
{/* Shared Sidebar - Now inside NavProvider */}
|
||||
<Sidebar />
|
||||
|
||||
{/* Ask AI Floating Button common */}
|
||||
<button className="fixed bottom-4 right-4 z-40 flex items-center gap-2
|
||||
rounded-full bg-[#17d4bd] hover:bg-[#13b19e] px-4 py-2.5 text-xs
|
||||
font-bold text-[#05111d] transition shadow-lg shadow-[#17d4bd]/20">
|
||||
<Sparkles size={14} className="animate-pulse" />
|
||||
<span>Ask AI</span>
|
||||
</button>
|
||||
</div>
|
||||
<div className="pl-64 flex flex-col ">
|
||||
{/* Shared Navbar - Now inside NavProvider */}
|
||||
<Navbar />
|
||||
|
||||
{/* Main Page Content */}
|
||||
<main className="flex-1 bg-[#071321]">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
{/* Ask AI Floating Button */}
|
||||
<button className="fixed bottom-4 right-4 z-40 flex items-center gap-2
|
||||
rounded-full bg-[#17d4bd] hover:bg-[#13b19e] px-4 py-2.5 text-xs
|
||||
font-bold text-[#05111d] transition shadow-lg shadow-[#17d4bd]/20">
|
||||
<Sparkles size={14} className="animate-pulse" />
|
||||
<span>Ask AI</span>
|
||||
</button>
|
||||
|
||||
</NavProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user