From c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:22 +0100 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- web/gui/v2/2357.cd84c87ed27d878a2371.chunk.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 web/gui/v2/2357.cd84c87ed27d878a2371.chunk.js (limited to 'web/gui/v2/2357.cd84c87ed27d878a2371.chunk.js') diff --git a/web/gui/v2/2357.cd84c87ed27d878a2371.chunk.js b/web/gui/v2/2357.cd84c87ed27d878a2371.chunk.js new file mode 100644 index 000000000..9ee8e84d0 --- /dev/null +++ b/web/gui/v2/2357.cd84c87ed27d878a2371.chunk.js @@ -0,0 +1 @@ +!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="413d81dd-53c4-463b-bc9b-b04d63aaafe2",e._sentryDebugIdIdentifier="sentry-dbid-413d81dd-53c4-463b-bc9b-b04d63aaafe2")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2357],{16512:function(e,t,n){n.d(t,{Q0:function(){return l},R4:function(){return m},TT:function(){return s},WL:function(){return d},Y:function(){return i},by:function(){return u},qY:function(){return r},rU:function(){return f},xL:function(){return c}});var a=n(71893),o=n(93416),l=a.default.img.withConfig({displayName:"styled__Illustration",componentId:"sc-1yhntgl-0"})(["margin:0 auto;"]),r=(0,a.default)(o.Text).withConfig({displayName:"styled__StyledText",componentId:"sc-1yhntgl-1"})(["display:block;"]),i=a.default.div.withConfig({displayName:"styled__TextHeader",componentId:"sc-1yhntgl-2"})(["margin-bottom:",";font-weight:700;"],(0,o.getSizeBy)(2)),d=a.default.div.withConfig({displayName:"styled__StaticCheckmarks",componentId:"sc-1yhntgl-3"})(["margin-top:",";margin-bottom:",";"],(0,o.getSizeBy)(2),(0,o.getSizeBy)(5)),s=a.default.div.withConfig({displayName:"styled__CheckmarkLine",componentId:"sc-1yhntgl-4"})(["display:flex;align-items:center;"]),c=(0,a.default)(o.Icon).withConfig({displayName:"styled__StyledIcon",componentId:"sc-1yhntgl-5"})(["margin-right:4px;height:18px;> use{fill:",";}"],(0,o.getColor)("primary")),u=(0,a.default)(c).withConfig({displayName:"styled__HelpIcon",componentId:"sc-1yhntgl-6"})(["vertical-align:middle;"]),m=a.default.div.withConfig({displayName:"styled__LearnMoreSection",componentId:"sc-1yhntgl-7"})(["margin-top:",";"],(0,o.getSizeBy)(4)),f=a.default.a.withConfig({displayName:"styled__Link",componentId:"sc-1yhntgl-8"})(["text-decoration:underline;color:",";&:visited{color:",";}"],(0,o.getColor)("success"),(0,o.getColor)("success"))},22357:function(e,t,n){n.r(t),n.d(t,{default:function(){return Y}});var a=n(29439),o=n(67294),l=n(93416),r=n(46667),i=n(29748),d=n(5934),s=(n(92222),n(89250)),c=n(16645),u=n(7693),m=n(92903),f=n(62200),h=n(37518),b=n(74059),g=n(97723),y=n(87574),p=n(59112),w=n(16512),E=function(e){var t=e.onClose,n=(0,s.s0)(),r=(0,o.useState)(!1),i=(0,a.Z)(r,2),d=i[0],E=i[1],C=(0,o.useState)(""),D=(0,a.Z)(C,2),v=D[0],k=D[1],A=(0,b.OS)(),T=A.id,_=A.slug,x=(0,h.UL)(),S=(0,h.vf)(),I=(0,o.useCallback)((function(e){var a=e.slug;t(),n("/spaces/".concat(_,"/rooms/").concat(S,"/dashboards/").concat(a))}),[_,S]),L=(0,g.EW)(T,x,{onSuccess:I}),N=(0,o.useCallback)((function(){return L({name:v})}),[v]),M=v.length>0;return o.createElement(c.u6,{onClose:t},o.createElement(u.x,{onClose:t,title:"New Dashboard"},o.createElement(l.Button,{label:"Add",icon:"plus",onClick:N,"data-testid":"addNewDashboardModal-add-button"})),o.createElement(m.B,null,"Create new Dashboard"),o.createElement(c.TZ,null,o.createElement(p.Z,{value:v,label:"Name",onChange:function(e){k(e.target.value)},isValid:d,setIsValid:E,isDirty:M,instantFeedback:"all",onKeyDown:function(e){return e.keyCode===f.DV&&d&&N},"data-testid":"addNewDashboardModal-dashboardName-input",containerStyles:{flex:{grow:0,shrink:0},margin:[0,0,4,0]}}),o.createElement(w.qY,null,o.createElement(w.Y,null,"What you can do with Dashboards?"),"Combine all the metrics that matter to you, from all the nodes that matter to you, into one clean interface that helps you visually detect anomalies as they\u2019re happening. Building a new dashboard will only take a few minutes, and the metrics are always real-time."),o.createElement(w.WL,null,o.createElement(w.TT,null,o.createElement(w.xL,{name:"check"}),o.createElement(l.Text,null,"Add charts from your infrastructure")),o.createElement(w.TT,null,o.createElement(w.xL,{name:"check"}),o.createElement(l.Text,null,"Group information in a meaningful way")),o.createElement(w.R4,null,o.createElement(w.by,{name:"help"}),o.createElement(l.Text,null,"Learn more about Dashboards")," ",o.createElement(w.rU,{href:"https://learn.netdata.cloud/docs/cloud/visualize/dashboards",target:"_blank",rel:"noopener noreferrer"},"In our documentation"))),o.createElement(w.Q0,{src:y.X})))},C=n(78266),D=n(50308),v=n.n(D),k=(n(26699),n(32023),n(15861)),A=n(64687),T=n.n(A),_=(n(21249),n(57640),n(9924),n(41539),n(64211),n(2490),n(41874),n(34735)),x=function(e){var t=e.handleOpenAddDashboardModal,n=e.hasPermissionToAddDashboard,a=e.hasPermissionToDeleteDashboard,l=e.refetch,r=(0,h.Hm)("name"),i=(0,g.qN)(),s=(0,d.ie)(),c=(0,_.Z)(),u=c.hasLimitations,m=c.maxDashboards,f=function(){var e=(0,k.Z)(T().mark((function e(t,n){var a,o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Array.isArray(t)?t:[t],o=a.map((function(e){return e.id})),e.next=4,i({ids:o},{onSuccess:n.resetRowSelection});case 4:l();case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),b=(0,o.useMemo)((function(){return{delete:{confirmLabel:"Yes, delete",confirmationMessage:function(e){return o.createElement(o.Fragment,null,"You are about to delete ",o.createElement("strong",null,e.name)," from ",o.createElement("strong",null,r),".",o.createElement("br",null),"Are you sure you want to continue?")},confirmationTitle:function(e){return"Delete ".concat(e.name)},declineLabel:"Cancel",handleAction:f,tooltipText:"Delete dashboard",isVisible:a}}}),[a]),y=(0,o.useMemo)((function(){return{addEntry:{handleAction:t,isVisible:n,tooltipText:"Create dashboard",disabledTooltipText:"Your plan does not allow you to create more than ".concat(m," dashboards."),disabled:u&&s.length>=m},delete:{confirmLabel:"Yes, delete",confirmationMessage:function(e,t){return o.createElement(o.Fragment,null,"You are about to delete"," ",o.createElement("strong",null,t.length>1?"".concat(t.length," dashboards"):t[0].name)," ","from ",o.createElement("strong",null,r),".",o.createElement("br",null),"Are you sure you want to continue?")},confirmationTitle:function(){return"Delete"},disabledTooltipText:"Delete is disabled because you haven't selected dashboards",declineLabel:"Cancel",handleAction:f,tooltipText:"Delete dashboards",isVisible:a}}}));return{rowActions:a?b:[],bulkActions:[n,a].some(Boolean)?y:[]}},S=n(47133),I=n(32864),L=n(59264),N=n(33335),M=function(e){var t=e.refetch,n=e.handleOpenAddDashboardModal,l=(0,o.useState)(),r=(0,a.Z)(l,2)[1],i=(0,d.ie)(),s=(0,S.QF)(i),c=(0,N.gI)("dashboard:Create"),u=(0,N.gI)("dashboard:Delete"),m=(0,o.useMemo)((function(){return(0,I.Z)()}),[]),f=x({dashboards:s,handleOpenAddDashboardModal:n,hasPermissionToAddDashboard:c,hasPermissionToDeleteDashboard:u,refetch:t});return{rowActions:f.rowActions,bulkActions:f.bulkActions,data:s,enableSelection:u,columns:m,enableSorting:!0,globalFilterFn:(0,o.useCallback)((function(e,t,n){var a=n.toLowerCase(),o=e.getValue("agent").toLowerCase(),l="".concat((0,L.Z)(e.getValue("lastModified")).toLowerCase()),r="".concat((0,L.Z)(e.getValue("createdAt")).toLowerCase());return o.includes(a)||l.includes(a)||r.includes(a)}),[]),setGlobalFilter:r}},Z=function(e){var t=e.refetch,n=void 0===t?v():t,a=e.handleOpenAddDashboardModal,r=M({refetch:n,handleOpenAddDashboardModal:a}),i=r.enableSelection,d=r.columns,s=r.data,c=r.rowActions,u=r.bulkActions,m=r.enableSorting,f=r.globalFilterFn,h=r.setGlobalFilter;return o.createElement(l.Table,{rowActions:c,enableSelection:i,data:s,dataColumns:d,bulkActions:u,enableSorting:m,globalFilterFn:f,onSearch:h,testPrefixCallback:function(e){return e.name}})},F=n(63346),Y=function(){var e=(0,i.Z)(),t=(0,r.Z)(!1),n=(0,a.Z)(t,4),s=n[0],c=n[2],u=n[3];return(0,d.L)()?o.createElement(F.ZP,{feature:"DashboardOverview"},o.createElement(l.Flex,{position:"relative",width:"100%",height:"100%",flex:!0,column:!0,padding:[4]},o.createElement(Z,{refetch:e,handleOpenAddDashboardModal:c}),s&&o.createElement(E,{onClose:u}))):o.createElement(C.Z,{title:"Loading dashboards..."})}}}]); \ No newline at end of file -- cgit v1.2.3