PageSourceSearch

https://blogfap-production.up.railway.app/build/assets/Show-BkeFe2h2.js

js blogfap-production.up.railway.app collected 2026-10-03 12:11:48 UTC 2,803 bytes, 1 lines download raw bytes

1import{_ as g}from"./AppLayout-BBE6ZWWx.js";import{_}from"./Modal-Mvhy32MN.js";import{d as f,T as x,o as l,c as w,w as o,a as t,t as a,e as c,F as v,h as b,f as y,b as k,g as d}from"./app-BXvjiwzs.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const C={class:"flex justify-between"},E=t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"}," Post ",-1),D={class:"flex gap-4"},P=["href"],T=t("span",null,[t("img",{src:"https://blog-fap.s3.eu-west-3.amazonaws.com/edit-icon.svg",alt:"edit icon",width:"16px"})],-1),B=t("span",null,"Editar",-1),F=[T,B],L=t("span",null,[t("img",{src:"https://blog-fap.s3.eu-west-3.amazonaws.com/delete-icon.svg",alt:"delete icon",width:"16px"})],-1),N=t("span",null,"Eliminar",-1),S=[L,N],V={class:"container mx-auto py-7 max-w-5xl px-6"},$={class:"tiptap-h1"},z={class:"tiptap-p"},M={class:"tiptap-date"},j=["src"],H=["innerHTML"],q=t("div",{class:"w-16 mt-8"},[t("img",{src:"https://blog-fap.s3.eu-west-3.amazonaws.com/mundoPost.webp",alt:"mundo",width:"100%"})],-1),A={class:"tiptap-p"},O={key:0,class:"mt-4"},Y={class:"flex gap-2"},G=t("h3",{class:"text-lg"},"Tags:",-1),I={class:"flex gap-2 flex-wrap"},U={__name:"Show",props:{post:Object},setup(e){const r=e,s=f(!1),p=x({});function m(){s.value=!0}function u(){p.delete(route("posts.destroy",r.post.id),{onSuccess:()=>{s.value=!1}})}return(h,n)=>(l(),w(g,{title:"Posts"},{header:o(()=>[t("div",C,[E,t("div",D,[t("a",{href:h.route("posts.edit",e.post.id),class:"flex items-center gap-1 cursor-pointer text-green-600"},F,8,P),t("a",{onClick:m,class:"flex items-center gap-1 cursor-pointer text-red-600"},S)])])]),default:o(()=>[t("div",V,[t("div",null,[t("h1",$,a(e.post.title),1),t("p",z,a(e.post.summary),1),t("p",M,a(new Date(e.post.publish_date).toLocaleDateString("es-Es",{day:"numeric",month:"long",year:"numeric"})),1),t("img",{class:"w-full h-auto rounded-xl",src:e.post.image_post_url,alt:"imagen del post"},null,8,j),t("div",{innerHTML:e.post.post_html,class:"my-3 tiptap"},null,8,H),q,t("p",A,"© "+a(new Date(e.post.publish_date).getFullYear())+" Formación Activa Profesional",1)]),e.post.tags&&e.post.tags.length?(l(),c("div",O,[t("div",Y,[G,t("div",I,[(l(!0),c(v,null,b(e.post.tags,i=>(l(),c("span",{key:i.id,class:"bg-indigo-500 text-white text-sm font-semibold py-1 px-3 rounded"},a(i.name),1))),128))])])])):y("",!0)]),k(_,{show:s.value,onClose:n[1]||(n[1]=i=>s.value=!1)},{title:o(()=>[d("Confirmar eliminación")]),content:o(()=>[d(" ¿Estás seguro de que deseas eliminar este post? Esta acción no se puede deshacer. ")]),footer:o(()=>[t("button",{onClick:n[0]||(n[0]=i=>s.value=!1),class:"px-4 py-2 bg-gray-300 rounded-lg"},"Cancelar"),t("button",{onClick:u,class:"px-4 py-2 bg-red-500 text-white rounded-lg ms-2"},"Eliminar")]),_:1},8,["show"])]),_:1}))}};export{U 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.