dsql-admin/dsql-app/.local_dist/server/pages/docs.js

1 line
7.0 KiB
JavaScript
Raw Normal View History

2024-12-09 09:39:09 +00:00
"use strict";(()=>{var e={};e.id=7797,e.ids=[3220,7797],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}}})},66360:(e,t,s)=>{s.r(t),s.d(t,{config:()=>w,default:()=>b,getServerSideProps:()=>A,getStaticPaths:()=>y,getStaticProps:()=>v,reportWebVitals:()=>N,routeModule:()=>I,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>_});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>S});var a=s(63865),n=s(9455),i=s(30671),l=s(49407),o=s(89600),c=s(8732),m=s(82015),u=s.n(m),d=s(71457),p=s(87472);s(6845);var x=s(91479);function g(e){return(0,c.jsxs)("section",{className:"py-14",children:[(0,c.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,c.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,c.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,c.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,c.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}var f=s(58526);function h({title:e,description:t,url:s}){return(0,c.jsxs)("a",{href:s,className:"card",children:[(0,c.jsxs)("div",{className:"flex-col items-start",children:[(0,c.jsx)("span",{className:"text-2xl font-semibold",children:e}),(0,c.jsx)("span",{className:"max-w-md text-slate-600",children:t})]}),(0,c.jsx)(f.A,{size:20})]})}function j(e){return(0,c.jsx)("section",{className:"py-14",children:(0,c.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,c.jsx)(h,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,c.jsx)(h,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,c.jsx)(h,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}function P({pages:e,targetPage:t}){let s=`${t.title} | Datasquirel docs`,r=t.description,a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:s}),(0,c.jsx)("meta",{name:"description",content:r}),(0,c.jsx)(p.A,{pageTitle:s,pageDescription:r,pagePathname:"/"})]}),[n,i]=u().useState(null);return(0,c.jsx)(d.A,{head:a,user:n,children:(0,c.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,c.jsx)(x.A,{pages:e}),(0,c.jsxs)("main",{children:[(0,c.jsx)(g,{}),(0,c.jsx)(j,{})]})]})})}async function S({query:e}){return{redirect:{destination:"/docs/getting-started",permanent:!1}}}let b=(0,i.M)(r,"default"),v=(0,i.M)(r,"getStaticProps"),y=(0,i.M)(r,"getStaticPaths"),A=(0,i.M)(r,"getServerSideProps"),w=(0,i.M)(r,"config"),N=(0,i.M)(r,"reportWebVitals"),_=(0,i.M)(r,"unstable_getStaticProps"),M=(0,i.M)(r,"unstable_getStaticPaths"),q=(0,i.M)(r,"unstable_getStaticParams"),k=(0,i.M)(r,"unstable_getServerProps"),E=(0,i.M)(r,"unstable_getServerSideProps"),I=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs",pathname:"/docs",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:r})},91479:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e||!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",children:function t(s,a){return s.map((s,n)=>{let i=`${a}/${s.slug}`,l=e.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r