1 line
4.4 KiB
JavaScript
1 line
4.4 KiB
JavaScript
"use strict";(()=>{var e={};e.id=1980,e.ids=[636,1980],e.modules={14126:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>g,getServerSideProps:()=>S,getStaticPaths:()=>q,getStaticProps:()=>x,reportWebVitals:()=>P,routeModule:()=>E,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>b});var s={};t.r(s),t.d(s,{default:()=>c,getStaticPaths:()=>d,getStaticProps:()=>m});var i=t(63865),u=t(9455),a=t(30671),o=t(49407),l=t(68268);t(8732),t(82015),t(71457),t(87472),t(6845),t(91479),t(84895);var p=t(69436),n=t.n(p);function c({pages:e,targetPage:r}){return null}async function m({params:e}){let r=e?.["sub-page"],t=await n()("SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),s=t?.filter(r=>r.slug===e?.page&&1==r.level);if(!s)return{redirect:{destination:"/docs",permanent:!1}};let i=await n()("SELECT title, slug, description, content FROM docs_pages WHERE slug = ? AND level = ? AND parent_id = ?",[r,2,s[0]?.id]);return{props:{user:null,pages:t,targetPage:i?.[0]?i[0]:{}}}}async function d(){try{let e=await n()("SELECT id, title, slug, level, parent_id FROM docs_pages"),r=e?.filter(e=>2==parseInt(e?.level)),t=[],s=e?.filter(e=>e?.level==1);if(!s?.[0])return{paths:[],fallback:!1};return s.forEach(e=>{let s=r?.filter(r=>r.parent_id==e?.id);s?.forEach(r=>{t.push({params:{page:e.slug,"sub-page":r.slug}})})}),{paths:t,fallback:!1}}catch(e){return console.log("Error =>",e.message),{paths:[],fallback:!1}}}let g=(0,a.M)(s,"default"),x=(0,a.M)(s,"getStaticProps"),q=(0,a.M)(s,"getStaticPaths"),S=(0,a.M)(s,"getServerSideProps"),f=(0,a.M)(s,"config"),P=(0,a.M)(s,"reportWebVitals"),b=(0,a.M)(s,"unstable_getStaticProps"),h=(0,a.M)(s,"unstable_getStaticPaths"),v=(0,a.M)(s,"unstable_getStaticParams"),M=(0,a.M)(s,"unstable_getServerProps"),y=(0,a.M)(s,"unstable_getServerSideProps"),E=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/docs/[page]/[sub-page]",pathname:"/docs/[page]/[sub-page]",bundlePath:"",filename:""},components:{App:l.default,Document:o.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(14126));module.exports=s})(); |