dsql-admin/dsql-app/.local_dist/static/chunks/pages/docs-5ec48702f4389bb8.js
Benjamin Toby e0a030f10d Updates
2025-01-13 09:00:21 +01:00

1 line
5.1 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7797],{501:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs",function(){return s(2189)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:c}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),c&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!t||!t[0])return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.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,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let c="".concat(r,"/").concat(s.slug),n=t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:c,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),n&&n[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(n,c)})]},a)})}(s,"/docs")})]})}},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},2189:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>x,default:()=>h});var l=s(4848),r=s(6540),a=s(4252),c=s(9625),n=s(3434),i=s(1806);function o(){return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,l.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,l.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 d=s(2027);function m(e){let{title:t,description:s,url:r}=e;return(0,l.jsxs)("a",{href:r,className:"card",children:[(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("span",{className:"text-2xl font-semibold",children:t}),(0,l.jsx)("span",{className:"max-w-md text-slate-600",children:s})]}),(0,l.jsx)(d.A,{size:20})]})}function u(){return(0,l.jsx)("section",{className:"py-14",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,l.jsx)(m,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,l.jsx)(m,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,l.jsx)(m,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}var x=!0;function h(e){let{pages:t,targetPage:s}=e,d="".concat(s.title," | Datasquirel docs"),m=s.description,x=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:d}),(0,l.jsx)("meta",{name:"description",content:m}),(0,l.jsx)(c.A,{pageTitle:d,pageDescription:m,pagePathname:"/"})]}),[h,f]=r.useState(null);return r.useEffect(()=>{(0,n.A)({setUser:f})},[]),(0,l.jsx)(a.A,{head:x,user:h,children:(0,l.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,l.jsx)(i.A,{pages:t}),(0,l.jsxs)("main",{children:[(0,l.jsx)(o,{}),(0,l.jsx)(u,{})]})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(501)),_N_E=e.O()}]);