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

1 line
8.7 KiB
JavaScript
Raw Normal View History

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