2025-02-12 16:56:44 +00:00
|
|
|
"use strict";(()=>{var e={};e.id=3821,e.ids=[3821],e.modules={95755:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.r(r),s.d(r,{config:()=>v,default:()=>p,getServerSideProps:()=>_,getStaticPaths:()=>S,getStaticProps:()=>u,reportWebVitals:()=>h,routeModule:()=>j,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>m,unstable_getStaticParams:()=>x,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>D});var n=s(63865),a=s(9455),o=s(30671),i=s(5583),c=s(19796),l=s(49690),d=e([l]);l=(d.then?(await d)():d)[0];let p=(0,o.M)(l,"default"),u=(0,o.M)(l,"getStaticProps"),S=(0,o.M)(l,"getStaticPaths"),_=(0,o.M)(l,"getServerSideProps"),v=(0,o.M)(l,"config"),h=(0,o.M)(l,"reportWebVitals"),D=(0,o.M)(l,"unstable_getStaticProps"),g=(0,o.M)(l,"unstable_getStaticPaths"),x=(0,o.M)(l,"unstable_getStaticParams"),f=(0,o.M)(l,"unstable_getServerProps"),m=(0,o.M)(l,"unstable_getServerSideProps"),j=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/servers",pathname:"/su/servers",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:l});t()}catch(e){t(e)}})},73872:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.d(r,{A:()=>c});var n=s(8732);s(82015);var a=s(96089),o=s(75979),i=e([o]);function c({slugText:e,justIcon:r,noIcon:s,title:t,outlined:i,extraClasses:c}){return(0,n.jsxs)("div",{className:(0,o.twMerge)("button small-text hover:!bg-transparent",i?" outlined gray bg-white":" ghost light-gray",c),onClick:r=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:i?void 0:{padding:0},children:[!s&&(0,n.jsx)(a.A,{size:i?15:20}),!r&&(0,n.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:t||"Copy Slug"})]})}o=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},57168:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.d(r,{A:()=>l});var n=s(8732),a=s(73872),o=s(2459),i=s(75979),c=e([a,i]);function l({server:e,noLoadBalance:r}){return(0,n.jsxs)("div",{className:"stack w-full",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(o.A,{size:15,opacity:.5}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:e.host}),r?(0,n.jsx)(n.Fragment,{}):e.loadBalanced?(0,n.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,n.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,n.jsx)("div",{className:(0,i.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,n.jsx)("ul",{className:"p-0 m-0 pl-4",children:e.users?.map((e,r)=>n.jsx(d,{user:e},r))})})]})}function d({user:e}){return(0,n.jsx)("li",{className:(0,i.twMerge)("w-full"),children:(0,n.jsxs)("div",{className:"stack gap-0",children:[(0,n.jsxs)("span",{children:["user: ",(0,n.jsx)("b",{children:e.name})]}),(0,n.jsxs)("span",{children:["pass:"," ",(0,n.jsx)("b",{children:(0,n.jsx)(a.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}[a,i]=c.then?(await c)():c,t()}catch(e){t(e)}})},66097:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.d(r,{A:()=>d});var n=s(8732),a=s(19796),o=s(82015),i=s.n(o),c=s(57168),l=e([c]);function d(){let e=i().useContext(a.AppContext).pageProps.servers;return(0,n.jsxs)(i().Fragment,{children:[(0,n.jsxs)("div",{className:"w-full justify-between",children:[(0,n.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,n.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,n.jsx)("span",{children:"All Servers"})]}),(0,n.jsx)("div",{children:(0,n.jsx)("button",{children:"Add Server"})})]}),(0,n.jsxs)("section",{className:"paper",children:[(0,n.jsx)("div",{className:"flex flex-col gap-2 w-full",children:e.map((e,r)=>(0,n.jsx)(c.A,{server:e,noLoadBalance:!0},r))}),(0,n.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}c=(l.then?(await l)():l)[0],t()}catch(e){t(e)}})},24934:(e,r,s)=>{s.d(r,{A:()=>l});var t=s(29021),n=s.n(t),a=s(60374),o=s(33873),i=s.n(o);function c(){let{userDirPath:e}=function(e){let r=process.env.DSQL_APP_DIR,s=process.env.DSQL_DB_SCHEMA_DIR,t=".tmp";if(!r)throw Error("Please provide the `DSQL_APP_DIR` env variable.");if(!s)throw Error("Please provide the `DS
|