Files

1 line
5.4 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84717,e=>{"use strict";let a=(0,e.i(64828).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",0,a],84717)},81151,46043,54957,e=>{"use strict";var a=e.i(64828);let s=(0,a.default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,s],81151);let t=(0,a.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,t],46043);let l=(0,a.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,l],54957)},53263,e=>{"use strict";var a=e.i(1624),s=e.i(34772),t=e.i(43673),l=e.i(56790),i=e.i(81151),d=e.i(46043),n=e.i(54957),r=e.i(84717);let c=(0,e.i(64828).default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),x=[{id:1,name:"API Gateway",status:"operational",uptime:"99.99%",latency:"12ms",icon:i.Server,lastIncident:"14 days ago"},{id:2,name:"Primary Database",status:"operational",uptime:"99.97%",latency:"4ms",icon:d.Database,lastIncident:"3 days ago"},{id:3,name:"Cloud Storage",status:"operational",uptime:"100%",latency:"28ms",icon:n.Cloud,lastIncident:"—"},{id:4,name:"Auth Service",status:"degraded",uptime:"99.85%",latency:"156ms",icon:r.Shield,lastIncident:"2 hours ago"},{id:5,name:"Message Queue",status:"operational",uptime:"99.92%",latency:"8ms",icon:c,lastIncident:"7 days ago"},{id:6,name:"Search Engine",status:"operational",uptime:"99.95%",latency:"22ms",icon:l.Cog,lastIncident:"21 days ago"}],m={operational:{label:"Operational",color:"text-emerald-700",bg:"bg-emerald-50",dot:"bg-emerald-500"},degraded:{label:"Degraded",color:"text-amber-700",bg:"bg-amber-50",dot:"bg-amber-500"},down:{label:"Down",color:"text-red-700",bg:"bg-red-50",dot:"bg-red-500"}},o=[{label:"API Requests",value:"2.4M",change:"+12%",unit:"/day"},{label:"Avg Response Time",value:"45ms",change:"-8%",unit:""},{label:"Error Rate",value:"0.02%",change:"-0.01%",unit:""},{label:"Active Users",value:"1,284",change:"+8%",unit:""}];e.s(["default",0,function(){return(0,a.jsx)(s.DashboardShell,{children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-xl font-bold text-[#111827]",children:"Operations"}),(0,a.jsx)("p",{className:"text-sm text-[#6B7280] mt-0.5",children:"System health and infrastructure monitoring"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:o.map(e=>(0,a.jsxs)(t.Card,{className:"p-5 bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)]",children:[(0,a.jsx)("p",{className:"text-xs text-[#6B7280] uppercase tracking-wider",children:e.label}),(0,a.jsxs)("div",{className:"flex items-baseline gap-2 mt-1.5",children:[(0,a.jsx)("span",{className:"text-2xl font-bold text-[#111827]",children:e.value}),(0,a.jsx)("span",{className:"text-xs text-[#9CA3AF]",children:e.unit})]}),(0,a.jsx)("span",{className:`text-xs font-medium mt-1 inline-block ${e.change.startsWith("+")?"text-emerald-600":"text-blue-600"}`,children:e.change})]},e.label))}),(0,a.jsxs)(t.Card,{className:"bg-white rounded-2xl border border-[#E5E7EB] shadow-[0_2px_8px_rgba(0,0,0,0.04)] overflow-hidden",children:[(0,a.jsxs)("div",{className:"p-5 border-b border-[#E5E7EB] flex items-center justify-between",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-[#111827]",children:"Service Status"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),(0,a.jsx)("span",{className:"text-xs font-medium text-emerald-600",children:"All systems operational"})]})]}),(0,a.jsx)("div",{className:"divide-y divide-[#E5E7EB]/50",children:x.map(e=>{let s=e.icon,t=m[e.status];return(0,a.jsxs)("div",{className:"flex items-center gap-4 p-4 hover:bg-[#F7F9FC] transition-colors",children:[(0,a.jsx)("div",{className:"w-10 h-10 rounded-xl bg-[#F3F4F6] flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(s,{className:"w-5 h-5 text-[#6B7280]"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-[#111827]",children:e.name}),(0,a.jsxs)("div",{className:`flex items-center gap-1 px-2 py-0.5 rounded-full ${t.bg}`,children:[(0,a.jsx)("div",{className:`w-1.5 h-1.5 rounded-full ${t.dot}`}),(0,a.jsx)("span",{className:`text-[10px] font-semibold ${t.color}`,children:t.label})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-4 mt-1",children:[(0,a.jsxs)("span",{className:"text-xs text-[#9CA3AF]",children:["Uptime ",e.uptime]}),(0,a.jsxs)("span",{className:"text-xs text-[#9CA3AF]",children:["Latency ",e.latency]}),(0,a.jsxs)("span",{className:"text-xs text-[#9CA3AF]",children:["Last incident ",e.lastIncident]})]})]})]},e.id)})})]})]})})}],53263)}]);