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
30 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(1864)}])},8750:function(e,n,r){"use strict";r.d(n,{Z:function(){return N}});var t=r(5893),i=r(7294),o=r(5258),a=r(1120),s=r(253),c=r(282),d=[{text:"Files",image:"/pngs/files_on.png",uri:"/striker?files=true"},{text:"Tasks",image:"/pngs/tasks_no-jobs_icon.png",uri:"/striker?jobs=true"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/striker?configure=true"},{text:"Striker",image:"/pngs/striker_icon_on.png",uri:"/striker?striker=true"},{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/striker?anvil=true"},{text:"Email",image:"/pngs/email_on.png",uri:"/striker?email=true"},{text:"Logout",image:"/pngs/users_icon_on.png",uri:"/striker?logout=true"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],l={width:"40em",height:"40em"},u=r(7169),h=r(8008),f=r(2822),x=r(998),g=r(5517),p=r(5154),m=r(442),j=r(3430);function v(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function b(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){v(e,n,r[n])}))}return e}var _=(0,a.Z)((function(){return(0,p.Z)({list:{width:"200px"},divider:{background:u.d},text:{paddingTop:".5em",paddingLeft:"1.5em"},dashboardButton:{paddingLeft:".1em"},dashboardIcon:{fontSize:"2.3em",color:u.s7}})})),w=function(e){var n=e.open,r=e.setOpen,i=_();return(0,t.jsx)(h.ZP,{BackdropProps:{invisible:!0},anchor:"left",open:n,onClose:function(){return r(!n)},children:(0,t.jsx)("div",{role:"presentation",children:(0,t.jsxs)(f.Z,{className:i.list,children:[(0,t.jsx)(x.Z,{button:!0,children:(0,t.jsx)(j.z,{text:"Admin"})}),(0,t.jsx)(g.Z,{className:i.divider}),(0,t.jsx)(x.Z,{button:!0,component:"a",href:"/index.html",children:(0,t.jsxs)(s.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,t.jsx)(s.Z,{className:i.dashboardButton,children:(0,t.jsx)(m.Z,{className:i.dashboardIcon})}),(0,t.jsx)(s.Z,{flexGrow:1,className:i.text,children:(0,t.jsx)(j.A,{text:"Dashboard"})})]})}),d.map((function(e){return(0,t.jsx)(x.Z,{button:!0,component:"a",href:-1!==e.uri.search(/^https?:/)?e.uri:"".concat("/cgi-bin").concat(e.uri),children:(0,t.jsxs)(s.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,t.jsx)(s.Z,{children:(0,t.jsx)("img",b({alt:"",src:e.image},l),"icon")}),(0,t.jsx)(s.Z,{flexGrow:1,className:i.text,children:(0,t.jsx)(j.A,{text:e.text})})]})},e.image)}))]})})})};function Z(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){Z(e,n,r[n])}))}return e}var k=(0,a.Z)((function(e){return{appBar:{paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingLeft:e.spacing(3),paddingRight:e.spacing(3),borderBottom:"solid 1px",borderBottomColor:u.hM},input:{height:"2.8em",width:"30vw",backgroundColor:e.palette.secondary.main,borderRadius:u.n_},barElement:{padding:0},iconBox:Z({},e.breakpoints.down("sm"),{display:"none"}),searchBar:Z({},e.breakpoints.down("sm"),{flexGrow:1,paddingLeft:"15vw"}),icons:{paddingLeft:".1em",paddingRight:".1em"}}})),N=function(){var e=k(),n=(0,i.useState)(!1),r=n[0],a=n[1];return(0,t.jsxs)(o.Z,{position:"static",className:e.appBar,children:[(0,t.jsxs)(s.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,t.jsx)(s.Z,{className:e.barElement,children:(0,t.jsx)(c.Z,{onClick:function(){return a(!r)},children:(0,t.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"