dsql-admin/dsql-app/.local_dist/server/pages/docs/[page].js

1 line
2.3 KiB
JavaScript
Raw Normal View History

2024-12-09 09:39:09 +00:00
"use strict";(()=>{var e={};e.id=5151,e.ids=[5151],e.modules={46692:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>v,getServerSideProps:()=>_,getStaticPaths:()=>M,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>C,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>h});var a={};r.r(a),r.d(a,{default:()=>S,getStaticPaths:()=>m,getStaticProps:()=>P});var s=r(63865),i=r(9455),o=r(30671),u=r(49407),l=r(89600),n=r(8732),p=r(82015),g=r.n(p);r(71457),r(87472),r(6845),r(91479),r(84895);var c=r(69436),d=r.n(c);function S({pages:e,targetPage:t}){return(0,n.jsx)(g().Fragment,{})}async function P({params:e}){let t=await d()("SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),r=await d()("SELECT title, slug, description, content FROM docs_pages WHERE slug = ?",[e?.page]);return{props:{user:null,pages:t,targetPage:r[0]?r[0]:{}}}}async function m(){try{return{paths:(await d()("SELECT id, title, slug, level, parent_id FROM docs_pages WHERE level = 1")).map(e=>({params:{page:e.slug}})),fallback:!1}}catch(e){return console.log("Error =>",e.message),{paths:[],fallback:!1}}}let v=(0,o.M)(a,"default"),b=(0,o.M)(a,"getStaticProps"),M=(0,o.M)(a,"getStaticPaths"),_=(0,o.M)(a,"getServerSideProps"),f=(0,o.M)(a,"config"),x=(0,o.M)(a,"reportWebVitals"),h=(0,o.M)(a,"unstable_getStaticProps"),E=(0,o.M)(a,"unstable_getStaticPaths"),q=(0,o.M)(a,"unstable_getStaticParams"),R=(0,o.M)(a,"unstable_getServerProps"),w=(0,o.M)(a,"unstable_getServerSideProps"),C=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/docs/[page]",pathname:"/docs/[page]",bundlePath:"",filename:""},components:{App:l.default,Document:u.default},userland:a})},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")},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),a=t.X(0,[883,9821,9600,5674],()=>r(46692));module.exports=a})();