前端打包

This commit is contained in:
liu
2026-06-17 13:08:53 +08:00
parent 94dc78cd9c
commit 9eed7c87f6
132 changed files with 777 additions and 646 deletions
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./tag-Bn-IyYw0.js";import{Ca as t,Ea as n,c as r,hn as i,rt as a,s as o,t as s}from"./index-DThTpSPU.js";import{t as c}from"./XinTable-D_6_7i3V.js";t();var l=n(i(),1),u=n(s(),1),d=o(),{Title:f,Text:p}=a;l.default.extend(u.default);var m=()=>{let{t}=r(),n={api:`/forum/post`,columns:[{title:t(`forum.post.id`),dataIndex:`id`,hideInForm:!0,sorter:!0,align:`center`,width:80},{title:t(`forum.post.title`),dataIndex:`title`,valueType:`text`,align:`center`,required:!0,rules:[{required:!0,message:t(`forum.post.title.required`)}]},{title:t(`forum.post.user_id`),dataIndex:`user_id`,valueType:`text`,align:`center`,required:!0,hideInSearch:!0},{title:t(`forum.post.category_id`),dataIndex:`category_id`,valueType:`text`,align:`center`,hideInSearch:!0},{title:t(`forum.post.content`),dataIndex:`content`,valueType:`text`,hideInTable:!0,hideInSearch:!0,required:!0,rules:[{required:!0,message:t(`forum.post.content.required`)}]},{title:t(`forum.post.view_count`),dataIndex:`view_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.comment_count`),dataIndex:`comment_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.like_count`),dataIndex:`like_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.favorite_count`),dataIndex:`favorite_count`,hideInForm:!0,hideInSearch:!0,align:`center`},{title:t(`forum.post.is_hot`),dataIndex:`is_hot`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.post.is_hot.0`)},{value:1,label:t(`forum.post.is_hot.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`red`,children:t(`forum.post.is_hot.1`)}):(0,d.jsx)(e,{children:t(`forum.post.is_hot.0`)}),filters:[{text:t(`forum.post.is_hot.0`),value:0},{text:t(`forum.post.is_hot.1`),value:1}],align:`center`},{title:t(`forum.post.is_top`),dataIndex:`is_top`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.post.is_top.0`)},{value:1,label:t(`forum.post.is_top.1`)}]},render:n=>n===1?(0,d.jsx)(e,{color:`blue`,children:t(`forum.post.is_top.1`)}):(0,d.jsx)(e,{children:t(`forum.post.is_top.0`)}),filters:[{text:t(`forum.post.is_top.0`),value:0},{text:t(`forum.post.is_top.1`),value:1}],align:`center`},{title:t(`forum.post.status`),dataIndex:`status`,valueType:`radioButton`,fieldProps:{options:[{value:0,label:t(`forum.post.status.0`)},{value:1,label:t(`forum.post.status.1`)},{value:2,label:t(`forum.post.status.2`)}]},render:n=>{let r={0:`default`,1:`success`,2:`warning`},i={0:t(`forum.post.status.0`),1:t(`forum.post.status.1`),2:t(`forum.post.status.2`)};return(0,d.jsx)(e,{color:r[n]||`default`,children:i[n]||`-`})},filters:[{text:t(`forum.post.status.0`),value:0},{text:t(`forum.post.status.1`),value:1},{text:t(`forum.post.status.2`),value:2}],align:`center`},{title:t(`forum.post.created_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`created_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`},{title:t(`forum.post.updated_at`),hideInForm:!0,hideInSearch:!0,dataIndex:`updated_at`,align:`center`,render:e=>e?(0,l.default)(e).fromNow():`-`}],rowKey:`id`,accessName:`forum.post`,scroll:{x:1600},formProps:{grid:!0,colProps:{span:12},rowProps:{gutter:[30,0]},layout:`vertical`},modalProps:{width:800},cardProps:{variant:`borderless`},pagination:{size:`small`,style:{marginBottom:0}}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`mb-5`,children:[(0,d.jsx)(f,{level:3,children:t(`forum.post.page.title`)}),(0,d.jsx)(p,{type:`secondary`,children:t(`forum.post.page.description`)})]}),(0,d.jsx)(c,{...n})]})};export{m as default};