More deploy stuff
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import React, { Component } from 'react';
|
||||
import './DateNode.scss';
|
||||
|
||||
class DateNode extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className={"DateNode " + (this.props.first ? 'first' : '')}>
|
||||
<span className="horizontal-line"></span>
|
||||
<p className="date">{this.props.date}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default DateNode;
|
||||
@@ -0,0 +1,16 @@
|
||||
import React, { Component } from 'react';
|
||||
import './EndNode.scss';
|
||||
|
||||
class EndNode extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className={"EndNode"}>
|
||||
<span className="horizontal-line"></span>
|
||||
<p className="date">{this.props.date}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default EndNode;
|
||||
@@ -0,0 +1,31 @@
|
||||
import React, { Component } from 'react';
|
||||
import './EventMessages.scss';
|
||||
|
||||
class EventMessages extends Component {
|
||||
|
||||
getMessages() {
|
||||
|
||||
var messages = this.props.event.messages;
|
||||
|
||||
if(!messages)
|
||||
return;
|
||||
|
||||
var elements = [];
|
||||
|
||||
for(var i = messages.length - 1; i >= 0; i--) {
|
||||
elements.push(<p key={i}>{messages[i]}</p>);
|
||||
}
|
||||
|
||||
return elements;
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className={"EventMessages"}>
|
||||
{this.getMessages()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default EventMessages;
|
||||
@@ -0,0 +1,42 @@
|
||||
import React, { Component } from 'react';
|
||||
import './EventNode.scss';
|
||||
|
||||
class EventNode extends Component {
|
||||
|
||||
getIconElement() {
|
||||
|
||||
if(this.props.event.isWaiting()) {
|
||||
return (
|
||||
<div className="icon spinner"></div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<i className={"icon mdi mdi-" + this.props.event.getIconName()} />
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className={"EventNode " + this.props.alignment + " " + this.props.event.getColorClass()}>
|
||||
<span className="horizontal-line"></span>
|
||||
<span className="timeline-icon"></span>
|
||||
<div className="inner">
|
||||
<div className="header">
|
||||
{this.getIconElement()}
|
||||
<p className="title">{this.props.event.getTitle()}</p>
|
||||
<p className="subtitle">{this.props.event.getSubtitle()}</p>
|
||||
</div>
|
||||
<div className="body">
|
||||
{this.props.children}
|
||||
</div>
|
||||
<svg className="vertical-arrow" viewBox="0 0 10 30">
|
||||
<path d="M0,0 c0,5,0,5,5,10 c6,6,6,4,0,10 c-5,5,-5,5,-5,10" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default EventNode;
|
||||
@@ -0,0 +1,32 @@
|
||||
import React, { Component } from 'react';
|
||||
import './WebSocketStatus.scss';
|
||||
|
||||
class WebSocketStatus extends Component {
|
||||
render() {
|
||||
|
||||
if(this.props.wsIsOpen && !this.props.wsIsAuthenticated)
|
||||
return (
|
||||
<div className="WebSocketStatus">
|
||||
Authenticating against {this.props.wsURI}
|
||||
</div>
|
||||
);
|
||||
|
||||
if(this.props.wsIsRecovering)
|
||||
return (
|
||||
<div className="WebSocketStatus">
|
||||
Reconnecting to {this.props.wsURI}
|
||||
</div>
|
||||
);
|
||||
|
||||
if(this.props.wsIsOpen)
|
||||
return (
|
||||
<div className="WebSocketStatus">
|
||||
Receiving real time updates from {this.props.wsURI}
|
||||
</div>
|
||||
);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default WebSocketStatus;
|
||||
Reference in New Issue
Block a user