Files
xin-school/public/assets/post-favorite-C9pjKKCG.js
T
2026-06-17 13:08:53 +08:00

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-favorite`,columns:[{title:e(`forum.post-favorite.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:e(`forum.post-favorite.post_id`),dataIndex:`post_id`,valueType:`text`,align:`center`},{title:e(`forum.post-favorite.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:e(`forum.post-favorite.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,c.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.post-favorite`,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-favorite.page.title`)}),(0,u.jsx)(f,{type:`secondary`,children:e(`forum.post-favorite.page.description`)})]}),(0,u.jsx)(s,{...t})]})};export{p as default};