2025-01-14 15:27:08 +00:00
|
|
|
"use strict";exports.id=5392,exports.ids=[5392],exports.modules={53926:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(8732),n=t(82015),l=t.n(n);function i({confirmedDelegetedUser:e,linksArray:s,user:t}){let[n,i]=l().useState(s||null);return n&&n[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:n.map((e,s,t)=>s===n.length-1?(0,a.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,a.jsxs)(l().Fragment,{children:[(0,a.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,a.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,a.jsx)(l().Fragment,{})}},87639:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),n=t(82015),l=t.n(n);t(46169);var i=t(72390),r=t(16757),c=t(66916),d=t(66918),o=t(23293);function x(){let[e,s]=l().useState(!0),[t,n]=l().useState(0),[x,m]=l().useState(0);return e?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(r.A,{width:"15px",position:"relative"})}):(0,a.jsx)(l().Fragment,{children:t?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{m(e=>e+1),s(!1)})},children:[e&&(0,a.jsx)(r.A,{width:"15px"}),(0,a.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,a.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:t&&t.toFixed(2)}),(0,a.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,a.jsx)(d.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,a.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,a.jsx)(o.A,{}),(0,a.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},92702:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(39908),n=t.n(a);async function l(e,s,t){let a=n()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},72390:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(46169);async function n(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},89923:(e,s,t)=>{t.d(s,{A:()=>a});function a(e,s){return s?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},25562:(e,s,t)=>{t.d(s,{A:()=>w});var a=t(8732),n=t(82015),l=t.n(n),i=t(27912),r=t.n(i),c=t(50139),d=t(52070),o=t(34637),x=t(83158),m=t(25294),h=t(92441),j=t(29743),p=t(10643),u=t(10321),g=t(89923);function f({user:e}){let[s,t]=l().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),children:[(0,a.jsx)(c.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:t}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,a.jsx)(d.A,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases`,"data-currentlink":`/admin/${e?.id}/databases`,children:[(0,a.jsx)(o.A,{size:20}),(0,a.jsx)("span",{children:"Databases"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/media`,"data-currentlink":`/admin/${e?.id}/media`,children:[(0,a.jsx)(x.A,{size:20}),(0,a.jsx)("span",{children:"Media"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/users`,"data-currentlink":`/admin/${e?.id}/users`,children:[(0,a.jsx)(m.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/schema`,"data-currentlink":`/admin/${e?.id}/schema`,children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Schema"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/api-keys`,"data-currentlink":`/admin/${e?.id}/api-keys`,children:[(0,a.jsx)(j.A,{size:20}),(0,a.jsx)("span",{children:"API Keys"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/connect`,"data-currentlink":`/admin/${e?.id}/connect`,children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Connect"})]}),(0,g.A)(e)&&(0,a.jsx)(l().Fragment,{children:(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"Super Admin User"})]})}),(0,a.jsx)("hr",{className:"opacity-80"}),(
|