Tab Constant is added

This commit is contained in:
2026-07-29 14:39:55 +05:30
parent 7ce1f2705e
commit f9c3e7968b
28 changed files with 1299 additions and 1093 deletions

View File

@@ -1,7 +1,7 @@
import ActionButtons from "@/components/common/actionButton";
import Button from "@/components/common/button";
import { StatusBadge } from "@/components/common/statusBadge";
import { FileText, Eye } from "lucide-react";
import { FileText, Eye, Pencil, GitBranch, Settings } from "lucide-react";
//Vendor field Service
@@ -3301,6 +3301,177 @@ export const budgetPerformanceRows = [
];
export const trustedDeviceHeaders = [
"USER",
"DEVICE",
"IP",
"LAST SEEN",
"EXPIRES",
"STATUS",
"ACTIONS",
];
export const trustedDeviceRows = [
[
<span className="font-semibold text-white">Dhananjay T.</span>,
"Chrome 126 · Windows 11",
<span className="font-mono">103.212.14.8</span>,
<span className="font-mono">Today, 08:12</span>,
<span className="font-mono">Jul 30, 2026</span>,
<StatusBadge
text="TRUSTED"
color="bg-emerald-500/15 text-emerald-400"
/>,
<Button className="rounded-md border border-slate-700/80 bg-slate-800/40 px-3 py-1 text-xs text-slate-300 hover:bg-slate-800 transition-colors">
Revoke
</Button>,
],
[
<span className="font-semibold text-white">Kavya Raghunathan</span>,
"Safari 18 · macOS",
<span className="font-mono">49.37.201.55</span>,
<span className="font-mono">Yesterday, 17:40</span>,
<span className="font-mono">Jul 21, 2026</span>,
<StatusBadge
text="TRUSTED"
color="bg-emerald-500/15 text-emerald-400"
/>,
<Button className="rounded-md border border-slate-700/80 bg-slate-800/40 px-3 py-1 text-xs text-slate-300 hover:bg-slate-800 transition-colors">
Revoke
</Button>,
],
[
<span className="font-semibold text-white">Rahul Iyer</span>,
"KAFM Mobile · Android 15",
<span className="font-mono">152.58.33.104</span>,
<span className="font-mono">Today, 06:58</span>,
<span className="font-mono">Jul 12, 2026</span>,
<StatusBadge
text="TRUSTED"
color="bg-emerald-500/15 text-emerald-400"
/>,
<Button className="rounded-md border border-slate-700/80 bg-slate-800/40 px-3 py-1 text-xs text-slate-300 hover:bg-slate-800 transition-colors">
Revoke
</Button>,
],
[
<span className="font-semibold text-white">Meera Pillai</span>,
"Edge 126 · Windows 10",
<span className="font-mono">103.212.14.31</span>,
<span className="font-mono">Jun 18, 2026</span>,
<span className="font-mono text-slate-400">Expired</span>,
<StatusBadge
text="REVOKED"
color="bg-slate-700/50 text-slate-400"
/>,
<span className="text-slate-500 text-center">—</span>,
],
];
export const auditLogHeaders = [
"WHEN",
"USER",
"EVENT",
"IP",
"RESULT",
];
export const auditLogRows = [
[
<span className="font-mono text-slate-300">Today 08:12</span>,
<span className="font-mono text-slate-300">dhananjay@kafm.io</span>,
<span className="text-slate-200">Sign-in · password + MFA</span>,
<span className="font-mono text-slate-300">103.212.14.8</span>,
<StatusBadge
text="OK"
color="bg-emerald-500/15 text-emerald-400"
/>,
],
[
<span className="font-mono text-slate-300">Today 07:56</span>,
<span className="font-mono text-slate-300">kavya@kafm.io</span>,
<span className="text-slate-200">
Role changed · Technician → M&E Supervisor
</span>,
<span className="font-mono text-slate-300">49.37.201.55</span>,
<StatusBadge
text="OK"
color="bg-emerald-500/15 text-emerald-400"
/>,
],
[
<span className="font-mono text-slate-300">Today 07:31</span>,
<span className="font-mono text-slate-300">unknown@ext.net</span>,
<span className="text-slate-200">
Sign-in · wrong password (3rd attempt)
</span>,
<span className="font-mono text-slate-300">91.240.118.7</span>,
<StatusBadge
text="FAILED"
color="bg-rose-500/15 text-rose-400"
/>,
],
[
<span className="font-mono text-slate-300">Today 06:58</span>,
<span className="font-mono text-slate-300">rahul@kafm.io</span>,
<span className="text-slate-200">
Device trusted · KAFM Mobile (30 days)
</span>,
<span className="font-mono text-slate-300">152.58.33.104</span>,
<StatusBadge
text="OK"
color="bg-emerald-500/15 text-emerald-400"
/>,
],
[
<span className="font-mono text-slate-300">Yesterday 17:40</span>,
<span className="font-mono text-slate-300">kavya@kafm.io</span>,
<span className="text-slate-200">
Password reset · self-service link
</span>,
<span className="font-mono text-slate-300">49.37.201.55</span>,
<StatusBadge
text="OK"
color="bg-emerald-500/15 text-emerald-400"
/>,
],
[
<span className="font-mono text-slate-300">Yesterday 14:05</span>,
<span className="font-mono text-slate-300">meera@kafm.io</span>,
<span className="text-slate-200">
MFA reset by admin · device revoked
</span>,
<span className="font-mono text-slate-300">103.212.14.31</span>,
<StatusBadge
text="PENDING"
color="bg-amber-500/15 text-amber-400"
/>,
],
[
<span className="font-mono text-slate-300">Jun 30 09:12</span>,
<span className="font-mono text-slate-300">admin@kafm.io</span>,
<span className="text-slate-200">
Sign-in policy updated · idle timeout 30 min
</span>,
<span className="font-mono text-slate-300">103.212.14.8</span>,
<StatusBadge
text="OK"
color="bg-emerald-500/15 text-emerald-400"
/>,
],
];
//Statutory Compliance Page
export const statutoryheaders = [
"Obligation",
@@ -3914,4 +4085,138 @@ export const auditrows = [
</Button>
</div>,
],
];
];
export const siteHeaders = [
"Site",
"Tenant",
"Coordinates",
"Radius",
"Status",
"Actions",
];
export const siteRows = [
[
<div>
<p className="font-semibold text-slate-100">Apple One — HQ Tower</p>
<p className="font-mono text-xs text-slate-400">AO-HQ · SIT-3001</p>
</div>,
"Apple One",
<span className="font-mono whitespace-nowrap">19.0760, 72.8777</span>,
<span className="rounded-md bg-slate-900 px-2 py-1 font-mono text-xs">200 m</span>,
<div className="flex items-center gap-3">
<div className="h-7 w-12 rounded-full bg-teal-400 relative">
<div className="absolute right-1 top-1 h-5 w-5 rounded-full bg-slate-950" />
</div>
<StatusBadge
text="Active"
color="bg-emerald-500/15 text-emerald-400"
/>
</div>,
<ActionButtons />,
],
[
<div>
<p className="font-semibold text-slate-100">Apple One — Annexe</p>
<p className="font-mono text-xs text-slate-400">AO-AX · SIT-3002</p>
</div>,
"Apple One",
<span className="font-mono whitespace-nowrap">19.1020, 72.8895</span>,
<span className="rounded-md bg-slate-900 px-2 py-1 font-mono text-xs">150 m</span>,
<div className="flex items-center gap-3">
<div className="h-7 w-12 rounded-full bg-teal-400 relative">
<div className="absolute right-1 top-1 h-5 w-5 rounded-full bg-slate-950" />
</div>
<StatusBadge
text="Active"
color="bg-emerald-500/15 text-emerald-400"
/>
</div>,
<ActionButtons />,
],
[
<div>
<p className="font-semibold text-slate-100">Novotel Pune — Main</p>
<p className="font-mono text-xs text-slate-400">NP-M · SIT-3003</p>
</div>,
"Novotel Pune",
<span className="font-mono whitespace-nowrap">18.5604, 73.9090</span>,
<span className="rounded-md bg-slate-900 px-2 py-1 font-mono text-xs">180 m</span>,
<div className="flex items-center gap-3">
<div className="h-7 w-12 rounded-full bg-teal-400 relative">
<div className="absolute right-1 top-1 h-5 w-5 rounded-full bg-slate-950" />
</div>
<StatusBadge
text="Active"
color="bg-emerald-500/15 text-emerald-400"
/>
</div>,
<ActionButtons />,
],
[
<div>
<p className="font-semibold text-slate-100">
SRM Campus — Academic Block
</p>
<p className="font-mono text-xs text-slate-400">SRM-AB · SIT-3004</p>
</div>,
"SRM Campus",
<span className="font-mono whitespace-nowrap">12.8230, 80.0444</span>,
<span className="rounded-md bg-slate-900 px-2 py-1 font-mono text-xs">400 m</span>,
<div className="flex items-center gap-3">
<div className="h-7 w-12 rounded-full bg-teal-400 relative">
<div className="absolute right-1 top-1 h-5 w-5 rounded-full bg-slate-950" />
</div>
<StatusBadge
text="Active"
color="bg-emerald-500/15 text-emerald-400"
/>
</div>,
<ActionButtons />,
],
[
<div>
<p className="font-semibold text-slate-100">
SRM Campus — Hostel Block
</p>
<p className="font-mono text-xs text-slate-400">SRM-HB · SIT-3005</p>
</div>,
"SRM Campus",
<span className="font-mono whitespace-nowrap">12.8255, 80.0478</span>,
<span className="rounded-md bg-slate-900 px-2 py-1 font-mono text-xs">350 m</span>,
<div className="flex items-center gap-3">
<div className="h-7 w-12 rounded-full bg-teal-400 relative">
<div className="absolute right-1 top-1 h-5 w-5 rounded-full bg-slate-950" />
</div>
<StatusBadge
text="Active"
color="bg-emerald-500/15 text-emerald-400"
/>
</div>,
<ActionButtons />,
],
[
<div>
<p className="font-semibold text-slate-100">Local 1 — Site</p>
<p className="font-mono text-xs text-slate-400">L1-S · SIT-3006</p>
</div>,
"Local 1",
<span className="font-mono whitespace-nowrap">19.2183, 72.9781</span>,
<span className="rounded-md bg-slate-900 px-2 py-1 font-mono text-xs">120 m</span>,
<div className="flex items-center gap-3">
<div className="h-7 w-12 rounded-full bg-teal-400 relative">
<div className="absolute right-1 top-1 h-5 w-5 rounded-full bg-slate-950" />
</div>
<StatusBadge
text="Active"
color="bg-emerald-500/15 text-emerald-400"
/>
</div>,
<ActionButtons />,
],
];