2024-12-09 09:39:09 +00:00
|
|
|
"use strict";(()=>{var e={};e.id=9157,e.ids=[9157],e.modules={52093:(e,s,r)=>{r.a(e,async(e,t)=>{try{r.r(s),r.d(s,{config:()=>m,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>h,getStaticProps:()=>x,reportWebVitals:()=>g,routeModule:()=>y,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>j});var a=r(63865),n=r(9455),l=r(30671),i=r(49407),c=r(89600),o=r(64232),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,l.M)(o,"default"),x=(0,l.M)(o,"getStaticProps"),h=(0,l.M)(o,"getStaticPaths"),p=(0,l.M)(o,"getServerSideProps"),m=(0,l.M)(o,"config"),g=(0,l.M)(o,"reportWebVitals"),j=(0,l.M)(o,"unstable_getStaticProps"),f=(0,l.M)(o,"unstable_getStaticPaths"),v=(0,l.M)(o,"unstable_getStaticParams"),S=(0,l.M)(o,"unstable_getServerProps"),b=(0,l.M)(o,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su/load-balancing",pathname:"/su/load-balancing",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:o});t()}catch(e){t(e)}})},94010:(e,s,r)=>{r.a(e,async(e,t)=>{try{r.d(s,{A:()=>c});var a=r(8732);r(82015);var n=r(96089),l=r(75979),i=e([l]);function c({slugText:e,justIcon:s,noIcon:r,title:t,outlined:i,extraClasses:c}){return(0,a.jsxs)("div",{className:(0,l.twMerge)("button small-text hover:!bg-transparent",i?" outlined gray bg-white":" ghost light-gray",c),onClick:s=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:i?void 0:{padding:0},children:[!r&&(0,a.jsx)(n.A,{size:i?15:20}),!s&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:t||"Copy Slug"})]})}l=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},36299:(e,s,r)=>{r.d(s,{A:()=>o});var t=r(8732),a=r(82015),n=r.n(a),l=r(63715),i=r(32415),c=r(21498);function o({data:e}){Object.keys(e.users[0]);let[s,r]=n().useState(null),[a,o]=n().useState(0),[d,u]=n().useState(!1);return console.log(typeof s),(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,t.jsxs)("section",{className:"paper w-full",children:[(0,t.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,t.jsx)("div",{className:"flex-col items-stretch gap-10",children:e.users.map((e,s)=>(0,t.jsx)(c.A,{userObject:e},s+1))})]}),(0,t.jsxs)("section",{className:"paper",children:[(0,t.jsxs)("div",{className:"w-full justify-between",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,t.jsx)("div",{children:(0,t.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(u(!0),(0,l.A)("/api/admin/clearErrorLogs","post").then(e=>{o(e=>e+1)}),setTimeout(()=>{u(!1)},2e3))},className:"outlined gray relative",children:[d&&(0,t.jsx)(i.A,{width:"20px"}),"Clear Error Log"]})})]}),s&&(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:s||"No Log"}}),"string"!=typeof s&&(0,t.jsx)(i.A,{position:"relative",width:"25px"})]})]})})}},19262:(e,s,r)=>{r.d(s,{A:()=>c});var t=r(8732),a=r(82015),n=r.n(a),l=r(63715),i=r(32415);function c(e){let[s,r]=n().useState(null),[a,c]=n().useState(!1),[o,d]=n().useState(0);return(0,t.jsxs)(n().Fragment,{children:[(0,t.jsxs)("div",{className:"w-full justify-between",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,t.jsx)("div",{children:(0,t.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(c(!0),(0,l.A)("/api/admin/clearErrorLogs","post").then(e=>{console.log(e),d(e=>e+1)}),setTimeout(()=>{c(!1)},2e3))},className:"outlined gray relative",children:[a&&(0,t.jsx)(i.A,{width:"20px"}),"Clear Error Log"]})})]}),(0,t.jsxs)("section",{className:"paper",children:[s&&(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:s||"No Log"}}),!s&&(0,t.jsx)(i.A,{position:"relative",width:"25px"})]})]})}},21498:(e,s,r)=>{r.d(s,{A:()=>l});var t=r(8732),a=r(82015),n=r.n(a);function l({userObject:e,userPage:s}){let r=Object.keys(e),[a,l]=n().useState(!1),[i,c]=n().useState(0),[o,d]=n().useState(!s);return(0,t.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?s?" h-[100px]":" h-[85px]":"
|