summary start

This commit is contained in:
2024-05-10 00:02:25 -04:00
parent bc4d6a6ced
commit fa8f1441c8
3 changed files with 80 additions and 104 deletions

View File

@ -118,13 +118,9 @@ export default class CableDetailComponent extends Component {
});
if (modal === "modalOpen_dispense") {
this.props.socket.send(
`{"type": "cable_get","call": "send","data": {"position": ${this.state.cableDetails.position}}}`
);
this.props.socket.send(`{"type": "cable_get","call": "send","data": {"position": ${this.state.cableDetails.position}}}`);
} else if (modal === "modalOpen_show") {
this.props.socket.send(
`{"type": "cable_get","call": "request","data": {"position": ${this.state.cableDetails.position}}}`
);
this.props.socket.send(`{"type": "cable_get","call": "request","data": {"position": ${this.state.cableDetails.position}}}`);
}
};

View File

@ -6,50 +6,16 @@ export default class SummaryComponent extends Component {
render() {
return (
<div className="summary">
<img className="summary-image" src={BeldenLogo} alt="Belden" />
<div className="summary-image">
<img src={BeldenLogo} alt="Belden" />
</div>
<div className="summary-fieldContainer">
<h1 className="summary-title">Grid of Individual Graphs</h1>
<h1 className="summary-title">Summary</h1>
<div className="summary-grid">
{/* <div className="summary-iframe"> */}
<iframe
className="summary-iframe"
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=9"
frameborder="0"
></iframe>
<iframe
className="summary-iframe"
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=8"
frameborder="0"></iframe>
<iframe
className="summary-iframe"
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=7"
frameborder="0"
></iframe>
<iframe
className="summary-iframe"
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=6"
frameborder="0"
></iframe>
<iframe
className="summary-iframe"
src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=5"
frameborder="0"
></iframe>
{/* </div> */}
{/* <iframe src="http://192.168.1.12:3000/d-solo/cdiqwmlr8c9ogf/sensors?orgId=1&refresh=1s&theme=light&panelId=7" width="450" height="200" frameborder="0"></iframe> */}
<div className="summary-grid-container"></div>
</div>
<h1 className="summary-title">Embed Dashboard in Kiosk Mode</h1>
<iframe
className="summary-dashboard"
src="http://192.168.1.12:3000/d/cdiqwmlr8c9ogf/sensors?orgId=1&theme=light&refresh=1s&kiosk"
frameborder="0"
></iframe>
</div>
</div>
);
}
}
}