From b0bad697a4a053a4195ffccf67128a7924d361aa Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 30 Aug 2022 19:10:30 -0400 Subject: [PATCH] feat(striker-ui): add striker config page WIP --- .../StrikerConfig/ComplexOperationsPanel.tsx | 17 ++++++++ .../StrikerConfig/SimpleOperationsPanel.tsx | 39 +++++++++++++++++++ striker-ui/components/StrikerConfig/index.tsx | 4 ++ striker-ui/pages/config/index.tsx | 25 ++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 striker-ui/components/StrikerConfig/ComplexOperationsPanel.tsx create mode 100644 striker-ui/components/StrikerConfig/SimpleOperationsPanel.tsx create mode 100644 striker-ui/components/StrikerConfig/index.tsx create mode 100644 striker-ui/pages/config/index.tsx diff --git a/striker-ui/components/StrikerConfig/ComplexOperationsPanel.tsx b/striker-ui/components/StrikerConfig/ComplexOperationsPanel.tsx new file mode 100644 index 00000000..417ba9e9 --- /dev/null +++ b/striker-ui/components/StrikerConfig/ComplexOperationsPanel.tsx @@ -0,0 +1,17 @@ +import { FC } from 'react'; + +import FlexBox from '../FlexBox'; +import { ExpandablePanel, Panel } from '../Panels'; +import { BodyText } from '../Text'; + +const ComplexOperationsPanel: FC = () => ( + + Configure striker peers}> + + Inbound connections + + + +); + +export default ComplexOperationsPanel; diff --git a/striker-ui/components/StrikerConfig/SimpleOperationsPanel.tsx b/striker-ui/components/StrikerConfig/SimpleOperationsPanel.tsx new file mode 100644 index 00000000..0601c329 --- /dev/null +++ b/striker-ui/components/StrikerConfig/SimpleOperationsPanel.tsx @@ -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 = (props) => ( + +); + +const SimpleOperationsPanel: FC = ({ + strikerHostName, +}) => ( + + + + + + + Update system + + + Enable "Install target" + + + Reboot + + + Shutdown + + + +); + +export default SimpleOperationsPanel; diff --git a/striker-ui/components/StrikerConfig/index.tsx b/striker-ui/components/StrikerConfig/index.tsx new file mode 100644 index 00000000..d2330f25 --- /dev/null +++ b/striker-ui/components/StrikerConfig/index.tsx @@ -0,0 +1,4 @@ +import ComplexOperationsPanel from './ComplexOperationsPanel'; +import SimpleOperationsPanel from './SimpleOperationsPanel'; + +export { ComplexOperationsPanel, SimpleOperationsPanel }; diff --git a/striker-ui/pages/config/index.tsx b/striker-ui/pages/config/index.tsx new file mode 100644 index 00000000..8844b63c --- /dev/null +++ b/striker-ui/pages/config/index.tsx @@ -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 = () => ( + +
+ + + + + + + + + +); + +export default Config;