dsql-admin/dsql-app/.local_dist/static/chunks/8866-9b36026d12284c11.js

1 line
6.7 KiB
JavaScript
Raw Normal View History

2024-12-08 19:56:57 +00:00
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8866],{47652:(e,a,t)=>{t.d(a,{A:()=>i});var h=t(74848),l=t(96540),d=t(23698),c=t(45165),o=t(620);function i(e){let{targetDatabase:a}=e,[t,i]=l.useState(!1);return(0,h.jsxs)(c.Ay,{title:"delete-database-confirmation",children:[t&&(0,h.jsx)(o.A,{width:"20px"}),(0,h.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:e=>{if(!a){alert("No Target Database Selected!");return}i(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:a},!0).then(e=>{e.success&&window.location.reload()}):i(!1)},children:(0,h.jsx)("span",{children:"Yes"})}),(0,h.jsx)("button",{onClick:e=>{(0,c.fs)()},children:(0,h.jsx)("span",{children:"Cancel"})})]})]})}},70910:(e,a,t)=>{t.d(a,{A:()=>d});var h=t(74848);t(96540);var l=t(74315);function d(e){let{slugText:a,smaller:t,outlined:d,full:c}=e;return(0,h.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(d?" outlined gray":"light-gray")+(t?" small-text":""),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert("".concat(c?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,h.jsx)(l.A,{color:"action",sx:{opacity:.5,fontSize:15}}),(0,h.jsx)("span",{children:a})]})}},34181:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},74315:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"},"1")],"CopyAllTwoTone")},53193:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M16 9H8v10h8zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteForeverTwoTone")},75238:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M14.17 3H8v14h11V7.83zm2.33 12h-6v-2h6zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7zm2 6h-6v2h6zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7zm4 16H8V3h6.17L19 7.83z"},"1")],"DifferenceTwoTone")},85373:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06zM5.92 18H5v-.92l7.06-7.06.92.92zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75z"},"1")],"Drive