1import{C as x,bk as m,r as c,n as e,B as o,bl as a,ax as u,aB as g,af as p,_,ao as f,z as n}from"./qiiO-fSN.js";import{_ as h}from"./BU2fMJUl.js";import{u as b}from"./C1YMW3Pt.js";import"./BJ2ClxiI.js";const y={class:"light min-h-screen bg-gray-100 text-ink"},w={class:"bg-brand-dark text-white shadow"},v={class:"max-w-7xl mx-auto px-4 h-14 flex items-center justify-between"},k={class:"flex items-center gap-4"},S={class:"flex items-center gap-4 text-sm"},B={class:"max-w-7xl mx-auto px-4 py-8"},C={class:"bg-gray-200 text-gray-600 text-center py-4 mt-12"},$=x({__name:"admin",async setup(P){let r,i;const{data:N}=([r,i]=m(()=>b("/api/admin/me","$Ml7gG7kpGJ")),r=await r,i(),r);async function l(){await $fetch("/api/admin/logout",{method:"POST"}),p("/admin/login")}return(d,t)=>{const s=_;return f(),c("div",y,[e("header",w,[e("div",v,[e("div",k,[o(s,{to:"/",class:"flex items-center"},{default:a(()=>[...t[0]||(t[0]=[e("img",{src:h,alt:"Pixcontests",class:"h-7 brightness-0 invert"},null,-1)])]),_:1}),t[1]||(t[1]=e("span",{class:"text-gray-400 text-lg"},"|",-1)),t[2]||(t[2]=e("span",{class:"text-lg font-medium text-gray-300"},"Pixcontests Admin Panel",-1))]),e("nav",S,[o(s,{to:"/admin",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[3]||(t[3]=[n("Dashboard",-1)])]),_:1}),o(s,{to:"/admin/sources",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[4]||(t[4]=[n("Sources",-1)])]),_:1}),o(s,{to:"/admin/resources",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[5]||(t[5]=[n("Resources",-1)])]),_:1}),o(s,{to:"/admin/subscribers",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[6]||(t[6]=[n("Subscribers",-1)])]),_:1}),o(s,{to:"/",target:"_blank",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[7]||(t[7]=[n("View Site",-1)])]),_:1}),e("button",{class:"bg-brand-red text-white px-3 py-1.5 rounded-lg text-xs font-medium hover:bg-red-700 transition-colors",onClick:l}," Logout ")])])]),e("main",B,[u(d.$slots,"default")]),e("footer",C," © "+g(new Date().getFullYear())+" Pixcontests. All rights reserved. ",1)])}}});export{$ 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.