Browse Source

fixed code formatting

all-modes
pbca26 8 years ago
parent
commit
640e03fe14
  1. 1
      react/src/components/dashboard/settings/settings.addNodePanel.js
  2. 1
      react/src/components/dashboard/settings/settings.appInfoPanel.js
  3. 5
      react/src/components/dashboard/settings/settings.appSettingsPanel.js
  4. 64
      react/src/components/dashboard/settings/settings.appUpdatePanel.js
  5. 2
      react/src/components/dashboard/settings/settings.cliPanel.js
  6. 4
      react/src/components/dashboard/settings/settings.debugLogPanel.js
  7. 1
      react/src/components/dashboard/settings/settings.exportKeysPanel.js
  8. 1
      react/src/components/dashboard/settings/settings.fiatCurrencyPanel.js
  9. 4
      react/src/components/dashboard/settings/settings.importKeysPanel.js
  10. 11
      react/src/components/dashboard/settings/settings.js
  11. 7
      react/src/components/dashboard/settings/settings.render.js
  12. 2
      react/src/components/dashboard/settings/settings.supportPanel.js
  13. 1
      react/src/components/dashboard/settings/settings.walletBackupPanel.js
  14. 3
      react/src/components/dashboard/settings/settings.walletInfoPanel.js

1
react/src/components/dashboard/settings/settings.addNodePanel.js

@ -175,7 +175,6 @@ const mapStateToProps = (state) => {
return {
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(AddNodePanel);

1
react/src/components/dashboard/settings/settings.appInfoPanel.js

@ -85,7 +85,6 @@ const mapStateToProps = (state) => {
return {
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(AppInfoPanel);

5
react/src/components/dashboard/settings/settings.appSettingsPanel.js

@ -107,7 +107,6 @@ class AppSettingsPanel extends React.Component {
}
}
renderConfigEditForm() {
let items = [];
const _appConfig = this.state.appSettings;
@ -306,7 +305,7 @@ class AppSettingsPanel extends React.Component {
onClick={ this._resetAppConfig }>Reset to default</button>
</div>
</div>
);
);
};
}
@ -315,7 +314,7 @@ const mapStateToProps = (state) => {
Settings: state.Settings,
Dashboard: {
skipFullDashboardUpdate: state.Dashboard.skipFullDashboardUpdate,
}
},
};
};

64
react/src/components/dashboard/settings/settings.appUpdatePanel.js

@ -30,7 +30,6 @@ class AppUpdatePanel extends React.Component {
this._checkForUpdateUIPromise = this._checkForUpdateUIPromise.bind(this);
this._updateUIPromise = this._updateUIPromise.bind(this);
this.checkNodes = this.checkNodes.bind(this);
}
componentWillMount() {
@ -108,38 +107,38 @@ class AppUpdatePanel extends React.Component {
render() {
return (
<div className="panel-body">
<div className="col-sm-4 padding-top-15">
<h5>{ translate('INDEX.UI_UPDATE') }</h5>
<div className="padding-top-15">
<button
type="button"
className="btn btn-info waves-effect waves-light"
onClick={ this._checkForUpdateUIPromise }>{ translate('INDEX.CHECK_FOR_UPDATE') }</button>
<button
type="button"
className="btn btn-primary waves-effect waves-light margin-left-20"
onClick={ this._updateUIPromise }
disabled={ !this.state.updatePatch }>{ translate('INDEX.UPDATE_UI_NOW') }</button>
</div>
</div>
<div className="col-sm-4 padding-top-15 hide">
<h5>{ translate('INDEX.BINS_UPDATE') }</h5>
<div className="padding-top-15">
<button
type="button"
className="btn btn-info waves-effect waves-light"
onClick={ this._checkForUpdateUIPromise }>{ translate('INDEX.CHECK_FOR_UPDATE') }</button>
<button
type="button"
className="btn btn-primary waves-effect waves-light margin-left-20"
onClick={ this.checkNodes }>{ translate('INDEX.UPDATE_BINS_NOW') }</button>
</div>
</div>
<div className="col-sm-12 padding-top-15">
{ this.renderUpdateStatus() }
</div>
<div className="panel-body">
<div className="col-sm-4 padding-top-15">
<h5>{ translate('INDEX.UI_UPDATE') }</h5>
<div className="padding-top-15">
<button
type="button"
className="btn btn-info waves-effect waves-light"
onClick={ this._checkForUpdateUIPromise }>{ translate('INDEX.CHECK_FOR_UPDATE') }</button>
<button
type="button"
className="btn btn-primary waves-effect waves-light margin-left-20"
onClick={ this._updateUIPromise }
disabled={ !this.state.updatePatch }>{ translate('INDEX.UPDATE_UI_NOW') }</button>
</div>
</div>
<div className="col-sm-4 padding-top-15 hide">
<h5>{ translate('INDEX.BINS_UPDATE') }</h5>
<div className="padding-top-15">
<button
type="button"
className="btn btn-info waves-effect waves-light"
onClick={ this._checkForUpdateUIPromise }>{ translate('INDEX.CHECK_FOR_UPDATE') }</button>
<button
type="button"
className="btn btn-primary waves-effect waves-light margin-left-20"
onClick={ this.checkNodes }>{ translate('INDEX.UPDATE_BINS_NOW') }</button>
</div>
</div>
<div className="col-sm-12 padding-top-15">
{ this.renderUpdateStatus() }
</div>
</div>
);
};
}
@ -147,7 +146,6 @@ const mapStateToProps = (state) => {
return {
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(AppUpdatePanel);

2
react/src/components/dashboard/settings/settings.cliPanel.js

@ -190,7 +190,7 @@ class CliPanel extends React.Component {
</div>
</form>
</div>
);
);
};
}

