Add author information
This commit is contained in:
@@ -21,6 +21,7 @@ import { connect } from 'react-redux'
|
|||||||
import { settingsActions, treeActions } from '../actions'
|
import { settingsActions, treeActions } from '../actions'
|
||||||
import { TopicOrder } from '../reducers/Settings'
|
import { TopicOrder } from '../reducers/Settings'
|
||||||
import BrokerStatistics from './BrokerStatistics'
|
import BrokerStatistics from './BrokerStatistics'
|
||||||
|
import { shell } from 'electron';
|
||||||
|
|
||||||
export const autoExpandLimitSet = [{
|
export const autoExpandLimitSet = [{
|
||||||
limit: 0,
|
limit: 0,
|
||||||
@@ -56,6 +57,11 @@ const styles: StyleRulesCallback = theme => ({
|
|||||||
minWidth: '150px',
|
minWidth: '150px',
|
||||||
margin: `auto ${theme.spacing(1)} auto ${theme.spacing(2)}px`,
|
margin: `auto ${theme.spacing(1)} auto ${theme.spacing(2)}px`,
|
||||||
},
|
},
|
||||||
|
author: {
|
||||||
|
margin: 'auto 8px 8px auto',
|
||||||
|
color: theme.palette.text.hint,
|
||||||
|
cursor: 'pointer' as 'pointer',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -101,11 +107,20 @@ class Settings extends React.Component<Props, {}> {
|
|||||||
{this.renderNodeOrder()}
|
{this.renderNodeOrder()}
|
||||||
{this.renderhighlightTopicUpdates()}
|
{this.renderhighlightTopicUpdates()}
|
||||||
</div>
|
</div>
|
||||||
|
<Tooltip placement="top" title="App Author">
|
||||||
|
<Typography className={classes.author} onClick={this.openGithubPage}>
|
||||||
|
by Thomas Nordquist
|
||||||
|
</Typography>
|
||||||
|
</Tooltip>
|
||||||
<BrokerStatistics />
|
<BrokerStatistics />
|
||||||
</Drawer>
|
</Drawer>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private openGithubPage = () => {
|
||||||
|
shell.openExternal('https://github.com/thomasnordquist')
|
||||||
|
}
|
||||||
|
|
||||||
private renderhighlightTopicUpdates() {
|
private renderhighlightTopicUpdates() {
|
||||||
const { highlightTopicUpdates, actions } = this.props
|
const { highlightTopicUpdates, actions } = this.props
|
||||||
|
|
||||||
|
|||||||
@@ -233,6 +233,10 @@ class TreeNode extends React.Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private renderNodes() {
|
private renderNodes() {
|
||||||
|
if (this.collapsed()) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TreeNodeSubnodes
|
<TreeNodeSubnodes
|
||||||
animateChanges={this.props.animateChages}
|
animateChanges={this.props.animateChages}
|
||||||
|
|||||||
Reference in New Issue
Block a user