From ffdbde9621cd56aa08ec9c345380abd722e7c4a2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 7 Oct 2021 08:52:41 -0500 Subject: rough in System components --- src/web/src/components/System/Info.js | 13 +++++++++++++ src/web/src/components/System/Logs.js | 25 +++++++++++++++++++++++++ src/web/src/components/System/System.css | 9 +++++++++ src/web/src/components/System/System.js | 29 +++++++++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 src/web/src/components/System/Info.js create mode 100644 src/web/src/components/System/Logs.js create mode 100644 src/web/src/components/System/System.css create mode 100644 src/web/src/components/System/System.js (limited to 'src/web') diff --git a/src/web/src/components/System/Info.js b/src/web/src/components/System/Info.js new file mode 100644 index 00000000..ee132aec --- /dev/null +++ b/src/web/src/components/System/Info.js @@ -0,0 +1,13 @@ +import React, { Component } from 'react'; + +class Info extends Component { + render = () => { + return ( +
+
{JSON.stringify(this.props.state, null, 2)}
+
+ ); + } +} + +export default Info; \ No newline at end of file diff --git a/src/web/src/components/System/Logs.js b/src/web/src/components/System/Logs.js new file mode 100644 index 00000000..b98a557a --- /dev/null +++ b/src/web/src/components/System/Logs.js @@ -0,0 +1,25 @@ +import React, { Component } from 'react'; +import { Segment, Tab } from 'semantic-ui-react'; +import './System.css'; + +class Logs extends Component { + componentDidMount = () => { + } + + componentWillUnmount = () => { + + } + + render = () => { + return ( +
+ +
+ ); + } +} + +export default Logs; \ No newline at end of file diff --git a/src/web/src/components/System/System.css b/src/web/src/components/System/System.css new file mode 100644 index 00000000..a2720e39 --- /dev/null +++ b/src/web/src/components/System/System.css @@ -0,0 +1,9 @@ +.system { + padding-left: 15px; + padding-right: 15px; + max-width: 1200px !important; + margin-left: auto !important; + margin-right: auto !important; + margin-top: 15px !important; + margin-bottom: 17px; +} \ No newline at end of file diff --git a/src/web/src/components/System/System.js b/src/web/src/components/System/System.js new file mode 100644 index 00000000..e1e61c5c --- /dev/null +++ b/src/web/src/components/System/System.js @@ -0,0 +1,29 @@ +import React, { Component } from 'react'; +import { Segment, Tab } from 'semantic-ui-react'; +import './System.css'; +import Info from './Info'; +import Logs from './Logs'; + +class System extends Component { + componentDidMount = () => { + } + + componentWillUnmount = () => { + + } + + render = () => { + return ( +
+ + }, + { menuItem: 'Logs', render: () => }, + ]}/> + +
+ ); + } +} + +export default System; \ No newline at end of file -- cgit v1.2.3