1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9157],{34606:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/load-balancing",function(){return t(38545)}])},77121:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var l=t(74848);t(96540);var r=t(87220),a=t(50856);function i(e){let{slugText:s,justIcon:t,noIcon:i,title:n,outlined:c,extraClasses:d}=e;return(0,l.jsxs)("div",{className:(0,a.QP)("button small-text",c?" outlined gray bg-white":" ghost light-gray",d),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:c?void 0:{padding:0},children:[!i&&(0,l.jsx)(r.A,{size:c?15:20}),!t&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:n||"Copy Slug"})]})}},86286:(e,s,t)=>{"use strict";t.d(s,{A:()=>c});var l=t(74848),r=t(96540),a=t(23698),i=t(620),n=t(30861);function c(e){let{data:s}=e;Object.keys(s.users[0]);let[t,c]=r.useState(null),[d,o]=r.useState(0),[h,x]=r.useState(!1);function u(){(0,a.A)("/api/admin/grabErrorLogs").then(e=>{var s;if((null==e?void 0:e.log)&&"string"==typeof e.log&&!(null===(s=e.log)||void 0===s?void 0:s.match(/./))){c("No Logs Yet");return}(null==e?void 0:e.log)&&c("No Logs"),c(e.log.replace(/\n|\r|\n\r|\\n/gm,"<br/>"))})}return console.log(typeof t),r.useEffect(()=>{u(),0===d&&setInterval(()=>{u()},1e4)},[d]),(0,l.jsx)(r.Fragment,{children:(0,l.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,l.jsxs)("section",{className:"paper w-full",children:[(0,l.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,l.jsx)("div",{className:"flex-col items-stretch gap-10",children:s.users.map((e,s)=>(0,l.jsx)(n.A,{userObject:e},s+1))})]}),(0,l.jsxs)("section",{className:"paper",children:[(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(x(!0),(0,a.A)("/api/admin/clearErrorLogs","post").then(e=>{o(e=>e+1)}),setTimeout(()=>{x(!1)},2e3))},className:"outlined gray relative",children:[h&&(0,l.jsx)(i.A,{width:"20px"}),"Clear Error Log"]})})]}),t&&(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:t||"No Log"}}),"string"!=typeof t&&(0,l.jsx)(i.A,{position:"relative",width:"25px"})]})]})})}},61975:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var l=t(74848),r=t(96540),a=t(23698),i=t(620);function n(e){let[s,t]=r.useState(null),[n,c]=r.useState(!1),[d,o]=r.useState(0);function h(){(0,a.A)("/api/admin/grabErrorLogs").then(e=>{var s;if("string"!=typeof e.log||(null===(s=e.log)||void 0===s?void 0:s.match(/./)))t("");else{t("No Logs Yet");return}t(e.log.replace(/\n|\r|\n\r|\\n/gm,"<br/>"))})}return r.useEffect(()=>{h(),0===d&&setInterval(()=>{h()},1e4)},[d]),(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,l.jsx)("div",{children:(0,l.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(c(!0),(0,a.A)("/api/admin/clearErrorLogs","post").then(e=>{console.log(e),o(e=>e+1)}),setTimeout(()=>{c(!1)},2e3))},className:"outlined gray relative",children:[n&&(0,l.jsx)(i.A,{width:"20px"}),"Clear Error Log"]})})]}),(0,l.jsxs)("section",{className:"paper",children:[s&&(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:s||"No Log"}}),!s&&(0,l.jsx)(i.A,{position:"relative",width:"25px"})]})]})}},30861:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var l=t(74848),r=t(96540);function a(e){let{userObject:s,userPage:t}=e,a=Object.keys(s),[i,n]=r.useState(!1),[c,d]=r.useState(0),[o,h]=r.useState(!t);return(0,l.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,l.jsxs)("div",{className:"items-center w-full",children:[(0,l.jsx)("img",{src:s.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,l.jsxs)("h3",{className:"m-0 text-xl",children:[s.first_name," ",s.last_name," "]}),(0,l.jsxs)("div",{className:"ml-auto",children:[(0,l.jsx)("button",{className:"outlined gray small-te
|