Files
openmaxio-object-browser/portal-ui/build/static/js/3171.2b042d13.chunk.js
Alex 65575751ff Release v0.24.0 (#2679)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2023-02-28 12:53:47 -08:00

2 lines
6.7 KiB
JavaScript

"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3171],{25739:function(e,s,i){i(72791);var n=i(64554),t=i(50896),o=i(80184);s.Z=function(e){var s=e.children,i=e.title,r=e.helpbox,a=e.icon;return(0,o.jsxs)(n.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,o.jsxs)(n.Z,{children:[(0,o.jsx)(t.Z,{icon:a,children:i}),(0,o.jsx)(n.Z,{sx:{height:16}}),s]}),r]})}},43171:function(e,s,i){i.r(s),i.d(s,{default:function(){return w}});var n=i(29439),t=i(1413),o=i(72791),r=i(57689),a=i(11135),l=i(25787),c=i(23814),d=i(61889),u=i(40986),x=i(75952),p=i(74794),h=i(21435),m=i(64554),f=i(80184),g=function(e){var s=e.icon,i=e.description;return(0,f.jsxs)(m.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[s," ",(0,f.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:i})]})},Z=function(){return(0,f.jsxs)(m.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginTop:{xs:"0px"}},children:[(0,f.jsxs)(m.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,f.jsx)(x.M9A,{}),(0,f.jsx)("div",{children:"Learn more about Groups"})]}),(0,f.jsxs)(m.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:["Adding groups lets you assign IAM policies to multiple users at once.",(0,f.jsx)(m.Z,{sx:{paddingTop:"20px",paddingBottom:"10px"},children:"Users inherit access permissions to data and resources through the groups they belong to."}),(0,f.jsx)(m.Z,{sx:{paddingTop:"10px",paddingBottom:"10px"},children:"A user can be a member of multiple groups."}),(0,f.jsx)(m.Z,{sx:{paddingTop:"10px",paddingBottom:"10px"},children:"Groups provide a simplified method for managing shared permissions among users with common access patterns and workloads. Client\u2019s cannot authenticate to a MinIO deployment using a group as an identity."})]}),(0,f.jsxs)(m.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,f.jsx)(g,{icon:(0,f.jsx)(x.wws,{}),description:"Add Users to Group"}),(0,f.jsx)(m.Z,{sx:{paddingTop:"10px",paddingBottom:"10px"},children:"Select from the list of displayed users to assign users to the new group at creation. These users inherit the policies assigned to the group."}),(0,f.jsx)(g,{icon:(0,f.jsx)(x.v42,{}),description:"Assign Custom IAM Policies for Group"}),(0,f.jsx)(m.Z,{sx:{paddingTop:"10px",paddingBottom:"10px"},children:"You can add policies to the group by selecting it from the Groups view after creation. The Policy view lets you manage the assigned policies for the group."})]})]})},j=i(40228),b=i(56087),v=i(81207),y=i(25739),S=i(87995),T=i(25469),k=i(47974),w=(0,l.Z)((function(e){return(0,a.Z)((0,t.Z)((0,t.Z)({},c.DF),c.ID))}))((function(e){var s=e.classes,i=(0,T.TL)(),t=(0,r.s0)(),a=(0,o.useState)(""),l=(0,n.Z)(a,2),c=l[0],m=l[1],g=(0,o.useState)(!1),w=(0,n.Z)(g,2),A=w[0],P=w[1],B=(0,o.useState)([]),C=(0,n.Z)(B,2),E=C[0],F=C[1],N=(0,o.useState)(!1),U=(0,n.Z)(N,2),G=U[0],R=U[1];(0,o.useEffect)((function(){R(""!==c.trim())}),[c,E]),(0,o.useEffect)((function(){if(A){v.Z.invoke("POST","/api/v1/groups",{group:c,members:E}).then((function(e){P(!1),t("".concat(b.gA.GROUPS))})).catch((function(e){P(!1),i((0,S.Ih)(e))}))}}),[A,c,E,i,t]);return(0,f.jsx)(o.Fragment,{children:(0,f.jsxs)(d.ZP,{item:!0,xs:12,children:[(0,f.jsx)(k.Z,{label:(0,f.jsx)(x.hbI,{label:"Groups",onClick:function(){return t(b.gA.GROUPS)}})}),(0,f.jsx)(p.Z,{children:(0,f.jsx)(y.Z,{title:"Create Group",icon:(0,f.jsx)(x.yeO,{}),helpbox:(0,f.jsx)(Z,{}),children:(0,f.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),P(!0)},children:[(0,f.jsxs)(d.ZP,{container:!0,children:[(0,f.jsx)(d.ZP,{item:!0,xs:12,className:s.formFieldRow,children:(0,f.jsx)(h.Z,{id:"group-name",name:"group-name",label:"Group Name",autoFocus:!0,value:c,onChange:function(e){m(e.target.value)}})}),(0,f.jsx)(d.ZP,{item:!0,xs:12,className:s.userSelector,children:(0,f.jsx)(j.Z,{selectedUsers:E,setSelectedUsers:F,editMode:!0})})]}),(0,f.jsxs)(d.ZP,{item:!0,xs:12,className:s.modalButtonBar,children:[(0,f.jsx)(x.zxk,{id:"clear-group",type:"button",variant:"regular",style:s.spacerRight,onClick:function(){m(""),F([])},label:"Clear"}),(0,f.jsx)(x.zxk,{id:"save-group",type:"submit",variant:"callAction",disabled:A||!G,label:"Save"})]}),A&&(0,f.jsx)(d.ZP,{item:!0,xs:12,children:(0,f.jsx)(u.Z,{})})]})})})]})})}))},40228:function(e,s,i){var n=i(93433),t=i(29439),o=i(1413),r=i(72791),a=i(11135),l=i(25787),c=i(40986),d=i(26181),u=i.n(d),x=i(35527),p=i(61889),h=i(21639),m=i(23814),f=i(81207),g=i(92983),Z=i(59114),j=i(87995),b=i(25469),v=i(80184);s.Z=(0,l.Z)((function(e){return(0,a.Z)((0,o.Z)((0,o.Z)({paper:{display:"flex",overflow:"auto",flexDirection:"column",boxShadow:"none",border:0},tableBlock:(0,o.Z)({},m.VX.tableBlock),searchBox:{flex:1}},m.OR),{},{actionsTitle:{fontSize:14,alignSelf:"center",minWidth:160,marginRight:10},noFound:{textAlign:"center",padding:e.spacing(3),border:"1px solid #EAEAEA",fontSize:".9rem"}},m.jY))}))((function(e){var s=e.classes,i=e.selectedUsers,o=e.setSelectedUsers,a=e.editMode,l=void 0!==a&&a,d=(0,b.TL)(),m=(0,r.useState)([]),y=(0,t.Z)(m,2),S=y[0],T=y[1],k=(0,r.useState)(!1),w=(0,t.Z)(k,2),A=w[0],P=w[1],B=(0,r.useState)(""),C=(0,t.Z)(B,2),E=C[0],F=C[1],N=(0,r.useCallback)((function(){f.Z.invoke("GET","/api/v1/users").then((function(e){var s=u()(e,"users",[]);s||(s=[]),T(s.sort(h.LQ)),P(!1)})).catch((function(e){d((0,j.zb)(e)),P(!1)}))}),[d]);(0,r.useEffect)((function(){P(!0)}),[]),(0,r.useEffect)((function(){A&&N()}),[A,N]);var U=i||[],G=S.filter((function(e){return e.accessKey.includes(E)}));return(0,v.jsx)(r.Fragment,{children:(0,v.jsx)(p.ZP,{item:!0,xs:12,children:(0,v.jsxs)(x.Z,{className:s.paper,children:[A&&(0,v.jsx)(c.Z,{}),null!==S&&S.length>0?(0,v.jsxs)(r.Fragment,{children:[(0,v.jsxs)(p.ZP,{item:!0,xs:12,className:s.actionsTray,children:[(0,v.jsx)("label",{className:s.actionsTitle,children:l?"Edit Members":"Assign Users"}),(0,v.jsx)("div",{className:s.searchBox,children:(0,v.jsx)(Z.Z,{placeholder:"Filter Users",adornmentPosition:"end",onChange:F,value:E})})]}),(0,v.jsx)(p.ZP,{item:!0,xs:12,className:s.tableBlock,children:(0,v.jsx)(g.Z,{columns:[{label:"Access Key",elementKey:"accessKey"}],onSelect:function(e){var s=e.target,i=s.value,t=s.checked,r=(0,n.Z)(U);return t?r.push(i):r=r.filter((function(e){return e!==i})),o(r),r},selectedItems:U,isLoading:A,records:G,entityName:"Users",idField:"accessKey",customPaperHeight:s.multiSelectTable})})]}):(0,v.jsx)("div",{className:s.noFound,children:"No Users to display"})]})})})}))}}]);
//# sourceMappingURL=3171.2b042d13.chunk.js.map