From 5da14042f70711ea5cf66e034699730335462f66 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 14:08:03 +0200 Subject: Merging upstream version 1.45.3+dfsg. Signed-off-by: Daniel Baumann --- src/web/gui/v2/5596.8280cb325a103342aa30.chunk.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/web/gui/v2/5596.8280cb325a103342aa30.chunk.js (limited to 'src/web/gui/v2/5596.8280cb325a103342aa30.chunk.js') diff --git a/src/web/gui/v2/5596.8280cb325a103342aa30.chunk.js b/src/web/gui/v2/5596.8280cb325a103342aa30.chunk.js new file mode 100644 index 000000000..852d4e2e9 --- /dev/null +++ b/src/web/gui/v2/5596.8280cb325a103342aa30.chunk.js @@ -0,0 +1 @@ +!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1090411b-a40f-4c47-80fb-ee9da671b268",e._sentryDebugIdIdentifier="sentry-dbid-1090411b-a40f-4c47-80fb-ee9da671b268")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"08864407160b3973b9b88c5ae92687282b21e2f4"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5596],{92155:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(58168),r=n(96540),o=n(50876);const i=e=>(0,r.forwardRef)(((t,n)=>{let{callback:i,feature:l,isStart:c,isSuccess:s,isFailure:d,eventReason:g,payload:u={},...m}=t;const{sendLog:h,isReady:p}=(0,o.A)(),x=(0,r.useCallback)((()=>{const e=m[i],t={feature:l,isStart:c,isSuccess:s,isFailure:d,eventReason:g,...u,...m["data-ga"]?{dataGa:m["data-ga"]}:{},...m.dataGa?{dataGa:m.dataGa}:{},...m["data-track"]?{dataTrack:m["data-track"]}:{},...m.label?{label:m.label}:{}};"function"==typeof e&&e(),h(t,!0)}),[i,h,p,u,m]),b=(0,r.useMemo)((()=>({...m,[i]:x})),[m,i,x]);return r.createElement(e,(0,a.A)({ref:n},b))}));var l=n(67276);const c=e=>(0,r.forwardRef)(((t,n)=>{let{payload:o={},...c}=t;const s=i(e);return r.createElement(s,(0,a.A)({},c,{ref:n,callback:"onClick",payload:{...o,action:l.o1.buttonClicked}}))}))},21828:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(96540),r=n(10058);const o=e=>{let{theme:t}=e;const n="default"==t?"grey185":"grey45";return t="dark"==t?r.DarkTheme:r.DefaultTheme,a.createElement(r.Flex,{height:"1px",width:"100%",background:(0,r.getColor)(["neutral",n])({theme:t})})}},84541:(e,t,n)=>{n.d(t,{A:()=>I});var a=n(58168),r=n(96540),o=n(45463),i=n(10058);const l=(0,n(8711).default)(i.Flex).attrs({flex:{grow:"1",shrink:"0"},width:{max:"100%"}}).withConfig({displayName:"panel__Panel",componentId:"sc-4zlw7c-0"})(["",";",";"],(e=>{let{order:t}=e;return t&&"order: ".concat(t,";")}),(e=>{let{bgGradient:t}=e;return t&&"background: linear-gradient(34.14deg, #536775 -26.52%, #2F3A42 53.66%);\n"}));var c=n(17208);const s=()=>r.createElement(i.Flex,{alignItems:"center",column:!0,padding:[0,0,18,0]},r.createElement(c.oi,null));n(41393),n(81454);const d=[{icon:"rocket",title:"Rapid Deployment, Instant Insights",text:"One-command installation, automatic metric discovery, and intuitive out-of-the-box dashboards for every single metric."},{icon:"qualityOfServiceSolid",title:"Advanced Monitoring, Made Accessible",text:"Experience real-time monitoring with 1-second granularity and anomaly detection across 800+ integrations."},{icon:"firewallSolid",title:"On-Prem Data Storage, Transparent Pricing",text:"Unlimited metrics, Infinite scale, Zero hidden costs. Decentralized architecture ensures maximum data security."}];n(3064),n(98992),n(72577),n(62953);var g=n(18061),u=n(26655);const m=()=>u.A.get("https://us-east1-netdata-analytics-bi.cloudfunctions.net/netdata_public_metrics_website"),h=e=>{let{downScale:t,...n}=e;const i=(0,o.A)("(min-width: 992px)");return(l=i?t[0]:t[1],e=>{let{children:t,...n}=e;return r.createElement(l,(0,a.A)({color:"bright"},n),t)})(n);var l};var p=n(12897),x=n.n(p),b=n(55042),f=n.n(b),w=new(x())({id:"cloudStatistics",use:"cloudStatistics-usage",viewBox:"0 0 194 146",content:''});f().add(w);const y=w,k=e=>r.createElement(i.Flex,(0,a.A)({as:"svg",height:y.height,width:y.width,viewBox:y.viewBox},e),r.createElement("use",{xlinkHref:"#".concat(y.id)})),E=()=>{const[e]=(0,g.A)((()=>({fetch:m})),[]),{nodesOnline:t,githubStars:n,dockerHubPulls:a}=(0,r.useMemo)((()=>{var t,n;return Array.isArray(e)?{nodesOnline:"1,265,463",githubStars:null===(t=e.find((e=>{let{key:t}=e;return"GitHub Stars"===t})))||void 0===t?void 0:t.value,dockerHubPulls:null===(n=e.find((e=>{let{key:t}=e;return"DockerHub Pulls"===t})))||void 0===n?void 0:n.value}:{}}),[e]);return r.createElement(i.Flex,{column:!0,gap:6},r.createElement(k,{height:"160px",padding:[0,0,4,0]}),r.createElement(i.Flex,{column:!0,gap:3},r.createElement(h,{downScale:[i.TextBigger,i.TextBigger],color:"bright",textAlign:"center"},r.createElement(h,{downScale:[i.TextBigger,i.TextBigger],color:t?"primaryHighlight":"bright",textAlign:"center",strong:!0},t||"..."),r.createElement(i.Box,{as:"span",margin:[0,0,0,3]},"Nodes Online")),r.createElement(h,{downScale:[i.TextBigger,i.TextBigger],color:"bright",textAlign:"center"},r.createElement(h,{downScale:[i.TextBigger,i.TextBigger],color:n?"primaryHighlight":"bright",textAlign:"center",strong:!0},n||"..."),r.createElement(i.Box,{as:"span",margin:[0,0,0,3]},"GitHub Stars")),r.createElement(h,{downScale:[i.TextBigger,i.TextBigger],color:"bright",textAlign:"center"},r.createElement(h,{downScale:[i.TextBigger,i.TextBigger],color:a?"primaryHighlight":"bright",textAlign:"center",strong:!0},a||"..."),r.createElement(i.Box,{as:"span",margin:[0,0,0,3]},"DockerHub Pulls"))))},v=e=>{let{icon:t,title:n,text:a}=e;const l=(0,o.A)("(min-width: 475px)");return r.createElement(i.Flex,{gap:4,alignItems:"start"},l&&r.createElement(i.Flex,{background:"transparent",justifyContent:"center",alignItems:"center",height:"64px",width:"64px",round:64,flex:"grow",border:{side:"all",color:"successLite"}},r.createElement(i.Icon,{name:t,height:"20px",widht:"20px",color:"successLite"})),r.createElement(i.Flex,{column:!0,justifyContent:"start",alignItems:"start",gap:2},r.createElement(i.TextBig,{color:"bright",strong:!0},n),r.createElement(i.Text,{color:"selected"},a)))};var S=n(21828);const C=()=>r.createElement(i.Flex,{column:!0,padding:[16,4,12],width:{max:"500px"},margin:[0,"auto"],gap:14},r.createElement(E,null),r.createElement(i.Flex,{column:!0,gap:8},d.map(((e,t)=>r.createElement(v,(0,a.A)({key:t},e))))),r.createElement(i.Flex,{column:!0,gap:6,alignItems:"center"},r.createElement(S.A,null),r.createElement(i.Flex,{column:!0,gap:4,alignItems:"center"},r.createElement(c.go,{theme:"dark"}),r.createElement(i.TextSmall,{textAlign:"center",color:"bright"},"Netdata is a member of the Cloud Native Computing Foundation (CNCF), and is one of the most starred projects in the CNCF landscape.")))),I=e=>{let{children:t,...n}=e;const c=(0,o.A)("(min-width: 998px)");return r.createElement(i.Flex,(0,a.A)({height:{min:"100vh"},flexWrap:!0},n),!window.envSettings.onprem&&r.createElement(l,{background:(0,i.getColor)(["neutral","grey25"])({theme:i.DarkTheme}),order:c?0:1},r.createElement(C,null)),r.createElement(l,{background:"mainBackground",order:c?1:0},r.createElement(i.Flex,{background:"transparent",column:!0,gap:8,padding:[12,4],width:{max:"500px"},margin:[0,"auto"]},r.createElement(s,null),t)))}},75596:(e,t,n)=>{n.r(t),n.d(t,{SignIn:()=>R,default:()=>G});n(25440),n(62953),n(3296),n(48408);var a=n(96540),r=n(47767),o=n(86663),i=n(10058),l=n(55337),c=n(11604),s=n(17182),d=n(17208),g=n(58168),u=n(8711);const m=u.default.a.withConfig({displayName:"linkButton__LinkButton",componentId:"sc-9kv26a-0"})(["color:",";text-decoration:none;background-color:transparent;display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;height:",";background:",";border:1px solid ",";border-radius:2px;max-width:320px;width:100%;",";&:hover{text-decoration:none;color:unset;}"],(0,i.getColor)("background"),(0,i.getSizeBy)(5.5),(0,i.getColor)("mainBackground"),(0,i.getColor)("mainBackground"),(e=>{let{disabled:t}=e;return"\n opacity: ".concat(t?.4:1,";\n pointer-events: ").concat(t?"none":"auto",";\n ")})),h=e=>t=>{let{method:n,...r}=t;return n==localStorage.getItem("lastSignInMethod")?a.createElement(i.Box,{width:"100%"},a.createElement(i.TextMicro,null,"Last Sign-in method"),a.createElement(e,(0,g.A)({isLastSignInMethod:!0},r))):a.createElement(e,r)},p=e=>(0,u.default)(m).withConfig({displayName:"linkButton__makeSocialButton",componentId:"sc-9kv26a-1"})(["box-shadow:0px 0px 1px rgba(0,0,0,0.12);border-radius:2px;background:",";border-style:solid;border-color:",";border-width:",";span{flex:1;display:flex;align-items:center;justify-content:center;padding:0 ",";color:",";}"],e,(t=>{let{isLastSignInMethod:n}=t;return n?"green":e}),(e=>{let{isLastSignInMethod:t}=e;return t?"2px":"1px"}),(0,i.getSizeBy)(1),(0,i.getColor)("bright")),x=p("#445260"),b=p("#4285f4");var f=n(74664),w=n(50876);const y=h(f.j5),k=e=>{let{onSubmit:t,disabled:n,initialValue:r,buttonLabel:o,tagging:l}=e;const[c,s]=(0,i.useInputValue)({value:r||""}),[d,g]=(0,a.useState)(),{sendButtonClickedLog:u,isReady:m}=(0,w.A)(),h=(0,a.useCallback)((e=>{e.preventDefault(),u({feature:"SignIn",dataGa:"signinup::click-email::".concat(l)}),t(c).catch(g),localStorage.setItem("lastSignInMethod","email")}),[t,c,m]);return a.createElement(i.Flex,{as:"form",column:!0,gap:4,width:"100%","data-testid":"emailField"},a.createElement(y,{value:c,onChange:s,"data-testid":"emailField-input",method:"email",size:"large",error:d}),a.createElement(f.OV,{type:"submit",disabled:n||!c,width:"100%",label:o,onClick:h,"data-ga":"signinup::click-email::".concat(l),"data-testid":"emailField-submitButton"}))};var E=n(84541),v=n(21828),S=n(58187),C=n(92155),I=n(67276);const A=()=>{const e=(0,a.useMemo)((()=>{const{search:e}=window.location,{telemetry_session_id:t}=o.parse(e);return t}));(0,a.useEffect)((()=>{e&&sessionStorage.setItem(I.yq.session,e)}),[e])};var B=n(63314);const M=h(b),_=(0,C.A)(M),F=h(x),T=(0,C.A)(F),H=e=>{let{to:t}=e;return t=(e=>{try{const t=document.createElement("a");return t.href=e,/https?/.test(t.protocol)?new URL(t.protocol+"//"+t.host+t.pathname+t.search+t.hash).toString():null}catch(t){return null}})(t),t?a.createElement(i.Box,{position:"fixed"},a.createElement(i.Button,{as:"a",href:t,flavour:"borderless",label:"Go back to ".concat(t.replace(/#.*/,"")),icon:"arrow_left",rel:"noopener noreferrer"})):null},R=()=>{const{search:e}=(0,r.zy)(),t=window.location.hash,n=(0,c.Js)(),{redirect_uri:l}=o.parse(e);A();const g=(0,a.useCallback)((a=>{const r=encodeURIComponent((0,s.V)("/sign-in".concat(e),t)),o=encodeURIComponent((0,s.V)("/sign-up/verify".concat(e),t));return n({email:a,redirectURI:r,registerURI:o})}),[]);(0,a.useEffect)((()=>{if(!/app\.netdata\.cloud/.test(location.hostname))return;const e=document.createElement("script");return e.src="https://zsvdrp94yfxr.statuspage.io/embed/script.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]);const u=e=>{localStorage.setItem("lastSignInMethod",e)};return a.createElement(B.Ay,{feature:"SignIn"},!window.envSettings.onprem&&!!l&&a.createElement(H,{to:l}),a.createElement(E.A,{"data-testid":"signIn"},a.createElement(i.Flex,{column:!0,gap:4},a.createElement(i.H1,{textAlign:"center"},"Welcome!"),a.createElement(i.TextBig,{textAlign:"center"},"Sign in and let's get you started")),a.createElement(f.MG,null,a.createElement(i.Flex,{column:!0,gap:4},a.createElement(_,{href:(0,s.R)("google"),onClick:()=>u("google"),disabled:!1,"data-ga":"signinup::click-google::sni-view","data-testid":"signIn-googleButton",method:"google",feature:"SignIn",payload:{label:"Continue with Google"}},a.createElement(f.ch,null,a.createElement(d.J8,null)),a.createElement(i.Text,{textAlign:"center"},"Continue with Google")),a.createElement(T,{href:(0,s.R)("github"),onClick:()=>u("github"),disabled:!1,"data-ga":"signinup::click-github::sni-view","data-testid":"signIn-githubButton",method:"github",feature:"SignIn",payload:{label:"Continue with GitHub"}},a.createElement(f.ch,null,a.createElement(d.fx,null)),a.createElement(i.Text,null,"Continue with GitHub"))),a.createElement(i.Flex,{gap:2,alignItems:"center"},a.createElement(v.A,{theme:"default"}),a.createElement(i.H4,null,"or"),a.createElement(v.A,{theme:"default"})),a.createElement(k,{onSubmit:g,buttonLabel:"Sign in by email",tagging:"sni-view"})),!window.envSettings.onprem&&a.createElement(i.Flex,{column:!0,gap:4,alignSelf:"center",width:{max:"480px"}},a.createElement(i.TextBig,{textAlign:"center"},"No Netdata account? Sign-in and we will create one for you!"),a.createElement(i.Text,{textAlign:"center"},"By creating an account, you agree with Netdata's"," ",a.createElement(S.X,{tagging:"signin-view"})," and our"," ",a.createElement(S.H,{tagging:"signin-view"}),"."))))},G=(0,l.g)(R,"light")},74664:(e,t,n)=>{n.d(t,{MG:()=>g,OV:()=>d,ah:()=>l,ch:()=>i,j5:()=>c,ph:()=>s});var a=n(8711),r=n(10058),o=n(96763);const i=a.default.div.withConfig({displayName:"styled__SvgContainer",componentId:"sc-16ytcl4-0"})(["width:42px;height:42px;flex-shrink:0;display:flex;justify-content:center;align-items:center;border-radius:2px;background:white;"]),l=a.default.a.withConfig({displayName:"styled__StyledLink",componentId:"sc-16ytcl4-1"})(["display:inline-flex;align-items:center;text-decoration:none;color:",";cursor:pointer;&:hover{text-decoration:underline;color:"," !important;}&:visited{color:",";}> svg{fill:",";padding-right:",";}"],(0,r.getColor)("success"),(0,r.getColor)("success"),(0,r.getColor)("success"),(0,r.getColor)("main"),(0,r.getSizeBy)(1)),c=(0,a.default)(o.A).withConfig({displayName:"styled__EmailInput",componentId:"sc-16ytcl4-2"})(["",""],(e=>{let{isLastSignInMethod:t}=e;return t?"border: 2px solid green;":""})),s=(0,a.default)(r.Checkbox).withConfig({displayName:"styled__StyledCheckbox",componentId:"sc-16ytcl4-3"})(["margin:0 "," 0 0;& div:last-child{border-color:",";}"],(0,r.getSizeBy)(2),(e=>{let{error:t}=e;return t&&(0,r.getColor)("error")})),d=(0,a.default)(r.Button).withConfig({displayName:"styled__StyledButton",componentId:"sc-16ytcl4-4"})(["&&{height:44px;}"]),g=(0,a.default)(r.Flex).attrs((e=>{let{gap:t=8}=e;return{column:!0,gap:t,alignSelf:"center",padding:[0,0,8,0],border:{side:"bottom",color:"disabled"},width:{max:"320px"}}})).withConfig({displayName:"styled__FormContainer",componentId:"sc-16ytcl4-5"})(["width:100%;"])},58187:(e,t,n)=>{n.d(t,{H:()=>l,X:()=>c});var a=n(96540),r=n(74664);const o={link:"https://www.netdata.cloud/terms",title:"Terms And Conditions",dataGa:"signinup::click-terms::"},i=e=>{let{link:t,title:n,dataGa:o}=e;return e=>{let{tagging:i}=e;return a.createElement(r.ah,{href:t,target:"_blank",rel:"noopener noreferrer","data-ga":"".concat(o).concat(i)},n)}},l=i({link:"https://www.netdata.cloud/privacy",title:"Privacy Policy",dataGa:"signinup::click-privacy::"}),c=i(o)},17182:(e,t,n)=>{n.d(t,{R:()=>o,V:()=>r});var a=n(38819);const r=(e,t)=>{const n=(0,a.yq)(["expires_at",t]),r=t.includes("join-callback")?decodeURIComponent(n):n;return"".concat(window.location.origin).concat(e,"#").concat(r)},o=(e,t)=>{const{search:n,hash:a}=window.location,o=encodeURIComponent(r("/sign-in".concat(n).concat(n.length?"&":"?","oauth=").concat(e,"&"),a)),i=encodeURIComponent(r("/sign-up/verify".concat(n).concat(n.length?"&":"?","oauth=").concat(e,"&"),a));return"/api/v2/auth/account/".concat(e,"?redirect_uri=").concat(o,"®ister_uri=").concat(i).concat(t?"&is_unverified_registration=true":"")}},96763:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(58168),r=n(96540),o=n(10058);const i=e=>{let{onChange:t,value:n,onKeyDown:i,label:l,...c}=e;return r.createElement(o.TextInput,(0,a.A)({label:l,name:"userEmail",placeholder:"Enter an email address",value:n,onChange:t,onKeyDown:i},c))}}}]); \ No newline at end of file -- cgit v1.2.3