Browse Source

fixed code formatting

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

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

@ -173,9 +173,8 @@ class AddNodePanel extends React.Component {
const mapStateToProps = (state) => {
return {
Settings: state.Settings,
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(AddNodePanel);

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

@ -83,9 +83,8 @@ class AppInfoPanel extends React.Component {
const mapStateToProps = (state) => {
return {
Settings: state.Settings,
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(AppInfoPanel);

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

@ -106,7 +106,6 @@ class AppSettingsPanel extends React.Component {
Store.dispatch(saveAppConfig(_appSettingsPristine));
}
}
renderConfigEditForm() {
let items = [];
@ -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,
}
},
};
};

66
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,46 +107,45 @@ 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>
);
};
}
const mapStateToProps = (state) => {
return {
Settings: state.Settings,
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(AppUpdatePanel);

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

@ -134,7 +134,7 @@ class CliPanel extends React.Component {
)
);
}
updateInput = (e) => {
this.setState({
[e.target.name]: e.target.value,
@ -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,
};
};

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

@ -214,9 +214,8 @@ const mapStateToProps = (state) => {
ActiveCoin: {
coin: state.ActiveCoin.coin,
},
Settings: state.Settings,
Settings: state.Settings,
};
};
export default connect(mapStateToProps)(ExportKeysPanel);

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

@ -16,9 +16,8 @@ class FiatCurrencyPanel extends React.Component {
const mapStateToProps = (state) => {
return {
Settings: state.Settings,
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;

17
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) {
@ -84,7 +83,7 @@ class Settings extends React.Component {
[e.target.name]: e.target.value,
});
}
renderAppInfoTab() {
const releaseInfo = this.props.Settings.appInfo && this.props.Settings.appInfo.releaseInfo;
@ -129,9 +128,9 @@ class Settings extends React.Component {
renderAppSettings() {
return <AppSettingsPanel />
}
renderCliPanel() {
return <CliPanel />
return <CliPanel />
}
renderSupportPanel() {

9
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 &&
@ -199,7 +202,7 @@ export const SettingsRender = function() {
{ this.renderAppUpdateTab() }
</div>
</div>
<div
className="panel"
id="Support"

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

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

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

@ -16,9 +16,8 @@ class WalletBackupPanel extends React.Component {
const mapStateToProps = (state) => {
return {
Settings: state.Settings,
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