1
0
forked from bot/app
LiteyukiBot/assets/store_resource.md.BxrXK7QM.lean.js

2 lines
2.7 KiB
JavaScript
Raw Normal View History

import{d as u,o as i,c as n,j as e,t as l,p as m,l as p,_ as f,h as v,s as _,a7 as w,a8 as g,k as h,a9 as x,F as b,E as C,b as I,I as S}from"./chunks/framework.BcfwU5BI.js";const $=t=>(m("data-v-debfd7f7"),t=t(),p(),t),k={class:"item-card"},L={class:"item-name"},j={class:"item-description"},B={class:"item-bar"},R=["href"],y=$(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[e("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)),D=[y],N=["href"],O=["src"],V={class:"author-name"},z=u({__name:"ResItemCard",props:{item:Object},setup(t){const a=t;return(r,o)=>(i(),n("div",k,[e("div",L,l(a.item.name),1),e("div",j,l(a.item.description),1),e("div",B,[e("a",{href:a.item.link,class:""},D,8,R),e("div",null,[e("a",{class:"author-info",href:`https://github.com/${a.item.author}`},[e("img",{class:"icon avatar",src:`https://github.com/${a.item.author}.png?size=80`,alt:""},null,8,O),e("div",V,l(a.item.author),1)],8,N)])])]))}}),E=f(z,[["__scopeId","data-v-debfd7f7"]]),F=t=>(m("data-v-f069f440"),t=t(),p(),t),P={class:"market"},U=F(()=>e("h1",null,"主题/资源商店",-1)),J={class:"search-box-div"},M={class:"items"},T=u({__name:"ResStore",setup(t){let a=v(()=>o.value?r.value.filter(s=>s.name.toLowerCase().includes(o.value.toLowerCase())||s.description.toLowerCase().includes(o.value.toLowerCase())||s.author.toLowerCase().includes(o.value.toLowerCase())).reverse():r.value.reverse()),r=_([]),o=_("");return fetch("/resources.json").then(s=>s.json()).then(s=>{r.value=s}).catch(s=>console.error(s)),(s,d)=>(i(),n("div",P,[U,e("div",J,[w(e("input",{class:"item-search-box",type:"text",placeholder:"搜索资源","onUpdate:modelValue":d[0]||(d[0]=c=>x(o)?o.value=c:o=c)},null,512),[[g,h(o)]])]),e("div",M,[(i(!0),n(b,null,C(h(a),c=>(i(),I(E,{key:c.id,item:c},null,8,["item"]))),128))])]))}}),q=f(T,[["__scopeId","data-v-f069f440"]]),H=JSON.parse('{"title":"资源商店","description":"","frontmatter":{"title":"资源商店","order":1},"headers":[],"relativePath":"store/resource.md","filePath":"zh/store/resource.md","lastUpdated":1725112258000}'),A={name:"store/resource.md"},K=Object.assign(A,{setup(t){return(a,r)=>(i(),n("div",null,[S(q)]))}});export{H as __pageData,K as default};