dsql-admin/dsql-app/.local_dist/static/chunks/pages/su/servers-6a4797f957e21c7e.js
Benjamin Toby 3ffd2d6777 Updates
2024-12-05 08:03:33 +01:00

1 line
4.9 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3821],{79100:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/servers",function(){return t(92302)}])},77121:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(74848);t(96540);var r=t(87220),l=t(50856);function i(e){let{slugText:s,justIcon:t,noIcon:i,title:d,outlined:n,extraClasses:c}=e;return(0,a.jsxs)("div",{className:(0,l.QP)("button small-text",n?" outlined gray bg-white":" ghost light-gray",c),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:n?void 0:{padding:0},children:[!i&&(0,a.jsx)(r.A,{size:n?15:20}),!t&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:d||"Copy Slug"})]})}},69663:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var a=t(74848),r=t(77121),l=t(2750),i=t(50856);function d(e){var s;let{server:t,noLoadBalance:r}=e;return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:t.host}),r?(0,a.jsx)(a.Fragment,{}):t.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,i.QP)("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,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:null===(s=t.users)||void 0===s?void 0:s.map((e,s)=>(0,a.jsx)(n,{user:e},s))})})]})}function n(e){let{user:s}=e;return(0,a.jsx)("li",{className:(0,i.QP)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:s.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(r.A,{slugText:s.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},87296:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).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"}]])},6831:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).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"}]])},68622:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).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"}]])},97206:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).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"}]])},14858:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).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:"1pqi11"}]])},2750:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},42595:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(95737).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},92302:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>c,default:()=>h});var a=t(74848),r=t(96540),l=t(2016),i=t(6272),d=t(69663);function n(){let e=r.useContext(i.AppContext).pageProps;e.user;let s=e.servers;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,a.jsx)("span",{children:"All Servers"})]}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{children:"Add Server"})})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:s.map((e,s)=>(0,a.jsx)(d.A,{server:e,noLoadBalance:!0},s))}),(0,a.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}var c=!0;function h(e){let{user:s,data:t}=e,r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(l.A,{head:r,user:s,children:(0,a.jsx)(n,{})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8717,2016,636,6593,8792],()=>s(79100)),_N_E=e.O()}]);