2025-01-13 21:25:20 +00:00
|
|
|
"use strict";(()=>{var e={};e.id=1980,e.ids=[1980,3220],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},29262:(e,t,s)=>{s.r(t),s.d(t,{config:()=>P,default:()=>f,getServerSideProps:()=>S,getStaticPaths:()=>j,getStaticProps:()=>h,reportWebVitals:()=>y,routeModule:()=>M,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>v});var r={};s.r(r),s.d(r,{default:()=>g,getStaticPaths:()=>x,getStaticProps:()=>d});var a=s(63865),n=s(9455),l=s(30671),o=s(5583),i=s(19796);s(8732),s(82015),s(1013),s(91258),s(82271),s(24093),s(69237);var c=s(9973),p=s.n(c),u=s(28187),m=s.n(u);function g({pages:e,targetPage:t}){return null}async function d({params:e}){let t=p()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}});try{let s=e?.["sub-page"],r=await m().utils.connDbHandler(t,"SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),a=r?.filter(t=>t.slug===e?.page&&1==t.level);if(!a)return{props:{user:null,pages:[],targetPage:{}}};let n=await m().utils.connDbHandler(t,"SELECT title, slug, description, content FROM docs_pages WHERE slug = ? AND level = ? AND parent_id = ?",[s,2,a[0]?.id]);return{props:{user:null,pages:r,targetPage:n?.[0]?n[0]:{}}}}catch(e){return{props:{user:null,pages:[],targetPage:{}}}}finally{t?.end()}}async function x(){return{paths:[],fallback:!1}}let f=(0,l.M)(r,"default"),h=(0,l.M)(r,"getStaticProps"),j=(0,l.M)(r,"getStaticPaths"),S=(0,l.M)(r,"getServerSideProps"),P=(0,l.M)(r,"config"),y=(0,l.M)(r,"reportWebVitals"),v=(0,l.M)(r,"unstable_getStaticProps"),b=(0,l.M)(r,"unstable_getStaticPaths"),_=(0,l.M)(r,"unstable_getStaticParams"),A=(0,l.M)(r,"unstable_getServerProps"),D=(0,l.M)(r,"unstable_getServerSideProps"),M=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs/[page]/[sub-page]",pathname:"/docs/[page]/[sub-page]",bundlePath:"",filename:""},components:{App:i.default,Document:o.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),n=s.n(a);function l({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,r.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 f
|