1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
"use strict";(()=>{var e={};e.id=99,e.ids=[99],e.modules={93836:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>v,getServerSideProps:()=>f,getStaticPaths:()=>_,getStaticProps:()=>b,reportWebVitals:()=>q,routeModule:()=>w,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>A,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>M});var s={};r.r(s),r.d(s,{default:()=>P,getServerSideProps:()=>m});var a=r(63865),i=r(9455),o=r(30671),n=r(49407),u=r(89600),p=r(8732);r(82015);var d=r(93615),l=r.n(d),c=r(49888),g=r(59200),S=r(67216),x=r.n(S);function P({user:e,data:t}){let r=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,p.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,p.jsx)(c.A,{head:r,user:e,children:(0,p.jsx)(g.A,{data:t})})}async function m({req:e,res:t,query:r}){let s=await l()(e);return s?.logged_in_status?{props:{user:s,data:{docPages:await x()("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let v=(0,o.M)(s,"default"),b=(0,o.M)(s,"getStaticProps"),_=(0,o.M)(s,"getStaticPaths"),f=(0,o.M)(s,"getServerSideProps"),h=(0,o.M)(s,"config"),q=(0,o.M)(s,"reportWebVitals"),M=(0,o.M)(s,"unstable_getStaticProps"),j=(0,o.M)(s,"unstable_getStaticPaths"),A=(0,o.M)(s,"unstable_getStaticParams"),E=(0,o.M)(s,"unstable_getServerProps"),R=(0,o.M)(s,"unstable_getServerSideProps"),w=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/pages",pathname:"/su/docs/pages",bundlePath:"",filename:""},components:{App:u.default,Document:n.default},userland:s})},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,3932,4333],()=>r(93836));module.exports=s})(); |