File tree Expand file tree Collapse file tree 8 files changed +18
-11
lines changed Expand file tree Collapse file tree 8 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 100
100
"electron-squirrel-startup" : " ^0.1.4" ,
101
101
"font-awesome" : " https://github.com/FortAwesome/Font-Awesome/archive/v4.4.0.tar.gz" ,
102
102
"get-object-path" : " azer/get-object-path#74eb42de0cfd02c14ffdd18552f295aba723d394" ,
103
- "hadron-action" : " ^0.0.4 " ,
103
+ "hadron-action" : " ^0.1.0 " ,
104
104
"hadron-auto-update-manager" : " ^0.0.12" ,
105
105
"hadron-compile-cache" : " ^0.3.0" ,
106
- "hadron-component -registry" : " ^0.4 .0" ,
106
+ "hadron-app -registry" : " ^1.2 .0" ,
107
107
"hadron-document" : " ^0.17.0" ,
108
108
"hadron-ipc" : " ^0.0.7" ,
109
109
"hadron-module-cache" : " ^0.0.3" ,
110
110
"hadron-package-manager" : " 0.1.0" ,
111
111
"hadron-reflux-store" : " ^0.0.2" ,
112
+ "hadron-type-checker" : " ^0.4.0" ,
112
113
"highlight.js" : " ^8.9.1" ,
113
114
"jquery" : " ^2.1.4" ,
114
115
"kerberos" : " mongodb-js/kerberos#bc619b1b9213eb4cdae786cf3fb916fc7be66758" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ var DocumentListView = View.extend({
18
18
}
19
19
} ,
20
20
initialize : function ( ) {
21
- this . documentList = app . componentRegistry . findByRole ( 'Collection: DocumentList') [ 0 ] ;
21
+ this . documentList = app . appRegistry . getComponent ( 'Component::CRUD:: DocumentList') ;
22
22
this . listenTo ( app . queryOptions , 'change:query' , this . onQueryChanged . bind ( this ) ) ;
23
23
} ,
24
24
onQueryChanged : function ( ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ var ModuleCache = require('hadron-module-cache');
11
11
ModuleCache . register ( resourcePath ) ;
12
12
ModuleCache . add ( resourcePath ) ;
13
13
14
- var ComponentRegistry = require ( 'hadron-component -registry' ) ;
14
+ var AppRegistry = require ( 'hadron-app -registry' ) ;
15
15
var PackageManager = require ( 'hadron-package-manager' ) . PackageManager ;
16
16
17
17
var pkg = require ( '../../package.json' ) ;
@@ -73,7 +73,7 @@ var debug = require('debug')('mongodb-compass:app');
73
73
// order to ensure that the compile cache has already been loaded and
74
74
// hooked into require.extensions. Otherwise, packages will not have
75
75
// use of the compile cache.
76
- app . componentRegistry = new ComponentRegistry ( ) ;
76
+ app . appRegistry = new AppRegistry ( ) ;
77
77
app . packageManager = new PackageManager ( path . join ( __dirname , '..' , 'internal-packages' ) ) ;
78
78
app . packageManager . activate ( ) ;
79
79
Original file line number Diff line number Diff line change 2
2
3
3
const app = require ( 'ampersand-app' ) ;
4
4
const DocumentList = require ( './lib/component/document-list' ) ;
5
+ const Actions = require ( './lib/actions' ) ;
6
+ const InsertDocumentStore = require ( './lib/store/insert-document-store' ) ;
5
7
6
8
/**
7
9
* Activate all the components in the CRUD package.
8
10
*/
9
11
function activate ( ) {
10
- app . componentRegistry . register ( DocumentList , { role : 'Collection:DocumentList' } ) ;
12
+ app . appRegistry . registerComponent ( 'Component::CRUD::DocumentList' , DocumentList ) ;
13
+ app . appRegistry . registerAction ( 'Action::CRUD::DocumentRemoved' , Actions . documentRemoved ) ;
14
+ app . appRegistry . registerStore ( 'Store::CRUD::InsertDocumentStore' , InsertDocumentStore ) ;
11
15
}
12
16
13
17
/**
14
18
* Deactivate all the components in the CRUD package.
15
19
*/
16
20
function deactivate ( ) {
17
- app . componentRegistry . deregister ( DocumentList ) ;
21
+ app . appRegistry . deregisterComponent ( 'Component::CRUD::DocumentList' ) ;
22
+ app . appRegistry . deregisterAction ( 'Action::CRUD::DocumentRemoved' ) ;
23
+ app . appRegistry . deregisterStore ( 'Store::CRUD::InsertDocumentStore' ) ;
18
24
}
19
25
20
26
module . exports . activate = activate ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const React = require ( 'react' ) ;
4
- const truncate = require ( 'hadron-component -registry' ) . truncate ;
4
+ const truncate = require ( 'hadron-app -registry' ) . truncate ;
5
5
6
6
/**
7
7
* Base 64 constant.
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const React = require ( 'react' ) ;
4
- const truncate = require ( 'hadron-component -registry' ) . truncate ;
4
+ const truncate = require ( 'hadron-app -registry' ) . truncate ;
5
5
6
6
/**
7
7
* The document value class.
Original file line number Diff line number Diff line change 3
3
const app = require ( 'ampersand-app' ) ;
4
4
const React = require ( 'react' ) ;
5
5
const Reflux = require ( 'reflux' ) ;
6
- const ElementFactory = require ( 'hadron-component -registry' ) . ElementFactory ;
6
+ const ElementFactory = require ( 'hadron-app -registry' ) . ElementFactory ;
7
7
const NamespaceStore = require ( 'hadron-reflux-store' ) . NamespaceStore ;
8
8
const HadronDocument = require ( 'hadron-document' ) ;
9
9
const Element = require ( 'hadron-document' ) . Element ;
Original file line number Diff line number Diff line change 3
3
const _ = require ( 'lodash' ) ;
4
4
const React = require ( 'react' ) ;
5
5
const inputSize = require ( './utils' ) . inputSize ;
6
- const ElementFactory = require ( 'hadron-component -registry' ) . ElementFactory ;
6
+ const ElementFactory = require ( 'hadron-app -registry' ) . ElementFactory ;
7
7
const TypeChecker = require ( 'hadron-type-checker' ) ;
8
8
9
9
/**
You can’t perform that action at this time.
0 commit comments