1 line
7.0 KiB
JavaScript
1 line
7.0 KiB
JavaScript
"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.jsx)("a",{href:i,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),l&&l[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(l,i)})]},n)})}(t,"/docs")})]})}s(82015)},6845:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(63715);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(e){return(0,r.jsxs)(a.Html,{lang:"en",children:[(0,r.jsxs)(a.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(a.Main,{}),(0,r.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9600],()=>s(66360));module.exports=r})(); |