PageSourceSearch

https://extendlm.com/assets/QuizCommunityPage-DzzPloE_.js

js extendlm.com collected 2026-09-24 14:13:23 UTC 1,445 bytes, 1 lines download raw bytes

1import{r as a,e as m,i as c,j as e,L as o,R as u}from"./index-CfJxxrWq.js";const x=c(),h=()=>{const[n,l]=a.useState(!0),[i,r]=a.useState([]);return a.useEffect(()=>{document.title=`Community quizzes - ${m}`;let t=!1;return(async()=>{const s=await x.quizCommunityList({Limit:100});t||(r((s==null?void 0:s.Success)===!0&&Array.isArray(s.Publications)?s.Publications:[]),l(!1))})(),()=>{t=!0}},[]),e.jsx("div",{className:"min-h-screen bg-gray-50 px-4 py-12",children:e.jsxs("div",{className:"mx-auto w-full max-w-3xl",children:[e.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:"Community quizzes"}),e.jsx("p",{className:"mt-2 text-gray-600",children:"Take quizzes shared by the community."}),n?e.jsx("p",{className:"mt-8 text-gray-500",children:"Loading…"}):i.length===0?e.jsx("p",{className:"mt-8 text-gray-500",children:"No community quizzes yet."}):e.jsx("ul",{className:"mt-6 space-y-3",children:i.map(t=>e.jsxs("li",{className:"rounded-xl border border-gray-200 bg-white p-5 shadow-sm",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:t.Title||"Quiz"}),t.Description&&e.jsx("p",{className:"mt-1 text-gray-600",children:t.Description}),t.Token&&e.jsx(o,{to:`${u.QUIZ_TAKE}/${encodeURIComponent(t.Token)}`,className:"mt-3 inline-block font-medium text-blue-600 hover:text-blue-700 dark:text-blue-300 dark:hover:text-blue-200",children:"Take quiz →"})]},t.ID))})]})})};export{h 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.