dsql-admin/dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-d986893c235e6d5b.js

1 line
2.6 KiB
JavaScript
Raw Permalink Normal View History

2024-12-09 09:39:09 +00:00
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1980],{4233:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]/[sub-page]",function(){return l(7881)}])},4540:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var s=l(4848),a=l(6540);function r(e){let{pages:t}=e;if(!t||!t[0])return null;let l=null==t?void 0:t.filter(e=>1==e.level);return a.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,s.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,s.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,s.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(l,a){return l.map((l,r)=>{let c="".concat(a,"/").concat(l.slug),n=t.filter(e=>2==e.level&&e.parent_id==l.id);return(0,s.jsxs)("li",{children:[(0,s.jsx)("a",{href:c,className:(null==l?void 0:l.level)==1?"font-semibold":"text-slate-600",children:l.title}),n&&n[0]&&(0,s.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(n,c)})]},r)})}(l,"/docs")})]})}},5674:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(4848);function a(e){let{title:t,description:l}=e;return(0,s.jsxs)("section",{className:"py-14",children:[(0,s.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,s.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,s.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,s.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:l}})]})}),(0,s.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"})]})}l(6540)},2900:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(3698);function a(e){let{setUser:t}=e,l=localStorage.getItem("user");if(l)try{t(JSON.parse(l));return}catch(e){t({});return}(0,s.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let l=e.user?e.user:{};t(l),localStorage.setItem("user",JSON.stringify(l))}).catch(e=>{console.log(e)})}},7881:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>a,default:()=>r}),l(4848);var s=l(6540);l(3444),l(6411),l(2900),l(4540),l(5674);var a=!0;function r(e){let{pages:t,targetPage:l}=e;return s.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),null}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(4233)),_N_E=e.O()}]);