PageSourceSearch

https://stuartclark.netlify.app/_nuxt/DDWNpdsa.js

js stuartclark.netlify.app collected 2026-10-03 11:27:47 UTC 1,518 bytes, 1 lines download raw bytes

1import{J as l,f as o}from"./B_iy9tb8.js";function u(e){return{list:e.list.map(r=>({title:r.title,field_project_machine_name:r.field_project_machine_name,project_usage:r.project_usage,flag_project_star_user:r.flag_project_star_user}))}}const c=103796;function h(e){return Object.values(e).reduce((r,a)=>r+(typeof a=="number"?a:parseInt(String(a),10)||0),0)}function i(e){return e?Array.isArray(e)?e.length:Object.keys(e).length:0}function m(e){if(e.length===0)return[];const r=e.map(t=>({name:t.title,machine:t.field_project_machine_name,total:h(t.project_usage??{}),stars:i(t.flag_project_star_user)})).sort((t,s)=>s.total-t.total),a=r[0].total||1;return r.map(t=>({name:t.name,machine:t.machine,installs:t.total.toLocaleString(),percent:Math.round(t.total/a*100),sortKey:t.total,stars:t.stars>0?String(t.stars):void 0}))}function y(){const{data:e,refresh:r}=l(`https://www.drupal.org/api-d7/node.json?type=project_module&author=${c}&field_project_type=full&limit=20&page=0`,{transform:u},"$UBWbDxvwRQ"),{data:a,refresh:t}=l(`https://www.drupal.org/api-d7/node.json?type=project_module&author=${c}&field_project_type=full&limit=20&page=1`,{transform:u},"$gWiuZ58yON");function s(){r(),t()}const p=o(()=>{const n=[...e.value?.list??[],...a.value?.list??[]];return m(n)}),_=o(()=>(e.value?.list.length??0)+(a.value?.list.length??0)),f=o(()=>[...e.value?.list??[],...a.value?.list??[]].reduce((d,g)=>d+i(g.flag_project_star_user),0));return{modules:p,totalCount:_,totalDrupalStars:f,refreshLive:s}}export{h as s,y as u};

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.