harperdb
Version:
HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.
1 lines • 7.54 kB
JavaScript
;(self.webpackChunkharperdb_studio=self.webpackChunkharperdb_studio||[]).push([[924],{7338:(e,s,n)=>{n.r(s),n.d(s,{default:()=>W});var t=n(9950),a=n(625),i=n(5604),r=n(7348),l=n(7202),o=n(5996);const c=(0,l.c)(o.A.stripe_public_key);var d=n(8040),h=n(7732),m=n(6713),p=n(135),u=n(9435),x=n(4283),j=n(5553),f=n(5283),A=n(4979),b=n(4414);const v=function(){return(0,b.jsx)(A.A,{header:"Harper Studio Is Being Updated",body:"Please check back in a few minutes and get ready for a whole new batch of awesome!"})};var g=n(3150),y=n(884),N=n(2763),_=n(7806),w=n(1129),k=n(2676);var q=n(7372),I=n(1659),E=n(5971),z=n(8342),O=n(9335),S=n(7176),$=n(6114);const C=function(){return(0,b.jsx)(O.A,{fluid:"xs",className:"h-100",children:(0,b.jsxs)(S.A,{xs:"1",sm:"2",className:"h-100",children:[(0,b.jsx)($.A,{className:"p-5 auth-studio-info d-none d-sm-flex justify-content-center align-items-center",children:(0,b.jsxs)("div",{className:"auth-studio-info-container",children:[(0,b.jsx)("h1",{className:"auth-title",children:"Harper Studio"}),(0,b.jsx)("span",{className:"mb-4 auth-subtitle d-inline-block",children:"Manage all your Harper instances."}),(0,b.jsxs)("ul",{className:"auth-info-list-items",children:[(0,b.jsxs)("li",{children:[(0,b.jsx)("h3",{className:"item-title",children:"Manage All Instances"}),(0,b.jsx)("span",{className:"item-subtitle",children:"Set access, cluster, monitor, and more."})]}),(0,b.jsxs)("li",{children:[(0,b.jsx)("h3",{className:"item-title",children:"Embedded API Server"}),(0,b.jsx)("span",{className:"item-subtitle",children:"Harper components give you unlimited application flexibility."})]}),(0,b.jsxs)("li",{children:[(0,b.jsx)("h3",{className:"item-title",children:"Fully Managed Cloud & 5G Instances"}),(0,b.jsx)("span",{className:"item-subtitle",children:"Go from zero to code in minutes."})]}),(0,b.jsxs)("li",{children:[(0,b.jsx)("h3",{className:"item-title",children:"Deploy Anywhere"}),(0,b.jsxs)("div",{className:"mt-3",children:[(0,b.jsx)("a",{href:"https://hub.docker.com/r/harperdb/harperdb",target:"_blank",rel:"noreferrer",className:"deploy-subitem",children:"Docker"}),(0,b.jsx)("a",{href:"https://www.npmjs.com/package/harperdb",target:"_blank",rel:"noreferrer",className:"deploy-subitem",children:"npm"}),(0,b.jsx)("a",{href:"https://docs.harperdb.io/docs/deployments/install-harperdb",target:"_blank",rel:"noreferrer",className:"deploy-subitem",children:"all options"})]})]})]})]})}),(0,b.jsx)($.A,{className:"p-5 d-flex justify-content-center align-items-center auth-form-container",children:(0,b.jsx)(a.sv,{})})]})})},P=(0,t.lazy)((()=>n.e(83).then(n.bind(n,5928)))),M=(0,t.lazy)((()=>n.e(195).then(n.bind(n,6269)))),H=(0,t.lazy)((()=>n.e(881).then(n.bind(n,5559)))),T=(0,t.lazy)((()=>n.e(75).then(n.bind(n,3550)))),R=(0,t.lazy)((()=>n.e(607).then(n.bind(n,2553)))),F=(0,t.lazy)((()=>Promise.all([n.e(759),n.e(478)]).then(n.bind(n,52)))),U=(0,t.lazy)((()=>Promise.all([n.e(851),n.e(678)]).then(n.bind(n,5203)))),B=(0,t.lazy)((()=>Promise.all([n.e(851),n.e(279),n.e(860),n.e(913)]).then(n.bind(n,7270)))),D=(0,t.lazy)((()=>Promise.all([n.e(759),n.e(358)]).then(n.bind(n,7408)))),V=(0,t.lazy)((()=>Promise.all([n.e(759),n.e(138)]).then(n.bind(n,4244)))),G={timeout:0,position:r.Xq.BOTTOM_CENTER};let K;function X(e){const{customer_id:s}=(0,a.g)();return e.auth.orgs.some((e=>e.customer_id===s))?(0,b.jsx)(a.sv,{}):(0,b.jsx)(a.C5,{to:"/organization",replace:!0})}const L=function(){const e=document.querySelector('link[rel="canonical"]'),s=(0,a.Zp)(),n=(0,r.MW)(),i=(0,a.zy)(),{search:l,pathname:c}=i,{redirect:d}=x.A.parse(l),O=(0,m.O$)(j.A,(e=>e.auth)),S=(0,m.O$)(j.A,(e=>e.theme)),$=(0,m.O$)(j.A,(e=>e.products)),L=(0,m.O$)(j.A,(e=>e.regions)),W=(0,m.O$)(j.A,(e=>e.wavelengthRegions)),Z=(0,m.O$)(j.A,(e=>e.akamaiRegions)),J=(0,m.O$)(j.A,(e=>e.version)),[Q,Y]=(0,t.useState)(!0),[ee,se]=(0,t.useState)(!1),[ne,te]=(0,f.A)({}),ae=null===O||void 0===O?void 0:O.user_id,ie=ae&&-1===(null===O||void 0===O?void 0:O.email.indexOf("harperdb.io"))&&-1===(null===O||void 0===O?void 0:O.email.indexOf("deliciousmonster.com")),re=(null===J||void 0===J?void 0:J.maintenance)&&ie;return h.Ay.initialize(o.A.google_analytics_code),(0,t.useEffect)((()=>{h.Ay.send({hitType:"pageview",page:window.location.pathname+window.location.search})}),[i.pathname]),(0,t.useEffect)((()=>{(0,E.A)(null===ne||void 0===ne?void 0:ne.theme)}),[null===ne||void 0===ne?void 0:ne.theme]),(0,t.useEffect)((()=>{se((e=>{let{apiVersion:s}=e;if(s){let e=!1;try{const n=o.A.studio_version.split("."),t=s.split("."),a=parseInt(n[0],10)<parseInt(t[0],10),i=parseInt(n[0],10)===parseInt(t[0],10)&&parseInt(n[1],10)<parseInt(t[1],10),r=parseInt(n[0],10)===parseInt(t[0],10)&&parseInt(n[1],10)===parseInt(t[1],10)&&parseInt(n[2],10)<parseInt(t[2],10);(a||i||r)&&(e=s)}catch(n){return!1}return e}return!1})({apiVersion:J.studio}))}),[J.studio]),(0,t.useEffect)((()=>{null!==O&&void 0!==O&&O.email&&(window._kmq&&window._kmq.push(["identify",O.email]),null!==O&&void 0!==O&&O.update_password&&s("/update-password"),d&&s(d))}),[null===O||void 0===O?void 0:O.email]),(0,t.useEffect)((()=>{ee&&n.info(`Harper Studio v${ee} is now available. Refresh to update.`,G)}),[ee]),(0,t.useEffect)((()=>{e.href=window.location.href}),[i,e]),(0,t.useEffect)((()=>{(0,q.A)({currentPath:i.pathname,navigate:s,persistedUser:ne,setPersistedUser:te,setFetchingUser:Y,controller:K})}),[]),(0,p.A)((()=>{$||(0,N.A)(),L||(0,_.A)(),W||(0,w.A)(),Z||(0,z.A)()}),o.A.refresh_content_interval),(0,p.A)((()=>{(0,k.A)(),(0,I.A)({auth:O,controller:K})}),o.A.check_version_interval),(0,b.jsxs)("div",{className:`${S} ${o.A.maintenance?"maintenance":""}`,children:[(0,b.jsx)(t.Suspense,{fallback:(0,b.jsx)(A.A,{header:" ",spinner:!0}),children:(0,b.jsx)(P,{isMaintenance:re,loggedIn:ae})}),Q?(0,b.jsx)("div",{className:"vh-100",children:(0,b.jsx)(A.A,{header:"Signing in...",spinner:!0})}):(0,b.jsx)("main",{id:ae?"app-container":"",className:ae?"":"auth-container",children:(0,b.jsx)(u.tH,{FallbackComponent:ae?g.A:y.A,children:(0,b.jsx)(t.Suspense,{fallback:(0,b.jsx)(A.A,{header:"Loading...",spinner:!0}),children:(0,b.jsx)(a.BV,{children:ae?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.qh,{element:re?(0,b.jsx)(v,{}):(0,b.jsx)(R,{}),path:"/update-password"}),(0,b.jsx)(a.qh,{element:re?(0,b.jsx)(v,{}):(0,b.jsx)(V,{}),path:"/profile/*"}),(0,b.jsxs)(a.qh,{element:re?(0,b.jsx)(v,{}):(0,b.jsx)(X,{auth:O}),children:[(0,b.jsx)(a.qh,{element:(0,b.jsx)(D,{}),path:"/o/:customer_id/i/:compute_stack_id/*"}),(0,b.jsx)(a.qh,{element:(0,b.jsx)(B,{}),path:"/o/:customer_id/instances/:action?/:purchaseStep?"}),(0,b.jsx)(a.qh,{element:(0,b.jsx)(F,{}),path:"/o/:customer_id/*"})]}),(0,b.jsx)(a.qh,{element:re?(0,b.jsx)(v,{}):(0,b.jsx)(U,{}),path:"/:list?/:action?"}),(0,b.jsx)(a.qh,{element:(0,b.jsx)(a.C5,{to:"/",replace:!0})})]}):(0,b.jsxs)(a.qh,{element:(0,b.jsx)(C,{}),children:[(0,b.jsx)(a.qh,{element:(0,b.jsx)(H,{}),path:"/"}),(0,b.jsx)(a.qh,{element:o.A.maintenance?(0,b.jsx)(v,{}):(0,b.jsx)(M,{}),path:"/sign-up"}),(0,b.jsx)(a.qh,{element:re?(0,b.jsx)(v,{}):(0,b.jsx)(T,{}),path:"/reset-password"}),(0,b.jsx)(a.qh,{path:"*",element:(0,b.jsx)(a.C5,{to:`/?redirect=${c}${l}`,replace:!0})})]})})})})}),(0,b.jsx)("div",{id:"app-bg-color"}),(0,b.jsxs)("div",{className:"version",children:["Harper Studio v",o.A.studio_version,J.maintenance&&" - MAINTENANCE MODE"]})]})};const W=function(){return(0,b.jsx)(i.Elements,{stripe:c,children:(0,b.jsx)(r.Kq,{template:d.A,timeout:4e3,position:r.Xq.TOP_CENTER,children:(0,b.jsx)(a.Kd,{children:(0,b.jsx)(L,{})})})})}}}]);