PageSourceSearch

https://1ms.run/_nuxt/C5t78AOH.js

js 1ms.run collected 2026-09-25 19:59:44 UTC 3,438 bytes, 1 lines download raw bytes

1import{d as B,a as V,j as l,A as T,o as h,u as E,bs as S,c as d,e,f as c,w as x,t as r,k as s,B as _,l as b,C as I,G as U,b as m,h as j,r as z,_ as D}from"./lREhHf8f.js";import{a as M,g as P}from"./BMTLuVjT.js";import{t as k}from"./d4zhCqXG.js";import{b as R}from"./Blf2fuRb.js";import{u as G}from"./D6JqSMHg.js";import"./BCIJnrl0.js";const H={class:"external-detail"},L={class:"breadcrumb"},O={class:"hero"},q=["src","alt"],F={class:"hero-copy"},J={class:"registry-label"},K={key:0,class:"creator-badge"},Q={class:"meta"},W={class:"pull-panel"},X={class:"description"},Y={key:0,class:"tag-note"},Z=B({__name:"[...repository]",async setup(ee){let i,v;const p=V(),n=l(()=>decodeURIComponent(String(p.params.registry||""))),a=l(()=>Array.isArray(p.params.repository)?p.params.repository.join("/"):String(p.params.repository||"")),{$publicApi:$}=R(),{data:y}=([i,v]=T(()=>G(`external-repo-${n.value}-${a.value}`,()=>$("/api/v1/registry/get_detail",{params:{registry:n.value,repositories:a.value}}))),i=await i,v(),i),o=l(()=>y.value?.data||{}),f=l(()=>`docker pull ${o.value.pull_domain||""}/${o.value.repository_name||a.value}`),u=z(!1);async function C(){try{await navigator.clipboard.writeText(f.value),k("pull_command_copied",{registry:n.value,repository:o.value.repository_name||a.value,reference:"latest",source:"external_repository_detail"}),u.value=!0,setTimeout(()=>{u.value=!1},1800)}catch{u.value=!1}}return h(()=>{y.value?.code===0&&(o.value.repository_name||a.value)&&k("repository_viewed",{registry:n.value,repository:o.value.repository_name||a.value,source:"external_repository_detail"})}),E({title:l(()=>`${a.value} 镜像加速 - ${n.value} | 毫秒镜像`),description:l(()=>`${o.value.description||a.value}。通过毫秒镜像从 ${n.value} 加速拉取。`)}),S({link:l(()=>[{rel:"canonical",href:`https://1ms.run/r/source/${n.value}/${a.value}`}])}),(te,t)=>{const w=I,g=j,A=U;return m(),d("div",H,[e("nav",L,[c(w,{to:"/"},{default:x(()=>[...t[1]||(t[1]=[_("首页",-1)])]),_:1}),t[2]||(t[2]=e("span",null,"/",-1)),e("span",null,r(s(n)),1),t[3]||(t[3]=e("span",null,"/",-1)),e("span",null,r(s(a)),1)]),e("section",O,[e("img",{src:s(o).logo_url||"/artifact_repository.png",alt:s(a),onError:t[0]||(t[0]=N=>N.target.src="/artifact_repository.png")},null,40,q),e("div",F,[e("span",J,r(s(n)),1),e("h1",null,r(s(o).repository_name||s(a)),1),s(o).creator_incentive?(m(),d("span",K,[c(g,{name:"workspace_premium",size:"14px"}),t[4]||(t[4]=_("创作者激励",-1))])):b("",!0),e("p",null,r(s(o).description||"该外部镜像已由创作者认领,更多元数据将在后续补充。"),1),e("div",Q,[e("span",null,r(s(M)(Number(s(o).pull_count||0),"CN"))+" 次拉取",1),t[5]||(t[5]=e("span",null,"·",-1)),e("span",null,r(s(P)(s(o).last_updated||"")||"目录已收录"),1)])])]),e("section",W,[e("div",null,[t[6]||(t[6]=e("span",null,"加速拉取命令",-1)),e("code",null,r(s(f)),1)]),c(A,{icon:"content_copy",onClick:C},{default:x(()=>[_(r(s(u)?"已复制":"复制命令"),1)]),_:1})]),e("section",X,[t[8]||(t[8]=e("span",null,"ABOUT",-1)),t[9]||(t[9]=e("h2",null,"镜像说明",-1)),e("p",null,r(s(o).full_description||s(o).description||"暂无更详细的镜像说明。"),1),s(o).has_tag_metadata?b("",!0):(m(),d("div",Y,[c(g,{name:"info",size:"17px"}),t[7]||(t[7]=_("该上游暂未同步标签元数据,因此不展示标签入口。",-1))]))])])}}}),ie=D(Z,[["__scopeId","data-v-6e978d82"]]);export{ie 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.