1import{r as s,j as e,L as a}from"./vendor-react-DejgYtBM.js";import{l as r,E as t,I as i,b as l}from"./vendor-semi-D8d7bTtM.js";import{u as o,s as d}from"./index-BeIIFw6E.js";import{a as n}from"./api-CrGMGlHj.js";import"./vendor-icons-EJvJ5X-w.js";import"./vendor-motion-Chfy_MiU.js";function c(){const{t:c}=o(),[m,g]=s.useState([]),[h,j]=s.useState(!0);return s.useEffect(()=>{const s=new AbortController;let e=!1;return n({signal:s.signal}).then(s=>{e||(s.success?g(s.data||[]):d(s.message||c("å 载失败")))}).catch(s=>{e||"ERR_CANCELED"===s.code||"CanceledError"===s.name||d(s.message)}).finally(()=>{e||j(!1)}),()=>{e=!0,s.abort()}},[c]),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:c("æåç±»æµè§")}),e.jsx("p",{className:"mt-2 text-gray-500 dark:text-gray-400",children:c("æ¢ç´¢æåç±»æ´çç Claude Skills")})]}),h?e.jsx("div",{className:"flex justify-center py-24",children:e.jsx(r,{size:"large"})}):0===m.length?e.jsx(t,{image:e.jsx(l,{style:{width:150,height:150}}),darkModeImage:e.jsx(i,{style:{width:150,height:150}}),description:c("ææ åç±»")}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:m.map(s=>e.jsxs(a,{to:`/skills/browse?category_id=${s.id}`,className:"skills-category-card",children:[e.jsx("h3",{children:c(s.name)}),e.jsxs("p",{children:[s.skillCount," ",c("个æè½")]})]},s.id))})]})}export{c 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.