PageSourceSearch

https://pophone.eu/_nuxt/D68qSETe.js

js pophone.eu collected 2026-10-07 02:57:54 UTC 3,668 bytes, 1 lines download raw bytes

1import{L as x,c as o,a as s,b as t,h as r,f,F as m,r as h,p as _,i as y,m as v,$ as w,d as l,_ as k,l as a,t as j}from"./BiSZ_CVW.js";const z={class:"w-full items-center flex justify-center p-4 bg-gray-100"},C={class:"flex flex-row min-h-[100vh] lg:w-[70%] w-full justify-center flex-grow"},B={class:"mr-4 p-6 bg-white w-1/4 hidden rounded-md shadow-lg min-w-[20ch] max-w-[30ch] lg:flex flex-col"},L={class:"p-8 bg-white rounded-md shadow-md w-full min-h-[90vh] lg:w-3/4"},N={key:0},H={class:"flex justify-between items-center mb-8"},$={key:0},E={class:"flex justify-between items-start"},T={class:"text-xl font-bold text-gray-800"},V={class:"flex gap-6 mt-4 pt-4 border-t border-gray-100"},F=["onClick"],G={key:1,class:"flex flex-col items-center justify-center py-20 text-gray-400"},S={key:1,class:"flex justify-center py-20"},I={__name:"index",setup(A){x({link:[{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,[email protected],200..800&display=swap"}]});const d=v(null),u=async()=>{try{const{data:n}=await _("/api/blogs/get?limit=100","$2XwPYR6h1A");d.value=n.value.blogs||[]}catch(n){console.error("Hiba történt a letöltéskor:",n)}},g=async n=>{if(confirm("Biztosan törölni szeretnéd ezt a bejegyzést?"))try{(await fetch("/api/blogs/delete",{method:"DELETE",body:JSON.stringify({id:n}),headers:{"Content-Type":"application/json"}})).ok?await u():console.error("Hiba történt a törléskor")}catch(e){console.error("Hiba történt:",e)}};return u(),(n,e)=>{const p=w("Gradient"),b=k,i=y;return l(),o(m,null,[s(p),s(b),t("div",z,[t("div",C,[t("div",B,[s(i,{to:"/",class:"text-xl font-semibold"},{default:r(()=>[...e[0]||(e[0]=[t("div",{class:"flex items-center justify-start gap-2 mb-8"},[t("svg",{width:"18px",height:"18px",viewBox:"0 0 24 24",fill:"none"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.7071 4.29289C16.0976 4.68342 16.0976 5.31658 15.7071 5.70711L9.41421 12L15.7071 18.2929C16.0976 18.6834 16.0976 19.3166 15.7071 19.7071C15.3166 20.0976 14.6834 20.0976 14.2929 19.7071L7.29289 12.7071C7.10536 12.5196 7 12.2652 7 12C7 11.7348 7.10536 11.4804 7.29289 11.2929L14.2929 4.29289C14.6834 3.90237 15.3166 3.90237 15.7071 4.29289Z",fill:"#000000"})]),t("p",null,"Vissza")],-1)])]),_:1}),s(i,{to:"/admin/blogs",class:"font-bold mb-2 text-blue-600"},{default:r(()=>[...e[1]||(e[1]=[a(" Blogok ",-1)])]),_:1}),s(i,{to:"/admin/infos",class:"font-bold mb-2 hover:text-blue-500"},{default:r(()=>[...e[2]||(e[2]=[a(" Infók ",-1)])]),_:1}),s(i,{to:"/admin/ratings",class:"font-bold hover:text-blue-500"},{default:r(()=>[...e[3]||(e[3]=[a(" Értékelések ",-1)])]),_:1})]),t("div",L,[f(d)?(l(),o("div",N,[t("div",H,[s(i,{to:"/admin/blogs/add",class:"bg-green-500 text-white px-4 py-2 rounded-md hover:bg-green-600 transition font-semibold"},{default:r(()=>[...e[4]||(e[4]=[a(" + Új blog hozzáadása ",-1)])]),_:1})]),f(d).length>0?(l(),o("div",$,[(l(!0),o(m,null,h(f(d),c=>(l(),o("div",{key:c.id,class:"mt-4 p-4 border rounded-lg hover:border-blue-300 transition-colors bg-gray-50/50"},[t("div",E,[t("div",null,[t("h3",T,j(c.title),1)])]),t("div",V,[s(i,{to:`/admin/blogs/edit/${c.slug}`,class:"text-blue-600 font-medium hover:text-blue-800 flex items-center gap-1"},{default:r(()=>[...e[5]||(e[5]=[a(" Szerkesztés ",-1)])]),_:1},8,["to"]),t("button",{onClick:D=>g(c.id),class:"text-red-500 font-medium hover:text-red-700 transition"}," Törlés ",8,F)])]))),128))])):(l(),o("div",G,[...e[6]||(e[6]=[t("p",{class:"text-lg"},"Nincsenek blogbejegyzések.",-1)])]))])):(l(),o("div",S,[...e[7]||(e[7]=[t("p",{class:"animate-pulse"},"Adatok betöltése...",-1)])]))])])])],64)}}};export{I 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.