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
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[3905],{92217:function(e,n,t){var i=t(1413),o=t(72791),r=t(61889),a=t(30829),l=t(20068),s=t(64554),x=t(11135),c=t(25787),d=t(75952),p=t(23814),u=t(78029),h=t.n(u),m=t(60655),f=t(27454),g=t(80184);n.Z=(0,c.Z)((function(e){return(0,x.Z)((0,i.Z)({},p.YI))}))((function(e){var n=e.value,t=e.label,i=void 0===t?"":t,x=e.tooltip,c=void 0===x?"":x,p=e.mode,u=void 0===p?"json":p,j=e.classes,Z=e.onBeforeChange,y=(e.readOnly,e.editorHeight),b=void 0===y?"250px":y;return(0,g.jsxs)(o.Fragment,{children:[(0,g.jsx)(r.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,g.jsxs)(a.Z,{className:j.inputLabel,children:[(0,g.jsx)("span",{children:i}),""!==c&&(0,g.jsx)("div",{className:j.tooltipContainer,children:(0,g.jsx)(l.Z,{title:c,placement:"top-start",children:(0,g.jsx)("div",{className:j.tooltip,children:(0,g.jsx)(d.byK,{})})})})]})}),(0,g.jsx)(r.ZP,{item:!0,xs:12,style:{maxHeight:b,overflow:"auto",border:"1px solid #eaeaea"},children:(0,g.jsx)(m.Z,{value:n,language:u,onChange:function(e){Z(null,null,e.target.value)},id:"code_wrapper",padding:15,style:{fontSize:12,backgroundColor:"#fefefe",fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",minHeight:b||"initial",color:"#000000"}})}),(0,g.jsx)(r.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,g.jsx)(s.Z,{sx:{display:"flex",alignItems:"center",padding:"2px",paddingRight:"5px",justifyContent:"flex-end","& button":{height:"26px",width:"26px",padding:"2px"," .min-icon":{marginLeft:"0"}}},children:(0,g.jsx)(f.Z,{tooltip:"Copy to Clipboard",children:(0,g.jsx)(h(),{text:n,children:(0,g.jsx)(d.zxk,{type:"button",id:"copy-code-mirror",icon:(0,g.jsx)(d.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},25739:function(e,n,t){t(72791);var i=t(64554),o=t(50896),r=t(80184);n.Z=function(e){var n=e.children,t=e.title,a=e.helpbox,l=e.icon;return(0,r.jsxs)(i.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(o.Z,{icon:l,children:t}),(0,r.jsx)(i.Z,{sx:{height:16}}),n]}),a]})}},53138:function(e,n,t){t.r(n),t.d(n,{emptyContent:function(){return y}});var i=t(29439),o=t(72791),r=t(64554),a=t(61889),l=t(75952),s=t(74794),x=t(21435),c=t(56087),d=t(25739),p=t(87995),u=t(57689),h=t(25469),m=t(9505),f=t(40214),g=t(92217),j=t(47974),Z=t(80184),y='{\n "bytes": ""\n}';n.default=function(){var e=(0,h.TL)(),n=(0,u.s0)(),t=(0,m.Z)((function(){return n("".concat(c.gA.KMS_KEYS))}),(function(n){return e((0,p.Ih)(n))})),b=(0,i.Z)(t,2),v=b[0],C=b[1],k=(0,o.useState)(""),S=(0,i.Z)(k,2),I=S[0],K=S[1],M=(0,o.useState)(y),P=(0,i.Z)(M,2),T=P[0],w=P[1],B=""!==I.trim()&&-1===I.indexOf(" ");return(0,Z.jsx)(o.Fragment,{children:(0,Z.jsxs)(a.ZP,{item:!0,xs:12,children:[(0,Z.jsx)(j.Z,{label:(0,Z.jsx)(l.hbI,{onClick:function(){return n(c.gA.KMS_KEYS)},label:"Keys"})}),(0,Z.jsx)(s.Z,{children:(0,Z.jsx)(d.Z,{title:"Import Key",icon:(0,Z.jsx)(l.sR0,{}),helpbox:(0,Z.jsx)(f.Z,{helpText:"Encryption Key",contents:["Import a cryptographic key in the Key Management Service server connected to MINIO."]}),children:(0,Z.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault();var n=JSON.parse(T);C("POST","/api/v1/kms/keys/".concat(I,"/import"),n)}(e)},children:(0,Z.jsxs)(a.ZP,{container:!0,item:!0,spacing:1,children:[(0,Z.jsx)(a.ZP,{item:!0,xs:12,children:(0,Z.jsx)(x.Z,{id:"key-name",name:"key-name",label:"Key Name",autoFocus:!0,value:I,error:function(e){return-1!==e.indexOf(" ")?"Key name cannot contain spaces":""}(I),onChange:function(e){K(e.target.value)}})}),(0,Z.jsx)(a.ZP,{item:!0,xs:12,children:(0,Z.jsx)(g.Z,{label:"Set key Content",value:T,onBeforeChange:function(e,n,t){w(t)},editorHeight:"350px"})}),(0,Z.jsx)(a.ZP,{item:!0,xs:12,textAlign:"right",children:(0,Z.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:"20px",gap:"15px"},children:[(0,Z.jsx)(l.zxk,{id:"clear",type:"button",variant:"regular",onClick:function(){K(""),w("")},label:"Clear"}),(0,Z.jsx)(l.zxk,{id:"import-key",type:"submit",variant:"callAction",color:"primary",disabled:v||!B,label:"Import"})]})})]})})})})]})})}},40214:function(e,n,t){t(72791);var i=t(64554),o=t(75952),r=t(80184);n.Z=function(e){var n=e.helpText,t=e.contents;return(0,r.jsxs)(i.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px"},children:[(0,r.jsxs)(i.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px",paddingBottom:"20px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,r.jsx)(o.M9A,{}),(0,r.jsx)("div",{children:n})]}),(0,r.jsx)(i.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:t.map((function(e){return(0,r.jsx)(i.Z,{sx:{paddingBottom:"20px"},children:e})}))})]})}}}]);
|
|
//# sourceMappingURL=3905.4d560c48.chunk.js.map
|