PageSourceSearch

https://lovi-znaniya.ru/assets/TestsHistoryPage-BwqJo4cK.js

js lovi-znaniya.ru collected 2026-09-25 14:57:39 UTC 1,220 bytes, 1 lines download raw bytes

1import{r as i,u as l,j as t,L as o,h as x}from"./index-DZ4IjjBq.js";import{t as m}from"./tests-Bh_stkWP.js";import{S as n,H as c}from"./HistoryRow-BbQtW6y5.js";import"./pixi-sE093FOJ.js";import"./examKinds-BMOhh2vD.js";function y(){const[s,r]=i.useState(null);return l(e=>{m.getHistory().then(a=>{e()&&r(a.data)}).catch(()=>{e()&&r("error")})},[]),t.jsxs("div",{className:"max-w-3xl mx-auto",children:[t.jsxs(o,{to:"/tests",className:"inline-flex items-center gap-1 text-sm text-slate-500 hover:text-slate-700 mb-4",children:[t.jsx(x,{size:16})," К тестам"]}),t.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-4",children:"История тестов"}),s===null&&t.jsx(n,{label:"Загружаем историю…"}),s==="error"&&t.jsx("p",{className:"text-sm text-red-600",children:"Не удалось загрузить историю. Обнови страницу."}),Array.isArray(s)&&s.length===0&&t.jsx("p",{className:"text-sm text-slate-500",children:"Пока пусто — пройди первый тест или игру."}),Array.isArray(s)&&s.length>0&&t.jsx("div",{className:"space-y-2","data-testid":"tests-history",children:s.map(e=>t.jsx(c,{h:e},e.id))})]})}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.