PageSourceSearch

https://klestek.lovable.app/assets/admin.events-DXHYS1Ks.js

js klestek.lovable.app collected 2026-10-03 03:36:01 UTC 2,079 bytes, 1 lines download raw bytes

1import{r as d,K as m,q as o,j as e}from"./index-tMRPyf2I.js";import{b as x}from"./admin.functions-ByLtPmKH.js";import{u as p,R as h,S as j,C as u}from"./AdminUI-36sWQBis.js";import"./auth-middleware-aelfHQcs.js";function y(){const[t,r]=p("7d"),[a,l]=d.useState(""),i=m(x),{data:n,isLoading:c}=o({queryKey:["admin","events",t,a],queryFn:()=>i({data:{range:t,event_name:a||void 0,limit:300}})});return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("h1",{className:"font-serif text-2xl",children:"Events"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{value:a,onChange:s=>l(s.target.value),placeholder:"filter by event name",className:"rounded-full adm-panel px-4 py-1.5 text-sm outline-none"}),e.jsx(h,{value:t,onChange:r})]})]}),c||!n?e.jsx(j,{h:400}):e.jsx(u,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-left text-xs uppercase tracking-[0.16em] adm-dim",children:[e.jsx("th",{className:"pb-2",children:"Time"}),e.jsx("th",{className:"pb-2",children:"Event"}),e.jsx("th",{className:"pb-2",children:"Path"}),e.jsx("th",{className:"pb-2",children:"Props"}),e.jsx("th",{className:"pb-2",children:"Visitor"})]})}),e.jsxs("tbody",{children:[n.rows.map(s=>e.jsxs("tr",{className:"border-t adm-border",children:[e.jsx("td",{className:"py-2 text-xs adm-dim",children:new Date(s.occurred_at).toLocaleString("lt-LT")}),e.jsx("td",{className:"py-2 font-mono text-xs",children:s.event_name}),e.jsx("td",{className:"py-2 font-mono text-xs",children:s.path}),e.jsx("td",{className:"py-2 font-mono text-[10px] adm-dim",children:s.props?JSON.stringify(s.props).slice(0,80):""}),e.jsx("td",{className:"py-2 font-mono text-[10px] adm-dim",children:(s.visitor_id??"").slice(0,8)})]},s.id)),n.rows.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"py-6 text-center adm-dim",children:"Nėra duomenų"})})]})]})})})]})}export{y as component};

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.