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
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[866],{42602:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/console",function(){return t(12492)}])},12492:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>d,default:()=>m});var s=t(74848),n=t(96540),o=t(2016),a=t(54787);async function r(e){let{socket:l}=e,{Terminal:s}=t(62975),{FitAddon:n}=t(29195),o=new n,a=document.getElementById("terminalWrapper"),r=document.getElementById("terminal"),i=Math.round(a.clientWidth/12),c=new s({cols:i,rows:6});c.open(r),o.fit(),l.on("console",e=>{c.write(e)});{let e=new n,t=document.getElementById("shell"),o=new s({cols:i,rows:17});o.open(t),e.fit(),l.on("shell",e=>{o.write(e)}),o.onKey((e,t)=>{l.emit("shell",e.key)})}return c}var i=t(911);function c(e){let{socketDomain:l}=e,[t,o]=n.useState(null),[c,d]=n.useState(null),[m,u]=n.useState("");return n.useEffect(()=>{if(console.log("Socket Domain =>",l),!l)return;let e=(0,a.io)(l,{extraHeaders:{"X-Socket-Paradigm":"Console"}});e.on("connect",()=>{o(e),console.log("Socket Connected!")}),setInterval(()=>{e.emit("get-log")},1e3),e.on("console-log",e=>{console.log("Fetched Log",e),u(e.replace((0,i.A)(),"")),setTimeout(()=>{let e=document.getElementById("logHistoryWrapper");e&&(e.scrollTop=e.scrollHeight)},200)})},[]),n.useEffect(()=>{if(t)return r({socket:t}).then(e=>{d(e)}),function(){var e,l;null===(e=document.getElementById("terminal"))||void 0===e||e.childNodes.forEach(e=>{var l;null===(l=e.parentNode)||void 0===l||l.removeChild(e)}),null===(l=document.getElementById("shell"))||void 0===l||l.childNodes.forEach(e=>{var l;null===(l=e.parentNode)||void 0===l||l.removeChild(e)}),null==c||c.dispose()}},[t]),(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-2xl m-0",children:"Console"}),(0,s.jsx)("button",{onClick:e=>{t&&t.emit("log","Logging to the console")},children:"Log console"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-6 w-full items-stretch",children:[(0,s.jsx)("section",{className:"paper bg-slate-900",id:"terminalWrapper",children:(0,s.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,s.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,s.jsx)("h2",{className:"m-0 text-white text-base",children:"Shell"}),(0,s.jsx)("hr",{className:"opacity-20"}),(0,s.jsx)("div",{id:"shell",className:"relative grow z-50 overflow-hidden w-full h-[340px]"})]})})}),(0,s.jsx)("section",{className:"paper bg-slate-500",id:"terminalWrapper",children:(0,s.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,s.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,s.jsx)("h2",{className:"m-0 text-white text-base",children:"Server Log"}),(0,s.jsx)("hr",{className:"opacity-20"}),(0,s.jsx)("div",{id:"terminal",className:"relative grow z-50 overflow-hidden w-full h-[150px]"})]})})})]})]})}t(5044);var d=!0;function m(e){let{user:l,data:t,socketDomain:n}=e,a=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Console | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Databases Console"})]});return(0,s.jsx)(o.A,{head:a,user:l,children:(0,s.jsx)(c,{socketDomain:n})})}}},e=>{var l=l=>e(e.s=l);e.O(0,[160,2793,2016,636,6593,8792],()=>l(42602)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1973],{71889:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/console",function(){return n(73794)}])},73794:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return m},default:function(){return h}});var l=n(85893),o=n(67294),s=n(85313),i=n(828),r=n(53920),a=n(47568),c=n(97582);function u(){return(u=(0,a.Z)((function(e){var t,l,o,s,i,r,a,u,d,f,m,h;return(0,c.__generator)(this,(function(c){return t=e.socket,l=n(12320).Terminal,o=n(12617).FitAddon,s=new o,i=document.getElementById("terminalWrapper"),r=document.getElementById("terminal"),a=i.clientWidth,u=Math.round(a/12),(d=new l({cols:u,rows:6})).open(r),s.fit(),t.on("console",(function(e){d.write(e)})),f=new o,m=document.getElementById("shell"),(h=new l({cols:u,rows:17})).open(m),f.fit(),t.on("shell",(function(e){h.write(e)})),h.onKey((function(e,n){t.emit("shell",e.key)})),[2,d]}))}))).apply(this,arguments)}var d=n(48531);function f(e){var t=e.socketDomain,n=(0,i.Z)(o.useState(null),2),s=n[0],a=n[1],c=(0,i.Z)(o.useState(null),2),f=c[0],m=c[1],h=(0,i.Z)(o.useState(""),2),x=(h[0],h[1]);return o.useEffect((function(){var e=t;if(console.log("Socket Domain =>",e),e){var n=(0,r.io)(e,{extraHeaders:{"X-Socket-Paradigm":"Console"}});n.on("connect",(function(){a(n),console.log("Socket Connected!")})),setInterval((function(){n.emit("get-log")}),1e3),n.on("console-log",(function(e){console.log("Fetched Log",e),x(e.replace((0,d.Z)(),"")),setTimeout((function(){var e=document.getElementById("logHistoryWrapper");e&&(e.scrollTop=e.scrollHeight)}),200)}))}}),[]),o.useEffect((function(){if(s)return function(e){return u.apply(this,arguments)}({socket:s}).then((function(e){m(e)})),function(){var e,t;null===(e=document.getElementById("terminal"))||void 0===e||e.childNodes.forEach((function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)})),null===(t=document.getElementById("shell"))||void 0===t||t.childNodes.forEach((function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)})),null===f||void 0===f||f.dispose()}}),[s]),(0,l.jsxs)(o.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsx)("h2",{className:"text-2xl m-0",children:"Console"}),(0,l.jsx)("button",{onClick:function(e){s&&s.emit("log","Logging to the console")},children:"Log console"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-6 w-full items-stretch",children:[(0,l.jsx)("section",{className:"paper bg-slate-900",id:"terminalWrapper",children:(0,l.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,l.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,l.jsx)("h2",{className:"m-0 text-white text-base",children:"Shell"}),(0,l.jsx)("hr",{className:"opacity-20"}),(0,l.jsx)("div",{id:"shell",className:"relative grow z-50 overflow-hidden w-full h-[340px]"})]})})}),(0,l.jsx)("section",{className:"paper bg-slate-500",id:"terminalWrapper",children:(0,l.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,l.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,l.jsx)("h2",{className:"m-0 text-white text-base",children:"Server Log"}),(0,l.jsx)("hr",{className:"opacity-20"}),(0,l.jsx)("div",{id:"terminal",className:"relative grow z-50 overflow-hidden w-full h-[150px]"})]})})})]})]})}n(56500);var m=!0;function h(e){var t=e.user,n=(e.data,e.socketDomain),o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Console | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Databases Console"})]});return(0,l.jsx)(s.Z,{head:o,user:t,children:(0,l.jsx)(f,{socketDomain:n})})}}},function(e){e.O(0,[6142,493,5313,9774,2888,179],(function(){return t=71889,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3402],{47135:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs",function(){return a(90317)}])},90317:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>_,default:()=>u});var r=a(74848);a(96540);var t=a(2016),n=a(43502),_=!0;function u(e){let{user:s,data:a}=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"})]});return(0,r.jsx)(t.A,{head:_,user:s,children:(0,r.jsx)(n.A,{data:a})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[2016,8135,636,6593,8792],()=>s(47135)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3036],{82907:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs",function(){return e(1376)}])},1376:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSP:function(){return s},default:function(){return c}});var r=e(85893),u=(e(67294),e(85313)),a=e(62435),s=!0;function c(n){var t=n.user,e=n.data,s=(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"})]});return(0,r.jsx)(u.Z,{head:s,user:t,children:(0,r.jsx)(a.Z,{data:e})})}}},function(n){n.O(0,[5313,5622,9774,2888,179],(function(){return t=82907,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{71270:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/create-page",function(){return r(35233)}])},35233:(e,a,r)=>{"use strict";r.r(a),r.d(a,{__N_SSP:()=>u,default:()=>_});var s=r(74848);r(96540);var t=r(2016),n=r(93127),u=!0;function _(e){let{user:a,data:r}=e,u=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(t.A,{head:u,user:a,children:(0,s.jsx)(n.A,{data:r,user:a})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[7623,1522,8521,5414,2016,3127,636,6593,8792],()=>a(71270)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7363],{60745:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/create-page",function(){return r(37585)}])},37585:function(n,e,r){"use strict";r.r(e),r.d(e,{__N_SSP:function(){return s},default:function(){return c}});var t=r(85893),u=(r(67294),r(85313)),a=r(92378),s=!0;function c(n){var e=n.user,r=n.data,s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,t.jsx)(u.Z,{head:s,user:e,children:(0,t.jsx)(a.Z,{data:r,user:e})})}}},function(n){n.O(0,[1179,4185,2452,7901,5313,2378,9774,2888,179],(function(){return e=60745,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3319],{52922:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/edit-page",function(){return a(27825)}])},27825:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>u,default:()=>_});var r=a(74848);a(96540);var t=a(2016),n=a(93127),u=!0;function _(e){let{user:s,data:a}=e,u=(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"})]});return(0,r.jsx)(t.A,{head:u,user:s,children:(0,r.jsx)(n.A,{data:a,user:s})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[7623,1522,8521,5414,2016,3127,636,6593,8792],()=>s(52922)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3412],{29373:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/edit-page",function(){return t(86046)}])},86046:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return s},default:function(){return i}});var r=t(85893),u=(t(67294),t(85313)),a=t(92378),s=!0;function i(n){var e=n.user,t=n.data,s=(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"})]});return(0,r.jsx)(u.Z,{head:s,user:e,children:(0,r.jsx)(a.Z,{data:t,user:e})})}}},function(n){n.O(0,[1179,4185,2452,7901,5313,2378,9774,2888,179],(function(){return e=29373,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3281],{15410:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/pages",function(){return t(46103)}])},46103:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return s},default:function(){return c}});var r=t(85893),u=(t(67294),t(85313)),a=t(62435),s=!0;function c(n){var e=n.user,t=n.data,s=(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"})]});return(0,r.jsx)(u.Z,{head:s,user:e,children:(0,r.jsx)(a.Z,{data:t})})}}},function(n){n.O(0,[5313,5622,9774,2888,179],(function(){return e=15410,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99],{88723:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/pages",function(){return a(82564)}])},82564:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>_,default:()=>u});var r=a(74848);a(96540);var t=a(2016),n=a(43502),_=!0;function u(e){let{user:s,data:a}=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"})]});return(0,r.jsx)(t.A,{head:_,user:s,children:(0,r.jsx)(n.A,{data:a})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[2016,8135,636,6593,8792],()=>s(88723)),_N_E=e.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4795],{85172:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/pages/[id]",function(){return s(71436)}])},71436:(e,r,s)=>{"use strict";s.r(r),s.d(r,{__N_SSP:()=>i,default:()=>_});var t=s(74848),a=s(96540),n=s(2016),u=s(93127);function d(e){let{data:r,user:s}=e,{targetDocPage:n}=r;return(0,t.jsx)(a.Fragment,{children:(0,t.jsx)(u.A,{data:n,user:s})})}var i=!0;function _(e){let{user:r,data:s}=e,a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,t.jsx)(n.A,{head:a,user:r,children:(0,t.jsx)(d,{data:s,user:r})})}}},e=>{var r=r=>e(e.s=r);e.O(0,[7623,1522,8521,5414,2016,3127,636,6593,8792],()=>r(85172)),_N_E=e.O()}]);
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9025],{61182:function(n,r,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/docs/pages/[id]",function(){return e(89242)}])},89242:function(n,r,e){"use strict";e.r(r),e.d(r,{__N_SSP:function(){return i},default:function(){return o}});var t=e(85893),a=e(67294),u=e(85313),s=e(92378);function c(n){var r=n.data,e=n.user,u=r.targetDocPage;return(0,t.jsx)(a.Fragment,{children:(0,t.jsx)(s.Z,{data:u,user:e})})}var i=!0;function o(n){var r=n.user,e=n.data,a=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,t.jsx)(u.Z,{head:a,user:r,children:(0,t.jsx)(c,{data:e,user:r})})}}},function(n){n.O(0,[1179,4185,2452,7901,5313,2378,9774,2888,179],(function(){return r=61182,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
||||
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([[3753],{31893:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/error-logs",function(){return r(31300)}])},96251:function(n,e,r){"use strict";r.d(e,{Z:function(){return u}});var t=r(828),o=r(85893),s=r(67294),i=r(86729),a=r(95264);function u(n){var e=function(){(0,i.Z)("/api/admin/grabErrorLogs").then((function(n){var e;"string"!==typeof n.log||(null===(e=n.log)||void 0===e?void 0:e.match(/./))?(c(""),c(n.log.replace(/\n|\r|\n\r|\\n/gm,"<br/>"))):c("No Logs Yet")}))},r=(0,t.Z)(s.useState(null),2),u=r[0],c=r[1],l=(0,t.Z)(s.useState(!1),2),d=l[0],f=l[1],h=(0,t.Z)(s.useState(0),2),g=h[0],p=h[1];return s.useEffect((function(){e(),0===g&&setInterval((function(){e()}),1e4)}),[g]),(0,o.jsxs)(s.Fragment,{children:[(0,o.jsxs)("div",{className:"w-full justify-between",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,o.jsx)("div",{children:(0,o.jsxs)("button",{onClick:function(n){window.confirm("Clear Error Logs?")&&(f(!0),(0,i.Z)("/api/admin/clearErrorLogs","post").then((function(n){console.log(n),p((function(n){return n+1}))})),setTimeout((function(){f(!1)}),2e3))},className:"outlined gray relative",children:[d&&(0,o.jsx)(a.Z,{width:"20px"}),"Clear Error Log"]})})]}),(0,o.jsxs)("section",{className:"paper",children:[u&&(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:u||"No Log"}}),!u&&(0,o.jsx)(a.Z,{position:"relative",width:"25px"})]})]})}},31300:function(n,e,r){"use strict";r.r(e),r.d(e,{__N_SSP:function(){return i},default:function(){return a}});var t=r(85893),o=(r(67294),r(85313)),s=(r(44187),r(96251)),i=!0;function a(n){var e=n.user,r=(n.data,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}));return(0,t.jsx)(o.Z,{head:r,user:e,children:(0,t.jsx)(s.Z,{})})}}},function(n){n.O(0,[5313,3695,9774,2888,179],(function(){return e=31893,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
||||
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([[7570],{20343:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/login",function(){return n(54211)}])},54211:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSP:function(){return a},default:function(){return o}});var i=n(85893),l=(n(67294),n(9008)),t=n.n(l),r=n(86729),a=!0;function o(e){e.user;var s=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,i.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,i.jsx)(t(),{children:s}),(0,i.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,i.jsx)(c,{}),(0,i.jsxs)("form",{onSubmit:function(e){e.preventDefault();var s=e.target;(0,r.Z)("/api/admin/loginSuUser",{method:"post",body:{email:s.email.value,password:s.password.value,authKey:s["auth-key"].value}}).then((function(e){window.location.reload()}))},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,i.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,i.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,i.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,i.jsx)("button",{children:"Login"})]})]})]})}function c(){return(0,i.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,i.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,i.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,i.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,i.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,i.jsxs)("ul",{className:"p-0",children:[(0,i.jsxs)("li",{children:["Password:"," ",(0,i.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,i.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,i.jsxs)("li",{children:["Auth Key:"," ",(0,i.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,i.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}}},function(e){e.O(0,[9774,2888,179],(function(){return s=20343,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9634],{18098:(e,s,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/login",function(){return l(83254)}])},83254:(e,s,l)=>{"use strict";l.r(s),l.d(s,{__N_SSP:()=>r,default:()=>d});var n=l(74848);l(96540);var i=l(13368),a=l.n(i),t=l(23698),r=!0;function d(e){let{user:s}=e,l=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,n.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,n.jsx)(a(),{children:l}),(0,n.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,n.jsx)(o,{}),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault();let s=e.target;(0,t.A)("/api/admin/loginSuUser",{method:"post",body:{email:s.email.value,password:s.password.value,authKey:s["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,n.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,n.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,n.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,n.jsx)("button",{children:"Login"})]})]})]})}function o(){return(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,n.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,n.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,n.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,n.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,n.jsxs)("ul",{className:"p-0",children:[(0,n.jsxs)("li",{children:["Password:"," ",(0,n.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,n.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,n.jsxs)("li",{children:["Auth Key:"," ",(0,n.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,n.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(18098)),_N_E=e.O()}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5109],{64487:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/users",function(){return s(10394)}])},30861:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(74848),l=s(96540);function r(e){let{userObject:t,userPage:s}=e,r=Object.keys(t),[i,c]=l.useState(!1),[d,h]=l.useState(0),[n,u]=l.useState(!s);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(n?s?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:t.image_thumbnail,alt:"",className:"rounded-full object-cover"+(s?" w-16 h-16":" w-12 h-12")}),!s&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[t.first_name," ",t.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{n?u(!1):u(!0)},children:n?"More Details":"Collapse"}),!s&&(0,a.jsx)("a",{href:"/su/users/".concat(t.id),className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((e,s)=>(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[e,":"," ",(0,a.jsx)("b",{children:t[e]})]})}),s<r.length-1&&(0,a.jsx)("hr",{})]},s+1))}),(0,a.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{u(!0)},children:"Collapse"})]})}},87296:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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"}]])},94909:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},10394:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>d,default:()=>h});var a=s(74848),l=s(96540),r=s(2016),i=s(30861);function c(e){let{data:t}=e;return(0,a.jsx)(l.Fragment,{children:(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Users"}),(0,a.jsx)("a",{href:"/su/users/new",className:"button",children:"Add User"})]}),(0,a.jsx)("div",{className:"flex-col items-stretch gap-10 w-full",children:t.users.map((e,t)=>(0,a.jsx)(i.A,{userObject:e},t+1))})]})})}var d=!0;function h(e){let{user:t,data:s}=e,l=(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"})]});return(0,a.jsx)(r.A,{head:l,user:t,children:(0,a.jsx)(c,{data:s})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[2016,636,6593,8792],()=>t(64487)),_N_E=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
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5682],{17310:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/users/new",function(){return s(40890)}])},30861:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(74848),l=s(96540);function r(e){let{userObject:t,userPage:s}=e,r=Object.keys(t),[i,c]=l.useState(!1),[d,n]=l.useState(0),[h,y]=l.useState(!s);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(h?s?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:t.image_thumbnail,alt:"",className:"rounded-full object-cover"+(s?" w-16 h-16":" w-12 h-12")}),!s&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[t.first_name," ",t.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{h?y(!1):y(!0)},children:h?"More Details":"Collapse"}),!s&&(0,a.jsx)("a",{href:"/su/users/".concat(t.id),className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((e,s)=>(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[e,":"," ",(0,a.jsx)("b",{children:t[e]})]})}),s<r.length-1&&(0,a.jsx)("hr",{})]},s+1))}),(0,a.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{y(!0)},children:"Collapse"})]})}},87296:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(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"}]])},94909:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},40890:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>c,default:()=>d});var a=s(74848),l=s(96540),r=s(2016);function i(e){let{data:t}=e;return(0,a.jsx)(l.Fragment,{children:(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsx)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"New User"})}),(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("h2",{className:"text-base m-0",children:"Info"})})]})})}s(30861);var c=!0;function d(e){let{user:t,data:s}=e,l=(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"})]});return(0,a.jsx)(r.A,{head:l,user:t,children:(0,a.jsx)(i,{data:s})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[2016,636,6593,8792],()=>t(17310)),_N_E=e.O()}]);
|
||||
Reference in New Issue
Block a user