Files
Mycontent/.next/static/chunks/35c10f3af004eee0.js
2025-12-29 14:01:37 +08:00

1 line
4.5 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78583,e=>{"use strict";let t=(0,e.i(75254).default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",()=>t],78583)},61659,e=>{"use strict";let t=(0,e.i(75254).default)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",()=>t],61659)},92270,e=>{"use strict";let t=(0,e.i(75254).default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);e.s(["LogOut",()=>t],92270)},39616,e=>{"use strict";let t=(0,e.i(75254).default)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",()=>t],39616)},8374,e=>{"use strict";var t=e.i(43476),a=e.i(22016),r=e.i(18566),l=e.i(75254);let i=(0,l.default)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);var s=e.i(78583),h=e.i(61911),d=e.i(61659);let c=(0,l.default)("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);var n=e.i(39616),x=e.i(92270),y=e.i(4421),o=e.i(71645);function u({children:e}){let l=(0,r.usePathname)(),u=(0,r.useRouter)(),{user:f,isLoggedIn:m}=(0,y.useStore)();(0,o.useEffect)(()=>{},[m,u]);let g=[{icon:i,label:"数据概览",href:"/admin"},{icon:s.FileText,label:"内容管理",href:"/admin/content"},{icon:h.Users,label:"用户管理",href:"/admin/users"},{icon:d.CreditCard,label:"支付配置",href:"/admin/payment"},{icon:c,label:"二维码",href:"/admin/qrcodes"},{icon:n.Settings,label:"系统设置",href:"/admin/settings"}];return(0,t.jsxs)("div",{className:"flex min-h-screen bg-[#0f172a]",children:[(0,t.jsxs)("div",{className:"w-64 bg-[#1e293b] text-white flex flex-col border-r border-gray-800",children:[(0,t.jsxs)("div",{className:"p-6 border-b border-gray-800",children:[(0,t.jsx)("h1",{className:"text-xl font-bold text-[#38bdac]",children:"管理后台"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"Soul创业实验场"})]}),(0,t.jsx)("nav",{className:"flex-1 p-4 space-y-2",children:g.map(e=>{let r=l===e.href;return(0,t.jsxs)(a.default,{href:e.href,className:`flex items-center gap-3 px-4 py-3 rounded-lg transition-colors ${r?"bg-[#38bdac]/10 text-[#38bdac] border border-[#38bdac]/20":"text-gray-400 hover:bg-gray-800 hover:text-white"}`,children:[(0,t.jsx)(e.icon,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:e.label})]},e.href)})}),(0,t.jsx)("div",{className:"p-4 border-t border-gray-800",children:(0,t.jsxs)(a.default,{href:"/my",className:"flex items-center gap-3 px-4 py-3 text-gray-400 hover:text-white rounded-lg hover:bg-gray-800 transition-colors",children:[(0,t.jsx)(x.LogOut,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"返回前台"})]})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-auto bg-[#0f172a]",children:e})]})}e.s(["default",()=>u],8374)}]);