1import{o as m,a4 as x,G as c,j as g,g as e,n as o,a5 as a,_ as u,m as r,M as p,O as _,x as f}from"./BTFYsnlF.js";import{_ as h}from"./r61ygki4.js";import{u as y}from"./BVBFAtU0.js";const w={class:"min-h-screen bg-gray-100"},b={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"},P={class:"flex items-center gap-4 text-sm"},S={class:"max-w-7xl mx-auto px-4 py-8"},C={class:"bg-gray-200 text-gray-600 text-center py-4 mt-12"},G=m({__name:"admin",async setup(N){let n,i;const{data:V}=([n,i]=x(()=>y("/api/admin/me","$Ml7gG7kpGJ")),n=await n,i(),n);async function l(){await $fetch("/api/admin/logout",{method:"POST"}),f("/admin/login")}return(d,t)=>{const s=u;return c(),g("div",w,[e("header",b,[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",P,[o(s,{to:"/admin",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[3]||(t[3]=[r("Dashboard",-1)])]),_:1}),o(s,{to:"/admin/sources",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[4]||(t[4]=[r("Sources",-1)])]),_:1}),o(s,{to:"/admin/resources",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[5]||(t[5]=[r("Resources",-1)])]),_:1}),o(s,{to:"/",target:"_blank",class:"text-gray-300 hover:text-white transition-colors"},{default:a(()=>[...t[6]||(t[6]=[r("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",S,[p(d.$slots,"default")]),e("footer",C," © "+_(new Date().getFullYear())+" Pixcontests. All rights reserved. ",1)])}}});export{G 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.