Skip to content

Commit d35ce90

Browse files
committed
Merge pull request #13 from 10gen/activate
Add activate/deactivate to package
1 parent 612e851 commit d35ce90

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

packages/compass-serverstats/index.js

+18
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
11
module.exports.d3 = require('./lib/d3/');
2+
const app = require('hadron-app');
3+
const RTSSComponent = require('./lib/components');
4+
/**
5+
* Activate all the components in the RTSS package.
6+
*/
7+
function activate() {
8+
app.appRegistry.registerComponent('RTSS.ServerStats', RTSSComponent);
9+
}
10+
11+
/**
12+
* Deactivate all the components in the RTSS package.
13+
*/
14+
function deactivate() {
15+
app.appRegistry.deregisterComponent('RTSS.ServerStats');
16+
}
17+
18+
module.exports.activate = activate;
19+
module.exports.deactivate = deactivate;

packages/compass-serverstats/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
],
2525
"license": "Apache-2.0",
2626
"dependencies": {
27-
"d3": "^3.5.17",
2827
"babel-cli": "^6.10.1",
2928
"babel-preset-react": "^6.11.1",
30-
"hadron-app": "^0.0.4"
29+
"d3": "^3.5.17",
30+
"hadron-app": "^0.0.7",
31+
"mongodb-js-errors": "^0.3.2"
3132
},
3233
"devDependencies": {
3334
"@kadira/react-storybook-addon-info": "^3.2.1",
@@ -41,6 +42,7 @@
4142
"electron-prebuilt": "^1.2.6",
4243
"enzyme": "^2.4.1",
4344
"eslint-config-mongodb-js": "^2.1.0",
45+
"hadron-app": "^0.0.7",
4446
"hadron-app-registry": "^4.0.0",
4547
"jquery": "^3.1.1",
4648
"jsdom": "^9.4.2",

0 commit comments

Comments
 (0)