Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
25 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{91953:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file-manager",function(){return l(52288)}])},15079:function(e,t,l){"use strict";var n=l(85893),r=l(97212),i=l(78462),s=l(5616),o=l(55238),a=l(84154),c=l(5744);let renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,n.jsx)(a.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:l}=e;return/passw/i.test(l)?(0,n.jsx)(a.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):renderEntryValueWithMono(e)},buildEntryList=e=>{let{depth:t=0,entries:l,getEntryLabel:s,getListProps:o,getListItemProps:a,listKey:c,maxDepth:u,renderEntry:d,renderEntryValue:h,skip:p}=e,m=[];Object.entries(l).forEach(e=>{let[l,i]=e,o="form-summary-entry-".concat(l),c=null!==i&&"object"==typeof i,g=c?null:i,v={depth:t,entry:g,key:l};p(e=>{let{key:t}=e;return!/confirm/i.test(t)},v)&&m.push((0,n.jsx)(r.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==a?void 0:a.call(null,v),children:d({depth:t,entry:g,getLabel:s,key:l,nest:c,renderValue:h})},o)),c&&t<u&&m.push(buildEntryList({depth:t+1,entries:i,getEntryLabel:s,listKey:l,maxDepth:u,renderEntry:d,renderEntryValue:h,skip:p}))});let g="form-summary-list-".concat(null!=c?c:"root");return(0,n.jsx)(i.Z,{dense:!0,disablePadding:!0,...null==o?void 0:o.call(null,{depth:t,entries:l,key:c}),children:m},g)};t.Z=e=>{let{entries:t,getEntryLabel:l=e=>{let{cap:t,key:l}=e;return t(l)},getListProps:r,getListItemProps:i,hasPassword:u,maxDepth:d=3,renderEntry:h=e=>{let{depth:t,entry:l,getLabel:r,key:i,nest:u,renderValue:d}=e;return(0,n.jsxs)(o.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,n.jsx)(a.Ac,{children:r({cap:c.Z,depth:t,entry:l,key:i})}),(0,n.jsx)(s.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!u&&d({depth:t,entry:l,key:i})})]})},renderEntryValue:p=e=>{let{entry:t}=e;return["",null,void 0].some(e=>t===e)?(0,n.jsx)(a.Ac,{children:"none"}):u?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)},skip:m=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];return e(...l)}}=e;return buildEntryList({entries:t,getEntryLabel:l,getListProps:r,getListItemProps:i,maxDepth:d,renderEntry:h,renderEntryValue:p,skip:m})}},21405:function(e,t,l){"use strict";l.d(t,{Z:function(){return components_Header}});var n=l(85893),r=l(41098),i=l(90948),s=l(42293),o=l(5616),a=l(82589),c=l(54799),u=l(67294),d=l(6010),h=l(25709),p=l(13540),m=l(77533),g=l(78462),v=l(97212),f=l(98619);let x=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],j={width:"40em",height:"40em"};var Z=l(67645),b=l(57632),y=l(55238),w=l(41247),k=l(84154),F=l(34819);let C="AnvilDrawer",_={actionIcon:"".concat(C,"-actionIcon"),list:"".concat(C,"-list")},S=(0,i.ZP)(m.ZP)(()=>({["& .".concat(_.list)]:{width:"200px"},["& .".concat(_.actionIcon)]:{fontSize:"2.3em",color:d.of}}));var components_AnvilDrawer=e=>{let{open:t,setOpen:l}=e,{getSessionUser:r}=(0,F.Z)(),i=r();return(0,n.jsx)(S,{BackdropProps:{invisible:!0},anchor:"left",open:t,onClose:()=>l(!t),children:(0,n.jsx)("div",{role:"presentation",children:(0,n.jsxs)(g.Z,{className:_.list,children:[(0,n.jsx)(v.ZP,{children:(0,n.jsx)(k.Ac,{children:i?(0,n.jsxs)(n.Fragment,{children:["Welcome, ",i.name]}):"Unregistered"})}),(0,n.jsx)(b.Z,{}),(0,n.jsx)(f.Z,{component:"a",href:"/index.html",children:(0,n.jsxs)(y.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,n.jsx)(h.Z,{className:_.actionIcon}),(0,n.jsx)(k.Ac,{children:"Dashboard"})]})}),x.map(e=>(0,n.jsx)(f.Z,{component:"a",href:e.uri,children:(0,n.jsxs)(y.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,n.jsx)("img",{alt:e.text,src:e.image,...j}),(0,n.jsx)(k.Ac,{children:e.text})]})},"anvil-drawer-".concat