github.com/minio/console@v1.4.1/web-app/build/static/js/8821.e7fb1c57.chunk.js (about) 1 "use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8821],{72237:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(65043),i=n(70579);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return(0,i.jsx)(r.Suspense,{fallback:t,children:(0,i.jsx)(e,{...n})})}}},72271:(e,t,n)=>{n.d(t,{A:()=>s});n(65043);var r=n(89923),i=n(70579);const s=e=>{let{iconComponent:t,entity:n}=e;return(0,i.jsx)(r.xA9,{container:!0,children:(0,i.jsx)(r.xA9,{item:!0,xs:12,children:(0,i.jsx)(r.lVp,{title:"".concat(n," not available"),iconComponent:t,help:(0,i.jsxs)(r.azJ,{sx:{fontSize:"14px",["@media (max-width: ".concat(r.nmC.sm,"px)")]:{display:"flex",flexFlow:"column"}},children:[(0,i.jsx)("span",{children:"This feature is not available for a single-disk setup.\xa0"}),(0,i.jsxs)("span",{children:["Please deploy a server in"," ",(0,i.jsx)("a",{href:"https://min.io/docs/minio/linux/operations/install-deploy-manage/deploy-minio-multi-node-multi-drive.html?ref=con",target:"_blank",rel:"noopener",children:"Distributed Mode"})," ","to use this feature."]})]})})})})}},88821:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var r=n(65043),i=n(33097),s=n.n(i),l=n(22166),o=n(73216),a=n(89923),c=n(56629),d=n(53518),x=n(77403),u=n(99161),m=n(77938),p=n(20755),j=n(64159),h=n(20554),g=n(64681),b=n(72237),y=n(72271),f=n(6681),F=n(48793),T=n(55968),A=n(70579);const O=(0,b.A)(r.lazy((()=>n.e(696).then(n.bind(n,20696))))),v=()=>{const e=(0,h.jL)(),t=(0,o.Zp)(),n=(0,l.d4)(j.Rq),[i,b]=(0,r.useState)([]),[v,C]=(0,r.useState)(""),[I,S]=(0,r.useState)(!0),[_,w]=(0,r.useState)(!1),[M,E]=(0,r.useState)({type:"unsupported",status:!1}),N=(0,m._)(u.Ms,[u.OV.ADMIN_SET_TIER]);(0,r.useEffect)((()=>{if(I)if(n){(()=>{c.F.admin.tiersList().then((e=>{b(e.data.items||[]),S(!1)})).catch((t=>{e((0,j.C9)((0,d.S)(t.error))),S(!1)}))})()}else S(!1)}),[I,e,n]);const k=i.filter((e=>{if(""===v)return!0;const t=s()(e,"".concat(e.type,".name"),""),n=s()(e,"type","");return t.indexOf(v)>=0||n.indexOf(v)>=0})),R=()=>{t(u.zZ.TIERS_ADD)};return(0,r.useEffect)((()=>{e((0,j.ph)("list-tiers-configuration"))}),[]),(0,A.jsxs)(r.Fragment,{children:[_&&(0,A.jsx)(O,{open:_,tierData:M,closeModalAndRefresh:()=>{w(!1)}}),(0,A.jsx)(F.A,{label:"Tiers",actions:(0,A.jsx)(T.A,{})}),(0,A.jsx)(a.Mxu,{children:n?(0,A.jsxs)(r.Fragment,{children:[(0,A.jsxs)(a.xA9,{item:!0,xs:12,sx:x._0.actionsTray,children:[(0,A.jsx)(g.A,{placeholder:"Filter",onChange:C,value:v,sx:{marginRight:"auto",maxWidth:380}}),(0,A.jsxs)(a.azJ,{sx:{display:"flex",flexWrap:"nowrap",gap:5},children:[(0,A.jsx)(a.$nd,{id:"refresh-list",icon:(0,A.jsx)(a.fNY,{}),label:"Refresh List",onClick:()=>{S(!0)}}),(0,A.jsx)(f.A,{tooltip:N?"":"You require additional permissions in order to create a new Tier. Please ask your MinIO administrator to grant you "+u.OV.ADMIN_SET_TIER+" permission in order to create a Tier.",children:(0,A.jsx)(m.R,{scopes:[u.OV.ADMIN_SET_TIER],resource:u.Ms,errorProps:{disabled:!0},children:(0,A.jsx)(a.$nd,{id:"add-tier",icon:(0,A.jsx)(a.REV,{}),label:"Create Tier",onClick:R,variant:"callAction"})})})]})]}),I&&(0,A.jsx)(a.z21,{}),!I&&(0,A.jsxs)(r.Fragment,{children:[i.length>0&&(0,A.jsxs)(r.Fragment,{children:[(0,A.jsx)(a.xA9,{item:!0,xs:12,children:(0,A.jsx)(m.R,{scopes:[u.OV.ADMIN_LIST_TIERS],resource:u.Ms,errorProps:{disabled:!0},children:(0,A.jsx)(a.bQt,{itemActions:[{type:"edit",onClick:e=>{E(e),w(!0)}}],columns:[{label:"Tier Name",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".name"),"");return null!==t?(0,A.jsx)("b",{children:t}):""},renderFullObject:!0},{label:"Status",elementKey:"status",renderFunction:e=>e?(0,A.jsxs)(a.xA9,{container:!0,sx:{display:"flex",alignItems:"center",justifyItems:"start",color:"#4CCB92",fontSize:"8px",flexDirection:"column"},children:[(0,A.jsx)(a.JrA,{style:{fill:"#4CCB92",width:14,height:14}}),"ONLINE"]}):(0,A.jsxs)(a.xA9,{container:!0,sx:{display:"flex",flexDirection:"column",alignItems:"center",color:"#C83B51",fontSize:"8px"},children:[(0,A.jsx)(a.lgW,{style:{fill:"#C83B51",width:14,height:14}}),"OFFLINE"]}),width:50},{label:"Type",elementKey:"type",renderFunction:e=>{const{logoXs:t}=p._T.find((t=>t.serviceName===e))||{};return e?(0,A.jsx)(a.azJ,{sx:{display:"flex",alignItems:"center","& .min-icon":{width:"18px",height:"22px"}},children:t}):""},width:50},{label:"Endpoint",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".endpoint"),"");return null!==t?t:""},renderFullObject:!0},{label:"Bucket",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".bucket"),"");return null!==t?t:""},renderFullObject:!0},{label:"Prefix",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".prefix"),"");return null!==t?t:""},renderFullObject:!0},{label:"Region",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".region"),"");return null!==t?t:""},renderFullObject:!0},{label:"Usage",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".usage"),"");return null!==t?t:""},renderFullObject:!0},{label:"Objects",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".objects"),"");return null!==t?t:""},renderFullObject:!0},{label:"Versions",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".versions"),"");return null!==t?t:""},renderFullObject:!0}],isLoading:I,records:k,entityName:"Tiers",idField:"service_name",customPaperHeight:"400px"})})}),(0,A.jsx)(a.xA9,{item:!0,xs:12,sx:{marginTop:"15px"},children:(0,A.jsx)(a.lVp,{title:"Learn more about TIERS",iconComponent:(0,A.jsx)(a.fAn,{}),help:(0,A.jsxs)(r.Fragment,{children:["Tiers are used by the MinIO Object Lifecycle Management which allows creating rules for time or date based automatic transition or expiry of objects. For object transition, MinIO automatically moves the object to a configured remote storage tier.",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),"You can learn more at our"," ",(0,A.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/object-management/object-lifecycle-management.html?ref=con",target:"_blank",rel:"noopener",children:"documentation"}),"."]})})})]}),0===i.length&&(0,A.jsx)(a.lVp,{title:"Tiers",iconComponent:(0,A.jsx)(a.fAn,{}),help:(0,A.jsxs)(r.Fragment,{children:["Tiers are used by the MinIO Object Lifecycle Management which allows creating rules for time or date based automatic transition or expiry of objects. For object transition, MinIO automatically moves the object to a configured remote storage tier.",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),N?(0,A.jsxs)("div",{children:["To get started,"," ",(0,A.jsx)(a.t53,{isLoading:!1,label:"",onClick:R,children:"Create Tier"}),"."]}):""]})})]})]}):(0,A.jsx)(y.A,{entity:"Tiers",iconComponent:(0,A.jsx)(a.zEc,{})})})]})}},20755:(e,t,n)=>{n.d(t,{_T:()=>c,pW:()=>o,qA:()=>l,vH:()=>s,y:()=>a});var r=n(89923),i=n(70579);const s="minio",l="gcs",o="s3",a="azure",c=[{serviceName:s,targetTitle:"MinIO",logo:(0,i.jsx)(r.Wh8,{}),logoXs:(0,i.jsx)(r.$2v,{})},{serviceName:l,targetTitle:"Google Cloud Storage",logo:(0,i.jsx)(r.F7U,{}),logoXs:(0,i.jsx)(r.gwF,{})},{serviceName:o,targetTitle:"AWS S3",logo:(0,i.jsx)(r._tF,{}),logoXs:(0,i.jsx)(r.ZZX,{})},{serviceName:a,targetTitle:"Azure",logo:(0,i.jsx)(r.Nmx,{}),logoXs:(0,i.jsx)(r.Ubg,{})}]}}]); 2 //# sourceMappingURL=8821.e7fb1c57.chunk.js.map