1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
|
"use strict";exports.id=9810,exports.ids=[9810],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},36299:(e,t,s)=>{s.d(t,{A:()=>d});var a=s(8732),l=s(82015),r=s.n(l),i=s(63715),n=s(32415),c=s(21498);function d({data:e}){Object.keys(e.users[0]);let[t,s]=r().useState(null),[l,d]=r().useState(0),[h,o]=r().useState(!1);return console.log(typeof t),(0,a.jsx)(r().Fragment,{children:(0,a.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,a.jsxs)("section",{className:"paper w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,a.jsx)("div",{className:"flex-col items-stretch gap-10",children:e.users.map((e,t)=>(0,a.jsx)(c.A,{userObject:e},t+1))})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(o(!0),(0,i.A)("/api/admin/clearErrorLogs","post").then(e=>{d(e=>e+1)}),setTimeout(()=>{o(!1)},2e3))},className:"outlined gray relative",children:[h&&(0,a.jsx)(n.A,{width:"20px"}),"Clear Error Log"]})})]}),t&&(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:t||"No Log"}}),"string"!=typeof t&&(0,a.jsx)(n.A,{position:"relative",width:"25px"})]})]})})}},21498:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732),l=s(82015),r=s.n(l);function i({userObject:e,userPage:t}){let s=Object.keys(e),[l,i]=r().useState(!1),[n,c]=r().useState(0),[d,h]=r().useState(!t);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(d?t?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{d?h(!1):h(!0)},children:d?"More Details":"Collapse"}),!t&&(0,a.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,l)=>(0,a.jsxs)(r().Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,a.jsx)("b",{children:e[t]})]})}),l<s.length-1&&(0,a.jsx)("hr",{})]},l+1))}),(0,a.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{h(!0)},children:"Collapse"})]})}},67105:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FileWarning",[["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:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key
|