mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2 lines
9.8 KiB
JavaScript
2 lines
9.8 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3067],{75578:function(e,t,n){var i=n(1413),s=n(72791),l=n(80184);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;function n(n){return(0,l.jsx)(s.Suspense,{fallback:t,children:(0,l.jsx)(e,(0,i.Z)({},n))})}return n}},31460:function(e,t,n){var i=n(72791),s=n(36151),l=n(64554),a=n(57689),r=n(75952),o=n(80184);t.Z=function(e){var t=e.compactMode,n=void 0!==t&&t,x=(0,a.s0)(),c=(0,o.jsx)(s.Z,{type:"submit",variant:"contained",color:"primary",onClick:function(){return x("/support/register")},children:"Register your Cluster"}),d="Use your MinIO Subscription Network login credentials to register this cluster.";return n?(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(r.rjZ,{sx:{"& div.leftItems":{marginBottom:0}},children:(0,o.jsx)(r.KfX,{title:(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexGrow:1},children:[(0,o.jsx)("span",{children:d})," ",c]}),iconComponent:(0,o.jsx)(r.e6P,{}),help:(0,o.jsx)(i.Fragment,{})})}),(0,o.jsx)("br",{})]}):(0,o.jsx)(l.Z,{sx:{padding:"25px",border:"1px solid #eaeaea",display:"flex",alignItems:"center",justifyContent:"center",flexFlow:{sm:"row",xs:"column"},marginBottom:"15px"},children:(0,o.jsxs)(r.rjZ,{container:!0,children:[(0,o.jsx)(r.rjZ,{item:!0,xs:12,children:(0,o.jsx)(l.Z,{sx:{marginRight:"8px",fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center","& .min-icon":{width:"83px",height:"14px",marginLeft:"5px",marginRight:"5px"}},children:"Register your cluster"})}),(0,o.jsx)(r.rjZ,{item:!0,xs:12,children:(0,o.jsx)(l.Z,{sx:{display:"flex",flexFlow:{xs:"column",md:"row"}},children:(0,o.jsxs)(l.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,o.jsx)(l.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"15px",marginBottom:"15px"},children:d}),(0,o.jsx)(l.Z,{sx:{flex:"1"},children:(0,o.jsx)(l.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end"},children:c})})]})})})]})})}},73067:function(e,t,n){n.r(t),n.d(t,{default:function(){return B}});var i=n(72791),s=n(57689),l=n(75578),a=n(50099),r=n(29439),o=n(64554),x=n(75952),c=n(11087),d=n(74794),u=n(81207),h=n(87995),p=n(25469),g=n(9478),f=n(40986),m=n(56028),j=n(80184),y=function(e){var t=e.onClose,n=e.diagStatus,s=e.logsStatus,l=e.open,a=e.disable,o=void 0!==a&&a,c=(0,p.TL)(),d=(0,i.useState)(!1),g=(0,r.Z)(d,2),y=g[0],b=g[1],Z=function(){b(!0),u.Z.invoke("PUT","/api/v1/support/callhome",{diagState:!o&&n,logsState:!o&&s}).then((function(e){c((0,h.y1)("Configuration saved successfully")),b(!1),t(!0)})).catch((function(e){b(!1),c((0,h.Ih)(e))}))};return(0,j.jsx)(m.Z,{modalOpen:l,title:o?"Disable Call Home":"Edit Call Home Configurations",onClose:function(){return t(!1)},titleIcon:(0,j.jsx)(x.o0P,{}),children:o?(0,j.jsxs)(i.Fragment,{children:["Please Acknowledge that after doing this action, we will no longer receive updated cluster information automatically, losing the potential benefits that Call Home provides to your MinIO cluster.",(0,j.jsx)(x.rjZ,{item:!0,xs:12,sx:{margin:"15px 0"},children:"Are you sure you want to disable SUBNET Call Home?"}),(0,j.jsx)("br",{}),y&&(0,j.jsx)(x.rjZ,{item:!0,xs:12,sx:{marginBottom:10},children:(0,j.jsx)(f.Z,{})}),(0,j.jsxs)(x.rjZ,{item:!0,xs:12,sx:{display:"flex",justifyContent:"flex-end"},children:[(0,j.jsx)(x.zxk,{id:"reset",type:"button",variant:"regular",disabled:y,onClick:function(){return t(!1)},label:"Cancel",sx:{marginRight:10}}),(0,j.jsx)(x.zxk,{id:"save-lifecycle",type:"submit",variant:"secondary",color:"primary",disabled:y,label:"Yes, Disable Call Home",onClick:Z})]})]}):(0,j.jsxs)(i.Fragment,{children:["Are you sure you want to change the following configurations for SUBNET Call Home:",(0,j.jsxs)(x.rjZ,{item:!0,sx:{margin:"20px 0",display:"flex",flexDirection:"column",gap:15},children:[(0,j.jsxs)(x.rjZ,{item:!0,sx:{display:"flex",alignItems:"center",gap:10},children:[(0,j.jsx)(x.J$M,{style:{fill:n?"#4CCB92":"#C83B51",width:20}}),(0,j.jsxs)("span",{children:[(0,j.jsx)("strong",{children:n?"Enable":"Disable"})," - Send Diagnostics Information to SUBNET"]})]}),(0,j.jsxs)(x.rjZ,{item:!0,sx:{display:"flex",alignItems:"center",gap:10},children:[(0,j.jsx)(x.J$M,{style:{fill:s?"#4CCB92":"#C83B51",width:20}}),(0,j.jsxs)("span",{children:[(0,j.jsx)("strong",{children:s?"Enable":"Disable"})," - Send Logs Information to SUBNET"]})]})]}),(0,j.jsx)(x.rjZ,{item:!0,xs:12,sx:{margin:"15px 0"},children:"Please Acknowledge that the information provided will only be available in your SUBNET Account and it will not be shared to other persons or entities besides MinIO team and you."}),y&&(0,j.jsx)(x.rjZ,{item:!0,xs:12,sx:{marginBottom:10},children:(0,j.jsx)(f.Z,{})}),(0,j.jsxs)(x.rjZ,{item:!0,xs:12,sx:{display:"flex",justifyContent:"flex-end"},children:[(0,j.jsx)(x.zxk,{id:"reset",type:"button",variant:"regular",disabled:y,onClick:function(){return t(!1)},label:"Cancel",sx:{marginRight:10}}),(0,j.jsx)(x.zxk,{id:"save-lifecycle",type:"submit",variant:"callAction",color:"primary",disabled:y,label:"Yes, Save this Configuration",onClick:Z})]})]})})},b=n(31460),Z=n(37516),C=n(47974),v=function(e){var t=e.title,n=e.text;return(0,j.jsxs)("div",{style:{marginTop:15},children:[(0,j.jsx)("div",{style:{marginBottom:10,fontWeight:"bold"},children:t}),(0,j.jsx)("div",{style:{color:"#969696",fontSize:12,marginBottom:40},children:n})]})},w=function(){var e=(0,p.TL)(),t=(0,s.s0)(),n=(0,i.useState)(!0),l=(0,r.Z)(n,2),a=l[0],f=l[1],m=(0,i.useState)(!1),w=(0,r.Z)(m,2),S=w[0],k=w[1],I=(0,i.useState)(!1),B=(0,r.Z)(I,2),T=B[0],E=B[1],z=(0,i.useState)(!1),F=(0,r.Z)(z,2),L=F[0],A=F[1],D=(0,i.useState)(!1),H=(0,r.Z)(D,2),M=H[0],W=H[1],N=(0,i.useState)(!1),R=(0,r.Z)(N,2),O=R[0],U=R[1],P=(0,i.useState)(!1),Y=(0,r.Z)(P,2),G=Y[0],J=Y[1],K=(0,g.Yc)();(0,i.useEffect)((function(){a&&u.Z.invoke("GET","/api/v1/support/callhome").then((function(e){f(!1),E(!!e.diagnosticsStatus),U(!!e.logsStatus),A(!!e.diagnosticsStatus),W(!!e.logsStatus)})).catch((function(t){f(!1),e((0,h.Ih)(t))}))}),[a,e]);var X="regular";return!K||T===L&&O===M||(X="callAction"),(0,j.jsxs)(i.Fragment,{children:[S&&(0,j.jsx)(y,{onClose:function(e){e&&f(!0),k(!1)},open:S,logsStatus:O,diagStatus:T,disable:G}),(0,j.jsx)(C.Z,{label:"Call Home"}),(0,j.jsxs)(d.Z,{children:[!K&&(0,j.jsx)(b.Z,{compactMode:!0}),(0,j.jsxs)(o.Z,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",border:"1px solid #eaeaea",padding:{lg:"40px",xs:"15px"},flexWrap:"wrap",gap:{lg:"55px",xs:"20px"},height:{md:"calc(100vh - 120px)",xs:"100%"},flexFlow:{lg:"row",xs:"column"}},children:[(0,j.jsx)(o.Z,{sx:{border:"1px solid #eaeaea",flex:{md:2,xs:1},width:{lg:"auto",xs:"100%"},padding:{lg:"40px",xs:"15px"}},children:a?(0,j.jsx)("span",{style:{marginLeft:5},children:(0,j.jsx)(x.aNw,{style:{width:16,height:16}})}):(0,j.jsxs)(i.Fragment,{children:[(0,j.jsxs)("div",{style:{marginBottom:25},children:[(0,j.jsx)(Z.Z,{value:"enableDiag",id:"enableDiag",name:"enableDiag",checked:T,onChange:function(e){E(e.target.checked)},label:"Daily Health Report",disabled:!K}),(0,j.jsx)(v,{title:"When you enable diagnostics",text:"Daily Health Report enables you to proactively identify potential issues in your deployment before they escalate."})]}),(0,j.jsxs)("div",{children:[(0,j.jsx)(Z.Z,{value:"enableLogs",id:"enableLogs",name:"enableLogs",checked:O,onChange:function(e){U(e.target.checked)},label:"Live Error Logs",disabled:!K}),(0,j.jsx)(v,{title:"When you enable logs",text:"Live Error Logs will enable MinIO's support team and automatic diagnostics system to catch failures early."})]}),(0,j.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:"55px",gap:"0px 10px"},children:[(L||M)&&(0,j.jsx)(x.zxk,{id:"callhome-action",variant:"secondary","data-test-id":"call-home-toggle-button",onClick:function(){J(!0),k(!0)},disabled:a,children:"Disable Call Home"}),(0,j.jsx)(x.zxk,{id:"callhome-action",type:"button",variant:X,"data-test-id":"call-home-toggle-button",onClick:function(){K?(J(!1),k(!0)):t("/support/register")},disabled:a,children:"Save Configuration"})]})]})}),(0,j.jsx)(o.Z,{sx:{flex:1,minWidth:{md:"365px",xs:"100%"},width:"100%"},children:(0,j.jsx)(x.KfX,{title:"",iconComponent:null,help:(0,j.jsxs)(i.Fragment,{children:[(0,j.jsxs)(o.Z,{sx:{marginTop:"-25px",fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"2px"},children:[(0,j.jsx)(o.Z,{sx:{backgroundColor:"#07193E",height:"15px",width:"15px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",marginRight:"18px",padding:"3px","& .min-icon":{height:"11px",width:"11px",fill:"#ffffff"}},children:(0,j.jsx)(x.o0P,{})}),"Learn more about Call Home"]}),(0,j.jsx)(o.Z,{sx:{display:"flex",flexFlow:"column",fontSize:"14px",flex:"2",marginTop:"10px"},children:(0,j.jsxs)(o.Z,{children:["Enabling Call Home sends cluster health & status to your registered MinIO Subscription Network account every 24 hours.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"This helps the MinIO support team to provide quick incident responses along with suggestions for possible improvements that can be made to your MinIO instances.",(0,j.jsx)("br",{}),(0,j.jsx)("br",{}),"Your cluster must be"," ",(0,j.jsx)(c.rU,{to:"/support/register",children:"registered"})," in the MinIO Subscription Network (SUBNET) before enabling this feature."]})})]})})})]})]})]})},S=(0,l.Z)(i.lazy((function(){return n.e(8833).then(n.bind(n,58833))}))),k=(0,l.Z)(i.lazy((function(){return Promise.all([n.e(3691),n.e(2763),n.e(3890)]).then(n.bind(n,33890))}))),I=(0,l.Z)(i.lazy((function(){return n.e(483).then(n.bind(n,70483))}))),B=function(){return(0,j.jsxs)(s.Z5,{children:[(0,j.jsx)(s.AW,{path:"register",element:(0,j.jsx)(k,{})}),(0,j.jsx)(s.AW,{path:"profile",element:(0,j.jsx)(I,{})}),(0,j.jsx)(s.AW,{path:"call-home",element:(0,j.jsx)(w,{})}),(0,j.jsx)(s.AW,{path:"inspect",element:(0,j.jsx)(S,{})}),(0,j.jsx)(s.AW,{path:"*",element:(0,j.jsx)(a.Z,{})})]})}}}]);
|
|
//# sourceMappingURL=3067.bbee77bd.chunk.js.map
|