initial commit
This commit is contained in:
1
node_modules/jibo-tools/lib/simulator/views/chat-message.js
generated
vendored
Normal file
1
node_modules/jibo-tools/lib/simulator/views/chat-message.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var e=function(e){return e&&e.__esModule?e["default"]:e},t=e(require("react"));module.exports=t.createClass({displayName:"chat-message",getInitialState:function(){return{}},render:function(){var e={},a="#2E6575";"jibo"!==this.props.message.author?e={"text-align":"right"}:(e={"text-align":"left"},a="#1EB2E2");var r={"border-radius":"5px",margin:"1%",backgroundColor:a,clear:"both",width:"100%"},s=this.props.message.author?this.props.message.author:"[anybody]";return t.createElement("div",{style:e},t.createElement("div",{style:r},t.createElement("div",{className:"speaker",style:{fontWeight:"bold",padding:"3px"}},s),t.createElement("div",{className:"content",style:{padding:"3px"}},this.props.message.content)))}});
|
||||
Reference in New Issue
Block a user