2 lines
8.2 KiB
JavaScript
2 lines
8.2 KiB
JavaScript
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8311],{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."]})]})})})})}},18311:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var r=n(65043),i=n(33097),s=n.n(i),o=n(22166),l=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(21383),g=n(64681),b=n(72237),y=n(72271),f=n(6681),F=n(48793),T=n(55968),A=n(58661),C=n(70579);const O=e=>{let{open:t,closeModalAndRefresh:n,tierName:i}=e;const s=(0,h.jL)();return(0,C.jsx)(A.A,{title:"Delete Tier",confirmText:"Delete",isOpen:t,titleIcon:(0,C.jsx)(a.$rg,{}),isLoading:!1,onConfirm:()=>{""!==i?c.F.admin.removeTier(i).then((()=>{n(!0)})).catch((e=>{e.json().then((e=>{s((0,j.C9)({errorMessage:e.message,detailedError:e.detailedMessage}))})),n(!1)})):(0,j.C9)({errorMessage:"There was an error deleting the tier",detailedError:""})},onClose:()=>n(!1),confirmationContent:(0,C.jsxs)(r.Fragment,{children:["Are you sure you want to delete the tier ",(0,C.jsx)("strong",{children:i}),"?",(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("strong",{children:" Please note"}),(0,C.jsx)("br",{})," Only empty tiers can be deleted. If the tier has had objects transitioned into it, it cannot be removed."]})})},I=(0,b.A)(r.lazy((()=>n.e(696).then(n.bind(n,20696))))),v=()=>{const e=(0,h.jL)(),t=(0,l.Zp)(),n=(0,o.d4)(j.Rq),[i,b]=(0,r.useState)([]),[A,v]=(0,r.useState)(""),[M,S]=(0,r.useState)(!0),[E,_]=(0,r.useState)(!1),[w,N]=(0,r.useState)(!1),[k,R]=(0,r.useState)({type:"unsupported",status:!1}),L=(0,m._)(u.Ms,[u.OV.ADMIN_SET_TIER]);(0,r.useEffect)((()=>{if(M)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)}),[M,e,n]);const D=i.filter((e=>{if(""===A)return!0;const t=s()(e,"".concat(e.type,".name"),""),n=s()(e,"type","");return t.indexOf(A)>=0||n.indexOf(A)>=0})),z=()=>{t(u.zZ.TIERS_ADD)};return(0,r.useEffect)((()=>{e((0,j.ph)("list-tiers-configuration"))}),[]),(0,C.jsxs)(r.Fragment,{children:[E&&(0,C.jsx)(I,{open:E,tierData:k,closeModalAndRefresh:()=>{_(!1)}}),w&&(0,C.jsx)(O,{open:w,tierName:s()(k,"".concat(k.type,".name"),""),closeModalAndRefresh:()=>{N(!1),S(!0)}}),(0,C.jsx)(F.A,{label:"Tiers",actions:(0,C.jsx)(T.A,{})}),(0,C.jsx)(a.Mxu,{children:n?(0,C.jsxs)(r.Fragment,{children:[(0,C.jsxs)(a.xA9,{item:!0,xs:12,sx:x._0.actionsTray,children:[(0,C.jsx)(g.A,{placeholder:"Filter",onChange:v,value:A,sx:{marginRight:"auto",maxWidth:380}}),(0,C.jsxs)(a.azJ,{sx:{display:"flex",flexWrap:"nowrap",gap:5},children:[(0,C.jsx)(a.$nd,{id:"refresh-list",icon:(0,C.jsx)(a.fNY,{}),label:"Refresh List",onClick:()=>{S(!0)}}),(0,C.jsx)(f.A,{tooltip:L?"":"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,C.jsx)(m.R,{scopes:[u.OV.ADMIN_SET_TIER],resource:u.Ms,errorProps:{disabled:!0},children:(0,C.jsx)(a.$nd,{id:"add-tier",icon:(0,C.jsx)(a.REV,{}),label:"Create Tier",onClick:z,variant:"callAction"})})})]})]}),M&&(0,C.jsx)(a.z21,{}),!M&&(0,C.jsxs)(r.Fragment,{children:[i.length>0&&(0,C.jsxs)(r.Fragment,{children:[(0,C.jsx)(a.xA9,{item:!0,xs:12,children:(0,C.jsx)(m.R,{scopes:[u.OV.ADMIN_LIST_TIERS],resource:u.Ms,errorProps:{disabled:!0},children:(0,C.jsx)(a.bQt,{itemActions:[{type:"edit",onClick:e=>{R(e),_(!0)}},{type:"delete",isDisabled:!(0,m._)("*",u.pC[u.ac.BUCKET_LIFECYCLE],!0),onClick:e=>{R(e),N(!0)}}],columns:[{label:"Tier Name",elementKey:"type",renderFunction:e=>{const t=s()(e,"".concat(e.type,".name"),"");return null!==t?(0,C.jsx)("b",{children:t}):""},renderFullObject:!0},{label:"Status",elementKey:"status",renderFunction:e=>e?(0,C.jsxs)(a.xA9,{container:!0,sx:{display:"flex",alignItems:"center",justifyItems:"start",color:"#4CCB92",fontSize:"8px",flexDirection:"column"},children:[(0,C.jsx)(a.JrA,{style:{fill:"#4CCB92",width:14,height:14}}),"ONLINE"]}):(0,C.jsxs)(a.xA9,{container:!0,sx:{display:"flex",flexDirection:"column",alignItems:"center",color:"#C83B51",fontSize:"8px"},children:[(0,C.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,C.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:M,records:D,entityName:"Tiers",idField:"service_name",customPaperHeight:"400px"})})}),(0,C.jsx)(a.xA9,{item:!0,xs:12,sx:{marginTop:"15px"},children:(0,C.jsx)(a.lVp,{title:"Learn more about TIERS",iconComponent:(0,C.jsx)(a.fAn,{}),help:(0,C.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,C.jsx)("br",{}),(0,C.jsx)("br",{}),"You can learn more at our"," ",(0,C.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,C.jsx)(a.lVp,{title:"Tiers",iconComponent:(0,C.jsx)(a.fAn,{}),help:(0,C.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,C.jsx)("br",{}),(0,C.jsx)("br",{}),L?(0,C.jsxs)("div",{children:["To get started,"," ",(0,C.jsx)(a.t53,{isLoading:!1,label:"",onClick:z,children:"Create Tier"}),"."]}):""]})})]})]}):(0,C.jsx)(y.A,{entity:"Tiers",iconComponent:(0,C.jsx)(a.zEc,{})})})]})}},20755:(e,t,n)=>{n.d(t,{_T:()=>c,pW:()=>l,qA:()=>o,vH:()=>s,y:()=>a});var r=n(89923),i=n(70579);const s="minio",o="gcs",l="s3",a="azure",c=[{serviceName:s,targetTitle:"MinIO",logo:(0,i.jsx)(r.Wh8,{}),logoXs:(0,i.jsx)(r.$2v,{})},{serviceName:o,targetTitle:"Google Cloud Storage",logo:(0,i.jsx)(r.F7U,{}),logoXs:(0,i.jsx)(r.gwF,{})},{serviceName:l,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,{})}]}}]);
|
|
//# sourceMappingURL=8311.0b90f115.chunk.js.map
|