PageSourceSearch

https://refore.ai/_nuxt/abvaFT2S.js

js refore.ai collected 2026-10-01 15:51:10 UTC 5,365 bytes, 1 lines download raw bytes

1import{_ as E}from"./CIz69F23.js";import{_ as H}from"./DJfNOY9P.js";import{_ as I,a as L,V as Q,b as S}from"./D7NAJnpf.js";import{_ as U}from"./DNv9H3cT.js";import{_ as G}from"./DLO3B3SF.js";import{e as J,f as K,g as p,x as P,ey as O,c as a,o,a as n,b as l,h as c,w as d,d as u,t as i,k as e,F as x,r as y,n as W,P as X,i as C}from"./DBJrdZQJ.js";import{_ as v}from"./BK3GBScb.js";import{_ as Y}from"./DJtKvCam.js";import{m as Z,p as ee,n as te,o as oe,q as se}from"./Cb6GGe3G.js";import"./BJqOfcQK.js";import"./BEHD0UYf.js";import"./BUbjF71h.js";import"./P6HuDbjz.js";import"./C7UZQNV0.js";import"./bz4G7JU5.js";import"./ChOSPpzn.js";import"./CX3PoM_7.js";import"./CNCuaikf.js";import"./o8Z_Uzia.js";import"./aLf1pliQ.js";import"./KbCDErWr.js";import"./CNX8lxeR.js";import"./2Xgl9N75.js";import"./CG1xCkvl.js";import"./-JZJ5FR7.js";import"./DK9n5ROf.js";import"./Df-g06at.js";import"./DTxRTUi6.js";import"./DlAUqK2U.js";import"./C8v8X9Bo.js";import"./Bf5a34rL.js";import"./BqagYvsA.js";import"./BNtdpLAv.js";const re={class:"bg-background min-h-screen"},ae={class:"border-b"},ne={class:"mx-auto flex h-14 items-center gap-6 px-6"},ie={key:0,class:"mx-auto max-w-screen-xl"},le={class:"flex items-center gap-4"},ce={class:"text-lg font-semibold"},me={key:0},pe={class:"mx-auto px-6 py-8"},de={key:0,class:"mx-auto max-w-[1380px] space-y-4"},ue={key:0,class:"flex items-center gap-3"},_e={class:"flex items-center gap-2 text-sm"},fe={class:"font-medium"},he={key:0,class:"text-muted-foreground"},ve={key:1,class:""},ge={class:"flex flex-wrap gap-3"},xe=["onClick"],ye={class:"bg-muted flex w-42 flex-col text-xs"},ke=["src","alt"],we={class:"mt-1 truncate px-1 text-center text-xs"},be={key:2,class:"my-4 flex flex-wrap gap-2"},je={key:3,class:"mt-12"},$e={class:"mb-4 flex items-center justify-between"},Pe={class:"text-lg font-semibold"},Ce={class:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4"},Ne={key:1,class:"flex min-h-[400px] items-center justify-center"},mt=J({__name:"[id]",setup(Ve){const N=K(),_=p(()=>N.params.id),V=Z(_);ee(V);const{project:s}=te(_),k=P(1),m=P(),{files:w,virtualFile:B}=oe(_,m,k),b=p(()=>s.value?.createdAt?O(new Date(s.value.createdAt)):null),f=p(()=>w.value?.length?w.value:[]),{list:j}=se({query:()=>({creator:"all"})}),$=p(()=>j.value?j.value.filter(t=>t.id!==_.value).slice(0,4):[]),T=p(()=>{const t=s.value?.creator;return t?`https://api.dicebear.com/8.x/identicon/svg?seed=${t.nickName||t.id}`:""});return(t,h)=>{const D=E,F=H,R=I,A=L,M=S,q=U,z=G;return o(),a("div",re,[n("header",ae,[n("div",ne,[l(e(v),{to:"/template",class:"text-muted-foreground hover:text-foreground flex items-center gap-2 text-sm"},{default:d(()=>[h[0]||(h[0]=n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("path",{d:"m15 18-6-6 6-6"})],-1)),u(" "+i(t.$t("template.back-to-template")),1)]),_:1}),e(s)?(o(),a("div",ie,[n("div",le,[n("h1",ce,[u(i(e(s).name||t.$t("project.no-title"))+" ",1),e(f).length>1?(o(),a("span",me,"("+i(e(f).length)+" "+i(t.$t("template.pages"))+")",1)):c("",!0)]),l(D,{"project-id":e(s).id,version:1},null,8,["project-id"])])])):c("",!0)])]),n("main",pe,[e(s)?(o(),a("div",de,[e(s).creator?(o(),a("div",ue,[l(e(Y),{src:e(s).creator.avatar,fallback:e(T),size:32},null,8,["src","fallback"]),n("div",_e,[n("span",fe,i(e(s).creator.nickName||t.$t("template.anonymous")),1),e(b)?(o(),a("span",he,i(t.$t("template.shared-at"))+" "+i(e(b)),1)):c("",!0)])])):c("",!0),e(f).length>1?(o(),a("div",ve,[n("div",ge,[(o(!0),a(x,null,y(e(f),(r,g)=>(o(),a("button",{key:r.id,type:"button",class:W(["group relative overflow-hidden rounded-lg border-2 transition-all",[e(m)===r.filename||!e(m)&&g===0?"border-primary ring-primary/20 ring-2":"border-border hover:border-primary/50"]]),onClick:Be=>m.value=r.filename},[n("div",ye,[r.image?(o(),a("img",{key:0,src:e(X)(r.image),alt:r.displayName||t.$t("project.page",{index:g+1}),class:"relative h-28 w-full object-contain"},null,8,ke)):c("",!0),n("span",we,i(r.displayName||t.$t("project.page",{index:g+1})),1)])],10,xe))),128))])])):c("",!0),l(M,{class:"w-full","view-mode":("ViewMode"in t?t.ViewMode:e(Q)).Preview},{default:d(()=>[l(R,null,{right:d(()=>[l(F,{project:e(s),version:e(k)},null,8,["project","version"])]),_:1}),l(A,{class:"aspect-video",project:e(s),filename:e(m),"current-file":e(B)},null,8,["project","filename","current-file"])]),_:1},8,["view-mode"]),e(s).tags&&e(s).tags.length>0?(o(),a("div",be,[h[1]||(h[1]=u(" Tags: ",-1)),(o(!0),a(x,null,y(e(s).tags,r=>(o(),C(e(v),{key:r.id,to:`/template?tags=${r.id}`,target:"_blank",class:"bg-muted hover:bg-muted/80 rounded-full px-3 py-1 text-sm transition-colors"},{default:d(()=>[u(i(r.name),1)]),_:2},1032,["to"]))),128))])):c("",!0),e($).length>0?(o(),a("div",je,[n("div",$e,[n("h2",Pe,i(t.$t("template.related-templates")),1),l(e(v),{to:"/template",class:"text-primary hover:text-primary/80 text-sm"},{default:d(()=>[u(i(t.$t("template.more-templates")),1)]),_:1})]),n("div",Ce,[(o(!0),a(x,null,y(e($),r=>(o(),C(q,{key:r.id,class:"h-[180px] w-full transition-transform hover:scale-[1.02]",project:r,to:`/template/${r.id}`,as:e(v)},null,8,["project","to","as"]))),128))])])):c("",!0)])):(o(),a("div",Ne,[l(z,{class:"h-[400px] w-full max-w-3xl"}
1)]))])])}}});export{mt 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.