PageSourceSearch

https://devswarm.ai/_astro/index.astro_astro_type_script_index_0_lang.CJvDUIIK.js

js devswarm.ai collected 2026-10-04 02:08:19 UTC 2,512 bytes, 1 lines download raw bytes

1import{g as v}from"./marketing.config.BB5w-mSK.js";function h(e){if(!e)return null;try{const t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"?t.href:null}catch{return null}}function p(e){if(e.projectName)return e.projectName;if(e.name)return e.name;const t=h(e.projectUrl);if(t){const s=new URL(t),i=s.hostname.replace(/^www\./,""),r=s.pathname.replace(/\/+$/,"");return r&&r!=="/"?`${i}${r}`:i}return"Community project"}function f(e){return h(e.coverImageUrl)??(e.imageUrls??[])[0]??null}function E(){const e=window.__dsProjectsFeed;return e||fetch(`${v()}/v1/projects`).then(t=>{if(!t.ok)throw new Error(`Projects feed responded with ${t.status}`);return t.json()})}const w=5,b=4200;function y(e){const t=e.filter(r=>f(r)!==null);if(t.length===0)return[];const s=t.filter(r=>r.featured).sort((r,l)=>(r.featuredOrder??Number.MAX_SAFE_INTEGER)-(l.featuredOrder??Number.MAX_SAFE_INTEGER));return(s.length>0?s:[...t].sort((r,l)=>new Date(l.submittedAt??0).getTime()-new Date(r.submittedAt??0).getTime())).slice(0,w)}function A(e){return e.featured&&e.name?`Featured · Built by ${e.name}`:e.name?`Built by ${e.name}`:"Featured Project"}async function _(){const e=document.getElementById("hive-card"),t=document.getElementById("hive-card-screen"),s=document.getElementById("hive-card-name"),i=document.getElementById("hive-card-badge");if(!(!e||!t||!s||!i))try{let r=function(o){d=(o+c.length)%c.length,g.forEach((a,n)=>a.classList.toggle("is-active",n===d)),m.forEach((a,n)=>a.classList.toggle("is-active",n===d)),s.textContent=p(c[d]),i.textContent=A(c[d])};const l=await E(),c=y(l.projects??[]);if(c.length===0)return;const g=c.map((o,a)=>{const n=document.createElement("img");return n.className=a===0?"bwd-hive-cover is-active":"bwd-hive-cover",n.src=f(o),n.alt="",n.loading=a===0?"eager":"lazy",t.appendChild(n),n});e.classList.add("has-project");let m=[];if(c.length>1){const o=document.createElement("div");o.className="bwd-hive-dots",o.setAttribute("aria-hidden","true"),m=c.map((a,n)=>{const u=document.createElement("span");return u.className=n===0?"bwd-hive-dot-ind is-active":"bwd-hive-dot-ind",o.appendChild(u),u}),t.appendChild(o)}let d=0;if(r(0),c.length>1&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let o=null;const a=()=>{o===null&&(o=setInterval(()=>r(d+1),b))},n=()=>{o!==null&&(clearInterval(o),o=null)};e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",a),e.addEventListener("focusin",n),e.addEventListener("focusout",a),a()}}catch{}}_();

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.