Updates
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6999],{6999:(e,c,a)=>{function s(e){let{user:c,userType:a,setLoading:s}=e;return null}a.d(c,{A:()=>s}),a(4848),a(6540),a(9020),a(8639)},8639:(e,c,a)=>{a.d(c,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{5849:(e,t,s)=>{s.d(t,{A:()=>v});var a=s(4848),l=s(6540),n=s(5436),r=s(4709),i=s(5624);s(7720);var c=s(462);function d(e){let{databases:t,setTargetDatabase:s,user:r}=l.useContext(n.DashboardContext);return(0,a.jsx)(l.Fragment,{children:(0,a.jsx)(c.A,{databases:t,setTargetDatabase:s,title:"Recently added Databases",more:!0,user:r})})}var o=s(6417),x=s(9140),u=s(8190),h=s(1915);let m=(0,s(5737).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function j(e){let{icon:t,metric:s,count:l,url:n}=e;return(0,a.jsxs)("a",{href:n,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:t}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:l}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s})]})]})}function y(e){let{databases:t,setTargetDatabase:s,metrics:r,user:i}=l.useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(j,{metric:"Databases Created",count:(null==r?void 0:r.dbCount)||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:"/admin/".concat(null==i?void 0:i.id,"/databases")}),(0,a.jsx)(j,{metric:"Tables Created",count:(null==r?void 0:r.tablesCount)||0,icon:(0,a.jsx)(u.A,{size:20,className:"text-primary"})}),(0,a.jsx)(j,{metric:"Media Added",count:(null==r?void 0:r.mediaCount)||0,icon:(0,a.jsx)(h.A,{size:20,className:"text-slate-500"}),url:"/admin/".concat(null==i?void 0:i.id,"/media")}),(0,a.jsx)(j,{metric:"API Keys",count:(null==r?void 0:r.apiKeysCount)||0,icon:(0,a.jsx)(m,{size:20,className:"text-slate-900 dark:text-white"}),url:"/admin/".concat(null==i?void 0:i.id,"/api-keys")})]})})}function v(e){var t;let{databases:s,user:c}=l.useContext(n.DashboardContext);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(r.A,{user:c})]}),(null==c?void 0:null===(t=c.verification_status)||void 0===t?void 0:t.toString().match(/1/))?(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(y,{}),(0,a.jsx)(d,{}),(0,a.jsx)(o.A,{user:c})]}):(0,a.jsx)(i.A,{})]})}},8190:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5436:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>d,__N_SSP:()=>c,default:()=>o});var a=s(4848),l=s(6540),n=s(1187),r=s(5849),i=s(7652),c=!0;let d=l.createContext({});function o(e){let{user:t,databases:s,metrics:c}=e,o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,u]=l.useState(null);return(0,a.jsx)(n.A,{head:o,user:t,children:(0,a.jsxs)(d.Provider,{value:{user:t,databases:s,targetDatabase:x,setTargetDatabase:u,metrics:c},children:[(0,a.jsx)(r.A,{}),(0,a.jsx)(i.A,{targetDatabase:x})]})})}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9654],{2361:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(4848);function l(e){let{image:t,title:a,description:l,color:r,imageHeight:i}=e;return(0,s.jsxs)("div",{className:"color-card shadow-xl"+(r?" "+("green"==r?"green":"gray"==r?"gray":""):""),children:[(0,s.jsx)("h3",{className:"title m-0 text-2xl",children:a}),l&&(0,s.jsx)("span",{className:"text-slate-600 dark:text-slate-400 text-left",children:l}),(0,s.jsx)("div",{className:"image-block",style:i?{height:"".concat(i,"px")}:void 0,children:(0,s.jsx)("img",{src:t,alt:"".concat(a," Image")})})]})}function r(e){let{image:t,title:a,description:l,color:r,height:i,h2:c,url:n,cta:o}=e;return(0,s.jsxs)("div",{className:"contained-section shadow-xl"+(r?" "+("green"==r?"green":"gray"==r?"gray":"purple"==r?"purple":""):""),style:i?{height:"".concat(i,"px")}:void 0,children:[(0,s.jsxs)("div",{className:"content text-left",children:[c?(0,s.jsx)("h2",{className:"m-0 text-white",children:a}):(0,s.jsx)("h3",{className:"m-0 text-white",children:a}),l&&(0,s.jsx)("span",{className:"text-slate-400",children:l}),n&&o&&(0,s.jsx)("a",{href:n,className:"button mt-4",children:o})]}),(0,s.jsx)("div",{className:"image-block",children:(0,s.jsx)("img",{src:t,alt:"".concat(a," Image")})}),(0,s.jsx)("img",{src:"/images/geometric-overlay.webp",className:"absolute z-0 left-0 top-0 w-full h-full opacity-80 mix-blend-overlay",alt:"Background Image"})]})}function i(e){return(0,s.jsx)("section",{className:"py-20",children:(0,s.jsxs)("div",{className:"main-container flex-col items-center text-center",children:[(0,s.jsx)("h2",{className:"m-0 lg:text-left",children:"All your data storage needs in one place"}),(0,s.jsx)("p",{className:"m-0 ",children:"Datasquirel solves the hassle of storing data across different platforms using a centralized, easy-to-use, SQL-based cloud database administration system. Now you can have all your data in one place and retrieve from any location or environment using HTTP REST API calls and SQL queries."}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 w-full mt-10 gap-10",children:[(0,s.jsx)(l,{image:"/images/screenshots/databases-light.webp",title:"Data and Content",description:"Create databases, tables, dynamic datatypes including rich text, JSON and other editable code blocks",imageHeight:400}),(0,s.jsx)(l,{image:"/images/screenshots/media-list-white.webp",title:"Images, Videos, and other Media",description:"Static images automatically compressed with multiple format support, videos, pdf, excel documents, and more.",color:"green",imageHeight:400})]}),(0,s.jsx)("div",{className:"mt-10 w-full",children:(0,s.jsx)(r,{image:"/images/screenshots/tables-list-white.webp",title:"All the power of SQL without the hassle",description:"Indexes, Foreign keys, encryption, triggers, stored proceedures, etc. You get the best of both worlds: the full power of SQL, and the best UI yet to better manipulate your data.",cta:"Learn More",url:"/about",height:500})})]})})}a(6540)},6659:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(4848),l=a(5014);function r(e){let{user:t}=e;return(0,s.jsxs)("section",{className:"py-24 border-0 border-t border-b border-slate-100 dark:border-slate-100/10 border-solid",children:[(0,s.jsx)("div",{className:"w-full max-w-6xl gap-10 justify-between flex-col relative z-10",children:(0,s.jsxs)("div",{className:"flex-col items-center max-w-2xl text-center ",style:{minWidth:"45%"},children:[(0,s.jsx)("h2",{className:"m-0 leading-tight",children:"Get started For Free."}),(0,s.jsx)("span",{className:"text-lg font-normal",children:"Get Started At no cost. Learn how to create and retrieve data by viewing our documentation."}),(0,s.jsxs)("div",{className:"flex items-start justify-center w-full mt-4",children:[!(null==t?void 0:t.logged_in_status)&&(0,s.jsx)("a",{href:"/create-account",className:"button",children:(0,s.jsx)("span",{className:"",children:"Sign Up For Free"})}),(0,s.jsxs)("a",{href:"/docs",className:"button outlined gray",children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{children:"See The Docs"})]})]})]})}),(0,s.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"})]})}a(6540)},6869:(e,t,a)=>{a(4848),a(6540)},2900:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(3698);function l(e){let{setUser:t}=e,a=localStorage.getItem("user");if(a)try{t(JSON.parse(a));return}catch(e){t({});return}(0,s.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let a=e.user?e.user:{};t(a),localStorage.setItem("user",JSON.stringify(a))}).catch(e=>{console.log(e)})}},5014:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])}}]);
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9907],{9907:(e,c,a)=>{a.d(c,{A:()=>s}),a(4848),a(6540),a(3698),a(3586);function s(e){let{user:c,userType:a,setLoading:s}=e;return null}},3586:(e,c,a)=>{a.d(c,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* ATTENTION: An "eval-source-map" devtool has been used.
|
||||
* This devtool is neither made for production nor for readable output files.
|
||||
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
||||
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
||||
* or disable the default devtool with "devtool: false".
|
||||
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
||||
*/
|
||||
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([["/_error"],{
|
||||
|
||||
/***/ "./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error!":
|
||||
/*!***************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error! ***!
|
||||
\***************************************************************************************************************************************************************************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
eval(__webpack_require__.ts("\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/_error\",\n function () {\n return __webpack_require__(/*! ./node_modules/next/dist/pages/_error.js */ \"./node_modules/next/dist/pages/_error.js\");\n }\n ]);\n if(true) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/_error\"])\n });\n }\n //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L2J1aWxkL3dlYnBhY2svbG9hZGVycy9uZXh0LWNsaWVudC1wYWdlcy1sb2FkZXIuanM/YWJzb2x1dGVQYWdlUGF0aD0lMkZhcHAlMkZub2RlX21vZHVsZXMlMkZuZXh0JTJGZGlzdCUyRnBhZ2VzJTJGX2Vycm9yLmpzJnBhZ2U9JTJGX2Vycm9yISIsIm1hcHBpbmdzIjoiO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsZUFBZSxtQkFBTyxDQUFDLDBGQUEwQztBQUNqRTtBQUNBO0FBQ0EsT0FBTyxJQUFVO0FBQ2pCLE1BQU0sVUFBVTtBQUNoQjtBQUNBLE9BQU87QUFDUDtBQUNBIiwic291cmNlcyI6WyIiXSwic291cmNlc0NvbnRlbnQiOlsiXG4gICAgKHdpbmRvdy5fX05FWFRfUCA9IHdpbmRvdy5fX05FWFRfUCB8fCBbXSkucHVzaChbXG4gICAgICBcIi9fZXJyb3JcIixcbiAgICAgIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIHJlcXVpcmUoXCIuL25vZGVfbW9kdWxlcy9uZXh0L2Rpc3QvcGFnZXMvX2Vycm9yLmpzXCIpO1xuICAgICAgfVxuICAgIF0pO1xuICAgIGlmKG1vZHVsZS5ob3QpIHtcbiAgICAgIG1vZHVsZS5ob3QuZGlzcG9zZShmdW5jdGlvbiAoKSB7XG4gICAgICAgIHdpbmRvdy5fX05FWFRfUC5wdXNoKFtcIi9fZXJyb3JcIl0pXG4gICAgICB9KTtcbiAgICB9XG4gICJdLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error!\n"));
|
||||
|
||||
/***/ })
|
||||
|
||||
},
|
||||
/******/ __webpack_require__ => { // webpackRuntimeModules
|
||||
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
||||
/******/ __webpack_require__.O(0, ["main"], () => (__webpack_exec__("./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fnode_modules%2Fnext%2Fdist%2Fpages%2F_error.js&page=%2F_error!")));
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||
/******/ _N_E = __webpack_exports__;
|
||||
/******/ }
|
||||
]);
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{8213:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return r(5562)}])},2900:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var u=r(3698);function n(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,u.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},5562:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>n}),r(4848);var u=r(6540);function n(t){return u.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(3444),r(6411),r(2900)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(8213)),_N_E=t.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{9540:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return r(1024)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,n.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},1024:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(4252),r(9625),r(3434)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9540)),_N_E=t.O()}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{9852:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/500",function(){return r(5529)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,n.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},5529:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(4252),r(9625),r(3434),r(9020)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9852)),_N_E=t.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{5450:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/500",function(){return r(9499)}])},2900:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var u=r(3698);function n(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,u.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},9499:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>n}),r(4848);var u=r(6540);function n(t){return u.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(3444),r(6411),r(2900),r(3698)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(5450)),_N_E=t.O()}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{7101:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return n(1918)}])},1918:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HomepageContext:()=>o,default:()=>a}),n(4848);var u=n(6540);n(3444),n(6411),n(2900),n(2361),n(6659),n(6869);let o=u.createContext({});function a(t){return u.useEffect(()=>{window.location.href="https://datasquirel.com/about"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[9654,636,6593,8792],()=>e(7101)),_N_E=t.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{4088:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return n(492)}])},492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HomepageContext:()=>o,default:()=>a}),n(4848);var u=n(6540);n(4252),n(9625),n(3434),n(6369),n(817);let o=u.createContext({});function a(){return u.useEffect(()=>{window.location.href="https://datasquirel.com/about"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[3298,636,6593,8792],()=>e(4088)),_N_E=t.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6309],{6049:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return s(5172)}])},5146:(e,t,s)=>{"use strict";s.d(t,{A:()=>v});var a=s(4848),r=s(6540),n=s(8590),l=s(3647),i=s(18),c=s(2992);function d(){let{databases:e,setTargetDatabase:t,user:s}=r.useContext(n.DashboardContext);return(0,a.jsx)(r.Fragment,{children:(0,a.jsx)(c.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var o=s(4435),x=s(9140),u=s(8190),h=s(1915);let m=(0,s(5737).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function j(e){let{icon:t,metric:s,count:r,url:n}=e;return(0,a.jsxs)("a",{href:n,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:t}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:r}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s})]})]})}function y(){let{databases:e,setTargetDatabase:t,metrics:s,user:l}=r.useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(j,{metric:"Databases Created",count:(null==s?void 0:s.dbCount)||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:"/admin/".concat(null==l?void 0:l.id,"/databases")}),(0,a.jsx)(j,{metric:"Tables Created",count:(null==s?void 0:s.tablesCount)||0,icon:(0,a.jsx)(u.A,{size:20,className:"text-primary"})}),(0,a.jsx)(j,{metric:"Media Added",count:(null==s?void 0:s.mediaCount)||0,icon:(0,a.jsx)(h.A,{size:20,className:"text-slate-500"}),url:"/admin/".concat(null==l?void 0:l.id,"/media")}),(0,a.jsx)(j,{metric:"API Keys",count:(null==s?void 0:s.apiKeysCount)||0,icon:(0,a.jsx)(m,{size:20,className:"text-slate-900 dark:text-white"}),url:"/admin/".concat(null==l?void 0:l.id,"/api-keys")})]})})}function v(){var e;let{databases:t,user:s}=r.useContext(n.DashboardContext);return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(l.A,{user:s})]}),(null==s?void 0:null===(e=s.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)(y,{}),(0,a.jsx)(d,{}),(0,a.jsx)(o.A,{user:s})]}):(0,a.jsx)(i.A,{})]})}},8190:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},8590:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DashboardContext:()=>d,__N_SSP:()=>c,default:()=>o});var a=s(4848),r=s(6540),n=s(8181),l=s(5146),i=s(1670),c=!0;let d=r.createContext({});function o(e){let{user:t,databases:s,metrics:c}=e,o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,u]=r.useState();return(0,a.jsx)(n.A,{head:o,user:t,children:(0,a.jsxs)(d.Provider,{value:{user:t,databases:s,targetDatabase:x,setTargetDatabase:u,metrics:c},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(i.A,{targetDatabase:x})]})})}},5172:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DashboardContext:()=>d,__N_SSP:()=>c,default:()=>o});var a=s(4848),r=s(6540),n=s(8181),l=s(5146),i=s(1670),c=!0;let d=r.createContext({});function o(e){let{user:t,databases:s,metrics:c}=e,o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,u]=r.useState(null);return(0,a.jsx)(n.A,{head:o,user:t,children:(0,a.jsxs)(d.Provider,{value:{user:t,databases:s,targetDatabase:x,setTargetDatabase:u,metrics:c},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(i.A,{targetDatabase:x})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[7391,9950,636,6593,8792],()=>t(6049)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6309],{9943:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return a(6902)}])},6902:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DashboardContext:()=>l,__N_SSP:()=>i,default:()=>_});var r=a(4848),s=a(6540),n=a(1187),u=a(5849),d=a(7652),i=!0;let l=s.createContext({});function _(e){let{user:t,databases:a,metrics:i}=e,_=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,c]=s.useState(null);return(0,r.jsx)(n.A,{head:_,user:t,children:(0,r.jsxs)(l.Provider,{value:{user:t,databases:a,targetDatabase:o,setTargetDatabase:c,metrics:i},children:[(0,r.jsx)(u.A,{}),(0,r.jsx)(d.A,{targetDatabase:o})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[9799,3616,820,636,6593,8792],()=>t(9943)),_N_E=e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[531],{1889:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]",function(){return s(8590)}])},5146:(e,t,s)=>{"use strict";s.d(t,{A:()=>v});var a=s(4848),n=s(6540),i=s(8590),r=s(3647),l=s(18),c=s(2992);function d(){let{databases:e,setTargetDatabase:t,user:s}=n.useContext(i.DashboardContext);return(0,a.jsx)(n.Fragment,{children:(0,a.jsx)(c.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var o=s(4435),x=s(9140),u=s(8190),h=s(1915);let m=(0,s(5737).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function j(e){let{icon:t,metric:s,count:n,url:i}=e;return(0,a.jsxs)("a",{href:i,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:t}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:n}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s})]})]})}function y(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=n.useContext(i.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(j,{metric:"Databases Created",count:(null==s?void 0:s.dbCount)||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:"/admin/".concat(null==r?void 0:r.id,"/databases")}),(0,a.jsx)(j,{metric:"Tables Created",count:(null==s?void 0:s.tablesCount)||0,icon:(0,a.jsx)(u.A,{size:20,className:"text-primary"})}),(0,a.jsx)(j,{metric:"Media Added",count:(null==s?void 0:s.mediaCount)||0,icon:(0,a.jsx)(h.A,{size:20,className:"text-slate-500"}),url:"/admin/".concat(null==r?void 0:r.id,"/media")}),(0,a.jsx)(j,{metric:"API Keys",count:(null==s?void 0:s.apiKeysCount)||0,icon:(0,a.jsx)(m,{size:20,className:"text-slate-900 dark:text-white"}),url:"/admin/".concat(null==r?void 0:r.id,"/api-keys")})]})})}function v(){var e;let{databases:t,user:s}=n.useContext(i.DashboardContext);return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(r.A,{user:s})]}),(null==s?void 0:null===(e=s.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(y,{}),(0,a.jsx)(d,{}),(0,a.jsx)(o.A,{user:s})]}):(0,a.jsx)(l.A,{})]})}},8190:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},8590:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DashboardContext:()=>d,__N_SSP:()=>c,default:()=>o});var a=s(4848),n=s(6540),i=s(8181),r=s(5146),l=s(1670),c=!0;let d=n.createContext({});function o(e){let{user:t,databases:s,metrics:c}=e,o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,u]=n.useState();return(0,a.jsx)(i.A,{head:o,user:t,children:(0,a.jsxs)(d.Provider,{value:{user:t,databases:s,targetDatabase:x,setTargetDatabase:u,metrics:c},children:[(0,a.jsx)(r.A,{}),(0,a.jsx)(l.A,{targetDatabase:x})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[7391,9950,636,6593,8792],()=>t(1889)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[531],{8295:(_,n,u)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]",function(){return u(5436)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[9799,3616,820,636,6593,8792],()=>n(8295)),_N_E=_.O()}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2564],{2134:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases",function(){return a(8096)}])},8096:(e,s,a)=>{"use strict";a.r(s),a.d(s,{DatabasesContext:()=>h,__N_SSP:()=>o,default:()=>j});var t=a(4848),n=a(6540),r=a(8181),l=a(3647),i=a(18),d=a(2992),c=a(4435);function u(){var e;let{databases:s,setTargetDatabase:a,user:r}=n.useContext(h);return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,t.jsxs)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/databases/add-database"),className:"button flex items-center gap-2",children:[(0,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add Database"})]})]}),(0,t.jsx)(l.A,{user:r})]}),(null==r?void 0:null===(e=r.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(d.A,{databases:s,setTargetDatabase:a,user:r}),(0,t.jsx)(c.A,{user:r})]}):(0,t.jsx)(i.A,{})]})}var x=a(1670),o=!0;let h=n.createContext({});function j(e){let{user:s,databases:a}=e,l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"Databases | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,d]=n.useState();return(0,t.jsx)(h.Provider,{value:{user:s,databases:a,targetDatabase:i,setTargetDatabase:d},children:(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(r.A,{head:l,user:s,children:(0,t.jsx)(u,{})}),(0,t.jsx)(x.A,{targetDatabase:i})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[7391,9950,636,6593,8792],()=>s(2134)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2564],{9107:(_,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases",function(){return s(8471)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[9799,3616,636,6593,8792],()=>n(9107)),_N_E=_.O()}]);
|
||||
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4076],{6892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/edit-database",function(){return t(8708)}])},8064:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848);function r(e){var a;let{database:t,user:r}=e,d=null===(a=t.active_clone_parent_db)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,""),l="/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d);return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:l,target:"_blank",className:"query-url",children:d})})]})})}t(6540)},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},8708:(e,a,t)=>{"use strict";t.r(a),t.d(a,{EditDatabaseContext:()=>b,__N_SSP:()=>j,default:()=>v});var s=t(4848),r=t(6540),d=t(8181),l=t(2592),n=t(5844),i=t(3647),c=t(1710),h=t(7168),u=t(3605);function x(){let{user:e,dbImage:a,setDbImage:t,database:d}=r.useContext(b),[l,n]=r.useState(!1);return r.useRef(),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[l&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),e&&a?(0,s.jsx)(h.A,{user:e,dbImage:a,setDbImage:t,database:d,setLoading:n}):(0,s.jsx)("span",{children:"No User and Database Image present"})]}),e&&a&&t?(0,s.jsx)(u.A,{user:e,dbImage:a,setDbImage:t,database:d}):(0,s.jsx)("span",{children:"Database Image could not be rendered"})]})})}var o=t(8064);function m(){let{database:e,user:a}=r.useContext(b);return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,s.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:null==e?void 0:e.db_name})]})]}),(0,s.jsx)(i.A,{user:a})]}),(null==e?void 0:e.active_clone)&&a?(0,s.jsx)(o.A,{database:e,user:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(x,{})]})}var p=t(5211),j=!0;let b=r.createContext({});function v(e){let{user:a,database:t,query:n}=e,i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,h]=r.useState(t.db_image);return(0,s.jsx)(b.Provider,{value:{user:a,database:t,dbImage:c,setDbImage:h},children:(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(d.A,{head:i,user:a,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:n,user:a}),children:(0,s.jsx)(m,{})}),(0,s.jsx)(l.A,{setDbImage:h})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,3867,636,6593,8792],()=>a(6892)),_N_E=e.O()}]);
|
||||
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user