PageSourceSearch

https://scrollstop.com/assets/admin.index-B6Q7ONN3.js

js scrollstop.com collected 2026-10-04 00:20:04 UTC 1,990 bytes, 1 lines download raw bytes

1import{j as s,L as c,s as i}from"./index-CGBybkJ3.js";import{u as l}from"./useQuery-aZU665Zd.js";import{F as d}from"./file-text-DkD5Y_V6.js";import{N as m}from"./newspaper-vKIcsLWj.js";import{P as n}from"./plus-C0eHIB73.js";function h(){const{data:e}=l({queryKey:["admin_counts"],queryFn:async()=>{const[t,a]=await Promise.all([i.from("case_studies").select("id",{count:"exact",head:!0}),i.from("blog_posts").select("id",{count:"exact",head:!0})]);return{caseStudies:t.count??0,blogPosts:a.count??0}}});return s.jsxs("div",{className:"p-12",children:[s.jsx("h1",{className:"text-5xl font-black tracking-tighter mb-2",children:"Dashboard"}),s.jsx("p",{className:"text-white/40 mb-12",children:"Manage your case studies and blog posts."}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-12",children:[s.jsx(r,{title:"Case Studies",count:e?.caseStudies??0,to:"/admin/case-studies",icon:d}),s.jsx(r,{title:"Blog Posts",count:e?.blogPosts??0,to:"/admin/blog",icon:m})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsxs(c,{to:"/admin/case-studies/$id",params:{id:"new"},className:"inline-flex items-center gap-2 bg-accent-cyan text-brand-black font-black px-6 py-3 rounded-pill text-sm uppercase tracking-widest",children:[s.jsx(n,{className:"w-4 h-4"})," New Case Study"]}),s.jsxs(c,{to:"/admin/blog/$id",params:{id:"new"},className:"inline-flex items-center gap-2 bg-accent-light-purple text-white font-black px-6 py-3 rounded-pill text-sm uppercase tracking-widest",children:[s.jsx(n,{className:"w-4 h-4"})," New Blog Post"]})]})]})}function r({title:e,count:t,to:a,icon:o}){return s.jsxs(c,{to:a,className:"glass rounded-card p-8 border border-white/10 hover:border-accent-cyan/30 transition-colors block",children:[s.jsx(o,{className:"w-8 h-8 text-accent-cyan mb-6"}),s.jsx("p",{className:"text-6xl font-black tracking-tighter mb-2",children:t}),s.jsx("p",{className:"text-white/40 font-bold uppercase tracking-widest text-xs",children:e})]})}export{h as component};

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.