1 line
4.0 KiB
JavaScript
1 line
4.0 KiB
JavaScript
"use strict";(()=>{var e={};e.id=5151,e.ids=[636,5151],e.modules={46692:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>S,getServerSideProps:()=>M,getStaticPaths:()=>f,getStaticProps:()=>P,reportWebVitals:()=>v,routeModule:()=>R,unstable_getServerProps:()=>_,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>y});var s={};t.r(s),t.d(s,{default:()=>x,getStaticPaths:()=>q,getStaticProps:()=>g});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(8732),n=t(82015),m=t.n(n);t(71457),t(87472),t(6845),t(91479),t(84895);var c=t(69436),d=t.n(c);function x({pages:e,targetPage:r}){return(0,l.jsx)(m().Fragment,{})}async function g({params:e}){let r=await d()("SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),t=await d()("SELECT title, slug, description, content FROM docs_pages WHERE slug = ?",[e?.page]);return{props:{user:null,pages:r,targetPage:t[0]?t[0]:{}}}}async function q(){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 S=(0,o.M)(s,"default"),P=(0,o.M)(s,"getStaticProps"),f=(0,o.M)(s,"getStaticPaths"),M=(0,o.M)(s,"getServerSideProps"),b=(0,o.M)(s,"config"),v=(0,o.M)(s,"reportWebVitals"),y=(0,o.M)(s,"unstable_getStaticProps"),h=(0,o.M)(s,"unstable_getStaticPaths"),E=(0,o.M)(s,"unstable_getStaticParams"),_=(0,o.M)(s,"unstable_getServerProps"),C=(0,o.M)(s,"unstable_getServerSideProps"),R=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/docs/[page]",pathname:"/docs/[page]",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},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 r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,5674],()=>t(46692));module.exports=s})(); |