PageSourceSearch

https://sheetsresume.com/build/assets/BlogPosts-VdtS7Y4-.js

js sheetsresume.com collected 2026-10-03 23:31:56 UTC 3,607 bytes, 1 lines download raw bytes

1import{j as e}from"./app-D8NIJotA.js";import{u as s,r as t,R as r,L as a,H as l}from"./vendor-D2vYb2c1.js";import{A as i}from"./AdminLayoutNew-D5dQoG2t.js";import{D as o}from"./DataTableServerSide-C9XivScG.js";import{S as d}from"./StatusIndicator-BEqMensG.js";import"./utils-Sv_UXJ4f.js";import"./ApplicationLogo-DIsDyKdA.js";import"./transition-BqWZqDQG.js";import"./DarkLightModeSwitcher-DT57fuz-.js";import"./DataContext-BNY6yXN8.js";import"./debounce-XN2srKCW.js";import"./TablePagination-C8GxYrws.js";import"./LoadingSpinner-BzEJ8RyJ.js";import"./index-BSmZISWm.js";import"./iconBase-BPnJAMji.js";function n(){const{auth:n}=s().props,[c,x]=t.useState(0),m=r.useMemo(()=>[{header:"Title",accessorKey:"title",cell:({row:s})=>e.jsxs("span",{className:"flex",children:[e.jsx(d,{status:0===s.original.retired?"active":"inactive"}),e.jsx("span",{className:"ml-2",children:s.original.title})]})},{header:"Status",accessorKey:"status",cell:({row:s})=>s.original.retired?e.jsx("span",{className:"px-2 py-1 rounded-full text-xs font-medium bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",children:"retired"}):e.jsx("span",{className:"px-2 py-1 rounded-full text-xs font-medium "+("published"===s.original.status?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200"),children:s.original.status})},{header:"Published",accessorKey:"published_at",cell:({row:s})=>{return e.jsx("span",{children:(t=s.original.published_at,t?new Date(t).toLocaleDateString():"Draft")});var t}},{header:"",id:"EditLinks",cell:({row:s})=>e.jsxs(e.Fragment,{children:[e.jsx(a,{className:"underline text-blue-500 dark:text-blue-400",href:`/blog/${s.original.slug}`,children:"View"})," ","|"," ",e.jsx(a,{className:"underline text-blue-500 dark:text-blue-400",href:route("admin.blog-posts.edit",[s.original.id]),children:"Edit"})," ","|"," ",e.jsx(a,{className:"underline text-blue-500 dark:text-blue-400",onClick:e=>{e.preventDefault(),confirm("Are you sure?")&&(location.href=route("admin.blog-posts.delete",[s.original.id]))},children:"Delete"})]}),size:100}],[]);return e.jsxs(i,{user:!(!n||!n.user)&&n.user,header:e.jsx("h2",{className:"font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight",children:"Blog Posts"}),children:[e.jsx(l,{title:"Blog Posts"}),e.jsx("div",{className:"py-12",children:e.jsx("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8",children:e.jsx("div",{className:"bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg",children:e.jsxs("div",{className:"p-6 bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700",children:[e.jsx("p",{className:"mb-3 text-gray-800 dark:text-gray-200",children:"This page displays and allows you to edit blog posts in our system."}),e.jsx(a,{href:route("admin.blog-posts.create"),children:e.jsx("button",{type:"button",className:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2",children:"New Blog Post"})}),e.jsx("div",{className:"flex flex-col lg:flex-row mt-10",children:e.jsxs("div",{className:"w-full",children:[e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"checkbox",checked:1===c,onChange:e=>{const s=e.target.checked;x(s?1:0)},className:"h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-800 dark:text-gray-200",children:"Show Retired"})]}),e.jsx(o,{columns:m,routeName:"admin.blog-posts.list",filters:{retired:c}})]})})]})})})})]})}export{n 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.