PageSourceSearch

https://www.chesapeakebay.net/cpresources/10f2ddd2/flickrGalleryPreview.DPQrBUQM.js

js chesapeakebay.net collected 2026-09-24 08:50:49 UTC 2,147 bytes, 2 lines download raw bytes

1import{_ as u}from"./_plugin-vue_export-helper.DlAUqK2U.js";import{M as h,y,z as k,C as l,L as n,F as c,Q as i,V as g,a0 as _,al as p,I as f,R as b,D as w,P as j,J as v,a6 as x}from"./runtime-dom.esm-bundler.CqpSJMCm.js";const L=["src"],$=["href"],C={__name:"flickrGalleryPreview",props:{count:{type:Number,default:8},method:{type:String,default:"flickr.photos.search"},minWidth:{type:String,default:"180px"},moreLink:{type:String},query:{type:Object}},setup(r){const s=r,o=h({photos:new Array(s.count)});y(()=>{m().then(t=>{console.log(t),t.status===200&&t.data.stat==="ok"?o.photos=t.data.photos.photo:o.photos=[]}).catch(t=>{console.log(t),o.photos=[]})});async function m(){const t=new URLSearchParams({method:s.method,elementsPerPage:s.count});for(const e in s.query)t.append(`query[${e}]`,s.query[e]);const a=await fetch(`/api/flickr.json?${t.toString()}`,{method:"GET",headers:{Accept:"application/json"},dataType:"json"});return console.log(a),a.json()}const d=k(()=>o.photos.length>0&&typeof o.photos[0]=="object"?"View more on Flickr":"View on Flickr");return(t,a)=>(n(),l("div",null,[c("div",{class:"flickr boxEntries",style:p({"--minItemWidth":r.minWidth})},[(n(!0),l(g,null,_(o.photos,e=>(n(),w(x(typeof e=="object"?"a":"div"),{class:v(["flickr__photoContainer",{"flickr__photoContainer--loading":typeof e>"u"}]),href:typeof e=="object"?`https://www.flickr.com/photos/${e.owner}/${e.id}`:null,target:typeof e=="object"?"_blank":null,title:typeof e=="object"?"View photo on Flickr":null},{default:j(()=>[typeof e=="object"?(n(),l("img",{key:0,src:`https://farm${e.farm}.staticflickr.com/${e.server}/${e.id}_${e.secret}_w.jpg`,class:"flickr__photo",alt:""},null,8,L)):i("",!0)]),_:2},1032,["class","href","target","title"]))),256))],4),r.moreLink?(n(),l("p",{key:0,style:p({"--mt":o.photos.length===0?0:null})},[c("a",{href:r.moreLink,class:"pageLink",target:"_blank"},[f(b(d.value),1),a[0]||(a[0]=c("span",{class:"appendedIcon"},[f("‍"),c("span",{class:"fa-solid fa-angle-right"})],-1))],8,$)],4)):i("",!0)]))}},V=u(C,[["__scopeId","data-v-c54bbfbf"]]);export{V as default};
2//# sourceMappingURL=flickrGalleryPreview.DPQrBUQM.js.map

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.