forked from docker/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added proper about page with tools versions
Signed-off-by: FrenchBen <[email protected]>
- Loading branch information
Showing
5 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React from 'react/addons'; | ||
import metrics from '../utils/MetricsUtil'; | ||
import utils from '../utils/Util'; | ||
import Router from 'react-router'; | ||
import RetinaImage from 'react-retina-image'; | ||
var packages; | ||
|
||
try { | ||
packages = utils.packagejson(); | ||
} catch (err) { | ||
packages = {}; | ||
} | ||
|
||
var Preferences = React.createClass({ | ||
mixins: [Router.Navigation], | ||
getInitialState: function () { | ||
return { | ||
metricsEnabled: metrics.enabled() | ||
}; | ||
}, | ||
handleGoBackClick: function () { | ||
this.goBack(); | ||
metrics.track('Went Back From About'); | ||
}, | ||
render: function () { | ||
return ( | ||
<div className="preferences"> | ||
<div className="preferences-content"> | ||
<a onClick={this.handleGoBackClick}>Go Back</a> | ||
<RetinaImage src="banner.png"/> | ||
<table className="table"> | ||
<thead> | ||
<tr> | ||
<th>APP NAME</th> | ||
<th>VERSION</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{packages.name}</td> | ||
<td>{packages.version}</td> | ||
</tr> | ||
<tr> | ||
<td>Docker</td> | ||
<td>{packages["docker-version"]}</td> | ||
</tr> | ||
<tr> | ||
<td>Docker Machine</td> | ||
<td>{packages["docker-machine-version"]}</td> | ||
</tr> | ||
<tr> | ||
<td>Docker Compose</td> | ||
<td>{packages["docker-compose-version"]}</td> | ||
</tr> | ||
<tr> | ||
<td>VirtualBox</td> | ||
<td>{packages["virtualbox-version"]}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
module.exports = Preferences; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters