1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
|
"use strict";(()=>{var e={};e.id=3821,e.ids=[636,3821],e.modules={30671:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17021:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{config:()=>y,default:()=>p,getServerSideProps:()=>h,getStaticPaths:()=>x,getStaticProps:()=>d,reportWebVitals:()=>m,routeModule:()=>q,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>g});var i=t(63865),a=t(9455),n=t(30671),o=t(49407),u=t(68268),l=t(95376),c=e([l]);l=(c.then?(await c)():c)[0];let p=(0,n.M)(l,"default"),d=(0,n.M)(l,"getStaticProps"),x=(0,n.M)(l,"getStaticPaths"),h=(0,n.M)(l,"getServerSideProps"),y=(0,n.M)(l,"config"),m=(0,n.M)(l,"reportWebVitals"),g=(0,n.M)(l,"unstable_getStaticProps"),f=(0,n.M)(l,"unstable_getStaticPaths"),v=(0,n.M)(l,"unstable_getStaticParams"),S=(0,n.M)(l,"unstable_getServerProps"),A=(0,n.M)(l,"unstable_getServerSideProps"),q=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/servers",pathname:"/su/servers",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:l});s()}catch(e){s(e)}})},94010:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>u});var i=t(8732);t(82015);var a=t(96089),n=t(75979),o=e([n]);function u({slugText:e,justIcon:r,noIcon:t,title:s,outlined:o,extraClasses:u}){return(0,i.jsxs)("div",{className:(0,n.twMerge)("button small-text",o?" outlined gray bg-white":" ghost light-gray",u),onClick:r=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:o?void 0:{padding:0},children:[!t&&(0,i.jsx)(a.A,{size:o?15:20}),!r&&(0,i.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}n=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},77306:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>l});var i=t(8732),a=t(94010),n=t(2459),o=t(75979),u=e([a,o]);function l({server:e,noLoadBalance:r}){return(0,i.jsxs)("div",{className:"stack w-full",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(n.A,{size:15,opacity:.5}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:e.host}),r?(0,i.jsx)(i.Fragment,{}):e.loadBalanced?(0,i.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,i.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,i.jsx)("div",{className:(0,o.twMerge)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,i.jsx)("ul",{className:"p-0 m-0 pl-4",children:e.users?.map((e,r)=>i.jsx(c,{user:e},r))})})]})}function c({user:e}){return(0,i.jsx)("li",{className:(0,o.twMerge)("w-full"),children:(0,i.jsxs)("div",{className:"stack gap-0",children:[(0,i.jsxs)("span",{children:["user: ",(0,i.jsx)("b",{children:e.name})]}),(0,i.jsxs)("span",{children:["pass:"," ",(0,i.jsx)("b",{children:(0,i.jsx)(a.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}[a,o]=u.then?(await u)():u,s()}catch(e){s(e)}})},2419:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>c});var i=t(8732),a=t(68268),n=t(82015),o=t.n(n),u=t(77306),l=e([u]);function c(){let e=o().useContext(a.AppContext).pageProps;e.user;let r=e.servers;return(0,i.jsxs)(o().Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,i.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,i.jsx)("span",{children:"All Servers"})]}),(0,i.jsx)("div",{children:(0,i.jsx)("button",{children:"Add Server"})})]}),(0,i.jsxs)("section",{className:"paper",children:[(0,i.jsx)("div",{className:"flex flex-col gap-2 w-full",children:r.map((e,r)=>(0,i.jsx)(u.A,{server:e,noLoadBalance:!0},r))}),(0,i.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}u=(l.then?(await l)():l)[0],s()}catch(e){s(e)}})},92127:(e,r,t)=>{t(33873);let s=t(29021);t(56248);let i=t(70956);e.exports=function(){try{let e=i()
|