Files
Mycontent/.next/server/chunks/ssr/_652ad759._.js
2025-12-29 14:01:37 +08:00

3 lines
5.0 KiB
JavaScript

module.exports=[5522,a=>{"use strict";var b=a.i(87924),c=a.i(97895);function d({className:a,type:d,...e}){return(0,b.jsx)("input",{type:d,"data-slot":"input",className:(0,c.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...e})}a.s(["Input",()=>d])},3130,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(97895);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...c}));e.displayName="Card";let f=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex flex-col space-y-1.5 p-6",a),...c}));f.displayName="CardHeader";let g=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("h3",{ref:e,className:(0,d.cn)("font-semibold leading-none tracking-tight",a),...c}));g.displayName="CardTitle";let h=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("p",{ref:e,className:(0,d.cn)("text-sm text-muted-foreground",a),...c}));h.displayName="CardDescription";let i=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("p-6 pt-0",a),...c}));i.displayName="CardContent",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex items-center p-6 pt-0",a),...c})).displayName="CardFooter",a.s(["Card",()=>e,"CardContent",()=>i,"CardDescription",()=>h,"CardHeader",()=>f,"CardTitle",()=>g])},47468,a=>{"use strict";var b=a.i(87924),c=a.i(3130),d=a.i(5522),e=a.i(40695),f=a.i(72131),g=a.i(97895);let h=f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("div",{className:"relative w-full overflow-auto",children:(0,b.jsx)("table",{ref:d,className:(0,g.cn)("w-full caption-bottom text-sm",a),...c})}));h.displayName="Table";let i=f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("thead",{ref:d,className:(0,g.cn)("[&_tr]:border-b",a),...c}));i.displayName="TableHeader";let j=f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tbody",{ref:d,className:(0,g.cn)("[&_tr:last-child]:border-0",a),...c}));j.displayName="TableBody",f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tfoot",{ref:d,className:(0,g.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...c})).displayName="TableFooter";let k=f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("tr",{ref:d,className:(0,g.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...c}));k.displayName="TableRow";let l=f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("th",{ref:d,className:(0,g.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...c}));l.displayName="TableHead";let m=f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("td",{ref:d,className:(0,g.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...c}));function n(){return(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)("h2",{className:"text-3xl font-bold tracking-tight",children:"用户管理"}),(0,b.jsxs)("div",{className:"flex w-full max-w-sm items-center space-x-2",children:[(0,b.jsx)(d.Input,{type:"text",placeholder:"搜索用户..."}),(0,b.jsx)(e.Button,{type:"submit",children:"搜索"})]})]}),(0,b.jsxs)(c.Card,{children:[(0,b.jsx)(c.CardHeader,{children:(0,b.jsx)(c.CardTitle,{children:"用户列表"})}),(0,b.jsx)(c.CardContent,{children:(0,b.jsxs)(h,{children:[(0,b.jsx)(i,{children:(0,b.jsxs)(k,{children:[(0,b.jsx)(l,{className:"w-[100px]",children:"ID"}),(0,b.jsx)(l,{children:"用户名"}),(0,b.jsx)(l,{children:"绑定状态"}),(0,b.jsx)(l,{children:"注册时间"}),(0,b.jsx)(l,{className:"text-right",children:"操作"})]})}),(0,b.jsxs)(j,{children:[(0,b.jsxs)(k,{children:[(0,b.jsx)(m,{className:"font-medium",children:"1001"}),(0,b.jsx)(m,{children:"测试用户A"}),(0,b.jsx)(m,{className:"text-green-600",children:"已绑定"}),(0,b.jsx)(m,{children:"2025-12-28"}),(0,b.jsx)(m,{className:"text-right",children:(0,b.jsx)(e.Button,{variant:"ghost",size:"sm",children:"查看"})})]}),(0,b.jsxs)(k,{children:[(0,b.jsx)(m,{className:"font-medium",children:"1002"}),(0,b.jsx)(m,{children:"游客_8392"}),(0,b.jsx)(m,{className:"text-yellow-600",children:"未绑定"}),(0,b.jsx)(m,{children:"2025-12-29"}),(0,b.jsx)(m,{className:"text-right",children:(0,b.jsx)(e.Button,{variant:"ghost",size:"sm",children:"查看"})})]})]})]})})]})]})}m.displayName="TableCell",f.forwardRef(({className:a,...c},d)=>(0,b.jsx)("caption",{ref:d,className:(0,g.cn)("mt-4 text-sm text-muted-foreground",a),...c})).displayName="TableCaption",a.s(["default",()=>n],47468)}];
//# sourceMappingURL=_652ad759._.js.map