parent
767288aa96
commit
b0bad697a4
4 changed files with 85 additions and 0 deletions
@ -0,0 +1,17 @@ |
||||
import { FC } from 'react'; |
||||
|
||||
import FlexBox from '../FlexBox'; |
||||
import { ExpandablePanel, Panel } from '../Panels'; |
||||
import { BodyText } from '../Text'; |
||||
|
||||
const ComplexOperationsPanel: FC = () => ( |
||||
<Panel> |
||||
<ExpandablePanel header={<BodyText>Configure striker peers</BodyText>}> |
||||
<FlexBox> |
||||
<BodyText>Inbound connections</BodyText> |
||||
</FlexBox> |
||||
</ExpandablePanel> |
||||
</Panel> |
||||
); |
||||
|
||||
export default ComplexOperationsPanel; |
@ -0,0 +1,39 @@ |
||||
import { Grid } from '@mui/material'; |
||||
import { FC } from 'react'; |
||||
import ContainedButton, { ContainedButtonProps } from '../ContainedButton'; |
||||
import { Panel, PanelHeader } from '../Panels'; |
||||
import { HeaderText } from '../Text'; |
||||
|
||||
type SimpleOperationsPanelProps = { |
||||
strikerHostName: string; |
||||
}; |
||||
|
||||
const StretchedButton: FC<ContainedButtonProps> = (props) => ( |
||||
<ContainedButton {...props} sx={{ width: '100%' }} /> |
||||
); |
||||
|
||||
const SimpleOperationsPanel: FC<SimpleOperationsPanelProps> = ({ |
||||
strikerHostName, |
||||
}) => ( |
||||
<Panel> |
||||
<PanelHeader> |
||||
<HeaderText text={strikerHostName} /> |
||||
</PanelHeader> |
||||
<Grid columns={{ xs: 1, sm: 2 }} container spacing="1em"> |
||||
<Grid item sm={2} xs={1}> |
||||
<StretchedButton>Update system</StretchedButton> |
||||
</Grid> |
||||
<Grid item sm={2} xs={1}> |
||||
<StretchedButton>Enable "Install target"</StretchedButton> |
||||
</Grid> |
||||
<Grid item xs={1}> |
||||
<StretchedButton>Reboot</StretchedButton> |
||||
</Grid> |
||||
<Grid item xs={1}> |
||||
<StretchedButton>Shutdown</StretchedButton> |
||||
</Grid> |
||||
</Grid> |
||||
</Panel> |
||||
); |
||||
|
||||
export default SimpleOperationsPanel; |
@ -0,0 +1,4 @@ |
||||
import ComplexOperationsPanel from './ComplexOperationsPanel'; |
||||
import SimpleOperationsPanel from './SimpleOperationsPanel'; |
||||
|
||||
export { ComplexOperationsPanel, SimpleOperationsPanel }; |
@ -0,0 +1,25 @@ |
||||
import { Box, Grid } from '@mui/material'; |
||||
import { FC } from 'react'; |
||||
|
||||
import Header from '../../components/Header'; |
||||
|
||||
import { |
||||
ComplexOperationsPanel, |
||||
SimpleOperationsPanel, |
||||
} from '../../components/StrikerConfig'; |
||||
|
||||
const Config: FC = () => ( |
||||
<Box sx={{ display: 'flex', flexDirection: 'column' }}> |
||||
<Header /> |
||||
<Grid container columns={{ xs: 1, md: 3, lg: 4 }}> |
||||
<Grid item xs={1}> |
||||
<SimpleOperationsPanel strikerHostName="STRIKER NAME" /> |
||||
</Grid> |
||||
<Grid item md={2} xs={1}> |
||||
<ComplexOperationsPanel /> |
||||
</Grid> |
||||
</Grid> |
||||
</Box> |
||||
); |
||||
|
||||
export default Config; |
Loading…
Reference in new issue