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

1 line
2.3 KiB
JavaScript
Raw Normal View History

2025-01-13 08:00:21 +00:00
"use strict";(()=>{var e={};e.id=5700,e.ids=[5700],e.modules={55564:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>x,getServerSideProps:()=>f,getStaticPaths:()=>b,getStaticProps:()=>P,reportWebVitals:()=>v,routeModule:()=>y,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>M});var a={};r.r(a),r.d(a,{default:()=>S,getServerSideProps:()=>m});var s=r(63865),i=r(9455),n=r(30671),o=r(5583),u=r(19796),d=r(8732);r(82015);var p=r(61197),c=r(40778),l=r(55016),g=r(71934);function S({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)(c.A,{head:r,user:e,children:(0,d.jsx)(l.A,{data:t,user:e})})}async function m({req:e,res:t,query:r}){let a=await (0,p.A)(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let s=await (0,g.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return s&&Array.isArray(s)&&s[0]?{props:{user:a,data:s[0]}}:{redirect:{destination:"/su/docs",permanent:!1}}}let x=(0,n.M)(a,"default"),P=(0,n.M)(a,"getStaticProps"),b=(0,n.M)(a,"getStaticPaths"),f=(0,n.M)(a,"getServerSideProps"),h=(0,n.M)(a,"config"),v=(0,n.M)(a,"reportWebVitals"),M=(0,n.M)(a,"unstable_getStaticProps"),q=(0,n.M)(a,"unstable_getStaticPaths"),_=(0,n.M)(a,"unstable_getStaticParams"),A=(0,n.M)(a,"unstable_getServerProps"),j=(0,n.M)(a,"unstable_getServerSideProps"),y=new s.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:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(55564));module.exports=a})();