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
@@ -1 +1 @@
|
||||
"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={86482:(e,t,r)=>{r.r(t),r.d(t,{config:()=>g,default:()=>n,getServerSideProps:()=>c,getStaticPaths:()=>l,getStaticProps:()=>d,reportWebVitals:()=>S,routeModule:()=>M,unstable_getServerProps:()=>x,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>m,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>P});var s=r(63865),a=r(9455),i=r(30671),u=r(49407),o=r(89600),p=r(86176);let n=(0,i.M)(p,"default"),d=(0,i.M)(p,"getStaticProps"),l=(0,i.M)(p,"getStaticPaths"),c=(0,i.M)(p,"getServerSideProps"),g=(0,i.M)(p,"config"),S=(0,i.M)(p,"reportWebVitals"),P=(0,i.M)(p,"unstable_getStaticProps"),b=(0,i.M)(p,"unstable_getStaticPaths"),m=(0,i.M)(p,"unstable_getStaticParams"),x=(0,i.M)(p,"unstable_getServerProps"),q=(0,i.M)(p,"unstable_getServerSideProps"),M=new s.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:o.default,Document:u.default},userland:p})},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9600,7070,3460],()=>r(86482));module.exports=s})();
|
||||
"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={25316:(e,t,a)=>{a.r(t),a.d(t,{config:()=>w,default:()=>M,getServerSideProps:()=>D,getStaticPaths:()=>A,getStaticProps:()=>q,reportWebVitals:()=>E,routeModule:()=>W,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>C});var s={};a.r(s),a.d(s,{DatabasesContext:()=>P,default:()=>v,getServerSideProps:()=>_});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),u=a(19796),l=a(8732),o=a(82015),c=a.n(o),p=a(25562),x=a(92702),m=a(53926),g=a(66485),b=a(56331),S=a(67274);function f(){let{databases:e,setTargetDatabase:t,user:a}=c().useContext(P);return(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,l.jsxs)("a",{href:`/admin/${a?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Database"})]})]}),(0,l.jsx)(m.A,{user:a})]}),a?.verification_status?.toString().match(/1/)?(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(b.A,{databases:e,setTargetDatabase:t,user:a}),(0,l.jsx)(S.A,{user:a})]}):(0,l.jsx)(g.A,{})]})}var h=a(70355),j=a(71934);let P=c().createContext({});function v({user:e,databases:t}){let a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Databases | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,r]=c().useState();return(0,l.jsx)(P.Provider,{value:{user:e,databases:t,targetDatabase:s,setTargetDatabase:r},children:(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(p.A,{head:a,user:e,children:(0,l.jsx)(f,{})}),(0,l.jsx)(h.A,{targetDatabase:s})]})})}async function _({req:e,res:t,query:a}){let s=await (0,x.default)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,j.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,databases:r}}}let M=(0,n.M)(s,"default"),q=(0,n.M)(s,"getStaticProps"),A=(0,n.M)(s,"getStaticPaths"),D=(0,n.M)(s,"getServerSideProps"),w=(0,n.M)(s,"config"),E=(0,n.M)(s,"reportWebVitals"),C=(0,n.M)(s,"unstable_getStaticProps"),y=(0,n.M)(s,"unstable_getStaticPaths"),F=(0,n.M)(s,"unstable_getStaticParams"),N=(0,n.M)(s,"unstable_getServerProps"),R=(0,n.M)(s,"unstable_getServerSideProps"),W=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,6160],()=>a(25316));module.exports=s})();
|
||||
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
-1
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
+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
-1
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
-1
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
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+9
-9
@@ -1,17 +1,17 @@
|
||||
"use strict";(()=>{var e={};e.id=6930,e.ids=[6930],e.modules={26364:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>g,getStaticPaths:()=>c,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>T});var s=r(63865),i=r(9455),n=r(30671),l=r(49407),o=r(89600),u=r(98842),d=e([u]);u=(d.then?(await d)():d)[0];let p=(0,n.M)(u,"default"),m=(0,n.M)(u,"getStaticProps"),c=(0,n.M)(u,"getStaticPaths"),g=(0,n.M)(u,"getServerSideProps"),x=(0,n.M)(u,"config"),h=(0,n.M)(u,"reportWebVitals"),T=(0,n.M)(u,"unstable_getStaticProps"),I=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),f=(0,n.M)(u,"unstable_getServerProps"),v=(0,n.M)(u,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:u});a()}catch(e){a(e)}})},63014:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(64030);function s({paradigm:e,table:t,query:r,user:s}){let i="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),l=t.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let o=[],u=[];o.push(`type ${s} = {`),u.push(`/**
|
||||
* @typedef {object} ${s}`),l.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(a.A)?"?":"";o.push(` ${e.fieldName}${t}: ${n(e.dataType||"")};`),u.push(` * @property {${n(e.dataType||"")}${t}} ${e.fieldName}`)}),o.push("}"),u.push(" */"),e?.match(/javascript/i)&&(i=u.join("\n")),e?.match(/typescript/i)&&(i=o.join("\n"))}catch(e){console.log(e.message),i=null}return i}},39897:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({collapse:e,setCollapse:t}){return(0,a.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,a.jsx)("span",{children:e?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},2817:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:i}){return(0,a.jsx)(a.Fragment,{})}r(82015),r(1976),r(58150)},64030:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},22373:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR ===========================
|
||||
"use strict";(()=>{var e={};e.id=6930,e.ids=[6930],e.modules={52738:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>g,getStaticPaths:()=>c,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>T});var i=r(63865),s=r(9455),n=r(30671),l=r(5583),o=r(19796),u=r(78704),d=e([u]);u=(d.then?(await d)():d)[0];let p=(0,n.M)(u,"default"),m=(0,n.M)(u,"getStaticProps"),c=(0,n.M)(u,"getStaticPaths"),g=(0,n.M)(u,"getServerSideProps"),x=(0,n.M)(u,"config"),h=(0,n.M)(u,"reportWebVitals"),T=(0,n.M)(u,"unstable_getStaticProps"),I=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),f=(0,n.M)(u,"unstable_getServerProps"),v=(0,n.M)(u,"unstable_getServerSideProps"),y=new i.PagesRouteModule({definition:{kind:s.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:u});a()}catch(e){a(e)}})},60424:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(42960);function i({paradigm:e,table:t,query:r,user:i}){let s="";try{let i=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),l=t.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let o=[],u=[];o.push(`type ${i} = {`),u.push(`/**
|
||||
* @typedef {object} ${i}`),l.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(a.A)?"?":"";o.push(` ${e.fieldName}${t}: ${n(e.dataType||"")};`),u.push(` * @property {${n(e.dataType||"")}${t}} ${e.fieldName}`)}),o.push("}"),u.push(" */"),e?.match(/javascript/i)&&(s=u.join("\n")),e?.match(/typescript/i)&&(s=o.join("\n"))}catch(e){console.log(e.message),s=null}return s}},51339:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(8732);function i({collapse:e,setCollapse:t}){return(0,a.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,a.jsx)("span",{children:e?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},84483:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(8732);function i({children:e,open:t,setOpen:r,onClose:i,maxWidth:s}){return(0,a.jsx)(a.Fragment,{})}r(82015),r(1976),r(58150)},42960:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},77047:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(29021),i=r.n(a);async function s({user:e,message:t,component:r,noMail:a,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],t=s.headers["x-real-ip"],r=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=r||a||t||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR ===========================
|
||||
Error Message: ${t}
|
||||
Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=`
|
||||
Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=`
|
||||
User Id: ${e?.id}
|
||||
User Name: ${e?.first_name} ${e?.last_name}
|
||||
User Email: ${e?.email}`),i?.url&&(s+=`
|
||||
URL: ${i.url}`),i?.body&&(s+=`
|
||||
Request Body: ${JSON.stringify(i.body,null,4)}`),l&&(s+=`
|
||||
IP: ${l}`),s+=`
|
||||
User Email: ${e?.email}`),s?.url&&(a+=`
|
||||
URL: ${s.url}`),s?.body&&(a+=`
|
||||
Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=`
|
||||
IP: ${l}`),a+=`
|
||||
Date: ${n.toDateString()}
|
||||
========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",`
|
||||
========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let o=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",`
|
||||
|
||||
|
||||
|
||||
|
||||
${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,6521,9600,7070,5134,3737,9621,9732,8842],()=>r(26364));module.exports=a})();
|
||||
${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,6521,9796,5392,3634,3155,3791,725,4627,8704],()=>r(52738));module.exports=a})();
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+9
-9
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+9
-9
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
-1
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
-1
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
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(()=>{var e={};e.id=2602,e.ids=[2602],e.modules={68126:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>P,default:()=>l,getServerSideProps:()=>S,getStaticPaths:()=>g,getStaticProps:()=>c,reportWebVitals:()=>m,routeModule:()=>_,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>b});var a=r(63865),i=r(9455),u=r(30671),o=r(49407),p=r(89600),n=r(87730),d=e([n]);n=(d.then?(await d)():d)[0];let l=(0,u.M)(n,"default"),c=(0,u.M)(n,"getStaticProps"),g=(0,u.M)(n,"getStaticPaths"),S=(0,u.M)(n,"getServerSideProps"),P=(0,u.M)(n,"config"),m=(0,u.M)(n,"reportWebVitals"),b=(0,u.M)(n,"unstable_getStaticProps"),x=(0,u.M)(n,"unstable_getStaticPaths"),q=(0,u.M)(n,"unstable_getStaticParams"),M=(0,u.M)(n,"unstable_getServerProps"),v=(0,u.M)(n,"unstable_getServerSideProps"),_=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]",pathname:"/admin/[user_id]/databases/[single]/users/[user]",bundlePath:"",filename:""},components:{App:p.default,Document:o.default},userland:n});s()}catch(e){s(e)}})},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9600,7070,5134,1614,9914],()=>r(68126));module.exports=s})();
|
||||
"use strict";(()=>{var e={};e.id=2602,e.ids=[2602],e.modules={82960:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>m,default:()=>l,getServerSideProps:()=>S,getStaticPaths:()=>g,getStaticProps:()=>c,reportWebVitals:()=>P,routeModule:()=>v,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>x});var a=r(63865),i=r(9455),u=r(30671),o=r(5583),n=r(19796),p=r(50264),d=e([p]);p=(d.then?(await d)():d)[0];let l=(0,u.M)(p,"default"),c=(0,u.M)(p,"getStaticProps"),g=(0,u.M)(p,"getStaticPaths"),S=(0,u.M)(p,"getServerSideProps"),m=(0,u.M)(p,"config"),P=(0,u.M)(p,"reportWebVitals"),x=(0,u.M)(p,"unstable_getStaticProps"),b=(0,u.M)(p,"unstable_getStaticPaths"),q=(0,u.M)(p,"unstable_getStaticParams"),M=(0,u.M)(p,"unstable_getServerProps"),f=(0,u.M)(p,"unstable_getServerSideProps"),v=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]",pathname:"/admin/[user_id]/databases/[single]/users/[user]",bundlePath:"",filename:""},components:{App:n.default,Document:o.default},userland:p});s()}catch(e){s(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,3634,3474],()=>r(82960));module.exports=s})();
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(()=>{var e={};e.id=6377,e.ids=[6377],e.modules={50609:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{config:()=>x,default:()=>c,getServerSideProps:()=>g,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>b,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>w});var a=t(63865),i=t(9455),n=t(30671),d=t(49407),l=t(89600),o=t(65956),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,n.M)(o,"default"),p=(0,n.M)(o,"getStaticProps"),m=(0,n.M)(o,"getStaticPaths"),g=(0,n.M)(o,"getServerSideProps"),x=(0,n.M)(o,"config"),h=(0,n.M)(o,"reportWebVitals"),w=(0,n.M)(o,"unstable_getStaticProps"),f=(0,n.M)(o,"unstable_getStaticPaths"),v=(0,n.M)(o,"unstable_getStaticParams"),P=(0,n.M)(o,"unstable_getServerProps"),S=(0,n.M)(o,"unstable_getServerSideProps"),b=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]/change-password",pathname:"/admin/[user_id]/databases/[single]/users/[user]/change-password",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:o});r()}catch(e){r(e)}})},91736:(e,s,t)=>{t.d(s,{A:()=>u});var r=t(8732),a=t(82015),i=t.n(a),n=t(58548),d=t(46437),l=t(63715),o=t(32415);function u({singleUser:e,database:s,user:t}){let[a,u]=i().useState(!1);return(0,r.jsxs)(i().Fragment,{children:[a&&(0,r.jsx)(o.A,{width:"20px"}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(d.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,r.jsxs)("u",{children:[e.first_name," ",e.last_name]})]})]})}),(0,r.jsx)(n.A,{user:t})]}),(0,r.jsx)("section",{className:"paper",children:(0,r.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,r.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:r=>{r.preventDefault(),u(!0);let a=document.getElementById("password"),i=document.getElementById("password-repeat"),n=RegExp(`${a.value}`);if(!i?.value?.match(n)){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){u(!1);return}(0,l.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:e.id,password:a.value,dbId:s.id}},!0).then(r=>{r.success&&(window.location.pathname=`/admin/${t?.id}/databases/${s.db_slug}/users/${e.id}`)}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{u(!1)},2e3)})},children:[(0,r.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{let s=document.getElementById("password"),t=document.getElementById("password-repeat"),r=s?.value?RegExp(`${s.value}`):null;r&&(t?.value?.match(r)?t.classList.remove("warning"):t.classList.add("warning"))},required:!0}),(0,r.jsx)("button",{children:"Change Password"})]})})})]})}},65956:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{default:()=>u,getServerSideProps:()=>c});var a=t(8732);t(82015);var i=t(95222),n=t(64098),d=t(87730),l=t(91736),o=e([n,d]);function u({user:e,database:s,table:t,dbSchemaData:r,singleUser:d,query:o,confirmedDelegetedUser:u}){let c=`${d.first_name} ${d.last_name} Users | Datasquirel"`,p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:c}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,a.jsx)(i.A,{head:p,user:e,extraHeaderContent:(0,a.jsx)(n.A,{database:s,query:o,confirmedDelegetedUser:u,user:e}),children:(0,a.jsx)(l.A,{singleUser:d,database:s,user:e})})}[n,d]=o.then?(await o)():o;let c=d.getServerSideProps;r()}catch(e){r(e)}})},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[883,9821,9600,7070,5134,1614,9914],()=>t(50609));module.exports=r})();
|
||||
"use strict";(()=>{var e={};e.id=6377,e.ids=[6377],e.modules={6231:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{config:()=>g,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>b,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>w});var a=t(63865),i=t(9455),d=t(30671),n=t(5583),l=t(19796),o=t(58262),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,d.M)(o,"default"),p=(0,d.M)(o,"getStaticProps"),m=(0,d.M)(o,"getStaticPaths"),x=(0,d.M)(o,"getServerSideProps"),g=(0,d.M)(o,"config"),h=(0,d.M)(o,"reportWebVitals"),w=(0,d.M)(o,"unstable_getStaticProps"),f=(0,d.M)(o,"unstable_getStaticPaths"),v=(0,d.M)(o,"unstable_getStaticParams"),P=(0,d.M)(o,"unstable_getServerProps"),S=(0,d.M)(o,"unstable_getServerSideProps"),b=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]/change-password",pathname:"/admin/[user_id]/databases/[single]/users/[user]/change-password",bundlePath:"",filename:""},components:{App:l.default,Document:n.default},userland:o});r()}catch(e){r(e)}})},63378:(e,s,t)=>{t.d(s,{A:()=>u});var r=t(8732),a=t(82015),i=t.n(a),d=t(53926),n=t(59023),l=t(46169),o=t(16757);function u({singleUser:e,database:s,user:t}){let[a,u]=i().useState(!1);return(0,r.jsxs)(i().Fragment,{children:[a&&(0,r.jsx)(o.A,{width:"20px"}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(n.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,r.jsxs)("u",{children:[e.first_name," ",e.last_name]})]})]})}),(0,r.jsx)(d.A,{user:t})]}),(0,r.jsx)("section",{className:"paper",children:(0,r.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,r.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:r=>{r.preventDefault(),u(!0);let a=document.getElementById("password"),i=document.getElementById("password-repeat"),d=RegExp(`${a.value}`);if(!i?.value?.match(d)){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){u(!1);return}(0,l.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:e.id,password:a.value,dbId:s.id}},!0).then(r=>{r.success&&(window.location.pathname=`/admin/${t?.id}/databases/${s.db_slug}/users/${e.id}`)}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{u(!1)},2e3)})},children:[(0,r.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{let s=document.getElementById("password"),t=document.getElementById("password-repeat"),r=s?.value?RegExp(`${s.value}`):null;r&&(t?.value?.match(r)?t.classList.remove("warning"):t.classList.add("warning"))},required:!0}),(0,r.jsx)("button",{children:"Change Password"})]})})})]})}},58262:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{default:()=>u,getServerSideProps:()=>c});var a=t(8732);t(82015);var i=t(25562),d=t(55880),n=t(50264),l=t(63378),o=e([d,n]);function u({user:e,database:s,table:t,dbSchemaData:r,singleUser:n,query:o,confirmedDelegetedUser:u}){let c=`${n.first_name} ${n.last_name} Users | Datasquirel"`,p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:c}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,a.jsx)(i.A,{head:p,user:e,extraHeaderContent:(0,a.jsx)(d.A,{database:s,query:o,confirmedDelegetedUser:u,user:e}),children:(0,a.jsx)(l.A,{singleUser:n,database:s,user:e})})}[d,n]=o.then?(await o)():o;let c=n.getServerSideProps;r()}catch(e){r(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[883,9821,9796,5392,3634,3474],()=>t(6231));module.exports=r})();
|
||||
+1
-1
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
-1
File diff suppressed because one or more lines are too long
+3
-3
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
+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
+1
-1
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
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user