aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-10-07 08:52:41 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-10-07 08:52:41 -0500
commitffdbde9621cd56aa08ec9c345380abd722e7c4a2 (patch)
treef936e2f00dc28d011710589d321750c8033fd0e7
parent228cd7f97761137bde191d45c1771879a8d45de3 (diff)
downloadslskd-ffdbde9621cd56aa08ec9c345380abd722e7c4a2.tar.gz
rough in System components
-rw-r--r--src/web/src/components/System/Info.js13
-rw-r--r--src/web/src/components/System/Logs.js25
-rw-r--r--src/web/src/components/System/System.css9
-rw-r--r--src/web/src/components/System/System.js29
4 files changed, 76 insertions, 0 deletions
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 (
+ <div>
+ <pre>{JSON.stringify(this.props.state, null, 2)}</pre>
+ </div>
+ );
+ }
+}
+
+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 (
+ <div>
+ <ul>
+ <li>log 1 here</li>
+ <li>log 2 here</li>
+ </ul>
+ </div>
+ );
+ }
+}
+
+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 (
+ <div className='system'>
+ <Segment raised>
+ <Tab panes={[
+ { menuItem: 'Info', render: () => <Tab.Pane><Info state={this.props.state}/></Tab.Pane> },
+ { menuItem: 'Logs', render: () => <Tab.Pane><Logs/></Tab.Pane> },
+ ]}/>
+ </Segment>
+ </div>
+ );
+ }
+}
+
+export default System; \ No newline at end of file