1 line
1.2 KiB
JavaScript
1 line
1.2 KiB
JavaScript
import{Ca as e,Ea as t,c as n,hn as r,rt as i,s as a,t as o}from"./index-DThTpSPU.js";import{t as s}from"./XinTable-D_6_7i3V.js";e();var c=t(r(),1),l=t(o(),1),u=a(),{Title:d,Text:f}=i;c.default.extend(l.default);var p=()=>{let{t:e}=n(),t={api:`/forum/post-like`,columns:[{title:e(`forum.post-like.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:e(`forum.post-like.post_id`),dataIndex:`post_id`,valueType:`text`,align:`center`},{title:e(`forum.post-like.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`forum.post-like.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.post-like`,createShow:!1,editShow:!1,formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:500},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(`div`,{className:`mb-5`,children:[(0,u.jsx)(d,{level:3,children:e(`forum.post-like.page.title`)}),(0,u.jsx)(f,{type:`secondary`,children:e(`forum.post-like.page.description`)})]}),(0,u.jsx)(s,{...t})]})};export{p as default}; |