PageSourceSearch

https://autoskola-abc.lv/assets/admin.slots-DeYSqbD3.js

js autoskola-abc.lv collected 2026-10-09 22:02:06 UTC 1,672 bytes, 1 lines download raw bytes

1import{u as i,s as n,j as e}from"./index-CC7LeppY.js";import{B as d}from"./badge-CSoMkE9d.js";import{C as c,a as o}from"./card-CZnJ2TeO.js";import{L as l}from"./loader-circle-DNIotRoX.js";const m={available:"outline",booked:"default",completed:"secondary",canceled:"destructive"};function j(){const{data:t,isLoading:r}=i({queryKey:["admin-slots"],queryFn:async()=>{const{data:s,error:a}=await n.from("time_slots").select("*, instructors(name)").order("date",{ascending:!1}).order("start_time").limit(200);if(a)throw a;return s}});return e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Visi sloti"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Pēdējie 200 ieraksti."}),r?e.jsx("div",{className:"grid place-items-center py-20",children:e.jsx(l,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):e.jsx(c,{className:"mt-6",children:e.jsx(o,{className:"p-0",children:e.jsxs("div",{className:"divide-y divide-border text-sm",children:[(t??[]).map(s=>e.jsxs("div",{className:"grid grid-cols-[100px_70px_1fr_70px_90px] items-center gap-3 px-4 py-2.5",children:[e.jsx("span",{className:"text-muted-foreground",children:s.date}),e.jsx("span",{className:"font-mono text-xs",children:s.start_time.slice(0,5)}),e.jsx("span",{className:"truncate",children:s.instructors?.name??"—"}),e.jsxs("span",{className:"text-right",children:["€",Number(s.price).toFixed(0)]}),e.jsx(d,{variant:m[s.status]??"outline",className:"justify-self-end",children:s.status})]},s.id)),(t??[]).length===0&&e.jsx("div",{className:"py-10 text-center text-muted-foreground",children:"Vēl nav slotu."})]})})})]})}export{j 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.