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

1 line
8.0 KiB
JavaScript
Raw Normal View History

2025-01-13 21:25:20 +00:00
"use strict";(()=>{var e={};e.id=5151,e.ids=[3220,5151],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}}})},59527:(e,t,s)=>{s.r(t),s.d(t,{config:()=>_,default:()=>P,getServerSideProps:()=>b,getStaticPaths:()=>v,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>O,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>f,getStaticPaths:()=>S,getStaticProps:()=>j});var a=s(63865),n=s(9455),l=s(30671),o=s(5583),i=s(19796),c=s(8732),p=s(82015),u=s.n(p),m=s(1013);s(91258),s(82271),s(24093),s(69237);var d=s(28187),g=s.n(d),x=s(9973),h=s.n(x);function f({pages:e,targetPage:t}){try{return(0,c.jsx)(u().Fragment,{})}catch(e){return(0,c.jsx)(m.A,{head:null,user:null,children:(0,c.jsx)("span",{children:"Redirection ..."})})}}async function j({params:e}){let t=h()({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=await g().utils.connDbHandler(t,"SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),r=await g().utils.connDbHandler(t,"SELECT title, slug, description, content FROM docs_pages WHERE slug = ?",[e?.page]);return{props:{user:null,pages:s||[],targetPage:r[0]?r[0]:{}}}}catch(e){return{props:{user:null,pages:[],targetPage:{}}}}finally{t?.end()}}async function S(){return{paths:[],fallback:!1}}let P=(0,l.M)(r,"default"),y=(0,l.M)(r,"getStaticProps"),v=(0,l.M)(r,"getStaticPaths"),b=(0,l.M)(r,"getServerSideProps"),_=(0,l.M)(r,"config"),A=(0,l.M)(r,"reportWebVitals"),M=(0,l.M)(r,"unstable_getStaticProps"),D=(0,l.M)(r,"unstable_getStaticPaths"),w=(0,l.M)(r,"unstable_getStaticParams"),q=(0,l.M)(r,"unstable_getServerProps"),E=(0,l.M)(r,"unstable_getServerSideProps"),O=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs/[page]",pathname:"/docs/[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 flex flex-col items-start",chil