dsql-admin/dsql-app/.local_dist/server/pages/su/docs/edit-page.js

1 line
2.4 KiB
JavaScript
Raw Normal View History

2024-12-09 09:39:09 +00:00
"use strict";(()=>{var e={};e.id=5700,e.ids=[5700],e.modules={3693:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>b,getServerSideProps:()=>v,getStaticPaths:()=>q,getStaticProps:()=>f,reportWebVitals:()=>M,routeModule:()=>w,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>_});var s={};r.r(s),r.d(s,{default:()=>x,getServerSideProps:()=>P});var a=r(63865),i=r(9455),n=r(30671),o=r(49407),u=r(89600),d=r(8732);r(82015);var p=r(93615),c=r.n(p),l=r(49888),g=r(50129),S=r(67216),m=r.n(S);function x({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(l.A,{head:r,user:e,children:(0,d.jsx)(g.A,{data:t,user:e})})}async function P({req:e,res:t,query:r}){let s=await c()(e);if(!s?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let a=await m()("SELECT * FROM docs_pages WHERE id=?",[r.id]);return a&&Array.isArray(a)&&a[0]?{props:{user:s,data:a[0]}}:{redirect:{destination:"/su/docs",permanent:!1}}}let b=(0,n.M)(s,"default"),f=(0,n.M)(s,"getStaticProps"),q=(0,n.M)(s,"getStaticPaths"),v=(0,n.M)(s,"getServerSideProps"),h=(0,n.M)(s,"config"),M=(0,n.M)(s,"reportWebVitals"),_=(0,n.M)(s,"unstable_getStaticProps"),j=(0,n.M)(s,"unstable_getStaticPaths"),y=(0,n.M)(s,"unstable_getStaticParams"),A=(0,n.M)(s,"unstable_getServerProps"),E=(0,n.M)(s,"unstable_getServerSideProps"),w=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/edit-page",pathname:"/su/docs/edit-page",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:s})},40373:e=>{e.exports=require("@tinymce/tinymce-react")},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,3737,3932,5664],()=>r(3693));module.exports=s})();