import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";const n={path:`/article/:type?`,categories:[`programming`],example:`/zaozao/article/quality`,parameters:{type:`文章分类`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.zaozao.run/article/:type`],target:`/article/:type`}],name:`文章`,maintainers:[`shaomingbo`],handler:r,description:`| 精品推荐  | 技术干货 | 职场成长 | 社区动态  | 组件物料 | 行业动态 |
| --------- | -------- | -------- | --------- | -------- | -------- |
| recommend | quality  | growth   | community | material | industry |`};async function r(n){let{type:r=`recommend`}=n.req.param(),i=await t({method:`put`,url:`https://e.zaozao.run/article/page/${r}`,headers:{Referer:`https://www.zaozao.run/`},body:JSON.stringify({pageNo:1,pageSize:100})}),{status:a,statusMessage:o}=i;if(a!==200)throw Error(o);let{data:s}=i.data;return{title:`前端早早聊 - 文章`,link:`https://www.zaozao.run/article/${r}`,description:`前端早早聊 - 文章`,item:s.map(t=>({title:t.title,link:t.url,author:t.recommenderName,pubDate:e(t.updateAt)}))}}export{n as route};