Rename leafes/nodes to topic
This commit is contained in:
@@ -60,7 +60,6 @@
|
||||
}
|
||||
</style>
|
||||
<script src="http://localhost:35729/livereload.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="splash"><div id="splash1"></div></div>
|
||||
|
||||
@@ -53,7 +53,7 @@ export const filterTopics = (filterStr: string) => (dispatch: Dispatch<any>, get
|
||||
return Boolean(messageMatches)
|
||||
}
|
||||
|
||||
const resultTree = tree.leafes()
|
||||
const resultTree = tree.childTopics()
|
||||
.filter(nodeFilter)
|
||||
.map((node) => {
|
||||
const clone = node.unconnectedClone()
|
||||
|
||||
@@ -18,7 +18,7 @@ class NodeStats extends React.Component<Props, {}> {
|
||||
return (
|
||||
<div>
|
||||
<Typography>Messages: #{node.messages}</Typography>
|
||||
<Typography>Subtopics: {node.leafCount()}</Typography>
|
||||
<Typography>Subtopics: {node.childTopicCount()}</Typography>
|
||||
<Typography>Messages Subtopics: #{node.leafMessageCount()}</Typography>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -90,7 +90,7 @@ class Tree extends React.Component<Props, {}> {
|
||||
animateChages={true}
|
||||
isRoot={true}
|
||||
treeNode={tree}
|
||||
name="/"
|
||||
name={'"root"'}
|
||||
lastUpdate={tree.lastUpdate}
|
||||
collapsed={false}
|
||||
performanceCallback={this.performanceCallback}
|
||||
|
||||
@@ -42,7 +42,7 @@ class TreeNodeSubnodes extends React.Component<Props, State> {
|
||||
nodes = nodes.sort((a, b) => b.leafMessageCount() - a.leafMessageCount())
|
||||
}
|
||||
if (topicOrder === TopicOrder.topics) {
|
||||
nodes = nodes.sort((a, b) => b.leafCount() - a.leafCount())
|
||||
nodes = nodes.sort((a, b) => b.childTopicCount() - a.childTopicCount())
|
||||
}
|
||||
|
||||
return nodes
|
||||
|
||||
@@ -84,7 +84,7 @@ class TreeNodeTitle extends React.Component<TreeNodeProps, {}> {
|
||||
}
|
||||
|
||||
const messages = this.props.treeNode.leafMessageCount()
|
||||
return <span style={this.getStyles().collapsedSubnodes}>({this.props.treeNode.leafCount()} nodes, {messages} messages)</span>
|
||||
return <span style={this.getStyles().collapsedSubnodes}>({this.props.treeNode.childTopicCount()} topics, {messages} messages)</span>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user