git status

This commit is contained in:
Richard Lewis 2017-06-07 15:39:27 +01:00
parent c552f7f336
commit a09001933a
3 changed files with 15 additions and 3 deletions

View file

@ -12,6 +12,12 @@ class ModularWidgets {
name: 'Grafana', name: 'Grafana',
description: 'Graph and monitor all the things!', description: 'Graph and monitor all the things!',
}, },
{
type: 'custom',
icon: 'http://localhost:8000/static/blocks.png',
name: 'Custom Widget',
description: 'Add your own custom widget',
},
]; ];
} }
export default ModularWidgets; export default ModularWidgets;

View file

@ -68,7 +68,7 @@ export default React.createClass({
> >
<div className="mx_Dialog_content"> <div className="mx_Dialog_content">
{appCards} {appCards}
{/* <hr/> <hr/>
<form onSubmit={this.onFormSubmit}> <form onSubmit={this.onFormSubmit}>
<div>Or enter the URL of the widget to add.</div> <div>Or enter the URL of the widget to add.</div>
<input type="text" ref="input_value" value={this.state.value} <input type="text" ref="input_value" value={this.state.value}
@ -78,7 +78,7 @@ export default React.createClass({
</form> </form>
<div className="mx_Dialog_buttons"> <div className="mx_Dialog_buttons">
<input className="mx_Dialog_primary" type="submit" value="Add" /> <input className="mx_Dialog_primary" type="submit" value="Add" />
</div> */} </div>
</div> </div>
</BaseDialog> </BaseDialog>
); );

View file

@ -18,9 +18,15 @@ limitations under the License.
import React from 'react'; import React from 'react';
class AppIconTile extends React.Component { class AppIconTile extends React.Component {
render() { render() {
const contentClasses = ['mx_AppIconTile'];
// if(this.props.type == 'custom') {
// contentClasses.push('mx_AppIconTile_active');
// }
return ( return (
<div className="mx_AppIconTile"> <div className={contentClasses.join(' ')}>
<div className="mx_AppIconTile_imageContainer"> <div className="mx_AppIconTile_imageContainer">
<img src={this.props.icon} alt={this.props.name} className="mx_AppIconTile_image"/> <img src={this.props.icon} alt={this.props.name} className="mx_AppIconTile_image"/>
</div> </div>