PageSourceSearch

https://kriminal.ai/assets/StatusPage-BT9BHyM9.js

js kriminal.ai collected 2026-10-04 07:45:57 UTC 9,365 bytes, 1 lines download raw bytes

1import{r as o,j as e,K as k,L as i,m as c,N as S,P as I,T as A,p as $,Z as L,G as R,g as E}from"./index-BSHsh1-S.js";import{A as B}from"./arrow-left-Bg1BtSIs.js";import{A as j}from"./activity-DeSLg8QX.js";import{R as y}from"./refresh-cw-BZDdxDXa.js";import{C as O}from"./circle-check-DTUT_dQ8.js";import{C as D}from"./credit-card-DGo__c8H.js";const K={ai_engine:E,live_search:R,payments:D,api:L,agents:$},p={operational:{label:"Operational",color:"text-green-400",bgColor:"bg-green-400/10",borderColor:"border-green-400/30",Icon:O,dot:"bg-green-400"},degraded:{label:"Degraded",color:"text-yellow-400",bgColor:"bg-yellow-400/10",borderColor:"border-yellow-400/30",Icon:A,dot:"bg-yellow-400"},down:{label:"Outage",color:"text-red-500",bgColor:"bg-red-500/10",borderColor:"border-red-500/30",Icon:I,dot:"bg-red-500"}},T={operational:{text:"All Systems Operational",sub:"Every Kriminal AI service is running normally.",color:"text-green-400",borderColor:"border-green-400/40",bgColor:"bg-green-400/5"},degraded:{text:"Partial Degradation",sub:"Some services are experiencing elevated latency or reduced performance.",color:"text-yellow-400",borderColor:"border-yellow-400/40",bgColor:"bg-yellow-400/5"},down:{text:"Service Disruption",sub:"One or more critical services are offline. Our team has been notified.",color:"text-red-500",borderColor:"border-red-500/40",bgColor:"bg-red-500/5"}};function _(r){return r===null?"---":`${r}ms`}function P(r,s){return s==="down"?"text-red-500":r===null?"text-muted-foreground":r<300?"text-green-400":r<800?"text-yellow-400":"text-red-400"}function N({status:r}){const s=p[r];return e.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-[10px] font-mono font-bold uppercase tracking-widest border ${s.bgColor} ${s.borderColor} ${s.color}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${s.dot} ${r==="operational"?"animate-pulse":""}`}),s.label]})}function Y(){const[r,s]=o.useState(null),[b,v]=o.useState(!0),[w,h]=o.useState(!1),[f,C]=o.useState(null),[g,u]=o.useState(!1),d=!!localStorage.getItem("kriminal_token"),m=o.useCallback(async(t=!1)=>{t&&u(!0),h(!1);try{const a="/".replace(/\/$/,""),x=await fetch(`${a}/api/status`);if(!x.ok)throw new Error("Failed to fetch status");const l=await x.json();s(l),C(new Date)}catch{h(!0)}finally{v(!1),u(!1)}},[]);o.useEffect(()=>{m();const t=setInterval(()=>{m()},3e4);return()=>clearInterval(t)},[m]);const n=r?T[r.overall]:null;return e.jsxs("div",{className:"min-h-screen bg-background relative overflow-hidden flex flex-col scanlines",children:[e.jsx(k,{}),e.jsx("header",{className:"fixed top-0 w-full z-50 border-b border-white/5 bg-background/80 backdrop-blur-md",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 h-14 sm:h-16 flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-4 min-w-0",children:[e.jsxs(i,{href:"/",className:"flex items-center gap-2 shrink-0",children:[e.jsx("div",{className:"w-8 h-8 bg-primary rounded-sm flex items-center justify-center text-black font-display font-bold text-sm neon-border",children:"KR"}),e.jsx("span",{className:"hidden sm:block font-display font-bold tracking-widest text-white text-sm",children:"KRIMINAL.AI"})]}),e.jsx("div",{className:"h-4 w-px bg-border hidden sm:block"}),e.jsx("span",{className:"font-mono text-xs uppercase tracking-widest text-muted-foreground hidden sm:block",children:"System Status"})]}),e.jsx(i,{href:d?"/chat":"/",children:e.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 font-mono text-xs uppercase tracking-widest text-muted-foreground hover:text-primary transition-colors border border-border hover:border-primary/40",children:[e.jsx(B,{className:"w-3.5 h-3.5"}),d?"Back to Chat":"Back"]})})]})}),e.jsx("main",{className:"relative z-10 pt-28 pb-24 px-4 flex-1",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs(c.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-10",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(j,{className:"w-4 h-4 text-primary"}),e.jsx("span",{className:"text-xs font-mono text-primary uppercase tracking-widest",children:"Live Status"})]}),e.jsx(S,{text:"System Status",as:"h1",className:"text-3xl sm:text-4xl md:text-5xl mb-3"}),e.jsx("p",{className:"font-mono text-sm text-muted-foreground",children:"Real-time health monitoring for all Kriminal AI platform services."})]}),b&&!r&&e.jsxs("div",{className:"border border-border bg-card/50 p-6 mb-6 flex items-center gap-3",children:[e.jsx(y,{className:"w-5 h-5 text-primary animate-spin"}),e.jsx("span",{className:"font-mono text-sm text-muted-foreground",children:"Running diagnostics…"})]}),w&&!r&&e.jsx("div",{className:"border border-red-500/30 bg-red-500/5 p-6 mb-6",children:e.jsx("p",{className:"font-mono text-sm text-red-400",children:"Unable to fetch status data. Please try again."})}),n&&r&&e.jsxs(c.div,{initial:{opacity:0,scale:.98}
1,animate:{opacity:1,scale:1},transition:{duration:.4},className:`border ${n.borderColor} ${n.bgColor} p-5 mb-8 flex items-start gap-4`,children:[(()=>{const t=p[r.overall],a=t.Icon;return e.jsx(a,{className:`w-6 h-6 mt-0.5 shrink-0 ${t.color}`})})(),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:`font-display font-bold text-lg ${n.color}`,children:n.text}),e.jsx("p",{className:"font-mono text-xs text-muted-foreground mt-1",children:n.sub})]}),e.jsx(N,{status:r.overall})]},r.overall),e.jsxs("div",{className:"space-y-3 mb-8",children:[r?.services.map((t,a)=>{const x=K[t.name]??j,l=p[t.status];return e.jsxs(c.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.35,delay:a*.07},className:`border ${l.borderColor} bg-card/50 p-5 flex items-center gap-4 hover:bg-card/70 transition-colors`,children:[e.jsx("div",{className:`p-2 border ${l.borderColor} ${l.bgColor} shrink-0`,children:e.jsx(x,{className:`w-4 h-4 ${l.color}`})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-mono font-bold text-sm text-white uppercase tracking-wider",children:t.label}),t.message&&e.jsx("p",{className:"font-mono text-[11px] text-muted-foreground mt-0.5",children:t.message})]}),e.jsxs("div",{className:"flex items-center gap-4 shrink-0",children:[e.jsx("span",{className:`font-mono text-xs tabular-nums ${P(t.latencyMs,t.status)}`,children:_(t.latencyMs)}),e.jsx(N,{status:t.status})]})]},t.name)}),b&&!r&&Array.from({length:4}).map((t,a)=>e.jsxs("div",{className:"border border-border bg-card/50 p-5 flex items-center gap-4 animate-pulse",children:[e.jsx("div",{className:"w-8 h-8 bg-border rounded-sm shrink-0"}),e.jsx("div",{className:"flex-1 space-y-2",children:e.jsx("div",{className:"h-3 bg-border rounded w-32"})}),e.jsx("div",{className:"h-6 bg-border rounded w-24"})]},a))]}),e.jsxs(c.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.5},className:"flex items-center justify-between border border-border bg-card/30 px-5 py-3",children:[e.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:f?e.jsxs(e.Fragment,{children:["Last checked: ",f.toLocaleTimeString()," — auto-refreshes every 30s"]}):"Checking…"}),e.jsxs("button",{onClick:()=>{m(!0)},disabled:g,className:"flex items-center gap-1.5 px-3 py-1.5 font-mono text-[11px] uppercase tracking-widest border border-border text-muted-foreground hover:text-primary hover:border-primary/40 transition-colors disabled:opacity-50",children:[e.jsx(y,{className:`w-3 h-3 ${g?"animate-spin":""}`}),"Refresh"]})]}),e.jsxs(c.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.6},className:"mt-6 border border-border bg-card/20 p-5",children:[e.jsxs("p",{className:"font-mono text-[11px] text-muted-foreground leading-relaxed",children:[e.jsx("span",{className:"text-primary",children:"LATENCY GUIDE:"})," ",e.jsx("span",{className:"text-green-400",children:"<300ms = Fast"})," ",e.jsx("span",{className:"text-muted-foreground",children:"·"})," ",e.jsx("span",{className:"text-yellow-400",children:"300–800ms = Elevated"})," ",e.jsx("span",{className:"text-muted-foreground",children:"·"})," ",e.jsx("span",{className:"text-red-400",children:">800ms = Slow"})]}),e.jsx("p",{className:"font-mono text-[11px] text-muted-foreground leading-relaxed mt-2",children:"Status data is cached for 15 seconds server-side to prevent hammering external APIs. Latency reflects round-trip probe time from the Kriminal AI backend."})]})]})}),e.jsx("footer",{className:"relative z-10 border-t border-border bg-card/30 py-6 px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto flex items-center justify-between gap-4",children:[e.jsxs("p",{className:"font-mono text-[10px] text-muted-foreground",children:["© ",new Date().getFullYear()," Kriminal.AI"]}),e.jsxs("div",{className:"flex items-center gap-4 font-mono text-[10px] text-muted-foreground",children:[e.jsx(i,{href:d?"/chat":"/",className:"hover:text-primary transition-colors",children:d?"Back to Chat":"Home"}),e.jsx(i,{href:"/pricing",className:"hover:text-primary transition-colors",children:"Pricing"}),d?e.jsx(i,{href:"/changelog",className:"hover:text-primary transition-colors",children:"Changelog"}):e.jsx(i,{href:"/signin",className:"hover:text-primary transition-colors",children:"Sign In"})]})]})})]})}export{Y as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.