1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5151],{9365:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]",function(){return s(8070)}])},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:n}=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}),n&&(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(!(null==t?void 0: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 n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(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"})]})}s(6540)},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)})}},8070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>n,default:()=>c});var l=s(4848),r=s(6540),a=s(4252);s(9625),s(3434),s(1806),s(9072);var n=!0;function c(e){let{pages:t,targetPage:s}=e;try{return r.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),(0,l.jsx)(r.Fragment,{})}catch(e){return r.useEffect(()=>{window.location.pathname="/docs"},[]),(0,l.jsx)(a.A,{head:null,user:null,children:(0,l.jsx)("span",{children:"Redirection ..."})})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(9365)),_N_E=e.O()}]); |