address code review
This commit is contained in:
parent
923bacf22f
commit
d5cd0b0ff7
|
@ -42,7 +42,7 @@ class Console extends Component {
|
|||
renderNav() {
|
||||
return (
|
||||
<Nav tabs>
|
||||
{this.props.processes.filter((p) => ["embark", "blockchain"].indexOf(p.name) >= 0).map((process) => (
|
||||
{this.props.processes.map((process) => (
|
||||
<NavItem key={process.name}>
|
||||
<NavLink
|
||||
className={classnames({ active: this.state.activeTab === process.name })}
|
||||
|
@ -79,7 +79,7 @@ class Console extends Component {
|
|||
|
||||
return (
|
||||
<TabContent activeTab={this.state.activeTab}>
|
||||
{processes.filter((p) => ["embark", "blockchain"].indexOf(p.name) >= 0).map(process => (
|
||||
{processes.map(process => (
|
||||
<TabPane key={process.name} tabId={process.name}>
|
||||
<Logs>
|
||||
{processLogs
|
||||
|
|
|
@ -33,7 +33,7 @@ const sidebarNavItems = {items: [
|
|||
{url: "/embark/explorer/blocks", icon: "fa fa-stop", name: "Blocks"},
|
||||
{url: "/embark/explorer/transactions", icon: "fa fa-tree", name: "Transactions"}
|
||||
]},
|
||||
{name: "Editor", url: "/embark/fiddle", icon: "fa fa-codepen"},
|
||||
{name: "Editor", url: "/embark/editor", icon: "fa fa-codepen"},
|
||||
{name: "Documentation", url: "/embark/documentation", icon: "fa fa-book"},
|
||||
{name: "Utils", url: "/embark/utilities/converter", icon: "fa fa-cog", children: [
|
||||
{url: "/embark/utilities/converter", icon: "fa fa-plug", name: "Converter"},
|
||||
|
|
|
@ -85,6 +85,10 @@ const sorter = {
|
|||
|
||||
const filtrer = {
|
||||
processes: function(process, index, self) {
|
||||
if (["embark", "blockchain"].indexOf(process.name) === -1) return false;
|
||||
return index === self.findIndex((t) => t.name === process.name);
|
||||
},
|
||||
services: function(process, index, self) {
|
||||
return index === self.findIndex((t) => t.name === process.name);
|
||||
},
|
||||
processLogs: function(processLog, index, self) {
|
||||
|
|
|
@ -20,7 +20,7 @@ const routes = (
|
|||
<Route path="/embark/deployment/" component={DeploymentContainer} />
|
||||
<Route path="/embark/contracts/:contractName" component={ContractLayoutContainer} />
|
||||
<Route path="/embark/contracts" component={ContractsContainer} />
|
||||
<Route path="/embark/fiddle" component={FiddleLayout} />
|
||||
<Route path="/embark/editor" component={FiddleLayout} />
|
||||
<Route path="/embark/utilities" component={UtilsLayout} />
|
||||
<Route component={NoMatch} />
|
||||
</Switch>
|
||||
|
|
|
@ -24,7 +24,6 @@ class ProcessManager {
|
|||
this.servicesState = {}
|
||||
this.events.on("servicesState", (servicesState) => {
|
||||
this.servicesState = servicesState;
|
||||
//console.dir(this.servicesState)
|
||||
})
|
||||
|
||||
self.plugin.registerAPICall(
|
||||
|
|
Loading…
Reference in New Issue