mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
* No compilation step * Beginnings of web interface * Simple express server; React-based frontend * CommonJS style across codebase; auto-converts to RequireJS for browser * Using diffsync for realtime UI * "Provider" -> "Plugin" * Plugins expose one or more Providers
17 lines
338 B
JavaScript
17 lines
338 B
JavaScript
|
|
|
|
module.exports.Admin = React.createClass({
|
|
render: function() {
|
|
return (
|
|
<div className="container">
|
|
<h2>Installed Plugins</h2>
|
|
<ul>
|
|
{ this.props.root.plugins.map(function(plugin) {
|
|
return <li key={plugin.name}>{plugin.name}</li>
|
|
})}
|
|
</ul>
|
|
</div>
|
|
);
|
|
}
|
|
});
|