11import * as React from 'react' ;
22import * as ReactDOM from 'react-dom' ;
3- import { sideElement , SideRoot } from './components/SidePanel' ;
4- import { loadPolyfills , render } from 'core-coderoad' ;
5- import Subscriptions from './subscriptions' ;
3+
4+ import { SideRoot , sideElement } from './components/SidePanel' ;
65import addToStatusBar from './components/StatusBar' ;
7- // activate Redux
8- import store from './store' ;
96import { setupVerify } from './modules/setup' ;
7+ import store from './store' ;
8+ import Subscriptions from './subscriptions' ;
9+ import { loadPolyfills , render } from 'core-coderoad' ;
1010import * as injectTapEventPlugin from 'react-tap-event-plugin' ;
1111
1212class Main {
13- side :HTMLElement ;
14- statusBarTile :StatusBar . IStatusBarView ;
15- subscriptions :any ;
13+ private side :HTMLElement ;
14+ private statusBarTile :StatusBar . IStatusBarView ;
15+ private subscriptions :any ;
1616constructor ( ) {
1717injectTapEventPlugin ( ) ; // remove later
1818loadPolyfills ( ) ;
1919// run startup checks
2020store . dispatch ( setupVerify ( ) ) ;
2121this . side = sideElement . init ( ) ;
22- this . subscriptions = new Subscriptions ;
22+ this . subscriptions = new Subscriptions ( ) ;
2323}
24- activate ( ) :void {
24+ public activate ( ) :void {
2525// create atom panel
2626atom . workspace . addRightPanel ( {
2727item :this . side ,
@@ -32,10 +32,7 @@ class Main {
3232// render React component
3333ReactDOM . render ( SideRoot ( store ) , this . side ) ;
3434}
35- consumeStatusBar ( statusBar ) {
36- this . statusBarTile = addToStatusBar ( store , statusBar ) ;
37- }
38- deactivate ( ) :void {
35+ public deactivate ( ) :void {
3936// remove bottom status bar icon
4037if ( this . statusBarTile ) {
4138this . statusBarTile . destroy ( ) ;
@@ -46,5 +43,8 @@ class Main {
4643// unmount React
4744sideElement . unmount ( ) ;
4845}
46+ private consumeStatusBar ( statusBar ) {
47+ this . statusBarTile = addToStatusBar ( store , statusBar ) ;
48+ }
4949} ;
5050export = new Main ( ) ;