nyx-dashboard/.next/static/chunks/pages/controlpanel/commands-d5f369974eebeb471590.js
2021-06-20 22:01:27 +08:00

1 line
No EOL
6 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544],{997:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return M}});var o=a(5893),n=a(7294),r=a(1120),i=a(1253),l=a(2122),s=(a(5697),a(6010)),c=a(8786);var d=n.createContext(),p="table",m=n.forwardRef((function(e,t){var a=e.classes,o=e.className,r=e.component,c=void 0===r?p:r,m=e.padding,u=void 0===m?"default":m,f=e.size,g=void 0===f?"medium":f,h=e.stickyHeader,v=void 0!==h&&h,y=(0,i.Z)(e,["classes","className","component","padding","size","stickyHeader"]),x=n.useMemo((function(){return{padding:u,size:g,stickyHeader:v}}),[u,g,v]);return n.createElement(d.Provider,{value:x},n.createElement(c,(0,l.Z)({role:c===p?null:"table",ref:t,className:(0,s.Z)(a.root,o,v&&a.stickyHeader)},y)))})),u=(0,c.Z)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,l.Z)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(m);var f=n.createContext(),g={variant:"body"},h="tbody",v=n.forwardRef((function(e,t){var a=e.classes,o=e.className,r=e.component,c=void 0===r?h:r,d=(0,i.Z)(e,["classes","className","component"]);return n.createElement(f.Provider,{value:g},n.createElement(c,(0,l.Z)({className:(0,s.Z)(a.root,o),ref:t,role:c===h?null:"rowgroup"},d)))})),y=(0,c.Z)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(v),x=a(3871),b=a(9693),Z=n.forwardRef((function(e,t){var a,o,r=e.align,c=void 0===r?"inherit":r,p=e.classes,m=e.className,u=e.component,g=e.padding,h=e.scope,v=e.size,y=e.sortDirection,b=e.variant,Z=(0,i.Z)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),w=n.useContext(d),N=n.useContext(f),C=N&&"head"===N.variant;u?(o=u,a=C?"columnheader":"cell"):o=C?"th":"td";var k=h;!k&&C&&(k="col");var j=g||(w&&w.padding?w.padding:"default"),E=v||(w&&w.size?w.size:"medium"),R=b||N&&N.variant,_=null;return y&&(_="asc"===y?"ascending":"descending"),n.createElement(o,(0,l.Z)({ref:t,className:(0,s.Z)(p.root,p[R],m,"inherit"!==c&&p["align".concat((0,x.Z)(c))],"default"!==j&&p["padding".concat((0,x.Z)(j))],"medium"!==E&&p["size".concat((0,x.Z)(E))],"head"===R&&w&&w.stickyHeader&&p.stickyHeader),"aria-sort":_,role:a,scope:k},Z))})),w=(0,c.Z)((function(e){return{root:(0,l.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,b.$n)((0,b.U1)(e.palette.divider,1),.88):(0,b._j)((0,b.U1)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(Z),N=n.forwardRef((function(e,t){var a=e.classes,o=e.className,r=e.component,c=void 0===r?"div":r,d=(0,i.Z)(e,["classes","className","component"]);return n.createElement(c,(0,l.Z)({ref:t,className:(0,s.Z)(a.root,o)},d))})),C=(0,c.Z)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(N),k={variant:"head"},j="thead",E=n.forwardRef((function(e,t){var a=e.classes,o=e.className,r=e.component,c=void 0===r?j:r,d=(0,i.Z)(e,["classes","className","component"]);return n.createElement(f.Provider,{value:k},n.createElement(c,(0,l.Z)({className:(0,s.Z)(a.root,o),ref:t,role:c===j?null:"rowgroup"},d)))})),R=(0,c.Z)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(E),_=n.forwardRef((function(e,t){var a=e.classes,o=e.className,r=e.component,c=void 0===r?"tr":r,d=e.hover,p=void 0!==d&&d,m=e.selected,u=void 0!==m&&m,g=(0,i.Z)(e,["classes","className","component","hover","selected"]),h=n.useContext(f);return n.createElement(c,(0,l.Z)({ref:t,className:(0,s.Z)(a.root,o,h&&{head:a.head,footer:a.footer}[h.variant],p&&a.hover,u&&a.selected),role:"tr"===c?null:"row"},g))})),z=(0,c.Z)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,b.U1)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(_),H=a(9895),T=(0,r.Z)({table:{minWidth:650}});function A(e,t,a){return{name:e,description:t,status:a}}var D=[A("Command","Description",!0),A("Command","Description",!0),A("Command","Description",!0),A("Command","Description",!0)];var M=function(){var e=T();return(0,o.jsx)(C,{component:H.Z,style:{background:"#1F1B24"},children:(0,o.jsxs)(u,{className:e.table,"aria-label":"simple table",children:[(0,o.jsx)(R,{children:(0,o.jsxs)(z,{children:[(0,o.jsx)(w,{style:{color:"#fff"},children:"Commands"}),(0,o.jsx)(w,{align:"right",style:{color:"#fff"},children:"Description"}),(0,o.jsx)(w,{align:"right",style:{color:"#fff"},children:"Status"})]})}),(0,o.jsx)(y,{children:D.map((function(e){return(0,o.jsxs)(z,{children:[(0,o.jsx)(w,{component:"th",scope:"row",style:{color:"#fff"},children:e.name}),(0,o.jsx)(w,{align:"right",style:{color:"#fff"},children:e.description}),(0,o.jsx)(w,{align:"right",style:{color:"#fff"},children:e.status?"Online":"Offline"})]},e.name)}))})]})})}},4907:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/controlpanel/commands",function(){return a(997)}])}},function(e){e.O(0,[774,888,179],(function(){return t=4907,e(e.s=t);var t}));var t=e.O();_N_E=t}]);