Files
openmaxio-object-browser/web-app/build/static/js/2033.a048316b.chunk.js

2 lines
12 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[2033],{22033:(e,t,o)=>{o.r(t),o.d(t,{default:()=>k});var a=o(65043),r=o(73216),n=o(89923),i=o(67433),l=o(77403),s=o(99161),p=o(70579);const c=()=>(0,p.jsx)(n.lVp,{iconComponent:(0,p.jsx)(n.jm5,{}),title:"What are Event Destinations?",help:(0,p.jsx)(n.azJ,{sx:{paddingTop:"20px"},children:"MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications."})});var d=o(48793),g=o(33097),u=o.n(g);const m=o(94574).Ay.button((e=>{let{theme:t}=e;return{background:u()(t,"boxBackground","#FFF"),border:`${u()(t,"borderColor","#E2E2E2")} 1px solid`,borderRadius:5,width:250,height:80,display:"flex",alignItems:"center",justifyContent:"start",marginBottom:16,marginRight:8,cursor:"pointer",overflow:"hidden","&:hover":{backgroundColor:u()(t,"buttons.regular.hover.background","#ebebeb")},"& .imageContainer":{width:80,"& .logoButton":{maxWidth:46,maxHeight:46,filter:"drop-shadow(1px 1px 8px #fff)"}},"& .lambdaNotifTitle":{color:u()(t,"buttons.callAction.enabled.background","#07193E"),fontSize:16,fontFamily:"Inter,sans-serif",paddingLeft:18,fontWeight:"bold"}}})),h=e=>{let{destinationType:t,srcImage:o,title:a}=e;const n=(0,r.Zp)();return(0,p.jsxs)(m,{onClick:()=>{n(`${s.zZ.EVENT_DESTINATIONS_ADD}/${t}`)},children:[(0,p.jsx)("span",{className:"imageContainer",children:(0,p.jsx)("img",{src:o,className:"logoButton",alt:a})}),(0,p.jsx)("span",{className:"lambdaNotifTitle",children:a})]})};var y=o(88617),f=o(21383),b=o(64159);const T=i.bo.filter((e=>""!==e.logo)),S=T.filter((e=>e.category===i.D3.DB)),v=T.filter((e=>e.category===i.D3.Queue)),_=T.filter((e=>e.category===i.D3.Func)),k=()=>{const e=(0,r.Zp)(),t=(0,f.jL)();return(0,a.useEffect)((()=>{t((0,b.ph)("notification_type_selector"))}),[]),(0,p.jsxs)(a.Fragment,{children:[(0,p.jsx)(d.A,{label:(0,p.jsx)(a.Fragment,{children:(0,p.jsx)(n.EGL,{label:"Event Destinations",onClick:()=>e(s.zZ.EVENT_DESTINATIONS)})}),actions:(0,p.jsx)(y.A,{})}),(0,p.jsx)(n.Mxu,{children:(0,p.jsx)(n.Hbc,{helpBox:(0,p.jsx)(c,{}),children:(0,p.jsxs)(n.azJ,{children:[(0,p.jsx)(n.azJ,{sx:{fontSize:16,fontWeight:600,paddingBottom:15},children:"Queue"}),(0,p.jsx)(n.azJ,{sx:{...l.AF.iconContainer},children:v.map((e=>(0,p.jsx)(h,{destinationType:e.actionTrigger,srcImage:e.logo,title:e.targetTitle},`icon-${e.targetTitle}`)))}),(0,p.jsx)(n.azJ,{sx:{fontSize:16,fontWeight:600,paddingBottom:15},children:"Database"}),(0,p.jsx)(n.azJ,{sx:{...l.AF.iconContainer},children:S.map((e=>(0,p.jsx)(h,{destinationType:e.actionTrigger,srcImage:e.logo,title:e.targetTitle},`icon-${e.targetTitle}`)))}),(0,p.jsx)(n.azJ,{sx:{fontSize:16,fontWeight:600,paddingBottom:15},children:"Functions"}),(0,p.jsx)(n.azJ,{sx:{...l.AF.iconContainer},children:_.map((e=>(0,p.jsx)(h,{destinationType:e.actionTrigger,srcImage:e.logo,title:e.targetTitle},`icon-${e.targetTitle}`)))})]})})})]})}},67433:(e,t,o)=>{o.d(t,{AU:()=>r,D3:()=>m,Es:()=>u,P4:()=>a,Xm:()=>b,bo:()=>y,fx:()=>T,h4:()=>v});const a="notify_postgres",r="notify_mysql",n="notify_kafka",i="notify_amqp",l="notify_mqtt",s="notify_redis",p="notify_nats",c="notify_elasticsearch",d="notify_webhook",g="notify_nsq",u=e=>e.map((e=>({service_name:`${e.service}:${e.account_id}`,name:e.service,account_id:e.account_id,status:e.status})));class m{}m.DB="database",m.Queue="queue",m.Func="functions";const h=()=>`${document.baseURI}`,y=[{actionTrigger:a,targetTitle:"PostgreSQL",logo:`${h()}postgres-logo.svg`,category:m.DB},{actionTrigger:n,targetTitle:"Kafka",logo:`${h()}kafka-logo.svg`,category:m.Queue},{actionTrigger:i,targetTitle:"AMQP",logo:`${h()}amqp-logo.svg`,category:m.Queue},{actionTrigger:l,targetTitle:"MQTT",logo:`${h()}mqtt-logo.svg`,category:m.Queue},{actionTrigger:s,targetTitle:"Redis",logo:`${h()}redis-logo.svg`,category:m.Queue},{actionTrigger:p,targetTitle:"NATS",logo:`${h()}nats-logo.svg`,category:m.Queue},{actionTrigger:r,targetTitle:"Mysql",logo:`${h()}mysql-logo.s
//# sourceMappingURL=2033.a048316b.chunk.js.map