4
react/src/components/dashboard/settings/settings.debugLogPanel.js

@ -167,13 +167,13 @@ class DebugLogPanel extends React.Component {
<div className="margin-top-20">{ this.renderAppRuntimeLog() }</div>
}
</div>
);
);
};
}
const mapStateToProps = (state) => {
return {
Settings: state.Settings
Settings: state.Settings,
};
};

1
react/src/components/dashboard/settings/settings.exportKeysPanel.js

@ -216,7 +216,6 @@ const mapStateToProps = (state) => {
},
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(ExportKeysPanel);

1
react/src/components/dashboard/settings/settings.fiatCurrencyPanel.js

@ -18,7 +18,6 @@ const mapStateToProps = (state) => {
return {
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(FiatCurrencyPanel);

4
react/src/components/dashboard/settings/settings.importKeysPanel.js

@ -60,8 +60,8 @@ class ImportKeysPanel extends React.Component {
</div>
</form>
</div>
);
};
);
}
}
export default ImportKeysPanel;

11
react/src/components/dashboard/settings/settings.js

@ -58,7 +58,7 @@ class Settings extends React.Component {
Store.dispatch(getAppConfig());
Store.dispatch(getAppInfo());
document.getElementById('section-iguana-wallet-settings').setAttribute("style", "height:auto; min-height: 100%");
document.getElementById('section-iguana-wallet-settings').setAttribute('style', 'height:auto; min-height: 100%');
}
componentWillReceiveProps(props) {
@ -72,11 +72,10 @@ class Settings extends React.Component {
}
openTab(elemId, tab) {
this.setState(Object.assign({}, this.state, {
activeTab: tab,
tabElId: elemId,
}));
this.setState(Object.assign({}, this.state, {
activeTab: tab,
tabElId: elemId,
}));
}
updateInput(e) {

7
react/src/components/dashboard/settings/settings.render.js

@ -52,6 +52,7 @@ export const SettingsRender = function() {
}
{ !this.props.disableWalletSpecificUI &&
<div
className="hide"
id="DumpWallet"
onClick={ () => this.openTab('DumpWallet', 2) }
className={ 'panel' + (this.state.nativeOnly ? ' hide' : '') }>
@ -64,11 +65,12 @@ export const SettingsRender = function() {
className={ 'panel-collapse collapse' + (this.state.activeTab === 2 ? ' in' : '') }
style={{ height: this.state.activeTab === 2 ? `auto` : '0' }}>
{ this.renderWalletBackup() }
</div>
</div>
</div>
}
{ !this.props.disableWalletSpecificUI &&
<div
className="hide"
id="FiatCurrencySettings"
onClick={ () => this.openTab('FiatCurrencySettings', 3) }
className={ 'panel' + (this.state.nativeOnly ? ' hide' : '') }>
@ -80,7 +82,8 @@ export const SettingsRender = function() {
<div
className={ 'panel-collapse collapse' + (this.state.activeTab === 3 ? ' in' : '') }
style={{ height: this.state.activeTab === 3 ? `auto` : '0' }}>
{ this.renderFiatCurrency() } </div>
{ this.renderFiatCurrency() }
</div>
</div>
}
{ !this.props.disableWalletSpecificUI &&

2
react/src/components/dashboard/settings/settings.supportPanel.js

@ -75,7 +75,7 @@ class SupportPanel extends React.Component {
</div>
</div>
</div>
);
);
};
}

1
react/src/components/dashboard/settings/settings.walletBackupPanel.js

@ -18,7 +18,6 @@ const mapStateToProps = (state) => {
return {
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(WalletBackupPanel);

3
react/src/components/dashboard/settings/settings.walletInfoPanel.js

@ -53,9 +53,8 @@ const mapStateToProps = (state) => {
return {
Main: {
activeHandle: state.Main.activeHandle,
}
},
};
};
export default connect(mapStateToProps)(WalletInfoPanel);
Loading…
Cancel
Save